]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Adjust CPP_FOR_BUILD
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
631 NM
632 LIPO
633 LD
634 DSYMUTIL
635 DLLTOOL
636 AS
637 AR
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
642 LEX
643 M4
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 HAVE_CXX11_FOR_BUILD
704 HAVE_CXX11
705 do_compare
706 GDC
707 GNATMAKE
708 GNATBIND
709 ac_ct_CXX
710 CXXFLAGS
711 CXX
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 extra_liboffloadmic_configure_flags
720 target_subdir
721 host_subdir
722 build_subdir
723 build_libsubdir
724 AWK
725 SED
726 LN_S
727 LN
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_os
732 target_vendor
733 target_cpu
734 target
735 host_os
736 host_vendor
737 host_cpu
738 host
739 target_noncanonical
740 host_noncanonical
741 build_noncanonical
742 build_os
743 build_vendor
744 build_cpu
745 build
746 TOPLEVEL_CONFIGURE_ARGUMENTS
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files='serialization_dependencies
786 host_makefile_frag
787 target_makefile_frag
788 alphaieee_frag
789 ospace_frag'
790 ac_user_opts='
791 enable_option_checking
792 with_build_libsubdir
793 with_system_zlib
794 enable_as_accelerator_for
795 enable_offload_targets
796 enable_offload_defaulted
797 enable_gold
798 enable_ld
799 enable_compressed_debug_sections
800 enable_libquadmath
801 enable_libquadmath_support
802 enable_libada
803 enable_libssp
804 enable_libstdcxx
805 enable_liboffloadmic
806 enable_bootstrap
807 with_mpc
808 with_mpc_include
809 with_mpc_lib
810 with_mpfr_dir
811 with_mpfr
812 with_mpfr_include
813 with_mpfr_lib
814 with_gmp_dir
815 with_gmp
816 with_gmp_include
817 with_gmp_lib
818 with_stage1_libs
819 with_static_standard_libraries
820 with_stage1_ldflags
821 with_boot_libs
822 with_boot_ldflags
823 with_isl
824 with_isl_include
825 with_isl_lib
826 enable_isl_version_check
827 enable_lto
828 enable_linker_plugin_configure_flags
829 enable_linker_plugin_flags
830 enable_host_shared
831 enable_stage1_languages
832 enable_objc_gc
833 with_target_bdw_gc
834 with_target_bdw_gc_include
835 with_target_bdw_gc_lib
836 with_gcc_major_version_only
837 with_build_sysroot
838 with_debug_prefix_map
839 with_build_config
840 enable_vtable_verify
841 enable_serial_configure
842 with_build_time_tools
843 enable_maintainer_mode
844 enable_stage1_checking
845 enable_werror
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CXX
856 CXXFLAGS
857 CCC
858 build_configargs
859 host_configargs
860 target_configargs
861 AR
862 AS
863 DLLTOOL
864 DSYMUTIL
865 LD
866 LIPO
867 NM
868 RANLIB
869 STRIP
870 WINDRES
871 WINDMC
872 OBJCOPY
873 OBJDUMP
874 OTOOL
875 READELF
876 CC_FOR_TARGET
877 CXX_FOR_TARGET
878 GCC_FOR_TARGET
879 GFORTRAN_FOR_TARGET
880 GOC_FOR_TARGET
881 GDC_FOR_TARGET
882 AR_FOR_TARGET
883 AS_FOR_TARGET
884 DLLTOOL_FOR_TARGET
885 DSYMUTIL_FOR_TARGET
886 LD_FOR_TARGET
887 LIPO_FOR_TARGET
888 NM_FOR_TARGET
889 OBJCOPY_FOR_TARGET
890 OBJDUMP_FOR_TARGET
891 OTOOL_FOR_TARGET
892 RANLIB_FOR_TARGET
893 READELF_FOR_TARGET
894 STRIP_FOR_TARGET
895 WINDRES_FOR_TARGET
896 WINDMC_FOR_TARGET'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1401 fi
1402 else
1403 ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 case $srcdir in
1424 *" "*)
1425 as_fn_error $? "path to source, $srcdir, contains spaces"
1426 ;;
1427 esac
1428 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1429
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444 \`configure' configures this package to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1497 _ACEOF
1498
1499 cat <<\_ACEOF
1500
1501 Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505
1506 System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517 Optional Features:
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-as-accelerator-for=ARG
1522 build as offload target compiler. Specify offload
1523 host triple by ARG
1524 --enable-offload-targets=LIST
1525 enable offloading to devices from comma-separated
1526 LIST of TARGET[=DIR]. Use optional path to find
1527 offload target compiler during the build
1528 --enable-offload-defaulted
1529 If enabled, configured but not installed offload compilers and
1530 libgomp plugins are silently ignored. Useful for distribution
1531 compilers where those are in separate optional packages.
1532
1533 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1534 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1535 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1536 Enable compressed debug sections for gas, gold or ld
1537 by default
1538 --disable-libquadmath do not build libquadmath directory
1539 --disable-libquadmath-support
1540 disable libquadmath support for Fortran
1541 --enable-libada build libada directory
1542 --enable-libssp build libssp directory
1543 --disable-libstdcxx do not build libstdc++-v3 directory
1544 --enable-liboffloadmic=ARG
1545 build liboffloadmic [ARG={no,host,target}]
1546 --enable-bootstrap enable bootstrapping [yes if native build]
1547 --disable-isl-version-check
1548 disable check for isl version
1549 --enable-lto enable link time optimization support
1550 --enable-linker-plugin-configure-flags=FLAGS
1551 additional flags for configuring linker plugins
1552 [none]
1553 --enable-linker-plugin-flags=FLAGS
1554 additional flags for configuring and building linker
1555 plugins [none]
1556 --enable-host-shared build host code as shared libraries
1557 --enable-stage1-languages[=all]
1558 choose additional languages to build during stage1.
1559 Mostly useful for compiler development
1560 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1561 Objective-C runtime
1562 --enable-vtable-verify Enable vtable verification feature
1563 --enable-serial-[{host,target,build}-]configure
1564 force sequential configuration of sub-packages for
1565 the host, target or build machine, or all
1566 sub-packages
1567 --enable-maintainer-mode
1568 enable make rules and dependencies not useful (and
1569 sometimes confusing) to the casual installer
1570 --enable-stage1-checking[=all]
1571 choose additional checking for stage1 of the
1572 compiler
1573 --enable-werror enable -Werror in bootstrap stage2 and later
1574
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-build-libsubdir=DIR Directory where to find libraries for build system
1579 --with-system-zlib use installed libz
1580 --with-mpc=PATH specify prefix directory for installed MPC package.
1581 Equivalent to --with-mpc-include=PATH/include plus
1582 --with-mpc-lib=PATH/lib
1583 --with-mpc-include=PATH specify directory for installed MPC include files
1584 --with-mpc-lib=PATH specify directory for the installed MPC library
1585 --with-mpfr-dir=PATH this option has been REMOVED
1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1589 --with-mpfr-include=PATH
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1592 --with-gmp-dir=PATH this option has been REMOVED
1593 --with-gmp=PATH specify prefix directory for the installed GMP
1594 package. Equivalent to
1595 --with-gmp-include=PATH/include plus
1596 --with-gmp-lib=PATH/lib
1597 --with-gmp-include=PATH specify directory for installed GMP include files
1598 --with-gmp-lib=PATH specify directory for the installed GMP library
1599 --with-stage1-libs=LIBS libraries for stage1
1600 --with-static-standard-libraries
1601 use -static-libstdc++ and -static-libgcc
1602 (default=auto)
1603 --with-stage1-ldflags=FLAGS
1604 linker flags for stage1
1605 --with-boot-libs=LIBS libraries for stage2 and later
1606 --with-boot-ldflags=FLAGS
1607 linker flags for stage2 and later
1608 --with-isl=PATH Specify prefix directory for the installed isl
1609 package. Equivalent to
1610 --with-isl-include=PATH/include plus
1611 --with-isl-lib=PATH/lib
1612 --with-isl-include=PATH Specify directory for installed isl include files
1613 --with-isl-lib=PATH Specify the directory for the installed isl library
1614 --with-target-bdw-gc=PATHLIST
1615 specify prefix directory for installed bdw-gc
1616 package. Equivalent to
1617 --with-target-bdw-gc-include=PATH/include plus
1618 --with-target-bdw-gc-lib=PATH/lib
1619 --with-target-bdw-gc-include=PATHLIST
1620 specify directories for installed bdw-gc include
1621 files
1622 --with-target-bdw-gc-lib=PATHLIST
1623 specify directories for installed bdw-gc library
1624 --with-gcc-major-version-only
1625 use only GCC major number in filesystem paths
1626 --with-build-sysroot=SYSROOT
1627 use sysroot as the system root during the build
1628 --with-debug-prefix-map='A=B C=D ...'
1629 map A to B, C to D ... in debug information
1630 --with-build-config='NAME NAME2...'
1631 use config/NAME.mk build configuration
1632 --with-build-time-tools=PATH
1633 use given path to find target tools during the build
1634
1635 Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
1640 LIBS libraries to pass to the linker, e.g. -l<library>
1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1642 you have headers in a nonstandard directory <include dir>
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
1645 build_configargs
1646 additional configure arguments for build directories
1647 host_configargs
1648 additional configure arguments for host directories
1649 target_configargs
1650 additional configure arguments for target directories
1651 AR AR for the host
1652 AS AS for the host
1653 DLLTOOL DLLTOOL for the host
1654 DSYMUTIL DSYMUTIL for the host
1655 LD LD for the host
1656 LIPO LIPO for the host
1657 NM NM for the host
1658 RANLIB RANLIB for the host
1659 STRIP STRIP for the host
1660 WINDRES WINDRES for the host
1661 WINDMC WINDMC for the host
1662 OBJCOPY OBJCOPY for the host
1663 OBJDUMP OBJDUMP for the host
1664 OTOOL OTOOL for the host
1665 READELF READELF for the host
1666 CC_FOR_TARGET
1667 CC for the target
1668 CXX_FOR_TARGET
1669 CXX for the target
1670 GCC_FOR_TARGET
1671 GCC for the target
1672 GFORTRAN_FOR_TARGET
1673 GFORTRAN for the target
1674 GOC_FOR_TARGET
1675 GOC for the target
1676 GDC_FOR_TARGET
1677 GDC for the target
1678 AR_FOR_TARGET
1679 AR for the target
1680 AS_FOR_TARGET
1681 AS for the target
1682 DLLTOOL_FOR_TARGET
1683 DLLTOOL for the target
1684 DSYMUTIL_FOR_TARGET
1685 DSYMUTIL for the target
1686 LD_FOR_TARGET
1687 LD for the target
1688 LIPO_FOR_TARGET
1689 LIPO for the target
1690 NM_FOR_TARGET
1691 NM for the target
1692 OBJCOPY_FOR_TARGET
1693 OBJCOPY for the target
1694 OBJDUMP_FOR_TARGET
1695 OBJDUMP for the target
1696 OTOOL_FOR_TARGET
1697 OTOOL for the target
1698 RANLIB_FOR_TARGET
1699 RANLIB for the target
1700 READELF_FOR_TARGET
1701 READELF for the target
1702 STRIP_FOR_TARGET
1703 STRIP for the target
1704 WINDRES_FOR_TARGET
1705 WINDRES for the target
1706 WINDMC_FOR_TARGET
1707 WINDMC for the target
1708
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1711
1712 Report bugs to the package provider.
1713 _ACEOF
1714 ac_status=$?
1715 fi
1716
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1724
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *)
1728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1740
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1770 fi
1771
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 configure
1776 generated by GNU Autoconf 2.69
1777
1778 Copyright (C) 2012 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782 exit
1783 fi
1784
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1788
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_compile
1826
1827 # ac_fn_cxx_try_compile LINENO
1828 # ----------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_compile ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext
1834 if { { ac_try="$ac_compile"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859 fi
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1862
1863 } # ac_fn_cxx_try_compile
1864
1865 # ac_fn_cxx_try_link LINENO
1866 # -------------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_cxx_try_link ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1
1900 fi
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_cxx_try_link
1910
1911 # ac_fn_c_try_link LINENO
1912 # -----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_link ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1931 fi
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 test -x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946 fi
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_link
1956 cat >config.log <<_ACEOF
1957 This file contains any messages produced by compilers while
1958 running configure, to aid debugging if configure makes a mistake.
1959
1960 It was created by $as_me, which was
1961 generated by GNU Autoconf 2.69. Invocation command line was
1962
1963 $ $0 $@
1964
1965 _ACEOF
1966 exec 5>>config.log
1967 {
1968 cat <<_ASUNAME
1969 ## --------- ##
1970 ## Platform. ##
1971 ## --------- ##
1972
1973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978
1979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981
1982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989
1990 _ASUNAME
1991
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 $as_echo "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2000
2001 } >&5
2002
2003 cat >&5 <<_ACEOF
2004
2005
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2009
2010 _ACEOF
2011
2012
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2023 do
2024 for ac_arg
2025 do
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 2)
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2049 ;;
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2052 fi
2053 as_fn_append ac_configure_args " '$ac_arg'"
2054 ;;
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2060
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2068 {
2069 echo
2070
2071 $as_echo "## ---------------- ##
2072 ## Cache variables. ##
2073 ## ---------------- ##"
2074 echo
2075 # The following way of writing the cache mishandles newlines in values,
2076 (
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
2092 (set) 2>&1 |
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
2095 sed -n \
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
2099 *)
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 ;;
2102 esac |
2103 sort
2104 )
2105 echo
2106
2107 $as_echo "## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##"
2110 echo
2111 for ac_var in $ac_subst_vars
2112 do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2120
2121 if test -n "$ac_subst_files"; then
2122 $as_echo "## ------------------- ##
2123 ## File substitutions. ##
2124 ## ------------------- ##"
2125 echo
2126 for ac_var in $ac_subst_files
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135 fi
2136
2137 if test -s confdefs.h; then
2138 $as_echo "## ----------- ##
2139 ## confdefs.h. ##
2140 ## ----------- ##"
2141 echo
2142 cat confdefs.h
2143 echo
2144 fi
2145 test "$ac_signal" != 0 &&
2146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
2148 } >&5
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 exit $exit_status
2152 ' 0
2153 for ac_signal in 1 2 13 15; do
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 done
2156 ac_signal=0
2157
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2160
2161 $as_echo "/* confdefs.h */" > confdefs.h
2162
2163 # Predefined preprocessor variables.
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_URL "$PACKAGE_URL"
2187 _ACEOF
2188
2189
2190 # Let the site file select an alternate cache file if it wants to.
2191 # Prefer an explicitly selected file to automatically selected ones.
2192 ac_site_file1=NONE
2193 ac_site_file2=NONE
2194 if test -n "$CONFIG_SITE"; then
2195 # We do not want a PATH search for config.site.
2196 case $CONFIG_SITE in #((
2197 -*) ac_site_file1=./$CONFIG_SITE;;
2198 */*) ac_site_file1=$CONFIG_SITE;;
2199 *) ac_site_file1=./$CONFIG_SITE;;
2200 esac
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204 else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
2207 fi
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 do
2210 test "x$ac_site_file" = xNONE && continue
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2214 sed 's/^/| /' "$ac_site_file" >&5
2215 . "$ac_site_file" \
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 as_fn_error $? "failed to load site script $ac_site_file
2219 See \`config.log' for more details" "$LINENO" 5; }
2220 fi
2221 done
2222
2223 if test -r "$cache_file"; then
2224 # Some versions of bash will fail to source /dev/null (special files
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 case $cache_file in
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
2232 esac
2233 fi
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236 $as_echo "$as_me: creating cache $cache_file" >&6;}
2237 >$cache_file
2238 fi
2239
2240 # Check that the precious variables saved in the cache have kept the same
2241 # value.
2242 ac_cache_corrupted=false
2243 for ac_var in $ac_precious_vars; do
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
2248 case $ac_old_set,$ac_new_set in
2249 set,)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,set)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,);;
2258 *)
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 esac
2288 fi
2289 done
2290 if $ac_cache_corrupted; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 fi
2297 ## -------------------- ##
2298 ## Main body of script. ##
2299 ## -------------------- ##
2300
2301 ac_ext=c
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306
2307
2308
2309
2310
2311
2312
2313
2314 progname=$0
2315 # if PWD already has a value, it is probably wrong.
2316 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2317
2318 # Export original configure arguments for use by sub-configures.
2319 # Quote arguments with shell meta charatcers.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS=
2321 set -- "$progname" "$@"
2322 for ac_arg
2323 do
2324 case "$ac_arg" in
2325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2327 # if the argument is of the form -foo=baz, quote the baz part only
2328 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2329 *) ;;
2330 esac
2331 # Add the quoted argument to the list.
2332 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2333 done
2334 if test "$silent" = yes; then
2335 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2336 fi
2337 # Remove the initial space we just introduced and, as these will be
2338 # expanded by make, quote '$'.
2339 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2340
2341
2342 # Find the build, host, and target systems.
2343 ac_aux_dir=
2344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if ${ac_cv_build+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2395 esac
2396 build=$ac_cv_build
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_build
2399 shift
2400 build_cpu=$1
2401 build_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 build_os=$*
2406 IFS=$ac_save_IFS
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 case ${build_alias} in
2411 "") build_noncanonical=${build} ;;
2412 *) build_noncanonical=${build_alias} ;;
2413 esac
2414
2415
2416
2417 case ${host_alias} in
2418 "") host_noncanonical=${build_noncanonical} ;;
2419 *) host_noncanonical=${host_alias} ;;
2420 esac
2421
2422
2423
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427 esac
2428
2429
2430
2431
2432 test "$host_noncanonical" = "$target_noncanonical" &&
2433 test "$program_prefix$program_suffix$program_transform_name" = \
2434 NONENONEs,x,x, &&
2435 program_transform_name=s,y,y,
2436
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if ${ac_cv_host+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2444 else
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2447 fi
2448
2449 fi
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2452 case $ac_cv_host in
2453 *-*-*) ;;
2454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2455 esac
2456 host=$ac_cv_host
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_host
2459 shift
2460 host_cpu=$1
2461 host_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 host_os=$*
2466 IFS=$ac_save_IFS
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2468
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471 $as_echo_n "checking target system type... " >&6; }
2472 if ${ac_cv_target+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2477 else
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2480 fi
2481
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484 $as_echo "$ac_cv_target" >&6; }
2485 case $ac_cv_target in
2486 *-*-*) ;;
2487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2488 esac
2489 target=$ac_cv_target
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_target
2492 shift
2493 target_cpu=$1
2494 target_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 target_os=$*
2499 IFS=$ac_save_IFS
2500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 # The aliases save the names the user supplied, while $host etc.
2504 # will get canonicalized.
2505 test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2507 NONENONEs,x,x, &&
2508 program_prefix=${target_alias}-
2509
2510 test "$program_prefix" != NONE &&
2511 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2512 # Use a double $ so make ignores it.
2513 test "$program_suffix" != NONE &&
2514 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2515 # Double any \ or $.
2516 # By default was `s,x,x', remove it if useless.
2517 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2518 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519
2520
2521
2522 # Get 'install' or 'install-sh' and its variants.
2523 # Find a good install program. We prefer a C program (faster),
2524 # so one script is as good as another. But avoid the broken or
2525 # incompatible versions:
2526 # SysV /etc/install, /usr/sbin/install
2527 # SunOS /usr/etc/install
2528 # IRIX /sbin/install
2529 # AIX /bin/install
2530 # AmigaOS /C/install, which installs bootblocks on floppy discs
2531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534 # OS/2's system install, which has a completely different semantic
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 # Reject install programs that cannot install multiple files.
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2538 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2539 if test -z "$INSTALL"; then
2540 if ${ac_cv_path_install+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 # Account for people who put trailing slashes in PATH elements.
2549 case $as_dir/ in #((
2550 ./ | .// | /[cC]/* | \
2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2553 /usr/ucb/* ) ;;
2554 *)
2555 # OSF1 and SCO ODT 3.0 have their own names for install.
2556 # Don't use installbsd from OSF since it installs stuff as root
2557 # by default.
2558 for ac_prog in ginstall scoinst install; do
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2561 if test $ac_prog = install &&
2562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # AIX install. It has an incompatible calling convention.
2564 :
2565 elif test $ac_prog = install &&
2566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # program-specific install script used by HP pwplus--don't use.
2568 :
2569 else
2570 rm -rf conftest.one conftest.two conftest.dir
2571 echo one > conftest.one
2572 echo two > conftest.two
2573 mkdir conftest.dir
2574 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2575 test -s conftest.one && test -s conftest.two &&
2576 test -s conftest.dir/conftest.one &&
2577 test -s conftest.dir/conftest.two
2578 then
2579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 break 3
2581 fi
2582 fi
2583 fi
2584 done
2585 done
2586 ;;
2587 esac
2588
2589 done
2590 IFS=$as_save_IFS
2591
2592 rm -rf conftest.one conftest.two conftest.dir
2593
2594 fi
2595 if test "${ac_cv_path_install+set}" = set; then
2596 INSTALL=$ac_cv_path_install
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for INSTALL within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 INSTALL=$ac_install_sh
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606 $as_echo "$INSTALL" >&6; }
2607
2608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609 # It thinks the first close brace ends the variable substitution.
2610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611
2612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613
2614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2617 $as_echo_n "checking whether ln works... " >&6; }
2618 if ${acx_cv_prog_LN+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 rm -f conftestdata_t
2622 echo >conftestdata_f
2623 if ln conftestdata_f conftestdata_t 2>/dev/null
2624 then
2625 acx_cv_prog_LN=ln
2626 else
2627 acx_cv_prog_LN=no
2628 fi
2629 rm -f conftestdata_f conftestdata_t
2630
2631 fi
2632 if test $acx_cv_prog_LN = no; then
2633 LN="cp"
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2635 $as_echo "no, using $LN" >&6; }
2636 else
2637 LN="$acx_cv_prog_LN"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639 $as_echo "yes" >&6; }
2640 fi
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2643 $as_echo_n "checking whether ln -s works... " >&6; }
2644 LN_S=$as_ln_s
2645 if test "$LN_S" = "ln -s"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2650 $as_echo "no, using $LN_S" >&6; }
2651 fi
2652
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2654 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2655 if ${ac_cv_path_SED+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2659 for ac_i in 1 2 3 4 5 6 7; do
2660 ac_script="$ac_script$as_nl$ac_script"
2661 done
2662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2663 { ac_script=; unset ac_script;}
2664 if test -z "$SED"; then
2665 ac_path_SED_found=false
2666 # Loop through the user's path and test for each of PROGNAME-LIST
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in sed gsed; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2675 as_fn_executable_p "$ac_path_SED" || continue
2676 # Check for GNU ac_path_SED and select it if it is found.
2677 # Check for GNU $ac_path_SED
2678 case `"$ac_path_SED" --version 2>&1` in
2679 *GNU*)
2680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2681 *)
2682 ac_count=0
2683 $as_echo_n 0123456789 >"conftest.in"
2684 while :
2685 do
2686 cat "conftest.in" "conftest.in" >"conftest.tmp"
2687 mv "conftest.tmp" "conftest.in"
2688 cp "conftest.in" "conftest.nl"
2689 $as_echo '' >> "conftest.nl"
2690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2692 as_fn_arith $ac_count + 1 && ac_count=$as_val
2693 if test $ac_count -gt ${ac_path_SED_max-0}; then
2694 # Best one so far, save it but keep looking for a better one
2695 ac_cv_path_SED="$ac_path_SED"
2696 ac_path_SED_max=$ac_count
2697 fi
2698 # 10*(2^10) chars as input seems more than enough
2699 test $ac_count -gt 10 && break
2700 done
2701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2702 esac
2703
2704 $ac_path_SED_found && break 3
2705 done
2706 done
2707 done
2708 IFS=$as_save_IFS
2709 if test -z "$ac_cv_path_SED"; then
2710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2711 fi
2712 else
2713 ac_cv_path_SED=$SED
2714 fi
2715
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2718 $as_echo "$ac_cv_path_SED" >&6; }
2719 SED="$ac_cv_path_SED"
2720 rm -f conftest.sed
2721
2722 for ac_prog in gawk mawk nawk awk
2723 do
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy $ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_AWK+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$AWK"; then
2732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_AWK="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 AWK=$ac_cv_prog_AWK
2752 if test -n "$AWK"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2754 $as_echo "$AWK" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 test -n "$AWK" && break
2762 done
2763
2764
2765 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2766
2767 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2768 # a relative path.
2769 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2770 INSTALL="${srcpwd}/install-sh -c"
2771 fi
2772
2773 # Set srcdir to "." if that's what it is.
2774 # This is important for multilib support.
2775 pwd=`${PWDCMD-pwd}`
2776 if test "${pwd}" = "${srcpwd}" ; then
2777 srcdir=.
2778 fi
2779
2780 topsrcdir=$srcpwd
2781
2782 extra_host_args=
2783
2784 ### To add a new directory to the tree, first choose whether it is a target
2785 ### or a host dependent tool. Then put it into the appropriate list
2786 ### (library or tools, host or target), doing a dependency sort.
2787
2788 # Subdirs will be configured in the order listed in build_configdirs,
2789 # configdirs, or target_configdirs; see the serialization section below.
2790
2791 # Dependency sorting is only needed when *configuration* must be done in
2792 # a particular order. In all cases a dependency should be specified in
2793 # the Makefile, whether or not it's implicitly specified here.
2794
2795 # Double entries in build_configdirs, configdirs, or target_configdirs may
2796 # cause circular dependencies and break everything horribly.
2797
2798 # these library is used by various programs built for the build
2799 # environment
2800 #
2801 build_libs="build-libiberty build-libcpp"
2802
2803 # these tools are built for the build environment
2804 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2805
2806 # these libraries are used by various programs built for the host environment
2807 #f
2808 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2809
2810 # these tools are built for the host environment
2811 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2812 # know that we are building the simulator.
2813 # binutils, gas and ld appear in that order because it makes sense to run
2814 # "make check" in that particular order.
2815 # If --enable-gold is used, "gold" may replace "ld".
2816 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2817
2818 # these libraries are built for the target environment, and are built after
2819 # the host libraries and the host tools (which may be a cross compiler)
2820 # Note that libiberty is not a target library.
2821 target_libraries="target-libgcc \
2822 target-libbacktrace \
2823 target-libgloss \
2824 target-newlib \
2825 target-libgomp \
2826 target-liboffloadmic \
2827 target-libatomic \
2828 target-libitm \
2829 target-libstdc++-v3 \
2830 target-libsanitizer \
2831 target-libvtv \
2832 target-libssp \
2833 target-libquadmath \
2834 target-libgfortran \
2835 target-libffi \
2836 target-libobjc \
2837 target-libada \
2838 target-libgo \
2839 target-libphobos \
2840 target-zlib"
2841
2842 # these tools are built using the target libraries, and are intended to
2843 # run only in the target environment
2844 #
2845 # note: any program that *uses* libraries that are in the "target_libraries"
2846 # list belongs in this list.
2847 #
2848 target_tools="target-rda"
2849
2850 ################################################################################
2851
2852 ## All tools belong in one of the four categories, and are assigned above
2853 ## We assign ${configdirs} this way to remove all embedded newlines. This
2854 ## is important because configure will choke if they ever get through.
2855 ## ${configdirs} is directories we build using the host tools.
2856 ## ${target_configdirs} is directories we build using the target tools.
2857 configdirs=`echo ${host_libs} ${host_tools}`
2858 target_configdirs=`echo ${target_libraries} ${target_tools}`
2859 build_configdirs=`echo ${build_libs} ${build_tools}`
2860
2861
2862
2863 ################################################################################
2864
2865 srcname="gnu development package"
2866
2867 # This gets set non-empty for some net releases of packages.
2868 appdirs=""
2869
2870 # Define is_cross_compiler to save on calls to 'test'.
2871 is_cross_compiler=
2872 if test x"${host}" = x"${target}" ; then
2873 is_cross_compiler=no
2874 else
2875 is_cross_compiler=yes
2876 fi
2877
2878 # Find the build and target subdir names.
2879
2880 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2881 # have matching libraries, they should use host libraries: Makefile.tpl
2882 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2883 # However, they still use the build modules, because the corresponding
2884 # host modules (e.g. bison) are only built for the host when bootstrap
2885 # finishes. So:
2886 # - build_subdir is where we find build modules, and never changes.
2887 # - build_libsubdir is where we find build libraries, and can be overridden.
2888
2889 # Prefix 'build-' so this never conflicts with target_subdir.
2890 build_subdir="build-${build_noncanonical}"
2891
2892 # Check whether --with-build-libsubdir was given.
2893 if test "${with_build_libsubdir+set}" = set; then :
2894 withval=$with_build_libsubdir; build_libsubdir="$withval"
2895 else
2896 build_libsubdir="$build_subdir"
2897 fi
2898
2899 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2900 if ( test $srcdir = . && test -d gcc ) \
2901 || test -d $srcdir/../host-${host_noncanonical}; then
2902 host_subdir="host-${host_noncanonical}"
2903 else
2904 host_subdir=.
2905 fi
2906 # No prefix.
2907 target_subdir=${target_noncanonical}
2908
2909 # Be sure to cover against remnants of an in-tree build.
2910 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2911 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2912 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2913 fi
2914
2915 # Skipdirs are removed silently.
2916 skipdirs=
2917 # Noconfigdirs are removed loudly.
2918 noconfigdirs=""
2919
2920 use_gnu_ld=
2921 # Make sure we don't let GNU ld be added if we didn't want it.
2922 if test x$with_gnu_ld = xno ; then
2923 use_gnu_ld=no
2924 noconfigdirs="$noconfigdirs ld gold"
2925 fi
2926
2927 use_gnu_as=
2928 # Make sure we don't let GNU as be added if we didn't want it.
2929 if test x$with_gnu_as = xno ; then
2930 use_gnu_as=no
2931 noconfigdirs="$noconfigdirs gas"
2932 fi
2933
2934 use_included_zlib=
2935
2936 # Check whether --with-system-zlib was given.
2937 if test "${with_system_zlib+set}" = set; then :
2938 withval=$with_system_zlib;
2939 fi
2940
2941 # Make sure we don't let ZLIB be added if we didn't want it.
2942 if test x$with_system_zlib = xyes ; then
2943 use_included_zlib=no
2944 noconfigdirs="$noconfigdirs zlib"
2945 fi
2946
2947 # some tools are so dependent upon X11 that if we're not building with X,
2948 # it's not even worth trying to configure, much less build, that tool.
2949
2950 case ${with_x} in
2951 yes | "") ;; # the default value for this tree is that X11 is available
2952 no)
2953 skipdirs="${skipdirs} tk itcl libgui"
2954 # We won't be able to build gdbtk without X.
2955 enable_gdbtk=no
2956 ;;
2957 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2958 esac
2959
2960 # Some are only suitable for cross toolchains.
2961 # Remove these if host=target.
2962 cross_only="target-libgloss target-newlib target-opcodes"
2963
2964 case $is_cross_compiler in
2965 no) skipdirs="${skipdirs} ${cross_only}" ;;
2966 esac
2967
2968 # If both --with-headers and --with-libs are specified, default to
2969 # --without-newlib.
2970 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2971 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2972 if test x"${with_newlib}" = x ; then
2973 with_newlib=no
2974 fi
2975 fi
2976
2977 # Recognize --with-newlib/--without-newlib.
2978 case ${with_newlib} in
2979 no) skipdirs="${skipdirs} target-newlib" ;;
2980 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2981 esac
2982
2983 # Check whether --enable-as-accelerator-for was given.
2984 if test "${enable_as_accelerator_for+set}" = set; then :
2985 enableval=$enable_as_accelerator_for;
2986 fi
2987
2988
2989 # Check whether --enable-offload-targets was given.
2990 if test "${enable_offload_targets+set}" = set; then :
2991 enableval=$enable_offload_targets;
2992 if test x"$enable_offload_targets" = x; then
2993 as_fn_error $? "no offload targets specified" "$LINENO" 5
2994 fi
2995
2996 else
2997 enable_offload_targets=
2998 fi
2999
3000
3001 # Check whether --enable-offload-defaulted was given.
3002 if test "${enable_offload_defaulted+set}" = set; then :
3003 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3004 else
3005 enable_offload_defaulted=
3006 fi
3007
3008
3009 # Handle --enable-gold, --enable-ld.
3010 # --disable-gold [--enable-ld]
3011 # Build only ld. Default option.
3012 # --enable-gold [--enable-ld]
3013 # Build both gold and ld. Install gold as "ld.gold", install ld
3014 # as "ld.bfd" and "ld".
3015 # --enable-gold=default [--enable-ld]
3016 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3017 # install ld as "ld.bfd".
3018 # --enable-gold[=default] --disable-ld
3019 # Build only gold, which is then installed as both "ld.gold" and "ld".
3020 # --enable-gold --enable-ld=default
3021 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3022 # and ld.bfd).
3023 # In other words, ld is default
3024 # --enable-gold=default --enable-ld=default
3025 # Error.
3026
3027 default_ld=
3028 # Check whether --enable-gold was given.
3029 if test "${enable_gold+set}" = set; then :
3030 enableval=$enable_gold; ENABLE_GOLD=$enableval
3031 else
3032 ENABLE_GOLD=no
3033 fi
3034
3035 case "${ENABLE_GOLD}" in
3036 yes|default)
3037 # Check for ELF target.
3038 is_elf=no
3039 case "${target}" in
3040 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3041 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3042 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3043 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3044 case "${target}" in
3045 *-*-linux*aout* | *-*-linux*oldld*)
3046 ;;
3047 *)
3048 is_elf=yes
3049 ;;
3050 esac
3051 esac
3052
3053 if test "$is_elf" = "yes"; then
3054 # Check for target supported by gold.
3055 case "${target}" in
3056 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3057 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3058 configdirs="$configdirs gold"
3059 if test x${ENABLE_GOLD} = xdefault; then
3060 default_ld=gold
3061 fi
3062 ENABLE_GOLD=yes
3063 ;;
3064 esac
3065 fi
3066 ;;
3067 no)
3068 ;;
3069 *)
3070 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3071 ;;
3072 esac
3073
3074 # Check whether --enable-ld was given.
3075 if test "${enable_ld+set}" = set; then :
3076 enableval=$enable_ld; ENABLE_LD=$enableval
3077 else
3078 ENABLE_LD=yes
3079 fi
3080
3081
3082 case "${ENABLE_LD}" in
3083 default)
3084 if test x${default_ld} != x; then
3085 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3086 fi
3087 ;;
3088 yes)
3089 ;;
3090 no)
3091 if test x${ENABLE_GOLD} != xyes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3093 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3094 fi
3095 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3096 ;;
3097 *)
3098 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3099 ;;
3100 esac
3101
3102 # PR gas/19109
3103 # Decide the default method for compressing debug sections.
3104 # Provide a configure time option to override our default.
3105 # Check whether --enable-compressed_debug_sections was given.
3106 if test "${enable_compressed_debug_sections+set}" = set; then :
3107 enableval=$enable_compressed_debug_sections;
3108 if test x"$enable_compressed_debug_sections" = xyes; then
3109 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3110 fi
3111
3112 else
3113 enable_compressed_debug_sections=
3114 fi
3115
3116
3117 # Configure extra directories which are host specific
3118
3119 case "${host}" in
3120 *-cygwin*)
3121 configdirs="$configdirs libtermcap" ;;
3122 esac
3123
3124 # A target can indicate whether a language isn't supported for some reason.
3125 # Only spaces may be used in this macro; not newlines or tabs.
3126 unsupported_languages=
3127
3128 # Remove more programs from consideration, based on the host or
3129 # target this usually means that a port of the program doesn't
3130 # exist yet.
3131
3132 case "${host}" in
3133 i[3456789]86-*-msdosdjgpp*)
3134 noconfigdirs="$noconfigdirs tcl tk itcl"
3135 ;;
3136 esac
3137
3138
3139 # Check whether --enable-libquadmath was given.
3140 if test "${enable_libquadmath+set}" = set; then :
3141 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3142 else
3143 ENABLE_LIBQUADMATH=yes
3144 fi
3145
3146 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3147 noconfigdirs="$noconfigdirs target-libquadmath"
3148 fi
3149
3150
3151 # Check whether --enable-libquadmath-support was given.
3152 if test "${enable_libquadmath_support+set}" = set; then :
3153 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3154 else
3155 ENABLE_LIBQUADMATH_SUPPORT=yes
3156 fi
3157
3158 enable_libquadmath_support=
3159 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3160 enable_libquadmath_support=no
3161 fi
3162
3163
3164 # Check whether --enable-libada was given.
3165 if test "${enable_libada+set}" = set; then :
3166 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3167 else
3168 ENABLE_LIBADA=yes
3169 fi
3170
3171 if test "${ENABLE_LIBADA}" != "yes" ; then
3172 noconfigdirs="$noconfigdirs gnattools"
3173 fi
3174
3175 # Check whether --enable-libssp was given.
3176 if test "${enable_libssp+set}" = set; then :
3177 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3178 else
3179 ENABLE_LIBSSP=yes
3180 fi
3181
3182
3183 # Check whether --enable-libstdcxx was given.
3184 if test "${enable_libstdcxx+set}" = set; then :
3185 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3186 else
3187 ENABLE_LIBSTDCXX=default
3188 fi
3189
3190 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3192 fi
3193
3194 # If this is accelerator compiler and its target is intelmic we enable
3195 # target liboffloadmic by default. If this is compiler with offloading
3196 # for intelmic we enable host liboffloadmic by default. Otherwise
3197 # liboffloadmic is disabled by default.
3198 # Check whether --enable-liboffloadmic was given.
3199 if test "${enable_liboffloadmic+set}" = set; then :
3200 enableval=$enable_liboffloadmic; case "$enableval" in
3201 no | host | target)
3202 enable_liboffloadmic=$enableval ;;
3203 *)
3204 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3205 esac
3206 else
3207 if test x"$enable_as_accelerator_for" != x; then
3208 case "${target}" in
3209 *-intelmic-* | *-intelmicemul-*)
3210 enable_liboffloadmic=target
3211 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3212 ;;
3213 *)
3214 enable_liboffloadmic=no
3215 ;;
3216 esac
3217 else
3218 case "${enable_offload_targets}" in
3219 *-intelmic-* | *-intelmicemul-*)
3220 enable_liboffloadmic=host
3221 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3222 ;;
3223 *)
3224 enable_liboffloadmic=no
3225 ;;
3226 esac
3227 fi
3228 fi
3229
3230
3231
3232 # Enable libgomp by default on hosted POSIX systems, and a few others.
3233 if test x$enable_libgomp = x ; then
3234 case "${target}" in
3235 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3236 ;;
3237 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3238 ;;
3239 *-*-solaris2* | *-*-hpux11*)
3240 ;;
3241 *-*-darwin* | *-*-aix*)
3242 ;;
3243 nvptx*-*-* | amdgcn*-*-*)
3244 ;;
3245 *)
3246 noconfigdirs="$noconfigdirs target-libgomp"
3247 ;;
3248 esac
3249 fi
3250
3251 # Disable libatomic on unsupported systems.
3252 if test -d ${srcdir}/libatomic; then
3253 if test x$enable_libatomic = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3255 $as_echo_n "checking for libatomic support... " >&6; }
3256 if (srcdir=${srcdir}/libatomic; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libatomic"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 fi
3267 fi
3268 fi
3269
3270 # Disable liboffloadmic on unsupported systems.
3271 if test -d ${srcdir}/liboffloadmic; then
3272 if test x$enable_liboffloadmic != xno; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3274 $as_echo_n "checking for liboffloadmic support... " >&6; }
3275 if (srcdir=${srcdir}/liboffloadmic; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-liboffloadmic"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285 fi
3286 fi
3287 fi
3288
3289 # Disable libitm on unsupported systems.
3290 if test -d ${srcdir}/libitm; then
3291 if test x$enable_libitm = x; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3293 $as_echo_n "checking for libitm support... " >&6; }
3294 if (srcdir=${srcdir}/libitm; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-libitm"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 fi
3306 fi
3307
3308 # Disable libsanitizer on unsupported systems.
3309 if test -d ${srcdir}/libsanitizer; then
3310 if test x$enable_libsanitizer = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3312 $as_echo_n "checking for libsanitizer support... " >&6; }
3313 if (srcdir=${srcdir}/libsanitizer; \
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 noconfigdirs="$noconfigdirs target-libsanitizer"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3323 fi
3324 fi
3325 fi
3326
3327 # Disable libvtv on unsupported systems.
3328 if test -d ${srcdir}/libvtv; then
3329 if test x$enable_libvtv = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3331 $as_echo_n "checking for libvtv support... " >&6; }
3332 if (srcdir=${srcdir}/libvtv; \
3333 . ${srcdir}/configure.tgt; \
3334 test "$VTV_SUPPORTED" != "yes")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libvtv"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 fi
3343 fi
3344 fi
3345
3346 # Disable libquadmath for some systems.
3347 case "${target}" in
3348 avr-*-*)
3349 noconfigdirs="$noconfigdirs target-libquadmath"
3350 ;;
3351 # libquadmath is unused on AIX and libquadmath build process use of
3352 # LD_LIBRARY_PATH can break AIX bootstrap.
3353 powerpc-*-aix* | rs6000-*-aix*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3355 ;;
3356 esac
3357
3358 # Disable libssp for some systems.
3359 case "${target}" in
3360 avr-*-*)
3361 # No hosted I/O support.
3362 noconfigdirs="$noconfigdirs target-libssp"
3363 ;;
3364 bpf-*-*)
3365 noconfigdirs="$noconfigdirs target-libssp"
3366 ;;
3367 powerpc-*-aix* | rs6000-*-aix*)
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
3370 pru-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
3374 rl78-*-*)
3375 # libssp uses a misaligned load to trigger a fault, but the RL78
3376 # doesn't fault for those - instead, it gives a build-time error
3377 # for explicit misaligned loads.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
3380 visium-*-*)
3381 # No hosted I/O support.
3382 noconfigdirs="$noconfigdirs target-libssp"
3383 ;;
3384 esac
3385
3386 # Disable libstdc++-v3 for some systems.
3387 # Allow user to override this if they pass --enable-libstdc++-v3
3388 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3389 case "${target}" in
3390 *-*-vxworks*)
3391 # VxWorks uses the Dinkumware C++ library.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 amdgcn*-*-*)
3395 # Not ported/fails to build when using newlib.
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
3398 arm*-wince-pe*)
3399 # the C++ libraries don't build on top of CE's C libraries
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 avr-*-*)
3403 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 ;;
3405 bpf-*-*)
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
3408 ft32-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
3411 esac
3412 fi
3413
3414 # Disable C++ on systems where it is known to not work.
3415 # For testing, you can override this with --enable-languages=c++.
3416 case ,${enable_languages}, in
3417 *,c++,*)
3418 ;;
3419 *)
3420 case "${target}" in
3421 bpf-*-*)
3422 unsupported_languages="$unsupported_languages c++"
3423 ;;
3424 esac
3425 ;;
3426 esac
3427
3428 # Disable Objc on systems where it is known to not work.
3429 # For testing, you can override this with --enable-languages=objc.
3430 case ,${enable_languages}, in
3431 *,objc,*)
3432 ;;
3433 *)
3434 case "${target}" in
3435 bpf-*-*)
3436 unsupported_languages="$unsupported_languages objc"
3437 ;;
3438 esac
3439 ;;
3440 esac
3441
3442 # Disable D on systems where it is known to not work.
3443 # For testing, you can override this with --enable-languages=d.
3444 case ,${enable_languages}, in
3445 *,d,*)
3446 ;;
3447 *)
3448 case "${target}" in
3449 bpf-*-*)
3450 unsupported_languages="$unsupported_languages d"
3451 ;;
3452 esac
3453 ;;
3454 esac
3455
3456 # Disable libphobos on unsupported systems.
3457 # For testing, you can override this with --enable-libphobos.
3458 if test -d ${srcdir}/libphobos; then
3459 if test x$enable_libphobos = x; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3461 $as_echo_n "checking for libphobos support... " >&6; }
3462 if (srcdir=${srcdir}/libphobos; \
3463 . ${srcdir}/configure.tgt; \
3464 test "$LIBPHOBOS_SUPPORTED" != "yes")
3465 then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 noconfigdirs="$noconfigdirs target-libphobos"
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3472 fi
3473 fi
3474 fi
3475
3476 # Disable Fortran for some systems.
3477 case "${target}" in
3478 mmix-*-*)
3479 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3480 unsupported_languages="$unsupported_languages fortran"
3481 ;;
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages fortran"
3484 ;;
3485 esac
3486
3487 # Disable libffi for some systems.
3488 case "${target}" in
3489 powerpc-*-darwin*)
3490 ;;
3491 i[3456789]86-*-darwin*)
3492 ;;
3493 x86_64-*-darwin[912]*)
3494 ;;
3495 *-*-darwin*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 *-*-netware*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 *-*-phoenix*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 *-*-rtems*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 *-*-tpf*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-uclinux*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-vxworks*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 aarch64*-*-freebsd*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 alpha*-*-*vms*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 arm*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 arm-wince-pe)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 arm*-*-symbianelf*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 bpf-*-*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 cris-*-* | crisv32-*-*)
3535 case "${target}" in
3536 *-*-linux*)
3537 ;;
3538 *) # See PR46792 regarding target-libffi.
3539 noconfigdirs="$noconfigdirs target-libffi";;
3540 esac
3541 ;;
3542 hppa*64*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 hppa*-hp-hpux11*)
3546 ;;
3547 hppa*-*-hpux*)
3548 noconfigdirs="$noconfigdirs target-libffi"
3549 ;;
3550 ia64*-*-*vms*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3552 ;;
3553 i[3456789]86-w64-mingw*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3555 ;;
3556 i[3456789]86-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 x86_64-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 mmix-*-*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 powerpc-*-aix*)
3566 ;;
3567 rs6000-*-aix*)
3568 ;;
3569 ft32-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 *-*-lynxos*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3574 ;;
3575 esac
3576
3577 # Disable the go frontend on systems where it is known to not work. Please keep
3578 # this in sync with contrib/config-list.mk.
3579 case "${target}" in
3580 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3581 unsupported_languages="$unsupported_languages go"
3582 ;;
3583 esac
3584
3585 # Only allow gdbserver on some systems.
3586 if test -d ${srcdir}/gdbserver; then
3587 if test x$enable_gdbserver = x; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3589 $as_echo_n "checking for gdbserver support... " >&6; }
3590 if (srcdir=${srcdir}/gdbserver; \
3591 . ${srcdir}/configure.srv; \
3592 test -n "$UNSUPPORTED")
3593 then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 noconfigdirs="$noconfigdirs gdbserver"
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3600 fi
3601 fi
3602 fi
3603
3604 # Disable libgo for some systems where it is known to not work.
3605 # For testing, you can easily override this with --enable-libgo.
3606 if test x$enable_libgo = x; then
3607 case "${target}" in
3608 *-*-darwin*)
3609 # PR 46986
3610 noconfigdirs="$noconfigdirs target-libgo"
3611 ;;
3612 *-*-cygwin* | *-*-mingw*)
3613 noconfigdirs="$noconfigdirs target-libgo"
3614 ;;
3615 bpf-*-*)
3616 noconfigdirs="$noconfigdirs target-libgo"
3617 ;;
3618 esac
3619 fi
3620
3621 # Default libgloss CPU subdirectory.
3622 libgloss_dir="$target_cpu"
3623
3624 case "${target}" in
3625 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3626 libgloss_dir=wince
3627 ;;
3628 aarch64*-*-* )
3629 libgloss_dir=aarch64
3630 ;;
3631 arm*-*-*)
3632 libgloss_dir=arm
3633 ;;
3634 cris-*-* | crisv32-*-*)
3635 libgloss_dir=cris
3636 ;;
3637 hppa*-*-*)
3638 libgloss_dir=pa
3639 ;;
3640 i[3456789]86-*-*)
3641 libgloss_dir=i386
3642 ;;
3643 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644 libgloss_dir=m68hc11
3645 ;;
3646 m68*-*-* | fido-*-*)
3647 libgloss_dir=m68k
3648 ;;
3649 mips*-*-*)
3650 libgloss_dir=mips
3651 ;;
3652 powerpc*-*-*)
3653 libgloss_dir=rs6000
3654 ;;
3655 pru-*-*)
3656 libgloss_dir=pru
3657 ;;
3658 sparc*-*-*)
3659 libgloss_dir=sparc
3660 ;;
3661 esac
3662
3663 # Disable newlib and libgloss for various target OSes.
3664 case "${target}" in
3665 alpha*-dec-osf*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 i[3456789]86-*-linux*)
3669 # This section makes it possible to build newlib natively on linux.
3670 # If we are using a cross compiler then don't configure newlib.
3671 if test x${is_cross_compiler} != xno ; then
3672 noconfigdirs="$noconfigdirs target-newlib"
3673 fi
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 # If we are not using a cross compiler, do configure newlib.
3676 # Note however, that newlib will only be configured in this situation
3677 # if the --with-newlib option has been given, because otherwise
3678 # 'target-newlib' will appear in skipdirs.
3679 ;;
3680 i[3456789]86-*-rdos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 sparc-*-sunos4*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 bpf-*-*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 *-*-aix*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 *-*-beos*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 *-*-chorusos)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 *-*-dragonfly*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
3704 *-*-freebsd*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 ;;
3707 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-lynxos*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-mingw*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-netbsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-netware*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-tpf*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-uclinux*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-vxworks*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 esac
3732
3733 case "${target}" in
3734 *-*-chorusos)
3735 ;;
3736 aarch64-*-darwin*)
3737 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738 noconfigdirs="$noconfigdirs sim target-rda"
3739 ;;
3740 amdgcn*-*-*)
3741 ;;
3742 arm-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3745 ;;
3746 powerpc-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3749 ;;
3750 i[3456789]86-*-darwin*)
3751 noconfigdirs="$noconfigdirs ld gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3753 ;;
3754 x86_64-*-darwin[912]*)
3755 noconfigdirs="$noconfigdirs ld gas gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3757 ;;
3758 *-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3761 ;;
3762 *-*-dragonfly*)
3763 ;;
3764 *-*-freebsd*)
3765 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3766 && ! test -d ${srcdir}/gmp \
3767 && test -f /usr/local/include/gmp.h; then
3768 with_gmp=/usr/local
3769 fi
3770 ;;
3771 *-*-kaos*)
3772 # Remove unsupported stuff on all kaOS configurations.
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 ;;
3775 *-*-netbsd*)
3776 ;;
3777 *-*-netware*)
3778 ;;
3779 *-*-phoenix*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
3782 *-*-rtems*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3784 ;;
3785 # The tpf target doesn't support gdb yet.
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3788 ;;
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-rda"
3791 ;;
3792 *-*-vxworks*)
3793 ;;
3794 alpha*-dec-osf*)
3795 # ld works, but does not support shared libraries.
3796 # gas doesn't generate exception information.
3797 noconfigdirs="$noconfigdirs gas ld"
3798 ;;
3799 alpha*-*-*vms*)
3800 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3801 ;;
3802 alpha*-*-*)
3803 # newlib is not 64 bit ready
3804 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3805 ;;
3806 bpf-*-*)
3807 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3808 ;;
3809 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3810 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3811 ;;
3812 arc*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3814 ;;
3815 arm-*-pe*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 arm-*-riscix*)
3819 noconfigdirs="$noconfigdirs ld target-libgloss"
3820 ;;
3821 avr-*-*)
3822 if test x${with_avrlibc} != xno; then
3823 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3824 fi
3825 ;;
3826 c4x-*-* | tic4x-*-*)
3827 noconfigdirs="$noconfigdirs target-libgloss"
3828 ;;
3829 tic54x-*-*)
3830 noconfigdirs="$noconfigdirs target-libgloss gdb"
3831 ;;
3832 d10v-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3834 ;;
3835 d30v-*-*)
3836 noconfigdirs="$noconfigdirs gdb"
3837 ;;
3838 fr30-*-elf*)
3839 noconfigdirs="$noconfigdirs gdb"
3840 ;;
3841 ft32-*-*)
3842 noconfigdirs="$noconfigdirs target-rda gprof"
3843 ;;
3844 moxie-*-*)
3845 noconfigdirs="$noconfigdirs"
3846 ;;
3847 h8300*-*-*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 ;;
3850 h8500-*-*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3852 ;;
3853 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3854 ;;
3855 hppa*64*-*-hpux*)
3856 noconfigdirs="$noconfigdirs gdb"
3857 ;;
3858 hppa*-*-hpux11*)
3859 noconfigdirs="$noconfigdirs gdb ld"
3860 ;;
3861 hppa*64*-*-linux*)
3862 ;;
3863 hppa*-*-linux*)
3864 ;;
3865 hppa*-*-*elf* | \
3866 hppa*-*-lites* | \
3867 hppa*-*-openbsd* | \
3868 hppa*64*-*-*)
3869 ;;
3870 hppa*-*-pro*)
3871 ;;
3872 hppa*-*-*)
3873 noconfigdirs="$noconfigdirs ld"
3874 ;;
3875 i960-*-*)
3876 noconfigdirs="$noconfigdirs gdb"
3877 ;;
3878 ia64*-*-elf*)
3879 # No gdb support yet.
3880 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3881 ;;
3882 ia64*-**-hpux*)
3883 # No ld support yet.
3884 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3885 ;;
3886 ia64*-*-*vms*)
3887 # No ld support yet.
3888 noconfigdirs="$noconfigdirs libgui itcl ld"
3889 ;;
3890 i[3456789]86-w64-mingw*)
3891 ;;
3892 i[3456789]86-*-mingw*)
3893 target_configdirs="$target_configdirs target-winsup"
3894 ;;
3895 *-*-cygwin*)
3896 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3897 noconfigdirs="$noconfigdirs target-libgloss"
3898 # always build newlib if winsup directory is present.
3899 if test -d "$srcdir/winsup/cygwin"; then
3900 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3901 elif test -d "$srcdir/newlib"; then
3902 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3903 fi
3904 ;;
3905 i[3456789]86-*-pe)
3906 noconfigdirs="$noconfigdirs target-libgloss"
3907 ;;
3908 i[3456789]86-*-sco3.2v5*)
3909 # The linker does not yet know about weak symbols in COFF,
3910 # and is not configured to handle mixed ELF and COFF.
3911 noconfigdirs="$noconfigdirs ld target-libgloss"
3912 ;;
3913 i[3456789]86-*-sco*)
3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
3915 ;;
3916 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3917 noconfigdirs="$noconfigdirs target-libgloss"
3918 ;;
3919 i[3456789]86-*-sysv4*)
3920 noconfigdirs="$noconfigdirs target-libgloss"
3921 ;;
3922 i[3456789]86-*-beos*)
3923 noconfigdirs="$noconfigdirs gdb"
3924 ;;
3925 i[3456789]86-*-rdos*)
3926 noconfigdirs="$noconfigdirs gdb"
3927 ;;
3928 mmix-*-*)
3929 noconfigdirs="$noconfigdirs gdb"
3930 ;;
3931 mt-*-*)
3932 noconfigdirs="$noconfigdirs sim"
3933 ;;
3934 nfp-*-*)
3935 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3936 noconfigdirs="$noconfigdirs $target_libraries"
3937 ;;
3938 pdp11-*-*)
3939 noconfigdirs="$noconfigdirs gdb gprof"
3940 ;;
3941 powerpc-*-aix*)
3942 # copied from rs6000-*-* entry
3943 noconfigdirs="$noconfigdirs gprof"
3944 ;;
3945 powerpc*-*-winnt* | powerpc*-*-pe*)
3946 target_configdirs="$target_configdirs target-winsup"
3947 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3948 # always build newlib.
3949 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3950 ;;
3951 # This is temporary until we can link against shared libraries
3952 powerpcle-*-solaris*)
3953 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3954 ;;
3955 powerpc-*-beos*)
3956 noconfigdirs="$noconfigdirs gdb"
3957 ;;
3958 rs6000-*-lynxos*)
3959 noconfigdirs="$noconfigdirs gprof"
3960 ;;
3961 rs6000-*-aix*)
3962 noconfigdirs="$noconfigdirs gprof"
3963 ;;
3964 rs6000-*-*)
3965 noconfigdirs="$noconfigdirs gprof"
3966 ;;
3967 m68k-apollo-*)
3968 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3969 ;;
3970 microblaze*)
3971 noconfigdirs="$noconfigdirs gprof"
3972 ;;
3973 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3974 if test x$with_newlib = xyes; then
3975 noconfigdirs="$noconfigdirs gprof"
3976 fi
3977 ;;
3978 mips*-*-irix5*)
3979 noconfigdirs="$noconfigdirs gprof target-libgloss"
3980 ;;
3981 mips*-*-irix6*)
3982 noconfigdirs="$noconfigdirs gprof target-libgloss"
3983 ;;
3984 mips*-*-bsd*)
3985 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3986 ;;
3987 mips*-*-linux*)
3988 ;;
3989 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3990 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3991 noconfigdirs="$noconfigdirs ld gas gprof"
3992 ;;
3993 mips*-*-*)
3994 noconfigdirs="$noconfigdirs gprof"
3995 ;;
3996 nvptx*-*-*)
3997 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3998 ;;
3999 sh-*-*)
4000 case "${target}" in
4001 sh*-*-elf)
4002 ;;
4003 *)
4004 noconfigdirs="$noconfigdirs target-libgloss" ;;
4005 esac
4006 ;;
4007 sparc-*-sunos4*)
4008 if test x${is_cross_compiler} = xno ; then
4009 use_gnu_ld=no
4010 fi
4011 ;;
4012 tic6x-*-*)
4013 noconfigdirs="$noconfigdirs sim"
4014 ;;
4015 tilepro*-*-* | tilegx*-*-*)
4016 noconfigdirs="$noconfigdirs sim"
4017 ;;
4018 v810-*-*)
4019 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4020 ;;
4021 vax-*-*)
4022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4023 ;;
4024 wasm32-*-*)
4025 noconfigdirs="$noconfigdirs ld"
4026 ;;
4027 esac
4028
4029 # If we aren't building newlib, then don't build libgloss, since libgloss
4030 # depends upon some newlib header files.
4031 case "${noconfigdirs}" in
4032 *target-libgloss*) ;;
4033 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4034 esac
4035
4036 # Work in distributions that contain no compiler tools, like Autoconf.
4037 host_makefile_frag=/dev/null
4038 if test -d ${srcdir}/config ; then
4039 case "${host}" in
4040 i[3456789]86-*-msdosdjgpp*)
4041 host_makefile_frag="config/mh-djgpp"
4042 ;;
4043 *-cygwin*)
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4046 $as_echo_n "checking to see if cat works as expected... " >&6; }
4047 echo a >cygwin-cat-check
4048 if test `cat cygwin-cat-check` = a ; then
4049 rm cygwin-cat-check
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4052 else
4053 rm cygwin-cat-check
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 as_fn_error $? "The cat command does not ignore carriage return characters.
4057 Please either mount the build directory in binary mode or run the following
4058 commands before running any configure script:
4059 set -o igncr
4060 export SHELLOPTS
4061 " "$LINENO" 5
4062 fi
4063
4064 host_makefile_frag="config/mh-cygwin"
4065 ;;
4066 *-mingw*)
4067 host_makefile_frag="config/mh-mingw"
4068 ;;
4069 alpha*-linux*)
4070 host_makefile_frag="config/mh-alpha-linux"
4071 ;;
4072 hppa*-hp-hpux10*)
4073 host_makefile_frag="config/mh-pa-hpux10"
4074 ;;
4075 hppa*-hp-hpux*)
4076 host_makefile_frag="config/mh-pa"
4077 ;;
4078 hppa*-*)
4079 host_makefile_frag="config/mh-pa"
4080 ;;
4081 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4082 host_makefile_frag="config/mh-darwin"
4083 ;;
4084 powerpc-*-aix*)
4085 host_makefile_frag="config/mh-ppc-aix"
4086 ;;
4087 rs6000-*-aix*)
4088 host_makefile_frag="config/mh-ppc-aix"
4089 ;;
4090 esac
4091 fi
4092
4093 if test "${build}" != "${host}" ; then
4094 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4095 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4096 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4097 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4099 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4100 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4101 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4102 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4103 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4104 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4105 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4106 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4107 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4108 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4109 else
4110 AR_FOR_BUILD="\$(AR)"
4111 AS_FOR_BUILD="\$(AS)"
4112 CC_FOR_BUILD="\$(CC)"
4113 CXX_FOR_BUILD="\$(CXX)"
4114 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4115 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4116 GOC_FOR_BUILD="\$(GOC)"
4117 GDC_FOR_BUILD="\$(GDC)"
4118 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4119 LD_FOR_BUILD="\$(LD)"
4120 NM_FOR_BUILD="\$(NM)"
4121 RANLIB_FOR_BUILD="\$(RANLIB)"
4122 WINDRES_FOR_BUILD="\$(WINDRES)"
4123 WINDMC_FOR_BUILD="\$(WINDMC)"
4124 fi
4125
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if ${ac_cv_prog_CC+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173 set dummy gcc; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="gcc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200 if test -n "$ac_ct_CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4202 $as_echo "$ac_ct_CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217 CC=$ac_ct_CC
4218 fi
4219 else
4220 CC="$ac_cv_prog_CC"
4221 fi
4222
4223 if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}cc; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if ${ac_cv_prog_CC+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 CC=$ac_cv_prog_CC
4253 if test -n "$CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255 $as_echo "$CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261
4262 fi
4263 fi
4264 if test -z "$CC"; then
4265 # Extract the first word of "cc", so it can be a program name with args.
4266 set dummy cc; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_CC+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 else
4275 ac_prog_rejected=no
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4284 ac_prog_rejected=yes
4285 continue
4286 fi
4287 ac_cv_prog_CC="cc"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 IFS=$as_save_IFS
4294
4295 if test $ac_prog_rejected = yes; then
4296 # We found a bogon in the path, so make sure we never use it.
4297 set dummy $ac_cv_prog_CC
4298 shift
4299 if test $# != 0; then
4300 # We chose a different compiler from the bogus one.
4301 # However, it has the same basename, so the bogon will be chosen
4302 # first if we set CC to just the basename; use the full file name.
4303 shift
4304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4305 fi
4306 fi
4307 fi
4308 fi
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312 $as_echo "$CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319 fi
4320 if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 for ac_prog in cl.exe
4323 do
4324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_CC+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349 fi
4350 fi
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354 $as_echo "$CC" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358 fi
4359
4360
4361 test -n "$CC" && break
4362 done
4363 fi
4364 if test -z "$CC"; then
4365 ac_ct_CC=$CC
4366 for ac_prog in cl.exe
4367 do
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369 set dummy $ac_prog; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_ac_ct_CC="$ac_prog"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396 if test -n "$ac_ct_CC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398 $as_echo "$ac_ct_CC" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405 test -n "$ac_ct_CC" && break
4406 done
4407
4408 if test "x$ac_ct_CC" = x; then
4409 CC=""
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412 yes:)
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415 ac_tool_warned=yes ;;
4416 esac
4417 CC=$ac_ct_CC
4418 fi
4419 fi
4420
4421 fi
4422
4423
4424 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "no acceptable C compiler found in \$PATH
4427 See \`config.log' for more details" "$LINENO" 5; }
4428
4429 # Provide some information about the compiler.
4430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4431 set X $ac_compile
4432 ac_compiler=$2
4433 for ac_option in --version -v -V -qversion; do
4434 { { ac_try="$ac_compiler $ac_option >&5"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4442 ac_status=$?
4443 if test -s conftest.err; then
4444 sed '10a\
4445 ... rest of stderr output deleted ...
4446 10q' conftest.err >conftest.er1
4447 cat conftest.er1 >&5
4448 fi
4449 rm -f conftest.er1 conftest.err
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 done
4453
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456
4457 int
4458 main ()
4459 {
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 ac_clean_files_save=$ac_clean_files
4466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4467 # Try to create an executable without -o first, disregard a.out.
4468 # It will help us diagnose broken compilers, and finding out an intuition
4469 # of exeext.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471 $as_echo_n "checking whether the C compiler works... " >&6; }
4472 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4473
4474 # The possible output files:
4475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4476
4477 ac_rmfiles=
4478 for ac_file in $ac_files
4479 do
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 esac
4484 done
4485 rm -f $ac_rmfiles
4486
4487 if { { ac_try="$ac_link_default"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link_default") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; then :
4498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4500 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4501 # so that the user can short-circuit this test for compilers unknown to
4502 # Autoconf.
4503 for ac_file in $ac_files ''
4504 do
4505 test -f "$ac_file" || continue
4506 case $ac_file in
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4508 ;;
4509 [ab].out )
4510 # We found the default executable, but exeext='' is most
4511 # certainly right.
4512 break;;
4513 *.* )
4514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4515 then :; else
4516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 fi
4518 # We set ac_cv_exeext here because the later test for it is not
4519 # safe: cross compilers may not add the suffix if given an `-o'
4520 # argument, so we may need to know it at that point already.
4521 # Even if this section looks crufty: it has the advantage of
4522 # actually working.
4523 break;;
4524 * )
4525 break;;
4526 esac
4527 done
4528 test "$ac_cv_exeext" = no && ac_cv_exeext=
4529
4530 else
4531 ac_file=''
4532 fi
4533 if test -z "$ac_file"; then :
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error 77 "C compiler cannot create executables
4542 See \`config.log' for more details" "$LINENO" 5; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4548 $as_echo_n "checking for C compiler default output file name... " >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4550 $as_echo "$ac_file" >&6; }
4551 ac_exeext=$ac_cv_exeext
4552
4553 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4554 ac_clean_files=$ac_clean_files_save
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4556 $as_echo_n "checking for suffix of executables... " >&6; }
4557 if { { ac_try="$ac_link"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link") 2>&5
4565 ac_status=$?
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4570 # work properly (i.e., refer to `conftest.exe'), while it won't with
4571 # `rm'.
4572 for ac_file in conftest.exe conftest conftest.*; do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4577 break;;
4578 * ) break;;
4579 esac
4580 done
4581 else
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4585 See \`config.log' for more details" "$LINENO" 5; }
4586 fi
4587 rm -f conftest conftest$ac_cv_exeext
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4589 $as_echo "$ac_cv_exeext" >&6; }
4590
4591 rm -f conftest.$ac_ext
4592 EXEEXT=$ac_cv_exeext
4593 ac_exeext=$EXEEXT
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <stdio.h>
4597 int
4598 main ()
4599 {
4600 FILE *f = fopen ("conftest.out", "w");
4601 return ferror (f) || fclose (f) != 0;
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 ac_clean_files="$ac_clean_files conftest.out"
4608 # Check that the compiler produces executables we can run. If not, either
4609 # the compiler is broken, or we cross compile.
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4611 $as_echo_n "checking whether we are cross compiling... " >&6; }
4612 if test "$cross_compiling" != yes; then
4613 { { ac_try="$ac_link"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 if { ac_try='./conftest$ac_cv_exeext'
4625 { { case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630 $as_echo "$ac_try_echo"; } >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; }; then
4635 cross_compiling=no
4636 else
4637 if test "$cross_compiling" = maybe; then
4638 cross_compiling=yes
4639 else
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot run C compiled programs.
4643 If you meant to cross compile, use \`--host'.
4644 See \`config.log' for more details" "$LINENO" 5; }
4645 fi
4646 fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4649 $as_echo "$cross_compiling" >&6; }
4650
4651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4652 ac_clean_files=$ac_clean_files_save
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4654 $as_echo_n "checking for suffix of object files... " >&6; }
4655 if ${ac_cv_objext+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660
4661 int
4662 main ()
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.o conftest.obj
4670 if { { ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compile") 2>&5
4678 ac_status=$?
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; then :
4681 for ac_file in conftest.o conftest.obj conftest.*; do
4682 test -f "$ac_file" || continue;
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 break;;
4687 esac
4688 done
4689 else
4690 $as_echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $? "cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details" "$LINENO" 5; }
4697 fi
4698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4701 $as_echo "$ac_cv_objext" >&6; }
4702 OBJEXT=$ac_cv_objext
4703 ac_objext=$OBJEXT
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4706 if ${ac_cv_c_compiler_gnu+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main ()
4714 {
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725 else
4726 ac_compiler_gnu=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4730
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734 if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736 else
4737 GCC=
4738 fi
4739 ac_test_CFLAGS=${CFLAGS+set}
4740 ac_save_CFLAGS=$CFLAGS
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4743 if ${ac_cv_prog_cc_g+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763 else
4764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777
4778 else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803 $as_echo "$ac_cv_prog_cc_g" >&6; }
4804 if test "$ac_test_CFLAGS" = set; then
4805 CFLAGS=$ac_save_CFLAGS
4806 elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4811 fi
4812 else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4817 fi
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4821 if ${ac_cv_prog_cc_c89+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_cv_prog_cc_c89=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <stdarg.h>
4829 #include <stdio.h>
4830 struct stat;
4831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4832 struct buf { int x; };
4833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834 static char *e (p, i)
4835 char **p;
4836 int i;
4837 {
4838 return p[i];
4839 }
4840 static char *f (char * (*g) (char **, int), char **p, ...)
4841 {
4842 char *s;
4843 va_list v;
4844 va_start (v,p);
4845 s = g (p, va_arg (v,int));
4846 va_end (v);
4847 return s;
4848 }
4849
4850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4851 function prototypes and stuff, but not '\xHH' hex character constants.
4852 These don't provoke an error unfortunately, instead are silently treated
4853 as 'x'. The following induces an error, until -std is added to get
4854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4855 array size at least. It's necessary to write '\x00'==0 to get something
4856 that's true only with -std. */
4857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4858
4859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860 inside strings and character constants. */
4861 #define FOO(x) 'x'
4862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4863
4864 int test (int i, double x);
4865 struct s1 {int (*f) (int a);};
4866 struct s2 {int (*f) (double a);};
4867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 int argc;
4869 char **argv;
4870 int
4871 main ()
4872 {
4873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 do
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_prog_cc_c89=$ac_arg
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4887 done
4888 rm -f conftest.$ac_ext
4889 CC=$ac_save_CC
4890
4891 fi
4892 # AC_CACHE_VAL
4893 case "x$ac_cv_prog_cc_c89" in
4894 x)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4896 $as_echo "none needed" >&6; } ;;
4897 xno)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4899 $as_echo "unsupported" >&6; } ;;
4900 *)
4901 CC="$CC $ac_cv_prog_cc_c89"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4904 esac
4905 if test "x$ac_cv_prog_cc_c89" != xno; then :
4906
4907 fi
4908
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4916 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4917 if ${ac_cv_prog_cc_c99+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 ac_cv_prog_cc_c99=no
4921 ac_save_CC=$CC
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <stdarg.h>
4925 #include <stdbool.h>
4926 #include <stdlib.h>
4927 #include <wchar.h>
4928 #include <stdio.h>
4929
4930 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4931 #define debug(...) fprintf (stderr, __VA_ARGS__)
4932 #define showlist(...) puts (#__VA_ARGS__)
4933 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4934 static void
4935 test_varargs_macros (void)
4936 {
4937 int x = 1234;
4938 int y = 5678;
4939 debug ("Flag");
4940 debug ("X = %d\n", x);
4941 showlist (The first, second, and third items.);
4942 report (x>y, "x is %d but y is %d", x, y);
4943 }
4944
4945 // Check long long types.
4946 #define BIG64 18446744073709551615ull
4947 #define BIG32 4294967295ul
4948 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4949 #if !BIG_OK
4950 your preprocessor is broken;
4951 #endif
4952 #if BIG_OK
4953 #else
4954 your preprocessor is broken;
4955 #endif
4956 static long long int bignum = -9223372036854775807LL;
4957 static unsigned long long int ubignum = BIG64;
4958
4959 struct incomplete_array
4960 {
4961 int datasize;
4962 double data[];
4963 };
4964
4965 struct named_init {
4966 int number;
4967 const wchar_t *name;
4968 double average;
4969 };
4970
4971 typedef const char *ccp;
4972
4973 static inline int
4974 test_restrict (ccp restrict text)
4975 {
4976 // See if C++-style comments work.
4977 // Iterate through items via the restricted pointer.
4978 // Also check for declarations in for loops.
4979 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4980 continue;
4981 return 0;
4982 }
4983
4984 // Check varargs and va_copy.
4985 static void
4986 test_varargs (const char *format, ...)
4987 {
4988 va_list args;
4989 va_start (args, format);
4990 va_list args_copy;
4991 va_copy (args_copy, args);
4992
4993 const char *str;
4994 int number;
4995 float fnumber;
4996
4997 while (*format)
4998 {
4999 switch (*format++)
5000 {
5001 case 's': // string
5002 str = va_arg (args_copy, const char *);
5003 break;
5004 case 'd': // int
5005 number = va_arg (args_copy, int);
5006 break;
5007 case 'f': // float
5008 fnumber = va_arg (args_copy, double);
5009 break;
5010 default:
5011 break;
5012 }
5013 }
5014 va_end (args_copy);
5015 va_end (args);
5016 }
5017
5018 int
5019 main ()
5020 {
5021
5022 // Check bool.
5023 _Bool success = false;
5024
5025 // Check restrict.
5026 if (test_restrict ("String literal") == 0)
5027 success = true;
5028 char *restrict newvar = "Another string";
5029
5030 // Check varargs.
5031 test_varargs ("s, d' f .", "string", 65, 34.234);
5032 test_varargs_macros ();
5033
5034 // Check flexible array members.
5035 struct incomplete_array *ia =
5036 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5037 ia->datasize = 10;
5038 for (int i = 0; i < ia->datasize; ++i)
5039 ia->data[i] = i * 1.234;
5040
5041 // Check named initializers.
5042 struct named_init ni = {
5043 .number = 34,
5044 .name = L"Test wide string",
5045 .average = 543.34343,
5046 };
5047
5048 ni.number = 58;
5049
5050 int dynamic_array[ni.number];
5051 dynamic_array[ni.number - 1] = 543;
5052
5053 // work around unused variable warnings
5054 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5055 || dynamic_array[ni.number - 1] != 543);
5056
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5062 do
5063 CC="$ac_save_CC $ac_arg"
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_prog_cc_c99=$ac_arg
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext
5068 test "x$ac_cv_prog_cc_c99" != "xno" && break
5069 done
5070 rm -f conftest.$ac_ext
5071 CC=$ac_save_CC
5072
5073 fi
5074 # AC_CACHE_VAL
5075 case "x$ac_cv_prog_cc_c99" in
5076 x)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5078 $as_echo "none needed" >&6; } ;;
5079 xno)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5081 $as_echo "unsupported" >&6; } ;;
5082 *)
5083 CC="$CC $ac_cv_prog_cc_c99"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5085 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5086 esac
5087 if test "x$ac_cv_prog_cc_c99" != xno; then :
5088
5089 fi
5090
5091
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097 if test -z "$CXX"; then
5098 if test -n "$CCC"; then
5099 CXX=$CCC
5100 else
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5103 do
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CXX+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CXX"; then
5112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 CXX=$ac_cv_prog_CXX
5132 if test -n "$CXX"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5134 $as_echo "$CXX" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 test -n "$CXX" && break
5142 done
5143 fi
5144 if test -z "$CXX"; then
5145 ac_ct_CXX=$CXX
5146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5147 do
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CXX"; then
5156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5176 if test -n "$ac_ct_CXX"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5178 $as_echo "$ac_ct_CXX" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185 test -n "$ac_ct_CXX" && break
5186 done
5187
5188 if test "x$ac_ct_CXX" = x; then
5189 CXX="g++"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 CXX=$ac_ct_CXX
5198 fi
5199 fi
5200
5201 fi
5202 fi
5203 # Provide some information about the compiler.
5204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5205 set X $ac_compile
5206 ac_compiler=$2
5207 for ac_option in --version -v -V -qversion; do
5208 { { ac_try="$ac_compiler $ac_option >&5"
5209 case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212 esac
5213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5214 $as_echo "$ac_try_echo"; } >&5
5215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5216 ac_status=$?
5217 if test -s conftest.err; then
5218 sed '10a\
5219 ... rest of stderr output deleted ...
5220 10q' conftest.err >conftest.er1
5221 cat conftest.er1 >&5
5222 fi
5223 rm -f conftest.er1 conftest.err
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226 done
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5229 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5230 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235
5236 int
5237 main ()
5238 {
5239 #ifndef __GNUC__
5240 choke me
5241 #endif
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_cxx_try_compile "$LINENO"; then :
5248 ac_compiler_gnu=yes
5249 else
5250 ac_compiler_gnu=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5257 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5258 if test $ac_compiler_gnu = yes; then
5259 GXX=yes
5260 else
5261 GXX=
5262 fi
5263 ac_test_CXXFLAGS=${CXXFLAGS+set}
5264 ac_save_CXXFLAGS=$CXXFLAGS
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5266 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5267 if ${ac_cv_prog_cxx_g+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5271 ac_cxx_werror_flag=yes
5272 ac_cv_prog_cxx_g=no
5273 CXXFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276
5277 int
5278 main ()
5279 {
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_cv_prog_cxx_g=yes
5287 else
5288 CXXFLAGS=""
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291
5292 int
5293 main ()
5294 {
5295
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 if ac_fn_cxx_try_compile "$LINENO"; then :
5301
5302 else
5303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5304 CXXFLAGS="-g"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 int
5309 main ()
5310 {
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_cv_prog_cxx_g=yes
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5327 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5328 if test "$ac_test_CXXFLAGS" = set; then
5329 CXXFLAGS=$ac_save_CXXFLAGS
5330 elif test $ac_cv_prog_cxx_g = yes; then
5331 if test "$GXX" = yes; then
5332 CXXFLAGS="-g -O2"
5333 else
5334 CXXFLAGS="-g"
5335 fi
5336 else
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-O2"
5339 else
5340 CXXFLAGS=
5341 fi
5342 fi
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350 # We must set the default linker to the linker used by gcc for the correct
5351 # operation of libtool. If LD is not defined and we are using gcc, try to
5352 # set the LD default to the ld used by gcc.
5353 if test -z "$LD"; then
5354 if test "$GCC" = yes; then
5355 case $build in
5356 *-*-mingw*)
5357 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5358 *)
5359 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5360 esac
5361 case $gcc_prog_ld in
5362 # Accept absolute paths.
5363 [\\/]* | [A-Za-z]:[\\/]*)
5364 LD="$gcc_prog_ld" ;;
5365 esac
5366 fi
5367 fi
5368
5369 # Check whether -static-libstdc++ -static-libgcc is supported.
5370 have_static_libs=no
5371 if test "$GCC" = yes; then
5372 saved_LDFLAGS="$LDFLAGS"
5373
5374 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5376 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5377 ac_ext=cpp
5378 ac_cpp='$CXXCPP $CPPFLAGS'
5379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5382
5383
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5388 #error -static-libstdc++ not implemented
5389 #endif
5390 int main() {}
5391 _ACEOF
5392 if ac_fn_cxx_try_link "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }; have_static_libs=yes
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407
5408 LDFLAGS="$saved_LDFLAGS"
5409 fi
5410
5411
5412
5413
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_GNATBIND+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$GNATBIND"; then
5423 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
5436 done
5437 done
5438 IFS=$as_save_IFS
5439
5440 fi
5441 fi
5442 GNATBIND=$ac_cv_prog_GNATBIND
5443 if test -n "$GNATBIND"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5445 $as_echo "$GNATBIND" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451
5452 fi
5453 if test -z "$ac_cv_prog_GNATBIND"; then
5454 ac_ct_GNATBIND=$GNATBIND
5455 # Extract the first word of "gnatbind", so it can be a program name with args.
5456 set dummy gnatbind; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$ac_ct_GNATBIND"; then
5463 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5483 if test -n "$ac_ct_GNATBIND"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5485 $as_echo "$ac_ct_GNATBIND" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491 if test "x$ac_ct_GNATBIND" = x; then
5492 GNATBIND="no"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 GNATBIND=$ac_ct_GNATBIND
5501 fi
5502 else
5503 GNATBIND="$ac_cv_prog_GNATBIND"
5504 fi
5505
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_GNATMAKE+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$GNATMAKE"; then
5515 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 GNATMAKE=$ac_cv_prog_GNATMAKE
5535 if test -n "$GNATMAKE"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5537 $as_echo "$GNATMAKE" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544 fi
5545 if test -z "$ac_cv_prog_GNATMAKE"; then
5546 ac_ct_GNATMAKE=$GNATMAKE
5547 # Extract the first word of "gnatmake", so it can be a program name with args.
5548 set dummy gnatmake; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_GNATMAKE"; then
5555 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5575 if test -n "$ac_ct_GNATMAKE"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5577 $as_echo "$ac_ct_GNATMAKE" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583 if test "x$ac_ct_GNATMAKE" = x; then
5584 GNATMAKE="no"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 GNATMAKE=$ac_ct_GNATMAKE
5593 fi
5594 else
5595 GNATMAKE="$ac_cv_prog_GNATMAKE"
5596 fi
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5599 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5600 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 cat >conftest.adb <<EOF
5604 procedure conftest is begin null; end conftest;
5605 EOF
5606 acx_cv_cc_gcc_supports_ada=no
5607 # There is a bug in old released versions of GCC which causes the
5608 # driver to exit successfully when the appropriate language module
5609 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5610 # Therefore we must check for the error message as well as an
5611 # unsuccessful exit.
5612 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5613 # given a .adb file, but produce no object file. So we must check
5614 # if an object file was really produced to guard against this.
5615 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5616 if test x"$errors" = x && test -f conftest.$ac_objext; then
5617 acx_cv_cc_gcc_supports_ada=yes
5618 fi
5619 rm -f conftest.*
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5622 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5623
5624 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5625 have_gnat=yes
5626 else
5627 have_gnat=no
5628 fi
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_GDC+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$GDC"; then
5641 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 GDC=$ac_cv_prog_GDC
5661 if test -n "$GDC"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5663 $as_echo "$GDC" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 fi
5671 if test -z "$ac_cv_prog_GDC"; then
5672 ac_ct_GDC=$GDC
5673 # Extract the first word of "gdc", so it can be a program name with args.
5674 set dummy gdc; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_GDC"; then
5681 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_GDC="gdc"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5701 if test -n "$ac_ct_GDC"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5703 $as_echo "$ac_ct_GDC" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709 if test "x$ac_ct_GDC" = x; then
5710 GDC="no"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 GDC=$ac_ct_GDC
5719 fi
5720 else
5721 GDC="$ac_cv_prog_GDC"
5722 fi
5723
5724 if test "x$GDC" != xno; then
5725 have_gdc=yes
5726 else
5727 have_gdc=no
5728 fi
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5731 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5732 if ${gcc_cv_prog_cmp_skip+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 echo abfoo >t1
5736 echo cdfoo >t2
5737 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5738 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5739 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5740 :
5741 else
5742 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5743 fi
5744 fi
5745 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5746 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5747 :
5748 else
5749 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5750 fi
5751 fi
5752 rm t1 t2
5753
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5756 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5757 do_compare="$gcc_cv_prog_cmp_skip"
5758
5759
5760
5761 # Check whether --enable-bootstrap was given.
5762 if test "${enable_bootstrap+set}" = set; then :
5763 enableval=$enable_bootstrap;
5764 else
5765 enable_bootstrap=default
5766 fi
5767
5768
5769 # Issue errors and warnings for invalid/strange bootstrap combinations.
5770 if test -r $srcdir/gcc/configure; then
5771 have_compiler=yes
5772 else
5773 have_compiler=no
5774 fi
5775
5776 case "$have_compiler:$host:$target:$enable_bootstrap" in
5777 *:*:*:no) ;;
5778
5779 # Default behavior. Enable bootstrap if we have a compiler
5780 # and we are in a native configuration.
5781 yes:$build:$build:default)
5782 enable_bootstrap=yes ;;
5783
5784 *:*:*:default)
5785 enable_bootstrap=no ;;
5786
5787 # We have a compiler and we are in a native configuration, bootstrap is ok
5788 yes:$build:$build:yes)
5789 ;;
5790
5791 # Other configurations, but we have a compiler. Assume the user knows
5792 # what he's doing.
5793 yes:*:*:yes)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5795 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5796 ;;
5797
5798 # No compiler: if they passed --enable-bootstrap explicitly, fail
5799 no:*:*:yes)
5800 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5801
5802 # Fail if wrong command line
5803 *)
5804 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5805 ;;
5806 esac
5807
5808 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5809 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5810 # require C++11 (or higher).
5811 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5812 CXX="$CXX -std=c++11"
5813 elif test "$have_compiler" = yes; then
5814 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5815 ac_ext=cpp
5816 ac_cpp='$CXXCPP $CPPFLAGS'
5817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820 ac_success=no
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5823 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5824 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829
5830
5831 // If the compiler admits that it is not ready for C++11, why torture it?
5832 // Hopefully, this will speed up the test.
5833
5834 #ifndef __cplusplus
5835
5836 #error "This is not a C++ compiler"
5837
5838 #elif __cplusplus < 201103L
5839
5840 #error "This is not a C++11 compiler"
5841
5842 #else
5843
5844 namespace cxx11
5845 {
5846
5847 namespace test_static_assert
5848 {
5849
5850 template <typename T>
5851 struct check
5852 {
5853 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5854 };
5855
5856 }
5857
5858 namespace test_final_override
5859 {
5860
5861 struct Base
5862 {
5863 virtual ~Base() {}
5864 virtual void f() {}
5865 };
5866
5867 struct Derived : public Base
5868 {
5869 virtual ~Derived() override {}
5870 virtual void f() override {}
5871 };
5872
5873 }
5874
5875 namespace test_double_right_angle_brackets
5876 {
5877
5878 template < typename T >
5879 struct check {};
5880
5881 typedef check<void> single_type;
5882 typedef check<check<void>> double_type;
5883 typedef check<check<check<void>>> triple_type;
5884 typedef check<check<check<check<void>>>> quadruple_type;
5885
5886 }
5887
5888 namespace test_decltype
5889 {
5890
5891 int
5892 f()
5893 {
5894 int a = 1;
5895 decltype(a) b = 2;
5896 return a + b;
5897 }
5898
5899 }
5900
5901 namespace test_type_deduction
5902 {
5903
5904 template < typename T1, typename T2 >
5905 struct is_same
5906 {
5907 static const bool value = false;
5908 };
5909
5910 template < typename T >
5911 struct is_same<T, T>
5912 {
5913 static const bool value = true;
5914 };
5915
5916 template < typename T1, typename T2 >
5917 auto
5918 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5919 {
5920 return a1 + a2;
5921 }
5922
5923 int
5924 test(const int c, volatile int v)
5925 {
5926 static_assert(is_same<int, decltype(0)>::value == true, "");
5927 static_assert(is_same<int, decltype(c)>::value == false, "");
5928 static_assert(is_same<int, decltype(v)>::value == false, "");
5929 auto ac = c;
5930 auto av = v;
5931 auto sumi = ac + av + 'x';
5932 auto sumf = ac + av + 1.0;
5933 static_assert(is_same<int, decltype(ac)>::value == true, "");
5934 static_assert(is_same<int, decltype(av)>::value == true, "");
5935 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5936 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5937 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5938 return (sumf > 0.0) ? sumi : add(c, v);
5939 }
5940
5941 }
5942
5943 namespace test_noexcept
5944 {
5945
5946 int f() { return 0; }
5947 int g() noexcept { return 0; }
5948
5949 static_assert(noexcept(f()) == false, "");
5950 static_assert(noexcept(g()) == true, "");
5951
5952 }
5953
5954 namespace test_constexpr
5955 {
5956
5957 template < typename CharT >
5958 unsigned long constexpr
5959 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5960 {
5961 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5962 }
5963
5964 template < typename CharT >
5965 unsigned long constexpr
5966 strlen_c(const CharT *const s) noexcept
5967 {
5968 return strlen_c_r(s, 0UL);
5969 }
5970
5971 static_assert(strlen_c("") == 0UL, "");
5972 static_assert(strlen_c("1") == 1UL, "");
5973 static_assert(strlen_c("example") == 7UL, "");
5974 static_assert(strlen_c("another\0example") == 7UL, "");
5975
5976 }
5977
5978 namespace test_rvalue_references
5979 {
5980
5981 template < int N >
5982 struct answer
5983 {
5984 static constexpr int value = N;
5985 };
5986
5987 answer<1> f(int&) { return answer<1>(); }
5988 answer<2> f(const int&) { return answer<2>(); }
5989 answer<3> f(int&&) { return answer<3>(); }
5990
5991 void
5992 test()
5993 {
5994 int i = 0;
5995 const int c = 0;
5996 static_assert(decltype(f(i))::value == 1, "");
5997 static_assert(decltype(f(c))::value == 2, "");
5998 static_assert(decltype(f(0))::value == 3, "");
5999 }
6000
6001 }
6002
6003 namespace test_uniform_initialization
6004 {
6005
6006 struct test
6007 {
6008 static const int zero {};
6009 static const int one {1};
6010 };
6011
6012 static_assert(test::zero == 0, "");
6013 static_assert(test::one == 1, "");
6014
6015 }
6016
6017 namespace test_lambdas
6018 {
6019
6020 void
6021 test1()
6022 {
6023 auto lambda1 = [](){};
6024 auto lambda2 = lambda1;
6025 lambda1();
6026 lambda2();
6027 }
6028
6029 int
6030 test2()
6031 {
6032 auto a = [](int i, int j){ return i + j; }(1, 2);
6033 auto b = []() -> int { return '0'; }();
6034 auto c = [=](){ return a + b; }();
6035 auto d = [&](){ return c; }();
6036 auto e = [a, &b](int x) mutable {
6037 const auto identity = [](int y){ return y; };
6038 for (auto i = 0; i < a; ++i)
6039 a += b--;
6040 return x + identity(a + b);
6041 }(0);
6042 return a + b + c + d + e;
6043 }
6044
6045 int
6046 test3()
6047 {
6048 const auto nullary = [](){ return 0; };
6049 const auto unary = [](int x){ return x; };
6050 using nullary_t = decltype(nullary);
6051 using unary_t = decltype(unary);
6052 const auto higher1st = [](nullary_t f){ return f(); };
6053 const auto higher2nd = [unary](nullary_t f1){
6054 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6055 };
6056 return higher1st(nullary) + higher2nd(nullary)(unary);
6057 }
6058
6059 }
6060
6061 namespace test_variadic_templates
6062 {
6063
6064 template <int...>
6065 struct sum;
6066
6067 template <int N0, int... N1toN>
6068 struct sum<N0, N1toN...>
6069 {
6070 static constexpr auto value = N0 + sum<N1toN...>::value;
6071 };
6072
6073 template <>
6074 struct sum<>
6075 {
6076 static constexpr auto value = 0;
6077 };
6078
6079 static_assert(sum<>::value == 0, "");
6080 static_assert(sum<1>::value == 1, "");
6081 static_assert(sum<23>::value == 23, "");
6082 static_assert(sum<1, 2>::value == 3, "");
6083 static_assert(sum<5, 5, 11>::value == 21, "");
6084 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6085
6086 }
6087
6088 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6089 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6090 // because of this.
6091 namespace test_template_alias_sfinae
6092 {
6093
6094 struct foo {};
6095
6096 template<typename T>
6097 using member = typename T::member_type;
6098
6099 template<typename T>
6100 void func(...) {}
6101
6102 template<typename T>
6103 void func(member<T>*) {}
6104
6105 void test();
6106
6107 void test() { func<foo>(0); }
6108
6109 }
6110
6111 } // namespace cxx11
6112
6113 #endif // __cplusplus >= 201103L
6114
6115
6116
6117 _ACEOF
6118 if ac_fn_cxx_try_compile "$LINENO"; then :
6119 ax_cv_cxx_compile_cxx11=yes
6120 else
6121 ax_cv_cxx_compile_cxx11=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6126 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6127 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6128 ac_success=yes
6129 fi
6130
6131 if test x$ac_success = xno; then
6132 for alternative in ${ax_cxx_compile_alternatives}; do
6133 switch="-std=gnu++${alternative}"
6134 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6136 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6137 if eval \${$cachevar+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 ac_save_CXX="$CXX"
6141 CXX="$CXX $switch"
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144
6145
6146 // If the compiler admits that it is not ready for C++11, why torture it?
6147 // Hopefully, this will speed up the test.
6148
6149 #ifndef __cplusplus
6150
6151 #error "This is not a C++ compiler"
6152
6153 #elif __cplusplus < 201103L
6154
6155 #error "This is not a C++11 compiler"
6156
6157 #else
6158
6159 namespace cxx11
6160 {
6161
6162 namespace test_static_assert
6163 {
6164
6165 template <typename T>
6166 struct check
6167 {
6168 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6169 };
6170
6171 }
6172
6173 namespace test_final_override
6174 {
6175
6176 struct Base
6177 {
6178 virtual ~Base() {}
6179 virtual void f() {}
6180 };
6181
6182 struct Derived : public Base
6183 {
6184 virtual ~Derived() override {}
6185 virtual void f() override {}
6186 };
6187
6188 }
6189
6190 namespace test_double_right_angle_brackets
6191 {
6192
6193 template < typename T >
6194 struct check {};
6195
6196 typedef check<void> single_type;
6197 typedef check<check<void>> double_type;
6198 typedef check<check<check<void>>> triple_type;
6199 typedef check<check<check<check<void>>>> quadruple_type;
6200
6201 }
6202
6203 namespace test_decltype
6204 {
6205
6206 int
6207 f()
6208 {
6209 int a = 1;
6210 decltype(a) b = 2;
6211 return a + b;
6212 }
6213
6214 }
6215
6216 namespace test_type_deduction
6217 {
6218
6219 template < typename T1, typename T2 >
6220 struct is_same
6221 {
6222 static const bool value = false;
6223 };
6224
6225 template < typename T >
6226 struct is_same<T, T>
6227 {
6228 static const bool value = true;
6229 };
6230
6231 template < typename T1, typename T2 >
6232 auto
6233 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6234 {
6235 return a1 + a2;
6236 }
6237
6238 int
6239 test(const int c, volatile int v)
6240 {
6241 static_assert(is_same<int, decltype(0)>::value == true, "");
6242 static_assert(is_same<int, decltype(c)>::value == false, "");
6243 static_assert(is_same<int, decltype(v)>::value == false, "");
6244 auto ac = c;
6245 auto av = v;
6246 auto sumi = ac + av + 'x';
6247 auto sumf = ac + av + 1.0;
6248 static_assert(is_same<int, decltype(ac)>::value == true, "");
6249 static_assert(is_same<int, decltype(av)>::value == true, "");
6250 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6251 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6252 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6253 return (sumf > 0.0) ? sumi : add(c, v);
6254 }
6255
6256 }
6257
6258 namespace test_noexcept
6259 {
6260
6261 int f() { return 0; }
6262 int g() noexcept { return 0; }
6263
6264 static_assert(noexcept(f()) == false, "");
6265 static_assert(noexcept(g()) == true, "");
6266
6267 }
6268
6269 namespace test_constexpr
6270 {
6271
6272 template < typename CharT >
6273 unsigned long constexpr
6274 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6275 {
6276 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6277 }
6278
6279 template < typename CharT >
6280 unsigned long constexpr
6281 strlen_c(const CharT *const s) noexcept
6282 {
6283 return strlen_c_r(s, 0UL);
6284 }
6285
6286 static_assert(strlen_c("") == 0UL, "");
6287 static_assert(strlen_c("1") == 1UL, "");
6288 static_assert(strlen_c("example") == 7UL, "");
6289 static_assert(strlen_c("another\0example") == 7UL, "");
6290
6291 }
6292
6293 namespace test_rvalue_references
6294 {
6295
6296 template < int N >
6297 struct answer
6298 {
6299 static constexpr int value = N;
6300 };
6301
6302 answer<1> f(int&) { return answer<1>(); }
6303 answer<2> f(const int&) { return answer<2>(); }
6304 answer<3> f(int&&) { return answer<3>(); }
6305
6306 void
6307 test()
6308 {
6309 int i = 0;
6310 const int c = 0;
6311 static_assert(decltype(f(i))::value == 1, "");
6312 static_assert(decltype(f(c))::value == 2, "");
6313 static_assert(decltype(f(0))::value == 3, "");
6314 }
6315
6316 }
6317
6318 namespace test_uniform_initialization
6319 {
6320
6321 struct test
6322 {
6323 static const int zero {};
6324 static const int one {1};
6325 };
6326
6327 static_assert(test::zero == 0, "");
6328 static_assert(test::one == 1, "");
6329
6330 }
6331
6332 namespace test_lambdas
6333 {
6334
6335 void
6336 test1()
6337 {
6338 auto lambda1 = [](){};
6339 auto lambda2 = lambda1;
6340 lambda1();
6341 lambda2();
6342 }
6343
6344 int
6345 test2()
6346 {
6347 auto a = [](int i, int j){ return i + j; }(1, 2);
6348 auto b = []() -> int { return '0'; }();
6349 auto c = [=](){ return a + b; }();
6350 auto d = [&](){ return c; }();
6351 auto e = [a, &b](int x) mutable {
6352 const auto identity = [](int y){ return y; };
6353 for (auto i = 0; i < a; ++i)
6354 a += b--;
6355 return x + identity(a + b);
6356 }(0);
6357 return a + b + c + d + e;
6358 }
6359
6360 int
6361 test3()
6362 {
6363 const auto nullary = [](){ return 0; };
6364 const auto unary = [](int x){ return x; };
6365 using nullary_t = decltype(nullary);
6366 using unary_t = decltype(unary);
6367 const auto higher1st = [](nullary_t f){ return f(); };
6368 const auto higher2nd = [unary](nullary_t f1){
6369 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6370 };
6371 return higher1st(nullary) + higher2nd(nullary)(unary);
6372 }
6373
6374 }
6375
6376 namespace test_variadic_templates
6377 {
6378
6379 template <int...>
6380 struct sum;
6381
6382 template <int N0, int... N1toN>
6383 struct sum<N0, N1toN...>
6384 {
6385 static constexpr auto value = N0 + sum<N1toN...>::value;
6386 };
6387
6388 template <>
6389 struct sum<>
6390 {
6391 static constexpr auto value = 0;
6392 };
6393
6394 static_assert(sum<>::value == 0, "");
6395 static_assert(sum<1>::value == 1, "");
6396 static_assert(sum<23>::value == 23, "");
6397 static_assert(sum<1, 2>::value == 3, "");
6398 static_assert(sum<5, 5, 11>::value == 21, "");
6399 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6400
6401 }
6402
6403 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6404 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6405 // because of this.
6406 namespace test_template_alias_sfinae
6407 {
6408
6409 struct foo {};
6410
6411 template<typename T>
6412 using member = typename T::member_type;
6413
6414 template<typename T>
6415 void func(...) {}
6416
6417 template<typename T>
6418 void func(member<T>*) {}
6419
6420 void test();
6421
6422 void test() { func<foo>(0); }
6423
6424 }
6425
6426 } // namespace cxx11
6427
6428 #endif // __cplusplus >= 201103L
6429
6430
6431
6432 _ACEOF
6433 if ac_fn_cxx_try_compile "$LINENO"; then :
6434 eval $cachevar=yes
6435 else
6436 eval $cachevar=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 CXX="$ac_save_CXX"
6440 fi
6441 eval ac_res=\$$cachevar
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6443 $as_echo "$ac_res" >&6; }
6444 if eval test x\$$cachevar = xyes; then
6445 CXX="$CXX $switch"
6446 if test -n "$CXXCPP" ; then
6447 CXXCPP="$CXXCPP $switch"
6448 fi
6449 ac_success=yes
6450 break
6451 fi
6452 done
6453 fi
6454
6455 if test x$ac_success = xno; then
6456 for alternative in ${ax_cxx_compile_alternatives}; do
6457 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6458 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6460 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6461 if eval \${$cachevar+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 ac_save_CXX="$CXX"
6465 CXX="$CXX $switch"
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468
6469
6470 // If the compiler admits that it is not ready for C++11, why torture it?
6471 // Hopefully, this will speed up the test.
6472
6473 #ifndef __cplusplus
6474
6475 #error "This is not a C++ compiler"
6476
6477 #elif __cplusplus < 201103L
6478
6479 #error "This is not a C++11 compiler"
6480
6481 #else
6482
6483 namespace cxx11
6484 {
6485
6486 namespace test_static_assert
6487 {
6488
6489 template <typename T>
6490 struct check
6491 {
6492 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6493 };
6494
6495 }
6496
6497 namespace test_final_override
6498 {
6499
6500 struct Base
6501 {
6502 virtual ~Base() {}
6503 virtual void f() {}
6504 };
6505
6506 struct Derived : public Base
6507 {
6508 virtual ~Derived() override {}
6509 virtual void f() override {}
6510 };
6511
6512 }
6513
6514 namespace test_double_right_angle_brackets
6515 {
6516
6517 template < typename T >
6518 struct check {};
6519
6520 typedef check<void> single_type;
6521 typedef check<check<void>> double_type;
6522 typedef check<check<check<void>>> triple_type;
6523 typedef check<check<check<check<void>>>> quadruple_type;
6524
6525 }
6526
6527 namespace test_decltype
6528 {
6529
6530 int
6531 f()
6532 {
6533 int a = 1;
6534 decltype(a) b = 2;
6535 return a + b;
6536 }
6537
6538 }
6539
6540 namespace test_type_deduction
6541 {
6542
6543 template < typename T1, typename T2 >
6544 struct is_same
6545 {
6546 static const bool value = false;
6547 };
6548
6549 template < typename T >
6550 struct is_same<T, T>
6551 {
6552 static const bool value = true;
6553 };
6554
6555 template < typename T1, typename T2 >
6556 auto
6557 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6558 {
6559 return a1 + a2;
6560 }
6561
6562 int
6563 test(const int c, volatile int v)
6564 {
6565 static_assert(is_same<int, decltype(0)>::value == true, "");
6566 static_assert(is_same<int, decltype(c)>::value == false, "");
6567 static_assert(is_same<int, decltype(v)>::value == false, "");
6568 auto ac = c;
6569 auto av = v;
6570 auto sumi = ac + av + 'x';
6571 auto sumf = ac + av + 1.0;
6572 static_assert(is_same<int, decltype(ac)>::value == true, "");
6573 static_assert(is_same<int, decltype(av)>::value == true, "");
6574 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6575 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6576 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6577 return (sumf > 0.0) ? sumi : add(c, v);
6578 }
6579
6580 }
6581
6582 namespace test_noexcept
6583 {
6584
6585 int f() { return 0; }
6586 int g() noexcept { return 0; }
6587
6588 static_assert(noexcept(f()) == false, "");
6589 static_assert(noexcept(g()) == true, "");
6590
6591 }
6592
6593 namespace test_constexpr
6594 {
6595
6596 template < typename CharT >
6597 unsigned long constexpr
6598 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6599 {
6600 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6601 }
6602
6603 template < typename CharT >
6604 unsigned long constexpr
6605 strlen_c(const CharT *const s) noexcept
6606 {
6607 return strlen_c_r(s, 0UL);
6608 }
6609
6610 static_assert(strlen_c("") == 0UL, "");
6611 static_assert(strlen_c("1") == 1UL, "");
6612 static_assert(strlen_c("example") == 7UL, "");
6613 static_assert(strlen_c("another\0example") == 7UL, "");
6614
6615 }
6616
6617 namespace test_rvalue_references
6618 {
6619
6620 template < int N >
6621 struct answer
6622 {
6623 static constexpr int value = N;
6624 };
6625
6626 answer<1> f(int&) { return answer<1>(); }
6627 answer<2> f(const int&) { return answer<2>(); }
6628 answer<3> f(int&&) { return answer<3>(); }
6629
6630 void
6631 test()
6632 {
6633 int i = 0;
6634 const int c = 0;
6635 static_assert(decltype(f(i))::value == 1, "");
6636 static_assert(decltype(f(c))::value == 2, "");
6637 static_assert(decltype(f(0))::value == 3, "");
6638 }
6639
6640 }
6641
6642 namespace test_uniform_initialization
6643 {
6644
6645 struct test
6646 {
6647 static const int zero {};
6648 static const int one {1};
6649 };
6650
6651 static_assert(test::zero == 0, "");
6652 static_assert(test::one == 1, "");
6653
6654 }
6655
6656 namespace test_lambdas
6657 {
6658
6659 void
6660 test1()
6661 {
6662 auto lambda1 = [](){};
6663 auto lambda2 = lambda1;
6664 lambda1();
6665 lambda2();
6666 }
6667
6668 int
6669 test2()
6670 {
6671 auto a = [](int i, int j){ return i + j; }(1, 2);
6672 auto b = []() -> int { return '0'; }();
6673 auto c = [=](){ return a + b; }();
6674 auto d = [&](){ return c; }();
6675 auto e = [a, &b](int x) mutable {
6676 const auto identity = [](int y){ return y; };
6677 for (auto i = 0; i < a; ++i)
6678 a += b--;
6679 return x + identity(a + b);
6680 }(0);
6681 return a + b + c + d + e;
6682 }
6683
6684 int
6685 test3()
6686 {
6687 const auto nullary = [](){ return 0; };
6688 const auto unary = [](int x){ return x; };
6689 using nullary_t = decltype(nullary);
6690 using unary_t = decltype(unary);
6691 const auto higher1st = [](nullary_t f){ return f(); };
6692 const auto higher2nd = [unary](nullary_t f1){
6693 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6694 };
6695 return higher1st(nullary) + higher2nd(nullary)(unary);
6696 }
6697
6698 }
6699
6700 namespace test_variadic_templates
6701 {
6702
6703 template <int...>
6704 struct sum;
6705
6706 template <int N0, int... N1toN>
6707 struct sum<N0, N1toN...>
6708 {
6709 static constexpr auto value = N0 + sum<N1toN...>::value;
6710 };
6711
6712 template <>
6713 struct sum<>
6714 {
6715 static constexpr auto value = 0;
6716 };
6717
6718 static_assert(sum<>::value == 0, "");
6719 static_assert(sum<1>::value == 1, "");
6720 static_assert(sum<23>::value == 23, "");
6721 static_assert(sum<1, 2>::value == 3, "");
6722 static_assert(sum<5, 5, 11>::value == 21, "");
6723 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6724
6725 }
6726
6727 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6728 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6729 // because of this.
6730 namespace test_template_alias_sfinae
6731 {
6732
6733 struct foo {};
6734
6735 template<typename T>
6736 using member = typename T::member_type;
6737
6738 template<typename T>
6739 void func(...) {}
6740
6741 template<typename T>
6742 void func(member<T>*) {}
6743
6744 void test();
6745
6746 void test() { func<foo>(0); }
6747
6748 }
6749
6750 } // namespace cxx11
6751
6752 #endif // __cplusplus >= 201103L
6753
6754
6755
6756 _ACEOF
6757 if ac_fn_cxx_try_compile "$LINENO"; then :
6758 eval $cachevar=yes
6759 else
6760 eval $cachevar=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 CXX="$ac_save_CXX"
6764 fi
6765 eval ac_res=\$$cachevar
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6767 $as_echo "$ac_res" >&6; }
6768 if eval test x\$$cachevar = xyes; then
6769 CXX="$CXX $switch"
6770 if test -n "$CXXCPP" ; then
6771 CXXCPP="$CXXCPP $switch"
6772 fi
6773 ac_success=yes
6774 break
6775 fi
6776 done
6777 if test x$ac_success = xyes; then
6778 break
6779 fi
6780 done
6781 fi
6782
6783 ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788
6789 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6790 if test x$ac_success = xno; then
6791 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6792 fi
6793 fi
6794 if test x$ac_success = xno; then
6795 HAVE_CXX11=0
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6797 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6798 else
6799 HAVE_CXX11=1
6800
6801 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6802
6803 fi
6804
6805
6806
6807 if test "${build}" != "${host}"; then
6808 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6809 ac_ext=cpp
6810 ac_cpp='$CXXCPP $CPPFLAGS'
6811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814 ac_success=no
6815 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6816 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6817 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6818 CXX="$CXX_FOR_BUILD"
6819 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6820 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6822 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6823 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828
6829
6830 // If the compiler admits that it is not ready for C++11, why torture it?
6831 // Hopefully, this will speed up the test.
6832
6833 #ifndef __cplusplus
6834
6835 #error "This is not a C++ compiler"
6836
6837 #elif __cplusplus < 201103L
6838
6839 #error "This is not a C++11 compiler"
6840
6841 #else
6842
6843 namespace cxx11
6844 {
6845
6846 namespace test_static_assert
6847 {
6848
6849 template <typename T>
6850 struct check
6851 {
6852 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6853 };
6854
6855 }
6856
6857 namespace test_final_override
6858 {
6859
6860 struct Base
6861 {
6862 virtual ~Base() {}
6863 virtual void f() {}
6864 };
6865
6866 struct Derived : public Base
6867 {
6868 virtual ~Derived() override {}
6869 virtual void f() override {}
6870 };
6871
6872 }
6873
6874 namespace test_double_right_angle_brackets
6875 {
6876
6877 template < typename T >
6878 struct check {};
6879
6880 typedef check<void> single_type;
6881 typedef check<check<void>> double_type;
6882 typedef check<check<check<void>>> triple_type;
6883 typedef check<check<check<check<void>>>> quadruple_type;
6884
6885 }
6886
6887 namespace test_decltype
6888 {
6889
6890 int
6891 f()
6892 {
6893 int a = 1;
6894 decltype(a) b = 2;
6895 return a + b;
6896 }
6897
6898 }
6899
6900 namespace test_type_deduction
6901 {
6902
6903 template < typename T1, typename T2 >
6904 struct is_same
6905 {
6906 static const bool value = false;
6907 };
6908
6909 template < typename T >
6910 struct is_same<T, T>
6911 {
6912 static const bool value = true;
6913 };
6914
6915 template < typename T1, typename T2 >
6916 auto
6917 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6918 {
6919 return a1 + a2;
6920 }
6921
6922 int
6923 test(const int c, volatile int v)
6924 {
6925 static_assert(is_same<int, decltype(0)>::value == true, "");
6926 static_assert(is_same<int, decltype(c)>::value == false, "");
6927 static_assert(is_same<int, decltype(v)>::value == false, "");
6928 auto ac = c;
6929 auto av = v;
6930 auto sumi = ac + av + 'x';
6931 auto sumf = ac + av + 1.0;
6932 static_assert(is_same<int, decltype(ac)>::value == true, "");
6933 static_assert(is_same<int, decltype(av)>::value == true, "");
6934 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6935 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6936 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6937 return (sumf > 0.0) ? sumi : add(c, v);
6938 }
6939
6940 }
6941
6942 namespace test_noexcept
6943 {
6944
6945 int f() { return 0; }
6946 int g() noexcept { return 0; }
6947
6948 static_assert(noexcept(f()) == false, "");
6949 static_assert(noexcept(g()) == true, "");
6950
6951 }
6952
6953 namespace test_constexpr
6954 {
6955
6956 template < typename CharT >
6957 unsigned long constexpr
6958 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6959 {
6960 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6961 }
6962
6963 template < typename CharT >
6964 unsigned long constexpr
6965 strlen_c(const CharT *const s) noexcept
6966 {
6967 return strlen_c_r(s, 0UL);
6968 }
6969
6970 static_assert(strlen_c("") == 0UL, "");
6971 static_assert(strlen_c("1") == 1UL, "");
6972 static_assert(strlen_c("example") == 7UL, "");
6973 static_assert(strlen_c("another\0example") == 7UL, "");
6974
6975 }
6976
6977 namespace test_rvalue_references
6978 {
6979
6980 template < int N >
6981 struct answer
6982 {
6983 static constexpr int value = N;
6984 };
6985
6986 answer<1> f(int&) { return answer<1>(); }
6987 answer<2> f(const int&) { return answer<2>(); }
6988 answer<3> f(int&&) { return answer<3>(); }
6989
6990 void
6991 test()
6992 {
6993 int i = 0;
6994 const int c = 0;
6995 static_assert(decltype(f(i))::value == 1, "");
6996 static_assert(decltype(f(c))::value == 2, "");
6997 static_assert(decltype(f(0))::value == 3, "");
6998 }
6999
7000 }
7001
7002 namespace test_uniform_initialization
7003 {
7004
7005 struct test
7006 {
7007 static const int zero {};
7008 static const int one {1};
7009 };
7010
7011 static_assert(test::zero == 0, "");
7012 static_assert(test::one == 1, "");
7013
7014 }
7015
7016 namespace test_lambdas
7017 {
7018
7019 void
7020 test1()
7021 {
7022 auto lambda1 = [](){};
7023 auto lambda2 = lambda1;
7024 lambda1();
7025 lambda2();
7026 }
7027
7028 int
7029 test2()
7030 {
7031 auto a = [](int i, int j){ return i + j; }(1, 2);
7032 auto b = []() -> int { return '0'; }();
7033 auto c = [=](){ return a + b; }();
7034 auto d = [&](){ return c; }();
7035 auto e = [a, &b](int x) mutable {
7036 const auto identity = [](int y){ return y; };
7037 for (auto i = 0; i < a; ++i)
7038 a += b--;
7039 return x + identity(a + b);
7040 }(0);
7041 return a + b + c + d + e;
7042 }
7043
7044 int
7045 test3()
7046 {
7047 const auto nullary = [](){ return 0; };
7048 const auto unary = [](int x){ return x; };
7049 using nullary_t = decltype(nullary);
7050 using unary_t = decltype(unary);
7051 const auto higher1st = [](nullary_t f){ return f(); };
7052 const auto higher2nd = [unary](nullary_t f1){
7053 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7054 };
7055 return higher1st(nullary) + higher2nd(nullary)(unary);
7056 }
7057
7058 }
7059
7060 namespace test_variadic_templates
7061 {
7062
7063 template <int...>
7064 struct sum;
7065
7066 template <int N0, int... N1toN>
7067 struct sum<N0, N1toN...>
7068 {
7069 static constexpr auto value = N0 + sum<N1toN...>::value;
7070 };
7071
7072 template <>
7073 struct sum<>
7074 {
7075 static constexpr auto value = 0;
7076 };
7077
7078 static_assert(sum<>::value == 0, "");
7079 static_assert(sum<1>::value == 1, "");
7080 static_assert(sum<23>::value == 23, "");
7081 static_assert(sum<1, 2>::value == 3, "");
7082 static_assert(sum<5, 5, 11>::value == 21, "");
7083 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7084
7085 }
7086
7087 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7088 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7089 // because of this.
7090 namespace test_template_alias_sfinae
7091 {
7092
7093 struct foo {};
7094
7095 template<typename T>
7096 using member = typename T::member_type;
7097
7098 template<typename T>
7099 void func(...) {}
7100
7101 template<typename T>
7102 void func(member<T>*) {}
7103
7104 void test();
7105
7106 void test() { func<foo>(0); }
7107
7108 }
7109
7110 } // namespace cxx11
7111
7112 #endif // __cplusplus >= 201103L
7113
7114
7115
7116 _ACEOF
7117 if ac_fn_cxx_try_compile "$LINENO"; then :
7118 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7119 else
7120 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7125 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7126 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7127 ac_success=yes
7128 fi
7129
7130 if test x$ac_success = xno; then
7131 for alternative in ${ax_cxx_compile_alternatives}; do
7132 switch="-std=gnu++${alternative}"
7133 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7135 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7136 if eval \${$cachevar+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 ac_save_CXX="$CXX"
7140 CXX="$CXX $switch"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143
7144
7145 // If the compiler admits that it is not ready for C++11, why torture it?
7146 // Hopefully, this will speed up the test.
7147
7148 #ifndef __cplusplus
7149
7150 #error "This is not a C++ compiler"
7151
7152 #elif __cplusplus < 201103L
7153
7154 #error "This is not a C++11 compiler"
7155
7156 #else
7157
7158 namespace cxx11
7159 {
7160
7161 namespace test_static_assert
7162 {
7163
7164 template <typename T>
7165 struct check
7166 {
7167 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7168 };
7169
7170 }
7171
7172 namespace test_final_override
7173 {
7174
7175 struct Base
7176 {
7177 virtual ~Base() {}
7178 virtual void f() {}
7179 };
7180
7181 struct Derived : public Base
7182 {
7183 virtual ~Derived() override {}
7184 virtual void f() override {}
7185 };
7186
7187 }
7188
7189 namespace test_double_right_angle_brackets
7190 {
7191
7192 template < typename T >
7193 struct check {};
7194
7195 typedef check<void> single_type;
7196 typedef check<check<void>> double_type;
7197 typedef check<check<check<void>>> triple_type;
7198 typedef check<check<check<check<void>>>> quadruple_type;
7199
7200 }
7201
7202 namespace test_decltype
7203 {
7204
7205 int
7206 f()
7207 {
7208 int a = 1;
7209 decltype(a) b = 2;
7210 return a + b;
7211 }
7212
7213 }
7214
7215 namespace test_type_deduction
7216 {
7217
7218 template < typename T1, typename T2 >
7219 struct is_same
7220 {
7221 static const bool value = false;
7222 };
7223
7224 template < typename T >
7225 struct is_same<T, T>
7226 {
7227 static const bool value = true;
7228 };
7229
7230 template < typename T1, typename T2 >
7231 auto
7232 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7233 {
7234 return a1 + a2;
7235 }
7236
7237 int
7238 test(const int c, volatile int v)
7239 {
7240 static_assert(is_same<int, decltype(0)>::value == true, "");
7241 static_assert(is_same<int, decltype(c)>::value == false, "");
7242 static_assert(is_same<int, decltype(v)>::value == false, "");
7243 auto ac = c;
7244 auto av = v;
7245 auto sumi = ac + av + 'x';
7246 auto sumf = ac + av + 1.0;
7247 static_assert(is_same<int, decltype(ac)>::value == true, "");
7248 static_assert(is_same<int, decltype(av)>::value == true, "");
7249 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7250 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7251 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7252 return (sumf > 0.0) ? sumi : add(c, v);
7253 }
7254
7255 }
7256
7257 namespace test_noexcept
7258 {
7259
7260 int f() { return 0; }
7261 int g() noexcept { return 0; }
7262
7263 static_assert(noexcept(f()) == false, "");
7264 static_assert(noexcept(g()) == true, "");
7265
7266 }
7267
7268 namespace test_constexpr
7269 {
7270
7271 template < typename CharT >
7272 unsigned long constexpr
7273 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7274 {
7275 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7276 }
7277
7278 template < typename CharT >
7279 unsigned long constexpr
7280 strlen_c(const CharT *const s) noexcept
7281 {
7282 return strlen_c_r(s, 0UL);
7283 }
7284
7285 static_assert(strlen_c("") == 0UL, "");
7286 static_assert(strlen_c("1") == 1UL, "");
7287 static_assert(strlen_c("example") == 7UL, "");
7288 static_assert(strlen_c("another\0example") == 7UL, "");
7289
7290 }
7291
7292 namespace test_rvalue_references
7293 {
7294
7295 template < int N >
7296 struct answer
7297 {
7298 static constexpr int value = N;
7299 };
7300
7301 answer<1> f(int&) { return answer<1>(); }
7302 answer<2> f(const int&) { return answer<2>(); }
7303 answer<3> f(int&&) { return answer<3>(); }
7304
7305 void
7306 test()
7307 {
7308 int i = 0;
7309 const int c = 0;
7310 static_assert(decltype(f(i))::value == 1, "");
7311 static_assert(decltype(f(c))::value == 2, "");
7312 static_assert(decltype(f(0))::value == 3, "");
7313 }
7314
7315 }
7316
7317 namespace test_uniform_initialization
7318 {
7319
7320 struct test
7321 {
7322 static const int zero {};
7323 static const int one {1};
7324 };
7325
7326 static_assert(test::zero == 0, "");
7327 static_assert(test::one == 1, "");
7328
7329 }
7330
7331 namespace test_lambdas
7332 {
7333
7334 void
7335 test1()
7336 {
7337 auto lambda1 = [](){};
7338 auto lambda2 = lambda1;
7339 lambda1();
7340 lambda2();
7341 }
7342
7343 int
7344 test2()
7345 {
7346 auto a = [](int i, int j){ return i + j; }(1, 2);
7347 auto b = []() -> int { return '0'; }();
7348 auto c = [=](){ return a + b; }();
7349 auto d = [&](){ return c; }();
7350 auto e = [a, &b](int x) mutable {
7351 const auto identity = [](int y){ return y; };
7352 for (auto i = 0; i < a; ++i)
7353 a += b--;
7354 return x + identity(a + b);
7355 }(0);
7356 return a + b + c + d + e;
7357 }
7358
7359 int
7360 test3()
7361 {
7362 const auto nullary = [](){ return 0; };
7363 const auto unary = [](int x){ return x; };
7364 using nullary_t = decltype(nullary);
7365 using unary_t = decltype(unary);
7366 const auto higher1st = [](nullary_t f){ return f(); };
7367 const auto higher2nd = [unary](nullary_t f1){
7368 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7369 };
7370 return higher1st(nullary) + higher2nd(nullary)(unary);
7371 }
7372
7373 }
7374
7375 namespace test_variadic_templates
7376 {
7377
7378 template <int...>
7379 struct sum;
7380
7381 template <int N0, int... N1toN>
7382 struct sum<N0, N1toN...>
7383 {
7384 static constexpr auto value = N0 + sum<N1toN...>::value;
7385 };
7386
7387 template <>
7388 struct sum<>
7389 {
7390 static constexpr auto value = 0;
7391 };
7392
7393 static_assert(sum<>::value == 0, "");
7394 static_assert(sum<1>::value == 1, "");
7395 static_assert(sum<23>::value == 23, "");
7396 static_assert(sum<1, 2>::value == 3, "");
7397 static_assert(sum<5, 5, 11>::value == 21, "");
7398 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7399
7400 }
7401
7402 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7403 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7404 // because of this.
7405 namespace test_template_alias_sfinae
7406 {
7407
7408 struct foo {};
7409
7410 template<typename T>
7411 using member = typename T::member_type;
7412
7413 template<typename T>
7414 void func(...) {}
7415
7416 template<typename T>
7417 void func(member<T>*) {}
7418
7419 void test();
7420
7421 void test() { func<foo>(0); }
7422
7423 }
7424
7425 } // namespace cxx11
7426
7427 #endif // __cplusplus >= 201103L
7428
7429
7430
7431 _ACEOF
7432 if ac_fn_cxx_try_compile "$LINENO"; then :
7433 eval $cachevar=yes
7434 else
7435 eval $cachevar=no
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 CXX="$ac_save_CXX"
7439 fi
7440 eval ac_res=\$$cachevar
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7442 $as_echo "$ac_res" >&6; }
7443 if eval test x\$$cachevar = xyes; then
7444 CXX="$CXX $switch"
7445 if test -n "$CXXCPP" ; then
7446 CXXCPP="$CXXCPP $switch"
7447 fi
7448 ac_success=yes
7449 break
7450 fi
7451 done
7452 fi
7453
7454 if test x$ac_success = xno; then
7455 for alternative in ${ax_cxx_compile_alternatives}; do
7456 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7457 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7459 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7460 if eval \${$cachevar+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 ac_save_CXX="$CXX"
7464 CXX="$CXX $switch"
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467
7468
7469 // If the compiler admits that it is not ready for C++11, why torture it?
7470 // Hopefully, this will speed up the test.
7471
7472 #ifndef __cplusplus
7473
7474 #error "This is not a C++ compiler"
7475
7476 #elif __cplusplus < 201103L
7477
7478 #error "This is not a C++11 compiler"
7479
7480 #else
7481
7482 namespace cxx11
7483 {
7484
7485 namespace test_static_assert
7486 {
7487
7488 template <typename T>
7489 struct check
7490 {
7491 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7492 };
7493
7494 }
7495
7496 namespace test_final_override
7497 {
7498
7499 struct Base
7500 {
7501 virtual ~Base() {}
7502 virtual void f() {}
7503 };
7504
7505 struct Derived : public Base
7506 {
7507 virtual ~Derived() override {}
7508 virtual void f() override {}
7509 };
7510
7511 }
7512
7513 namespace test_double_right_angle_brackets
7514 {
7515
7516 template < typename T >
7517 struct check {};
7518
7519 typedef check<void> single_type;
7520 typedef check<check<void>> double_type;
7521 typedef check<check<check<void>>> triple_type;
7522 typedef check<check<check<check<void>>>> quadruple_type;
7523
7524 }
7525
7526 namespace test_decltype
7527 {
7528
7529 int
7530 f()
7531 {
7532 int a = 1;
7533 decltype(a) b = 2;
7534 return a + b;
7535 }
7536
7537 }
7538
7539 namespace test_type_deduction
7540 {
7541
7542 template < typename T1, typename T2 >
7543 struct is_same
7544 {
7545 static const bool value = false;
7546 };
7547
7548 template < typename T >
7549 struct is_same<T, T>
7550 {
7551 static const bool value = true;
7552 };
7553
7554 template < typename T1, typename T2 >
7555 auto
7556 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7557 {
7558 return a1 + a2;
7559 }
7560
7561 int
7562 test(const int c, volatile int v)
7563 {
7564 static_assert(is_same<int, decltype(0)>::value == true, "");
7565 static_assert(is_same<int, decltype(c)>::value == false, "");
7566 static_assert(is_same<int, decltype(v)>::value == false, "");
7567 auto ac = c;
7568 auto av = v;
7569 auto sumi = ac + av + 'x';
7570 auto sumf = ac + av + 1.0;
7571 static_assert(is_same<int, decltype(ac)>::value == true, "");
7572 static_assert(is_same<int, decltype(av)>::value == true, "");
7573 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7574 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7575 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7576 return (sumf > 0.0) ? sumi : add(c, v);
7577 }
7578
7579 }
7580
7581 namespace test_noexcept
7582 {
7583
7584 int f() { return 0; }
7585 int g() noexcept { return 0; }
7586
7587 static_assert(noexcept(f()) == false, "");
7588 static_assert(noexcept(g()) == true, "");
7589
7590 }
7591
7592 namespace test_constexpr
7593 {
7594
7595 template < typename CharT >
7596 unsigned long constexpr
7597 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7598 {
7599 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7600 }
7601
7602 template < typename CharT >
7603 unsigned long constexpr
7604 strlen_c(const CharT *const s) noexcept
7605 {
7606 return strlen_c_r(s, 0UL);
7607 }
7608
7609 static_assert(strlen_c("") == 0UL, "");
7610 static_assert(strlen_c("1") == 1UL, "");
7611 static_assert(strlen_c("example") == 7UL, "");
7612 static_assert(strlen_c("another\0example") == 7UL, "");
7613
7614 }
7615
7616 namespace test_rvalue_references
7617 {
7618
7619 template < int N >
7620 struct answer
7621 {
7622 static constexpr int value = N;
7623 };
7624
7625 answer<1> f(int&) { return answer<1>(); }
7626 answer<2> f(const int&) { return answer<2>(); }
7627 answer<3> f(int&&) { return answer<3>(); }
7628
7629 void
7630 test()
7631 {
7632 int i = 0;
7633 const int c = 0;
7634 static_assert(decltype(f(i))::value == 1, "");
7635 static_assert(decltype(f(c))::value == 2, "");
7636 static_assert(decltype(f(0))::value == 3, "");
7637 }
7638
7639 }
7640
7641 namespace test_uniform_initialization
7642 {
7643
7644 struct test
7645 {
7646 static const int zero {};
7647 static const int one {1};
7648 };
7649
7650 static_assert(test::zero == 0, "");
7651 static_assert(test::one == 1, "");
7652
7653 }
7654
7655 namespace test_lambdas
7656 {
7657
7658 void
7659 test1()
7660 {
7661 auto lambda1 = [](){};
7662 auto lambda2 = lambda1;
7663 lambda1();
7664 lambda2();
7665 }
7666
7667 int
7668 test2()
7669 {
7670 auto a = [](int i, int j){ return i + j; }(1, 2);
7671 auto b = []() -> int { return '0'; }();
7672 auto c = [=](){ return a + b; }();
7673 auto d = [&](){ return c; }();
7674 auto e = [a, &b](int x) mutable {
7675 const auto identity = [](int y){ return y; };
7676 for (auto i = 0; i < a; ++i)
7677 a += b--;
7678 return x + identity(a + b);
7679 }(0);
7680 return a + b + c + d + e;
7681 }
7682
7683 int
7684 test3()
7685 {
7686 const auto nullary = [](){ return 0; };
7687 const auto unary = [](int x){ return x; };
7688 using nullary_t = decltype(nullary);
7689 using unary_t = decltype(unary);
7690 const auto higher1st = [](nullary_t f){ return f(); };
7691 const auto higher2nd = [unary](nullary_t f1){
7692 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7693 };
7694 return higher1st(nullary) + higher2nd(nullary)(unary);
7695 }
7696
7697 }
7698
7699 namespace test_variadic_templates
7700 {
7701
7702 template <int...>
7703 struct sum;
7704
7705 template <int N0, int... N1toN>
7706 struct sum<N0, N1toN...>
7707 {
7708 static constexpr auto value = N0 + sum<N1toN...>::value;
7709 };
7710
7711 template <>
7712 struct sum<>
7713 {
7714 static constexpr auto value = 0;
7715 };
7716
7717 static_assert(sum<>::value == 0, "");
7718 static_assert(sum<1>::value == 1, "");
7719 static_assert(sum<23>::value == 23, "");
7720 static_assert(sum<1, 2>::value == 3, "");
7721 static_assert(sum<5, 5, 11>::value == 21, "");
7722 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7723
7724 }
7725
7726 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7727 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7728 // because of this.
7729 namespace test_template_alias_sfinae
7730 {
7731
7732 struct foo {};
7733
7734 template<typename T>
7735 using member = typename T::member_type;
7736
7737 template<typename T>
7738 void func(...) {}
7739
7740 template<typename T>
7741 void func(member<T>*) {}
7742
7743 void test();
7744
7745 void test() { func<foo>(0); }
7746
7747 }
7748
7749 } // namespace cxx11
7750
7751 #endif // __cplusplus >= 201103L
7752
7753
7754
7755 _ACEOF
7756 if ac_fn_cxx_try_compile "$LINENO"; then :
7757 eval $cachevar=yes
7758 else
7759 eval $cachevar=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 CXX="$ac_save_CXX"
7763 fi
7764 eval ac_res=\$$cachevar
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7766 $as_echo "$ac_res" >&6; }
7767 if eval test x\$$cachevar = xyes; then
7768 CXX="$CXX $switch"
7769 if test -n "$CXXCPP" ; then
7770 CXXCPP="$CXXCPP $switch"
7771 fi
7772 ac_success=yes
7773 break
7774 fi
7775 done
7776 if test x$ac_success = xyes; then
7777 break
7778 fi
7779 done
7780 fi
7781 CXX_FOR_BUILD="$CXX"
7782 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7783 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7784 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7785 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7786 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7787 ac_ext=c
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792
7793 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7794 if test x$ac_success = xno; then
7795 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7796 fi
7797 fi
7798 if test x$ac_success = xno; then
7799 HAVE_CXX11_FOR_BUILD=0
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7801 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7802 else
7803 HAVE_CXX11_FOR_BUILD=1
7804
7805 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7806
7807 fi
7808
7809
7810 fi
7811 fi
7812
7813 # Used for setting $lt_cv_objdir
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7815 $as_echo_n "checking for objdir... " >&6; }
7816 if ${lt_cv_objdir+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 rm -f .libs 2>/dev/null
7820 mkdir .libs 2>/dev/null
7821 if test -d .libs; then
7822 lt_cv_objdir=.libs
7823 else
7824 # MS-DOS does not allow filenames that begin with a dot.
7825 lt_cv_objdir=_libs
7826 fi
7827 rmdir .libs 2>/dev/null
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7830 $as_echo "$lt_cv_objdir" >&6; }
7831 objdir=$lt_cv_objdir
7832
7833
7834
7835
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define LT_OBJDIR "$lt_cv_objdir/"
7839 _ACEOF
7840
7841
7842
7843 # Check for GMP, MPFR and MPC
7844 gmplibs="-lmpc -lmpfr -lgmp"
7845 gmpinc=
7846 have_gmp=no
7847
7848 # Specify a location for mpc
7849 # check for this first so it ends up on the link line before mpfr.
7850
7851 # Check whether --with-mpc was given.
7852 if test "${with_mpc+set}" = set; then :
7853 withval=$with_mpc;
7854 fi
7855
7856
7857 # Check whether --with-mpc-include was given.
7858 if test "${with_mpc_include+set}" = set; then :
7859 withval=$with_mpc_include;
7860 fi
7861
7862
7863 # Check whether --with-mpc-lib was given.
7864 if test "${with_mpc_lib+set}" = set; then :
7865 withval=$with_mpc_lib;
7866 fi
7867
7868
7869 if test "x$with_mpc" != x; then
7870 gmplibs="-L$with_mpc/lib $gmplibs"
7871 gmpinc="-I$with_mpc/include $gmpinc"
7872 fi
7873 if test "x$with_mpc_include" != x; then
7874 gmpinc="-I$with_mpc_include $gmpinc"
7875 fi
7876 if test "x$with_mpc_lib" != x; then
7877 gmplibs="-L$with_mpc_lib $gmplibs"
7878 fi
7879 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7880 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7881 gmpinc='-I$$s/mpc/src '"$gmpinc"
7882 # Do not test the mpc version. Assume that it is sufficient, since
7883 # it is in the source tree, and the library has not been built yet
7884 # but it would be included on the link line in the version check below
7885 # hence making the test fail.
7886 have_gmp=yes
7887 fi
7888
7889 # Specify a location for mpfr
7890 # check for this first so it ends up on the link line before gmp.
7891
7892 # Check whether --with-mpfr-dir was given.
7893 if test "${with_mpfr_dir+set}" = set; then :
7894 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7895 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7896 fi
7897
7898
7899
7900 # Check whether --with-mpfr was given.
7901 if test "${with_mpfr+set}" = set; then :
7902 withval=$with_mpfr;
7903 fi
7904
7905
7906 # Check whether --with-mpfr-include was given.
7907 if test "${with_mpfr_include+set}" = set; then :
7908 withval=$with_mpfr_include;
7909 fi
7910
7911
7912 # Check whether --with-mpfr-lib was given.
7913 if test "${with_mpfr_lib+set}" = set; then :
7914 withval=$with_mpfr_lib;
7915 fi
7916
7917
7918 if test "x$with_mpfr" != x; then
7919 gmplibs="-L$with_mpfr/lib $gmplibs"
7920 gmpinc="-I$with_mpfr/include $gmpinc"
7921 fi
7922 if test "x$with_mpfr_include" != x; then
7923 gmpinc="-I$with_mpfr_include $gmpinc"
7924 fi
7925 if test "x$with_mpfr_lib" != x; then
7926 gmplibs="-L$with_mpfr_lib $gmplibs"
7927 fi
7928 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7929 # MPFR v3.1.0 moved the sources into a src sub-directory.
7930 if ! test -d ${srcdir}/mpfr/src; then
7931 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7932 fi
7933 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7934 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7935 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7936 # Do not test the mpfr version. Assume that it is sufficient, since
7937 # it is in the source tree, and the library has not been built yet
7938 # but it would be included on the link line in the version check below
7939 # hence making the test fail.
7940 have_gmp=yes
7941 fi
7942
7943 # Specify a location for gmp
7944
7945 # Check whether --with-gmp-dir was given.
7946 if test "${with_gmp_dir+set}" = set; then :
7947 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7948 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7949 fi
7950
7951
7952
7953 # Check whether --with-gmp was given.
7954 if test "${with_gmp+set}" = set; then :
7955 withval=$with_gmp;
7956 fi
7957
7958
7959 # Check whether --with-gmp-include was given.
7960 if test "${with_gmp_include+set}" = set; then :
7961 withval=$with_gmp_include;
7962 fi
7963
7964
7965 # Check whether --with-gmp-lib was given.
7966 if test "${with_gmp_lib+set}" = set; then :
7967 withval=$with_gmp_lib;
7968 fi
7969
7970
7971
7972 if test "x$with_gmp" != x; then
7973 gmplibs="-L$with_gmp/lib $gmplibs"
7974 gmpinc="-I$with_gmp/include $gmpinc"
7975 fi
7976 if test "x$with_gmp_include" != x; then
7977 gmpinc="-I$with_gmp_include $gmpinc"
7978 fi
7979 if test "x$with_gmp_lib" != x; then
7980 gmplibs="-L$with_gmp_lib $gmplibs"
7981 fi
7982 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7983 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7984 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7985 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7986 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7987 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7988 # Do not test the gmp version. Assume that it is sufficient, since
7989 # it is in the source tree, and the library has not been built yet
7990 # but it would be included on the link line in the version check below
7991 # hence making the test fail.
7992 have_gmp=yes
7993 fi
7994
7995 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7996 have_gmp=yes
7997 saved_CFLAGS="$CFLAGS"
7998 CFLAGS="$CFLAGS $gmpinc"
7999 # Check for the recommended and required versions of GMP.
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8001 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8002
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #include "gmp.h"
8006 int
8007 main ()
8008 {
8009
8010 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8011 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8012 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8013 choke me
8014 #endif
8015
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <gmp.h>
8024 int
8025 main ()
8026 {
8027
8028 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8029 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8030 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8031 choke me
8032 #endif
8033
8034 ;
8035 return 0;
8036 }
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8040 $as_echo "yes" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8043 $as_echo "buggy but acceptable" >&6; }
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }; have_gmp=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051
8052 # If we have GMP, check the MPFR version.
8053 if test x"$have_gmp" = xyes; then
8054 # Check for the recommended and required versions of MPFR.
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8056 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <gmp.h>
8060 #include <mpfr.h>
8061 int
8062 main ()
8063 {
8064
8065 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8066 choke me
8067 #endif
8068
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <gmp.h>
8077 #include <mpfr.h>
8078 int
8079 main ()
8080 {
8081
8082 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8083 choke me
8084 #endif
8085
8086 ;
8087 return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8095 $as_echo "buggy but acceptable" >&6; }
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }; have_gmp=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104
8105 # Check for the MPC header version.
8106 if test x"$have_gmp" = xyes ; then
8107 # Check for the recommended and required versions of MPC.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8109 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <mpc.h>
8113 int
8114 main ()
8115 {
8116
8117 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8118 choke me
8119 #endif
8120
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #include <mpc.h>
8129 int
8130 main ()
8131 {
8132
8133 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8134 choke me
8135 #endif
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143 $as_echo "yes" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8146 $as_echo "buggy but acceptable" >&6; }
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }; have_gmp=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155
8156 # Now check the MPFR library.
8157 if test x"$have_gmp" = xyes; then
8158 saved_LIBS="$LIBS"
8159 LIBS="$LIBS $gmplibs"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8161 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #include <mpc.h>
8165 int
8166 main ()
8167 {
8168
8169 mpfr_t n;
8170 mpfr_t x;
8171 mpc_t c;
8172 int t;
8173 mpfr_init (n);
8174 mpfr_init (x);
8175 mpfr_atan2 (n, n, x, MPFR_RNDN);
8176 mpfr_erfc (n, x, MPFR_RNDN);
8177 mpfr_subnormalize (x, t, MPFR_RNDN);
8178 mpfr_clear(n);
8179 mpfr_clear(x);
8180 mpc_init2 (c, 53);
8181 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8182 mpc_cosh (c, c, MPC_RNDNN);
8183 mpc_pow (c, c, c, MPC_RNDNN);
8184 mpc_acosh (c, c, MPC_RNDNN);
8185 mpc_clear (c);
8186
8187 ;
8188 return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }; have_gmp=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LIBS="$saved_LIBS"
8201 fi
8202
8203 CFLAGS="$saved_CFLAGS"
8204
8205 # The library versions listed in the error message below should match
8206 # the HARD-minimums enforced above.
8207 if test x$have_gmp != xyes; then
8208 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8209 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8210 their locations. Source code for these libraries can be found at
8211 their respective hosting sites as well as at
8212 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8213 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8214 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8215 make sure that you have installed both the libraries and the header
8216 files. They may be located in separate packages." "$LINENO" 5
8217 fi
8218 fi
8219
8220 # Flags needed for both GMP, MPFR and/or MPC.
8221
8222
8223
8224
8225
8226
8227
8228 # Libraries to use for stage1 or when not bootstrapping.
8229
8230 # Check whether --with-stage1-libs was given.
8231 if test "${with_stage1_libs+set}" = set; then :
8232 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8233 stage1_libs=
8234 else
8235 stage1_libs=$withval
8236 fi
8237 else
8238 stage1_libs=
8239 fi
8240
8241
8242
8243 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8244 # default is yes if gcc is being built; no otherwise. The reason for
8245 # this default is that gdb is sometimes linked against GNU Source
8246 # Highlight, which is a shared library that uses C++ exceptions. In
8247 # this case, -static-libstdc++ will cause crashes.
8248
8249 # Check whether --with-static-standard-libraries was given.
8250 if test "${with_static_standard_libraries+set}" = set; then :
8251 withval=$with_static_standard_libraries;
8252 else
8253 with_static_standard_libraries=auto
8254 fi
8255
8256 if test "$with_static_standard_libraries" = auto; then
8257 with_static_standard_libraries=$have_compiler
8258 fi
8259
8260 # Linker flags to use for stage1 or when not bootstrapping.
8261
8262 # Check whether --with-stage1-ldflags was given.
8263 if test "${with_stage1_ldflags+set}" = set; then :
8264 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8265 stage1_ldflags=
8266 else
8267 stage1_ldflags=$withval
8268 fi
8269 else
8270 stage1_ldflags=
8271 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8272 # if supported. But if the user explicitly specified the libraries to use,
8273 # trust that they are doing what they want.
8274 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8275 -a "$have_static_libs" = yes; then
8276 stage1_ldflags="-static-libstdc++ -static-libgcc"
8277 fi
8278 fi
8279
8280
8281
8282 # Libraries to use for stage2 and later builds.
8283
8284 # Check whether --with-boot-libs was given.
8285 if test "${with_boot_libs+set}" = set; then :
8286 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8287 poststage1_libs=
8288 else
8289 poststage1_libs=$withval
8290 fi
8291 else
8292 poststage1_libs=
8293 fi
8294
8295
8296
8297 # Linker flags to use for stage2 and later builds.
8298
8299 # Check whether --with-boot-ldflags was given.
8300 if test "${with_boot_ldflags+set}" = set; then :
8301 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8302 poststage1_ldflags=
8303 else
8304 poststage1_ldflags=$withval
8305 fi
8306 else
8307 poststage1_ldflags=
8308 # In stages 2 and 3, default to linking libstdc++ and libgcc
8309 # statically. But if the user explicitly specified the libraries to
8310 # use, trust that they are doing what they want.
8311 if test "$poststage1_libs" = ""; then
8312 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8313 fi
8314 fi
8315
8316
8317
8318 # GCC GRAPHITE dependency isl.
8319 # Basic setup is inlined here, actual checks are in config/isl.m4
8320
8321
8322 # Check whether --with-isl was given.
8323 if test "${with_isl+set}" = set; then :
8324 withval=$with_isl;
8325 fi
8326
8327
8328 # Treat --without-isl as a request to disable
8329 # GRAPHITE support and skip all following checks.
8330 if test "x$with_isl" != "xno"; then
8331 # Check for isl
8332
8333
8334 # Check whether --with-isl-include was given.
8335 if test "${with_isl_include+set}" = set; then :
8336 withval=$with_isl_include;
8337 fi
8338
8339
8340 # Check whether --with-isl-lib was given.
8341 if test "${with_isl_lib+set}" = set; then :
8342 withval=$with_isl_lib;
8343 fi
8344
8345
8346 # Check whether --enable-isl-version-check was given.
8347 if test "${enable_isl_version_check+set}" = set; then :
8348 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8349 else
8350 ENABLE_ISL_CHECK=yes
8351 fi
8352
8353
8354 # Initialize isllibs and islinc.
8355 case $with_isl in
8356 no)
8357 isllibs=
8358 islinc=
8359 ;;
8360 "" | yes)
8361 ;;
8362 *)
8363 isllibs="-L$with_isl/lib"
8364 islinc="-I$with_isl/include"
8365 ;;
8366 esac
8367 if test "x${with_isl_include}" != x ; then
8368 islinc="-I$with_isl_include"
8369 fi
8370 if test "x${with_isl_lib}" != x; then
8371 isllibs="-L$with_isl_lib"
8372 fi
8373 if test "x${islinc}" = x && test "x${isllibs}" = x \
8374 && test -d ${srcdir}/isl; then
8375 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8376 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8377 ENABLE_ISL_CHECK=no
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8379 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8380 fi
8381
8382 isllibs="${isllibs} -lisl"
8383
8384
8385
8386 if test "${ENABLE_ISL_CHECK}" = yes ; then
8387 _isl_saved_CFLAGS=$CFLAGS
8388 _isl_saved_LDFLAGS=$LDFLAGS
8389 _isl_saved_LIBS=$LIBS
8390
8391 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8392 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8393 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8396 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <isl/schedule.h>
8400 int
8401 main ()
8402 {
8403 isl_options_set_schedule_serialize_sccs (NULL, 0);
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 gcc_cv_isl=yes
8410 else
8411 gcc_cv_isl=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8416 $as_echo "$gcc_cv_isl" >&6; }
8417
8418 if test "${gcc_cv_isl}" = no ; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8420 $as_echo "required isl version is 0.15 or later" >&6; }
8421 fi
8422
8423 CFLAGS=$_isl_saved_CFLAGS
8424 LDFLAGS=$_isl_saved_LDFLAGS
8425 LIBS=$_isl_saved_LIBS
8426 fi
8427
8428
8429
8430
8431
8432
8433 if test "x${with_isl}" = xno; then
8434 graphite_requested=no
8435 elif test "x${with_isl}" != x \
8436 || test "x${with_isl_include}" != x \
8437 || test "x${with_isl_lib}" != x ; then
8438 graphite_requested=yes
8439 else
8440 graphite_requested=no
8441 fi
8442
8443
8444
8445 if test "${gcc_cv_isl}" = no ; then
8446 isllibs=
8447 islinc=
8448 fi
8449
8450 if test "${graphite_requested}" = yes \
8451 && test "x${isllibs}" = x \
8452 && test "x${islinc}" = x ; then
8453
8454 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8455 fi
8456
8457
8458 fi
8459
8460 # If the isl check failed, disable builds of in-tree variant of isl
8461 if test "x$with_isl" = xno ||
8462 test "x$gcc_cv_isl" = xno; then
8463 noconfigdirs="$noconfigdirs isl"
8464 islinc=
8465 fi
8466
8467
8468
8469
8470 # Check for LTO support.
8471 # Check whether --enable-lto was given.
8472 if test "${enable_lto+set}" = set; then :
8473 enableval=$enable_lto; enable_lto=$enableval
8474 else
8475 enable_lto=yes; default_enable_lto=yes
8476 fi
8477
8478
8479
8480
8481
8482 target_elf=no
8483 case $target in
8484 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8485 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8486 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8487 nvptx-*-none)
8488 target_elf=no
8489 ;;
8490 *)
8491 target_elf=yes
8492 ;;
8493 esac
8494
8495 if test $target_elf = yes; then :
8496 # ELF platforms build the lto-plugin always.
8497 build_lto_plugin=yes
8498
8499 else
8500 if test x"$default_enable_lto" = x"yes" ; then
8501 case $target in
8502 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8503 # On other non-ELF platforms, LTO has yet to be validated.
8504 *) enable_lto=no ;;
8505 esac
8506 else
8507 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8508 # It would also be nice to check the binutils support, but we don't
8509 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8510 # warn during gcc/ subconfigure; unless you're bootstrapping with
8511 # -flto it won't be needed until after installation anyway.
8512 case $target in
8513 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8514 *) if test x"$enable_lto" = x"yes"; then
8515 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8516 fi
8517 ;;
8518 esac
8519 fi
8520 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8521 # Build it unless LTO was explicitly disabled.
8522 case $target in
8523 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8524 *) ;;
8525 esac
8526
8527 fi
8528
8529
8530 # Check whether --enable-linker-plugin-configure-flags was given.
8531 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8532 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8533 else
8534 extra_linker_plugin_configure_flags=
8535 fi
8536
8537
8538 # Check whether --enable-linker-plugin-flags was given.
8539 if test "${enable_linker_plugin_flags+set}" = set; then :
8540 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8541 else
8542 extra_linker_plugin_flags=
8543 fi
8544
8545
8546
8547 # Enable --enable-host-shared.
8548 # Checked early to determine whether jit is an 'all' language
8549 # Check whether --enable-host-shared was given.
8550 if test "${enable_host_shared+set}" = set; then :
8551 enableval=$enable_host_shared; host_shared=$enableval
8552 case $target in
8553 x86_64-*-darwin* | aarch64-*-darwin*)
8554 if test x$host_shared != xyes ; then
8555 # PIC is the default, and actually cannot be switched off.
8556 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8557 host_shared=yes
8558 fi ;;
8559 *) ;;
8560 esac
8561 else
8562 case $target in
8563 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8564 *) host_shared=no ;;
8565 esac
8566 fi
8567
8568
8569
8570 # By default, C and C++ are the only stage 1 languages.
8571 stage1_languages=,c,
8572
8573 # Target libraries that we bootstrap.
8574 bootstrap_target_libs=,target-libgcc,
8575
8576 # Figure out what language subdirectories are present.
8577 # Look if the user specified --enable-languages="..."; if not, use
8578 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8579 # go away some day.
8580 # NB: embedded tabs in this IF block -- do not untabify
8581 if test -d ${srcdir}/gcc; then
8582 if test x"${enable_languages+set}" != xset; then
8583 if test x"${LANGUAGES+set}" = xset; then
8584 enable_languages="${LANGUAGES}"
8585 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8586 else
8587 enable_languages=default
8588 fi
8589 else
8590 if test x"${enable_languages}" = x ||
8591 test x"${enable_languages}" = xyes;
8592 then
8593 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8594 exit 1
8595 fi
8596 fi
8597 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8598
8599 # 'f95' is the old name for the 'fortran' language. We issue a warning
8600 # and make the substitution.
8601 case ,${enable_languages}, in
8602 *,f95,*)
8603 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8604 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8605 ;;
8606 esac
8607
8608 # If bootstrapping, C++ must be enabled.
8609 case ",$enable_languages,:$enable_bootstrap" in
8610 *,c++,*:*) ;;
8611 *:yes)
8612 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8613 enable_languages="${enable_languages},c++"
8614 else
8615 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8616 fi
8617 ;;
8618 esac
8619
8620 # First scan to see if an enabled language requires some other language.
8621 # We assume that a given config-lang.in will list all the language
8622 # front ends it requires, even if some are required indirectly.
8623 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8624 case ${lang_frag} in
8625 ..) ;;
8626 # The odd quoting in the next line works around
8627 # an apparent bug in bash 1.12 on linux.
8628 ${srcdir}/gcc/[*]/config-lang.in) ;;
8629 *)
8630 # From the config-lang.in, get $language, $lang_requires, and
8631 # $lang_requires_boot_languages.
8632 language=
8633 lang_requires=
8634 lang_requires_boot_languages=
8635 # set srcdir during sourcing lang_frag to the gcc dir.
8636 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8637 # polutes this shell
8638 saved_srcdir=${srcdir}
8639 srcdir=${srcdir}/gcc . ${lang_frag}
8640 srcdir=${saved_srcdir}
8641 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8642 case ,${enable_languages}, in
8643 *,$other,*) ;;
8644 *,default,*) ;;
8645 *,all,*) ;;
8646 *,$language,*)
8647 echo " \`$other' language required by \`$language'; enabling" 1>&2
8648 enable_languages="${enable_languages},${other}"
8649 ;;
8650 esac
8651 done
8652 for other in ${lang_requires_boot_languages} ; do
8653 if test "$other" != "c"; then
8654 case ,${enable_stage1_languages}, in
8655 *,$other,*) ;;
8656 *,default,*) ;;
8657 *,all,*) ;;
8658 *)
8659 case ,${enable_languages}, in
8660 *,$language,*)
8661 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8662 enable_stage1_languages="$enable_stage1_languages,${other}"
8663 ;;
8664 esac
8665 ;;
8666 esac
8667 fi
8668 done
8669 ;;
8670 esac
8671 done
8672
8673 new_enable_languages=,c,
8674
8675 # If LTO is enabled, add the LTO front end.
8676 if test "$enable_lto" = "yes" ; then
8677 case ,${enable_languages}, in
8678 *,lto,*) ;;
8679 *) enable_languages="${enable_languages},lto" ;;
8680 esac
8681 if test "${build_lto_plugin}" = "yes" ; then
8682 configdirs="$configdirs lto-plugin"
8683 fi
8684 fi
8685
8686 # If we're building an offloading compiler, add the LTO front end.
8687 if test x"$enable_as_accelerator_for" != x ; then
8688 case ,${enable_languages}, in
8689 *,lto,*) ;;
8690 *) enable_languages="${enable_languages},lto" ;;
8691 esac
8692 fi
8693
8694 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8695 potential_languages=,c,
8696
8697 enabled_target_libs=
8698 disabled_target_libs=
8699
8700 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8701 case ${lang_frag} in
8702 ..) ;;
8703 # The odd quoting in the next line works around
8704 # an apparent bug in bash 1.12 on linux.
8705 ${srcdir}/gcc/[*]/config-lang.in) ;;
8706 *)
8707 # From the config-lang.in, get $language, $target_libs,
8708 # $lang_dirs, $boot_language, and $build_by_default
8709 language=
8710 target_libs=
8711 lang_dirs=
8712 subdir_requires=
8713 boot_language=no
8714 build_by_default=yes
8715 # set srcdir during sourcing. See above about save & restore
8716 saved_srcdir=${srcdir}
8717 srcdir=${srcdir}/gcc . ${lang_frag}
8718 srcdir=${saved_srcdir}
8719 if test x${language} = x; then
8720 echo "${lang_frag} doesn't set \$language." 1>&2
8721 exit 1
8722 fi
8723
8724 if test "$language" = "c++"; then
8725 boot_language=yes
8726 fi
8727
8728 add_this_lang=no
8729 # C is always enabled, so no need to add it again
8730 if test "$language" != "c"; then
8731 case ,${enable_languages}, in
8732 *,${language},*)
8733 # Language was explicitly selected; include it
8734 add_this_lang=yes
8735 ;;
8736 *,all,*)
8737 # All languages are enabled
8738 add_this_lang=all
8739 ;;
8740 *,default,*)
8741 # 'default' was selected, select it if it is a default language
8742 add_this_lang=${build_by_default}
8743 ;;
8744 esac
8745 fi
8746
8747 # Disable languages that need other directories if these aren't available.
8748 for i in $subdir_requires; do
8749 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8750 case ${add_this_lang} in
8751 yes)
8752 # Specifically requested language; tell them.
8753 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8754 ;;
8755 all)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8757 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8758 add_this_lang=unsupported
8759 ;;
8760 *)
8761 # Silently disable.
8762 add_this_lang=unsupported
8763 ;;
8764 esac
8765 done
8766
8767 # Disable Ada if no preexisting GNAT is available.
8768 case ${add_this_lang}:${language}:${have_gnat} in
8769 yes:ada:no)
8770 # Specifically requested language; tell them.
8771 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8772 ;;
8773 all:ada:no)
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8775 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8776 add_this_lang=unsupported
8777 ;;
8778 *:ada:no)
8779 # Silently disable.
8780 add_this_lang=unsupported
8781 ;;
8782 esac
8783
8784 # Disable D if no preexisting GDC is available.
8785 case ${add_this_lang}:${language}:${have_gdc} in
8786 yes:d:no)
8787 # Specifically requested language; tell them.
8788 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8789 ;;
8790 all:d:no)
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8792 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8793 add_this_lang=unsupported
8794 ;;
8795 *:d:no)
8796 # Silently disable.
8797 add_this_lang=unsupported
8798 ;;
8799 esac
8800
8801 # Disable jit if -enable-host-shared not specified
8802 # but not if building for Mingw. All code in Windows
8803 # is position independent code (PIC).
8804 case $target in
8805 *mingw*) ;;
8806 *)
8807 case ${add_this_lang}:${language}:${host_shared} in
8808 yes:jit:no)
8809 # PR jit/64780: explicitly specify --enable-host-shared
8810 as_fn_error $? "
8811 Enabling language \"jit\" requires --enable-host-shared.
8812
8813 --enable-host-shared typically slows the rest of the compiler down by
8814 a few %, so you must explicitly enable it.
8815
8816 If you want to build both the jit and the regular compiler, it is often
8817 best to do this via two separate configure/builds, in separate
8818 directories, to avoid imposing the performance cost of
8819 --enable-host-shared on the regular compiler." "$LINENO" 5
8820 ;;
8821 all:jit:no)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8823 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8824 add_this_lang=unsupported
8825 ;;
8826 *:jit:no)
8827 # Silently disable.
8828 add_this_lang=unsupported
8829 ;;
8830 esac
8831 ;;
8832 esac
8833
8834 # Disable a language that is unsupported by the target.
8835 case "${add_this_lang}: $unsupported_languages " in
8836 no:*) ;;
8837 unsupported:*) ;;
8838 *:*" $language "*)
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8840 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8841 add_this_lang=unsupported
8842 ;;
8843 esac
8844
8845 case $add_this_lang in
8846 unsupported)
8847 # Remove language-dependent dirs.
8848 disabled_target_libs="$disabled_target_libs $target_libs"
8849 noconfigdirs="$noconfigdirs $lang_dirs"
8850 ;;
8851 no)
8852 # Remove language-dependent dirs; still show language as supported.
8853 disabled_target_libs="$disabled_target_libs $target_libs"
8854 noconfigdirs="$noconfigdirs $lang_dirs"
8855 potential_languages="${potential_languages}${language},"
8856 ;;
8857 all|yes)
8858 new_enable_languages="${new_enable_languages}${language},"
8859 potential_languages="${potential_languages}${language},"
8860 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8861 enabled_target_libs="$enabled_target_libs $target_libs"
8862 case "${boot_language}:,$enable_stage1_languages," in
8863 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8864 # Add to (comma-separated) list of stage 1 languages.
8865 case ",$stage1_languages," in
8866 *,$language,* | ,yes, | ,all,) ;;
8867 *) stage1_languages="${stage1_languages}${language}," ;;
8868 esac
8869 # We need to bootstrap any supporting libraries.
8870 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8871 ;;
8872 esac
8873 ;;
8874 esac
8875 ;;
8876 esac
8877 done
8878
8879 # Add target libraries which are only needed for disabled languages
8880 # to noconfigdirs.
8881 if test -n "$disabled_target_libs"; then
8882 for dir in $disabled_target_libs; do
8883 case " $enabled_target_libs " in
8884 *" ${dir} "*) ;;
8885 *) noconfigdirs="$noconfigdirs $dir" ;;
8886 esac
8887 done
8888 fi
8889
8890 # Check whether --enable-stage1-languages was given.
8891 if test "${enable_stage1_languages+set}" = set; then :
8892 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8893 ,no,|,,)
8894 # Set it to something that will have no effect in the loop below
8895 enable_stage1_languages=c ;;
8896 ,yes,)
8897 enable_stage1_languages=`echo $new_enable_languages | \
8898 sed -e "s/^,//" -e "s/,$//" ` ;;
8899 *,all,*)
8900 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8901 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8902 esac
8903
8904 # Add "good" languages from enable_stage1_languages to stage1_languages,
8905 # while "bad" languages go in missing_languages. Leave no duplicates.
8906 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8907 case $potential_languages in
8908 *,$i,*)
8909 case $stage1_languages in
8910 *,$i,*) ;;
8911 *) stage1_languages="$stage1_languages$i," ;;
8912 esac ;;
8913 *)
8914 case $missing_languages in
8915 *,$i,*) ;;
8916 *) missing_languages="$missing_languages$i," ;;
8917 esac ;;
8918 esac
8919 done
8920 fi
8921
8922
8923 # Remove leading/trailing commas that were added for simplicity
8924 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8925 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8926 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8927 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8928
8929 if test "x$missing_languages" != x; then
8930 as_fn_error $? "
8931 The following requested languages could not be built: ${missing_languages}
8932 Supported languages are: ${potential_languages}" "$LINENO" 5
8933 fi
8934 if test "x$new_enable_languages" != "x$enable_languages"; then
8935 echo The following languages will be built: ${new_enable_languages}
8936 enable_languages="$new_enable_languages"
8937 fi
8938
8939
8940 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8941 fi
8942
8943 # Handle --disable-<component> generically.
8944 for dir in $configdirs $build_configdirs $target_configdirs ; do
8945 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8946 varname=`echo $dirname | sed -e s/+/_/g`
8947 if eval test x\${enable_${varname}} "=" xno ; then
8948 noconfigdirs="$noconfigdirs $dir"
8949 fi
8950 done
8951
8952 # Check for Boehm's garbage collector
8953 # Check whether --enable-objc-gc was given.
8954 if test "${enable_objc_gc+set}" = set; then :
8955 enableval=$enable_objc_gc;
8956 fi
8957
8958
8959 # Check whether --with-target-bdw-gc was given.
8960 if test "${with_target_bdw_gc+set}" = set; then :
8961 withval=$with_target_bdw_gc;
8962 fi
8963
8964
8965 # Check whether --with-target-bdw-gc-include was given.
8966 if test "${with_target_bdw_gc_include+set}" = set; then :
8967 withval=$with_target_bdw_gc_include;
8968 fi
8969
8970
8971 # Check whether --with-target-bdw-gc-lib was given.
8972 if test "${with_target_bdw_gc_lib+set}" = set; then :
8973 withval=$with_target_bdw_gc_lib;
8974 fi
8975
8976
8977 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8979 $as_echo_n "checking for bdw garbage collector... " >&6; }
8980 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8982 $as_echo "using bdw-gc in default locations" >&6; }
8983 else
8984 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8985 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8986 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8987 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8990 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8991 fi
8992 fi
8993 esac
8994
8995 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8996 case ,${enable_languages}, in
8997 *,c++,*)
8998 # Disable libitm, libsanitizer if we're not building libstdc++
8999 case "${noconfigdirs}" in
9000 *target-libstdc++-v3*)
9001 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9002 ;;
9003 *) ;;
9004 esac
9005 ;;
9006 *)
9007 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9008 ;;
9009 esac
9010
9011 # If gcc/ is not in the source tree then we'll not be building a
9012 # target compiler, assume in that case we don't want to build any
9013 # target libraries or tools.
9014 #
9015 # This was added primarily for the benefit for binutils-gdb who reuse
9016 # this configure script, but don't always have target tools available.
9017 if test ! -d ${srcdir}/gcc; then
9018 skipdirs="${skipdirs} ${target_configdirs}"
9019 fi
9020
9021 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9022 # $build_configdirs and $target_configdirs.
9023 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9024
9025 notsupp=""
9026 for dir in . $skipdirs $noconfigdirs ; do
9027 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9028 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9029 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9030 if test -r $srcdir/$dirname/configure ; then
9031 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9032 true
9033 else
9034 notsupp="$notsupp $dir"
9035 fi
9036 fi
9037 fi
9038 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9039 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9040 if test -r $srcdir/$dirname/configure ; then
9041 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9042 true
9043 else
9044 notsupp="$notsupp $dir"
9045 fi
9046 fi
9047 fi
9048 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9049 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9050 if test -r $srcdir/$dirname/configure ; then
9051 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9052 true
9053 else
9054 notsupp="$notsupp $dir"
9055 fi
9056 fi
9057 fi
9058 done
9059
9060 # Quietly strip out all directories which aren't configurable in this tree.
9061 # This relies on all configurable subdirectories being autoconfiscated, which
9062 # is now the case.
9063 build_configdirs_all="$build_configdirs"
9064 build_configdirs=
9065 for i in ${build_configdirs_all} ; do
9066 j=`echo $i | sed -e s/build-//g`
9067 if test -f ${srcdir}/$j/configure ; then
9068 build_configdirs="${build_configdirs} $i"
9069 fi
9070 done
9071
9072 configdirs_all="$configdirs"
9073 configdirs=
9074 for i in ${configdirs_all} ; do
9075 if test -f ${srcdir}/$i/configure ; then
9076 configdirs="${configdirs} $i"
9077 fi
9078 done
9079
9080 target_configdirs_all="$target_configdirs"
9081 target_configdirs=
9082 for i in ${target_configdirs_all} ; do
9083 j=`echo $i | sed -e s/target-//g`
9084 if test -f ${srcdir}/$j/configure ; then
9085 target_configdirs="${target_configdirs} $i"
9086 fi
9087 done
9088
9089 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9090 # so we have to add it after the preceding checks.
9091 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9092 then
9093 case " $configdirs " in
9094 *" libiberty "*)
9095 # If we can build libiberty, we can also build libiberty-linker-plugin.
9096 configdirs="$configdirs libiberty-linker-plugin"
9097 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9098 --with-libiberty=../libiberty-linker-plugin";;
9099 *)
9100 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9101 esac
9102 fi
9103
9104 # Sometimes we have special requirements for the host libiberty.
9105 extra_host_libiberty_configure_flags=
9106 extra_host_zlib_configure_flags=
9107 case " $configdirs " in
9108 *" lto-plugin "* | *" libcc1 "*)
9109 # When these are to be built as shared libraries, the same applies to
9110 # libiberty.
9111 extra_host_libiberty_configure_flags=--enable-shared
9112 ;;
9113 *" bfd "*)
9114 # When bfd is to be built as a shared library, the same applies to
9115 # zlib.
9116 if test "$enable_shared" = "yes"; then
9117 extra_host_zlib_configure_flags=--enable-host-shared
9118 fi
9119 ;;
9120 esac
9121
9122
9123
9124 # Produce a warning message for the subdirs we can't configure.
9125 # This isn't especially interesting in the Cygnus tree, but in the individual
9126 # FSF releases, it's important to let people know when their machine isn't
9127 # supported by the one or two programs in a package.
9128
9129 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9130 # If $appdirs is non-empty, at least one of those directories must still
9131 # be configured, or we error out. (E.g., if the gas release supports a
9132 # specified target in some subdirs but not the gas subdir, we shouldn't
9133 # pretend that all is well.)
9134 if test -n "$appdirs" ; then
9135 for dir in $appdirs ; do
9136 if test -r $dir/Makefile.in ; then
9137 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9138 appdirs=""
9139 break
9140 fi
9141 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9142 appdirs=""
9143 break
9144 fi
9145 fi
9146 done
9147 if test -n "$appdirs" ; then
9148 echo "*** This configuration is not supported by this package." 1>&2
9149 exit 1
9150 fi
9151 fi
9152 # Okay, some application will build, or we don't care to check. Still
9153 # notify of subdirs not getting built.
9154 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9155 echo " ${notsupp}" 1>&2
9156 echo " (Any other directories should still work fine.)" 1>&2
9157 fi
9158
9159 case "$host" in
9160 *msdosdjgpp*)
9161 enable_gdbtk=no ;;
9162 esac
9163
9164 # To find our prefix, in gcc_cv_tool_prefix.
9165
9166 # The user is always right.
9167 if test "${PATH_SEPARATOR+set}" != set; then
9168 echo "#! /bin/sh" >conf$$.sh
9169 echo "exit 0" >>conf$$.sh
9170 chmod +x conf$$.sh
9171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9172 PATH_SEPARATOR=';'
9173 else
9174 PATH_SEPARATOR=:
9175 fi
9176 rm -f conf$$.sh
9177 fi
9178
9179
9180 get_gcc_base_ver="cat"
9181
9182 # Check whether --with-gcc-major-version-only was given.
9183 if test "${with_gcc_major_version_only+set}" = set; then :
9184 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9185 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9186 fi
9187
9188 fi
9189
9190
9191
9192
9193
9194
9195 if test "x$exec_prefix" = xNONE; then
9196 if test "x$prefix" = xNONE; then
9197 gcc_cv_tool_prefix=$ac_default_prefix
9198 else
9199 gcc_cv_tool_prefix=$prefix
9200 fi
9201 else
9202 gcc_cv_tool_prefix=$exec_prefix
9203 fi
9204
9205 # If there is no compiler in the tree, use the PATH only. In any
9206 # case, if there is no compiler in the tree nobody should use
9207 # AS_FOR_TARGET and LD_FOR_TARGET.
9208 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9209 if test x$with_gcc_major_version_only = xyes ; then
9210 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9211 else
9212 gcc_version=`cat $srcdir/gcc/BASE-VER`
9213 fi
9214 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9220 else
9221 gcc_cv_tool_dirs=
9222 fi
9223
9224 if test x$build = x$target && test -n "$md_exec_prefix"; then
9225 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9226 fi
9227
9228
9229
9230 copy_dirs=
9231
9232
9233 # Check whether --with-build-sysroot was given.
9234 if test "${with_build_sysroot+set}" = set; then :
9235 withval=$with_build_sysroot; if test x"$withval" != x ; then
9236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9237 fi
9238 else
9239 SYSROOT_CFLAGS_FOR_TARGET=
9240 fi
9241
9242
9243
9244
9245 # Check whether --with-debug-prefix-map was given.
9246 if test "${with_debug_prefix_map+set}" = set; then :
9247 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9249 for debug_map in $withval; do
9250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9251 done
9252 fi
9253 else
9254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9255 fi
9256
9257
9258
9259 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9260 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9261 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9262 # We want to ensure that TARGET libraries (which we know are built with
9263 # gcc) are built with "-O2 -g", so include those options when setting
9264 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9265 if test "x$CFLAGS_FOR_TARGET" = x; then
9266 if test "x${is_cross_compiler}" = xyes; then
9267 CFLAGS_FOR_TARGET="-g -O2"
9268 else
9269 CFLAGS_FOR_TARGET=$CFLAGS
9270 case " $CFLAGS " in
9271 *" -O2 "*) ;;
9272 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9273 esac
9274 case " $CFLAGS " in
9275 *" -g "* | *" -g3 "*) ;;
9276 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9277 esac
9278 fi
9279 fi
9280
9281
9282 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9283 if test "x${is_cross_compiler}" = xyes; then
9284 CXXFLAGS_FOR_TARGET="-g -O2"
9285 else
9286 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9287 case " $CXXFLAGS " in
9288 *" -O2 "*) ;;
9289 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9290 esac
9291 case " $CXXFLAGS " in
9292 *" -g "* | *" -g3 "*) ;;
9293 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9294 esac
9295 fi
9296 fi
9297
9298
9299
9300
9301 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9302 # the named directory are copied to $(tooldir)/sys-include.
9303 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9304 if test x${is_cross_compiler} = xno ; then
9305 echo 1>&2 '***' --with-headers is only supported when cross compiling
9306 exit 1
9307 fi
9308 if test x"${with_headers}" != xyes ; then
9309 x=${gcc_cv_tool_prefix}
9310 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9311 fi
9312 fi
9313
9314 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9315 # the name directories are copied to $(tooldir)/lib. Multiple directories
9316 # are permitted.
9317 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9318 if test x${is_cross_compiler} = xno ; then
9319 echo 1>&2 '***' --with-libs is only supported when cross compiling
9320 exit 1
9321 fi
9322 if test x"${with_libs}" != xyes ; then
9323 # Copy the libraries in reverse order, so that files in the first named
9324 # library override files in subsequent libraries.
9325 x=${gcc_cv_tool_prefix}
9326 for l in ${with_libs}; do
9327 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9328 done
9329 fi
9330 fi
9331
9332 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9333 #
9334 # This is done by determining whether or not the appropriate directory
9335 # is available, and by checking whether or not specific configurations
9336 # have requested that this magic not happen.
9337 #
9338 # The command line options always override the explicit settings in
9339 # configure.ac, and the settings in configure.ac override this magic.
9340 #
9341 # If the default for a toolchain is to use GNU as and ld, and you don't
9342 # want to do that, then you should use the --without-gnu-as and
9343 # --without-gnu-ld options for the configure script. Similarly, if
9344 # the default is to use the included zlib and you don't want to do that,
9345 # you should use the --with-system-zlib option for the configure script.
9346
9347 if test x${use_gnu_as} = x &&
9348 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9349 with_gnu_as=yes
9350 extra_host_args="$extra_host_args --with-gnu-as"
9351 fi
9352
9353 if test x${use_gnu_ld} = x &&
9354 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9355 with_gnu_ld=yes
9356 extra_host_args="$extra_host_args --with-gnu-ld"
9357 fi
9358
9359 if test x${use_included_zlib} = x &&
9360 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9361 :
9362 else
9363 with_system_zlib=yes
9364 extra_host_args="$extra_host_args --with-system-zlib"
9365 fi
9366
9367 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9368 # can detect this case.
9369
9370 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9371 with_newlib=yes
9372 extra_host_args="$extra_host_args --with-newlib"
9373 fi
9374
9375 # Handle ${copy_dirs}
9376 set fnord ${copy_dirs}
9377 shift
9378 while test $# != 0 ; do
9379 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9380 :
9381 else
9382 echo Copying $1 to $2
9383
9384 # Use the install script to create the directory and all required
9385 # parent directories.
9386 if test -d $2 ; then
9387 :
9388 else
9389 echo >config.temp
9390 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9391 fi
9392
9393 # Copy the directory, assuming we have tar.
9394 # FIXME: Should we use B in the second tar? Not all systems support it.
9395 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9396
9397 # It is the responsibility of the user to correctly adjust all
9398 # symlinks. If somebody can figure out how to handle them correctly
9399 # here, feel free to add the code.
9400
9401 echo $1 > $2/COPIED
9402 fi
9403 shift; shift
9404 done
9405
9406 # Determine a target-dependent exec_prefix that the installed
9407 # gcc will search in. Keep this list sorted by triplet, with
9408 # the *-*-osname triplets last.
9409 md_exec_prefix=
9410 case "${target}" in
9411 i[34567]86-pc-msdosdjgpp*)
9412 md_exec_prefix=/dev/env/DJDIR/bin
9413 ;;
9414 *-*-hpux* | \
9415 *-*-nto-qnx* | \
9416 *-*-solaris2*)
9417 md_exec_prefix=/usr/ccs/bin
9418 ;;
9419 esac
9420
9421 extra_arflags_for_target=
9422 extra_nmflags_for_target=
9423 extra_ranlibflags_for_target=
9424 target_makefile_frag=/dev/null
9425 case "${target}" in
9426 spu-*-*)
9427 target_makefile_frag="config/mt-spu"
9428 ;;
9429 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9430 target_makefile_frag="config/mt-sde"
9431 ;;
9432 mipsisa*-*-elfoabi*)
9433 target_makefile_frag="config/mt-mips-elfoabi"
9434 ;;
9435 mips*-*-*linux* | mips*-*-gnu*)
9436 target_makefile_frag="config/mt-mips-gnu"
9437 ;;
9438 nios2-*-elf*)
9439 target_makefile_frag="config/mt-nios2-elf"
9440 ;;
9441 *-*-linux-android*)
9442 target_makefile_frag="config/mt-android"
9443 ;;
9444 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9445 target_makefile_frag="config/mt-gnu"
9446 ;;
9447 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9448 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9449 # commands to handle both 32-bit and 64-bit objects. These flags are
9450 # harmless if we're using GNU nm or ar.
9451 extra_arflags_for_target=" -X32_64"
9452 extra_nmflags_for_target=" -B -X32_64"
9453 ;;
9454 esac
9455
9456 alphaieee_frag=/dev/null
9457 case $target in
9458 alpha*-*-*)
9459 # This just makes sure to use the -mieee option to build target libs.
9460 # This should probably be set individually by each library.
9461 alphaieee_frag="config/mt-alphaieee"
9462 ;;
9463 esac
9464
9465 # If --enable-target-optspace always use -Os instead of -O2 to build
9466 # the target libraries, similarly if it is not specified, use -Os
9467 # on selected platforms.
9468 ospace_frag=/dev/null
9469 case "${enable_target_optspace}:${target}" in
9470 yes:*)
9471 ospace_frag="config/mt-ospace"
9472 ;;
9473 :d30v-*)
9474 ospace_frag="config/mt-d30v"
9475 ;;
9476 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9477 ospace_frag="config/mt-ospace"
9478 ;;
9479 no:* | :*)
9480 ;;
9481 *)
9482 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9483 ;;
9484 esac
9485
9486 # Some systems (e.g., one of the i386-aix systems the gas testers are
9487 # using) don't handle "\$" correctly, so don't use it here.
9488 tooldir='${exec_prefix}'/${target_noncanonical}
9489 build_tooldir=${tooldir}
9490
9491 # Create a .gdbinit file which runs the one in srcdir
9492 # and tells GDB to look there for source files.
9493
9494 if test -r ${srcdir}/.gdbinit ; then
9495 case ${srcdir} in
9496 .) ;;
9497 *) cat > ./.gdbinit <<EOF
9498 # ${NO_EDIT}
9499 dir ${srcdir}
9500 dir .
9501 source ${srcdir}/.gdbinit
9502 EOF
9503 ;;
9504 esac
9505 fi
9506
9507 # Make sure that the compiler is able to generate an executable. If it
9508 # can't, we are probably in trouble. We don't care whether we can run the
9509 # executable--we might be using a cross compiler--we only care whether it
9510 # can be created. At this point the main configure script has set CC.
9511 we_are_ok=no
9512 echo "int main () { return 0; }" > conftest.c
9513 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9514 if test $? = 0 ; then
9515 if test -s conftest || test -s conftest.exe ; then
9516 we_are_ok=yes
9517 fi
9518 fi
9519 case $we_are_ok in
9520 no)
9521 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9522 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9523 rm -f conftest*
9524 exit 1
9525 ;;
9526 esac
9527 rm -f conftest*
9528
9529 # Decide which environment variable is used to find dynamic libraries.
9530 case "${host}" in
9531 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9532 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9533 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9534 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9535 esac
9536
9537 # On systems where the dynamic library environment variable is PATH,
9538 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9539 # built executables to PATH.
9540 if test "$RPATH_ENVVAR" = PATH; then
9541 GCC_SHLIB_SUBDIR=/shlib
9542 else
9543 GCC_SHLIB_SUBDIR=
9544 fi
9545
9546 # Adjust the toplevel makefile according to whether bootstrap was selected.
9547 case $enable_bootstrap in
9548 yes)
9549 bootstrap_suffix=bootstrap
9550 BUILD_CONFIG=bootstrap-debug
9551 ;;
9552 no)
9553 bootstrap_suffix=no-bootstrap
9554 BUILD_CONFIG=
9555 ;;
9556 esac
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9559 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9560
9561
9562 # Check whether --with-build-config was given.
9563 if test "${with_build_config+set}" = set; then :
9564 withval=$with_build_config; case $with_build_config in
9565 yes) with_build_config= ;;
9566 no) with_build_config= BUILD_CONFIG= ;;
9567 esac
9568 fi
9569
9570
9571 if test "x${with_build_config}" != x; then
9572 BUILD_CONFIG=$with_build_config
9573 else
9574 case $BUILD_CONFIG in
9575 bootstrap-debug)
9576 if echo "int f (void) { return 0; }" > conftest.c &&
9577 ${CC} -c conftest.c &&
9578 mv conftest.o conftest.o.g0 &&
9579 ${CC} -c -g conftest.c &&
9580 mv conftest.o conftest.o.g &&
9581 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9582 :
9583 else
9584 BUILD_CONFIG=
9585 fi
9586 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9587 ;;
9588 esac
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9591 $as_echo "$BUILD_CONFIG" >&6; }
9592
9593
9594 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9596 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9597 # Check whether --enable-vtable-verify was given.
9598 if test "${enable_vtable_verify+set}" = set; then :
9599 enableval=$enable_vtable_verify; case "$enableval" in
9600 yes) enable_vtable_verify=yes ;;
9601 no) enable_vtable_verify=no ;;
9602 *) enable_vtable_verify=no;;
9603 esac
9604 else
9605 enable_vtable_verify=no
9606 fi
9607
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9609 $as_echo "$enable_vtable_verify" >&6; }
9610
9611 # Record target_configdirs and the configure arguments for target and
9612 # build configuration in Makefile.
9613 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9614 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9615 bootstrap_fixincludes=no
9616
9617 # If we are building libgomp, bootstrap it.
9618 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9619 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9620 fi
9621
9622 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9623 # or bootstrap-ubsan, bootstrap it.
9624 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9625 case "$BUILD_CONFIG" in
9626 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9627 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9628 bootstrap_fixincludes=yes
9629 ;;
9630 esac
9631 fi
9632
9633 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9634 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9635 test "$enable_vtable_verify" != no; then
9636 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9637 fi
9638
9639 # If we are building libatomic and the list of enabled languages includes the
9640 # D frontend, bootstrap it.
9641 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9642 case ,${enable_languages}, in
9643 *,d,*)
9644 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9645 ;;
9646 esac
9647 fi
9648
9649 # Determine whether gdb needs tk/tcl or not.
9650 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9651 # and in that case we want gdb to be built without tk. Ugh!
9652 # In fact I believe gdb is the *only* package directly dependent on tk,
9653 # so we should be able to put the 'maybe's in unconditionally and
9654 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9655 # 100% sure that that's safe though.
9656
9657 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9658 case "$enable_gdbtk" in
9659 no)
9660 GDB_TK="" ;;
9661 yes)
9662 GDB_TK="${gdb_tk}" ;;
9663 *)
9664 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9665 # distro. Eventually someone will fix this and move Insight, nee
9666 # gdbtk to a separate directory.
9667 if test -d ${srcdir}/gdb/gdbtk ; then
9668 GDB_TK="${gdb_tk}"
9669 else
9670 GDB_TK=""
9671 fi
9672 ;;
9673 esac
9674 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9675 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9676
9677 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9678 # else does, only include them if one of these is built. The Makefile
9679 # provides the ordering, so it's enough here to add to the list.
9680 case " ${configdirs} " in
9681 *\ gdb\ *)
9682 configdirs="${configdirs} gnulib gdbsupport"
9683 ;;
9684 *\ gdbserver\ *)
9685 configdirs="${configdirs} gnulib gdbsupport"
9686 ;;
9687 *\ sim\ *)
9688 configdirs="${configdirs} gnulib"
9689 ;;
9690 esac
9691
9692 # Strip out unwanted targets.
9693
9694 # While at that, we remove Makefiles if we were started for recursive
9695 # configuration, so that the top-level Makefile reconfigures them,
9696 # like we used to do when configure itself was recursive.
9697
9698 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9699 # but now we're fixing up the Makefile ourselves with the additional
9700 # commands passed to AC_CONFIG_FILES. Use separate variables
9701 # extrasub-{build,host,target} not because there is any reason to split
9702 # the substitutions up that way, but only to remain below the limit of
9703 # 99 commands in a script, for HP-UX sed.
9704
9705 # Do not nest @if/@endif or @unless/@endunless pairs, because
9706 # configure will not warn you at all.
9707
9708 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9709 yes:yes:*\ gold\ *:*,c++,*) ;;
9710 yes:yes:*\ gold\ *:*)
9711 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9712 ;;
9713 esac
9714
9715 extrasub_build=
9716 for module in ${build_configdirs} ; do
9717 if test -z "${no_recursion}" \
9718 && test -f ${build_subdir}/${module}/Makefile; then
9719 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9720 rm -f ${build_subdir}/${module}/Makefile
9721 fi
9722 extrasub_build="$extrasub_build
9723 /^@if build-$module\$/d
9724 /^@endif build-$module\$/d
9725 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9726 /^@if build-$module-$bootstrap_suffix\$/d
9727 /^@endif build-$module-$bootstrap_suffix\$/d
9728 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9729 done
9730 extrasub_host=
9731 for module in ${configdirs} ; do
9732 if test -z "${no_recursion}"; then
9733 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9734 if test -f ${file}; then
9735 echo 1>&2 "*** removing ${file} to force reconfigure"
9736 rm -f ${file}
9737 fi
9738 done
9739 fi
9740 case ${module},${bootstrap_fixincludes} in
9741 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9742 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9743 esac
9744 extrasub_host="$extrasub_host
9745 /^@if $module\$/d
9746 /^@endif $module\$/d
9747 /^@unless $module\$/,/^@endunless $module\$/d
9748 /^@if $module-$host_bootstrap_suffix\$/d
9749 /^@endif $module-$host_bootstrap_suffix\$/d
9750 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9751 done
9752 extrasub_target=
9753 for module in ${target_configdirs} ; do
9754 if test -z "${no_recursion}" \
9755 && test -f ${target_subdir}/${module}/Makefile; then
9756 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9757 rm -f ${target_subdir}/${module}/Makefile
9758 fi
9759
9760 # We only bootstrap target libraries listed in bootstrap_target_libs.
9761 case $bootstrap_target_libs in
9762 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9763 *) target_bootstrap_suffix=no-bootstrap ;;
9764 esac
9765
9766 extrasub_target="$extrasub_target
9767 /^@if target-$module\$/d
9768 /^@endif target-$module\$/d
9769 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9770 /^@if target-$module-$target_bootstrap_suffix\$/d
9771 /^@endif target-$module-$target_bootstrap_suffix\$/d
9772 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9773 done
9774
9775 # Do the final fixup along with target modules.
9776 extrasub_target="$extrasub_target
9777 /^@if /,/^@endif /d
9778 /^@unless /d
9779 /^@endunless /d"
9780
9781 # Create the serialization dependencies. This uses a temporary file.
9782
9783 # Check whether --enable-serial-configure was given.
9784 if test "${enable_serial_configure+set}" = set; then :
9785 enableval=$enable_serial_configure;
9786 fi
9787
9788
9789 case ${enable_serial_configure} in
9790 yes)
9791 enable_serial_build_configure=yes
9792 enable_serial_host_configure=yes
9793 enable_serial_target_configure=yes
9794 ;;
9795 esac
9796
9797 # These force 'configure's to be done one at a time, to avoid problems
9798 # with contention over a shared config.cache.
9799 rm -f serdep.tmp
9800 echo '# serdep.tmp' > serdep.tmp
9801 olditem=
9802 test "x${enable_serial_build_configure}" = xyes &&
9803 for item in ${build_configdirs} ; do
9804 case ${olditem} in
9805 "") ;;
9806 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9807 esac
9808 olditem=${item}
9809 done
9810 olditem=
9811 test "x${enable_serial_host_configure}" = xyes &&
9812 for item in ${configdirs} ; do
9813 case ${olditem} in
9814 "") ;;
9815 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9816 esac
9817 olditem=${item}
9818 done
9819 olditem=
9820 test "x${enable_serial_target_configure}" = xyes &&
9821 for item in ${target_configdirs} ; do
9822 case ${olditem} in
9823 "") ;;
9824 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9825 esac
9826 olditem=${item}
9827 done
9828 serialization_dependencies=serdep.tmp
9829
9830
9831 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9832 # target, nonopt, and variable assignments. These are the ones we
9833 # might not want to pass down to subconfigures. The exception being
9834 # --cache-file=/dev/null, which is used to turn off the use of cache
9835 # files altogether, and which should be passed on to subconfigures.
9836 # Also strip program-prefix, program-suffix, and program-transform-name,
9837 # so that we can pass down a consistent program-transform-name.
9838 baseargs=
9839 tbaseargs=
9840 keep_next=no
9841 skip_next=no
9842 eval "set -- $ac_configure_args"
9843 for ac_arg
9844 do
9845 if test X"$skip_next" = X"yes"; then
9846 skip_next=no
9847 continue
9848 fi
9849 if test X"$keep_next" = X"yes"; then
9850 case $ac_arg in
9851 *\'*)
9852 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9853 esac
9854 baseargs="$baseargs '$ac_arg'"
9855 tbaseargs="$tbaseargs '$ac_arg'"
9856 keep_next=no
9857 continue
9858 fi
9859
9860 # Handle separated arguments. Based on the logic generated by
9861 # autoconf 2.59.
9862 case $ac_arg in
9863 *=* | --config-cache | -C | -disable-* | --disable-* \
9864 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9865 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9866 | -with-* | --with-* | -without-* | --without-* | --x)
9867 separate_arg=no
9868 ;;
9869 -*)
9870 separate_arg=yes
9871 ;;
9872 *)
9873 separate_arg=no
9874 ;;
9875 esac
9876
9877 skip_targ=no
9878 case $ac_arg in
9879
9880 --with-* | --without-*)
9881 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9882
9883 case $libopt in
9884 *[-_]include)
9885 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9886 ;;
9887 *[-_]lib)
9888 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9889 ;;
9890 *)
9891 lib=$libopt
9892 ;;
9893 esac
9894
9895
9896 case $lib in
9897 mpc | mpfr | gmp | isl)
9898 # If we're processing --with-$lib, --with-$lib-include or
9899 # --with-$lib-lib, for one of the libs above, and target is
9900 # different from host, don't pass the current argument to any
9901 # target library's configure.
9902 if test x$is_cross_compiler = xyes; then
9903 skip_targ=yes
9904 fi
9905 ;;
9906 esac
9907 ;;
9908 esac
9909
9910 case "$ac_arg" in
9911 --cache-file=/dev/null | \
9912 -cache-file=/dev/null )
9913 # Handled here to avoid the test to skip args below.
9914 baseargs="$baseargs '$ac_arg'"
9915 tbaseargs="$tbaseargs '$ac_arg'"
9916 # Assert: $separate_arg should always be no.
9917 keep_next=$separate_arg
9918 ;;
9919 --no*)
9920 continue
9921 ;;
9922 --c* | \
9923 --sr* | \
9924 --ho* | \
9925 --bu* | \
9926 --t* | \
9927 --program-* | \
9928 -cache_file* | \
9929 -srcdir* | \
9930 -host* | \
9931 -build* | \
9932 -target* | \
9933 -program-prefix* | \
9934 -program-suffix* | \
9935 -program-transform-name* )
9936 skip_next=$separate_arg
9937 continue
9938 ;;
9939 -*)
9940 # An option. Add it.
9941 case $ac_arg in
9942 *\'*)
9943 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9944 esac
9945 baseargs="$baseargs '$ac_arg'"
9946 if test X"$skip_targ" = Xno; then
9947 tbaseargs="$tbaseargs '$ac_arg'"
9948 fi
9949 keep_next=$separate_arg
9950 ;;
9951 *)
9952 # Either a variable assignment, or a nonopt (triplet). Don't
9953 # pass it down; let the Makefile handle this.
9954 continue
9955 ;;
9956 esac
9957 done
9958 # Remove the initial space we just introduced and, as these will be
9959 # expanded by make, quote '$'.
9960 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9961
9962 # Add in --program-transform-name, after --program-prefix and
9963 # --program-suffix have been applied to it. Autoconf has already
9964 # doubled dollar signs and backslashes in program_transform_name; we want
9965 # the backslashes un-doubled, and then the entire thing wrapped in single
9966 # quotes, because this will be expanded first by make and then by the shell.
9967 # Also, because we want to override the logic in subdir configure scripts to
9968 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9969 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9970 ${program_transform_name}
9971 EOF_SED
9972 gcc_transform_name=`cat conftestsed.out`
9973 rm -f conftestsed.out
9974 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9975 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9976 if test "$silent" = yes; then
9977 baseargs="$baseargs --silent"
9978 tbaseargs="$tbaseargs --silent"
9979 fi
9980 baseargs="$baseargs --disable-option-checking"
9981 tbaseargs="$tbaseargs --disable-option-checking"
9982
9983 # Record and document user additions to sub configure arguments.
9984
9985
9986
9987
9988 # For the build-side libraries, we just need to pretend we're native,
9989 # and not use the same cache file. Multilibs are neither needed nor
9990 # desired. We can't even use the same cache file for all build-side
9991 # libraries, as they're compiled differently; some with C, some with
9992 # C++ or with different feature-enabling options.
9993 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9994
9995 # For host modules, accept cache file option, or specification as blank.
9996 case "${cache_file}" in
9997 "") # empty
9998 cache_file_option="" ;;
9999 /* | [A-Za-z]:[\\/]* ) # absolute path
10000 cache_file_option="--cache-file=${cache_file}" ;;
10001 *) # relative path
10002 cache_file_option="--cache-file=../${cache_file}" ;;
10003 esac
10004
10005 # Host dirs don't like to share a cache file either, horribly enough.
10006 # This seems to be due to autoconf 2.5x stupidity.
10007 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10008
10009 target_configargs="$target_configargs ${tbaseargs}"
10010
10011 # Passing a --with-cross-host argument lets the target libraries know
10012 # whether they are being built with a cross-compiler or being built
10013 # native. However, it would be better to use other mechanisms to make the
10014 # sorts of decisions they want to make on this basis. Please consider
10015 # this option to be deprecated. FIXME.
10016 if test x${is_cross_compiler} = xyes ; then
10017 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10018 fi
10019
10020 # Special user-friendly check for native x86_64-linux build, if
10021 # multilib is not explicitly enabled.
10022 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10023 x86_64-*linux*:yes:$build:$build:)
10024 # Make sure we have a development environment that handles 32-bit
10025 dev64=no
10026 echo "int main () { return 0; }" > conftest.c
10027 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10028 if test $? = 0 ; then
10029 if test -s conftest || test -s conftest.exe ; then
10030 dev64=yes
10031 fi
10032 fi
10033 rm -f conftest*
10034 if test x${dev64} != xyes ; then
10035 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
10036 fi
10037 ;;
10038 esac
10039
10040 # Default to --enable-multilib.
10041 if test x${enable_multilib} = x ; then
10042 target_configargs="--enable-multilib ${target_configargs}"
10043 fi
10044
10045 # Pass --with-newlib if appropriate. Note that target_configdirs has
10046 # changed from the earlier setting of with_newlib.
10047 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10048 target_configargs="--with-newlib ${target_configargs}"
10049 fi
10050
10051 # Different target subdirs use different values of certain variables
10052 # (notably CXX). Worse, multilibs use *lots* of different values.
10053 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10054 # it doesn't automatically accept command-line overrides of them.
10055 # This means it's not safe for target subdirs to share a cache file,
10056 # which is disgusting, but there you have it. Hopefully this can be
10057 # fixed in future. It's still worthwhile to use a cache file for each
10058 # directory. I think.
10059
10060 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10061 # We need to pass --target, as newer autoconf's requires consistency
10062 # for target_alias and gcc doesn't manage it consistently.
10063 target_configargs="--cache-file=./config.cache ${target_configargs}"
10064
10065 FLAGS_FOR_TARGET=
10066 case " $target_configdirs " in
10067 *" newlib "*)
10068 case " $target_configargs " in
10069 *" --with-newlib "*)
10070 case "$target" in
10071 *-cygwin*)
10072 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10073 ;;
10074 esac
10075
10076 # If we're not building GCC, don't discard standard headers.
10077 if test -d ${srcdir}/gcc; then
10078 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10079
10080 if test "${build}" != "${host}"; then
10081 # On Canadian crosses, CC_FOR_TARGET will have already been set
10082 # by `configure', so we won't have an opportunity to add -Bgcc/
10083 # to it. This is right: we don't want to search that directory
10084 # for binaries, but we want the header files in there, so add
10085 # them explicitly.
10086 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10087
10088 # Someone might think of using the pre-installed headers on
10089 # Canadian crosses, in case the installed compiler is not fully
10090 # compatible with the compiler being built. In this case, it
10091 # would be better to flag an error than risking having
10092 # incompatible object files being constructed. We can't
10093 # guarantee that an error will be flagged, but let's hope the
10094 # compiler will do it, when presented with incompatible header
10095 # files.
10096 fi
10097 fi
10098
10099 case "${target}-${is_cross_compiler}" in
10100 i[3456789]86-*-linux*-no)
10101 # Here host == target, so we don't need to build gcc,
10102 # so we don't want to discard standard headers.
10103 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10104 ;;
10105 *)
10106 # If we're building newlib, use its generic headers last, but search
10107 # for any libc-related directories first (so make it the last -B
10108 # switch).
10109 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10110
10111 # If we're building libgloss, find the startup file, simulator library
10112 # and linker script.
10113 case " $target_configdirs " in
10114 *" libgloss "*)
10115 # Look for startup file, simulator library and maybe linker script.
10116 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10117 # Look for libnosys.a in case the target needs it.
10118 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10119 # Most targets have the linker script in the source directory.
10120 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10121 ;;
10122 esac
10123 ;;
10124 esac
10125 ;;
10126 esac
10127 ;;
10128 esac
10129
10130 case "$target" in
10131 x86_64-*mingw* | *-w64-mingw*)
10132 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10133 # however, use a symlink named 'mingw' in ${prefix} .
10134 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10135 ;;
10136 *-mingw*)
10137 # MinGW can't be handled as Cygwin above since it does not use newlib.
10138 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'
10139 ;;
10140 esac
10141
10142 # Allow the user to override the flags for
10143 # our build compiler if desired.
10144 if test x"${build}" = x"${host}" ; then
10145 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10146 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10147 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10148 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10149 fi
10150
10151 # On Canadian crosses, we'll be searching the right directories for
10152 # the previously-installed cross compiler, so don't bother to add
10153 # flags for directories within the install tree of the compiler
10154 # being built; programs in there won't even run.
10155 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10156 # Search for pre-installed headers if nothing else fits.
10157 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10158 fi
10159
10160 if test "x${use_gnu_ld}" = x &&
10161 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10162 # Arrange for us to find uninstalled linker scripts.
10163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10164 fi
10165
10166 # Search for other target-specific linker scripts and such.
10167 case "${target}" in
10168 mep*)
10169 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10170 ;;
10171 esac
10172
10173 # Makefile fragments.
10174 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10175 do
10176 eval fragval=\$$frag
10177 if test $fragval != /dev/null; then
10178 eval $frag=${srcdir}/$fragval
10179 fi
10180 done
10181
10182
10183
10184
10185
10186 # Miscellanea: directories, flags, etc.
10187
10188
10189
10190
10191
10192
10193
10194
10195 # Build module lists & subconfigure args.
10196
10197
10198
10199 # Host module lists & subconfigure args.
10200
10201
10202
10203
10204 # Target module lists & subconfigure args.
10205
10206
10207
10208 # Build tools.
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229 # Generate default definitions for YACC, M4, LEX and other programs that run
10230 # on the build machine. These are used if the Makefile can't locate these
10231 # programs in objdir.
10232 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10233
10234 for ac_prog in 'bison -y' byacc yacc
10235 do
10236 # Extract the first word of "$ac_prog", so it can be a program name with args.
10237 set dummy $ac_prog; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if ${ac_cv_prog_YACC+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 if test -n "$YACC"; then
10244 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10248 do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_prog_YACC="$ac_prog"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257 done
10258 done
10259 IFS=$as_save_IFS
10260
10261 fi
10262 fi
10263 YACC=$ac_cv_prog_YACC
10264 if test -n "$YACC"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10266 $as_echo "$YACC" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10270 fi
10271
10272
10273 test -n "$YACC" && break
10274 done
10275 test -n "$YACC" || YACC="$MISSING bison -y"
10276
10277 case " $build_configdirs " in
10278 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10279 esac
10280
10281 for ac_prog in bison
10282 do
10283 # Extract the first word of "$ac_prog", so it can be a program name with args.
10284 set dummy $ac_prog; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_BISON+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 if test -n "$BISON"; then
10291 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_BISON="$ac_prog"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10303 fi
10304 done
10305 done
10306 IFS=$as_save_IFS
10307
10308 fi
10309 fi
10310 BISON=$ac_cv_prog_BISON
10311 if test -n "$BISON"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10313 $as_echo "$BISON" >&6; }
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318
10319
10320 test -n "$BISON" && break
10321 done
10322 test -n "$BISON" || BISON="$MISSING bison"
10323
10324 case " $build_configdirs " in
10325 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10326 esac
10327
10328 for ac_prog in gm4 gnum4 m4
10329 do
10330 # Extract the first word of "$ac_prog", so it can be a program name with args.
10331 set dummy $ac_prog; ac_word=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if ${ac_cv_prog_M4+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 if test -n "$M4"; then
10338 ac_cv_prog_M4="$M4" # Let the user override the test.
10339 else
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10342 do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_prog_M4="$ac_prog"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10350 fi
10351 done
10352 done
10353 IFS=$as_save_IFS
10354
10355 fi
10356 fi
10357 M4=$ac_cv_prog_M4
10358 if test -n "$M4"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10360 $as_echo "$M4" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10364 fi
10365
10366
10367 test -n "$M4" && break
10368 done
10369 test -n "$M4" || M4="$MISSING m4"
10370
10371 case " $build_configdirs " in
10372 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10373 esac
10374
10375 for ac_prog in flex lex
10376 do
10377 # Extract the first word of "$ac_prog", so it can be a program name with args.
10378 set dummy $ac_prog; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_LEX+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 if test -n "$LEX"; then
10385 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10389 do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_LEX="$ac_prog"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10397 fi
10398 done
10399 done
10400 IFS=$as_save_IFS
10401
10402 fi
10403 fi
10404 LEX=$ac_cv_prog_LEX
10405 if test -n "$LEX"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10407 $as_echo "$LEX" >&6; }
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413
10414 test -n "$LEX" && break
10415 done
10416 test -n "$LEX" || LEX="$MISSING flex"
10417
10418 case " $build_configdirs " in
10419 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10420 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10421 esac
10422
10423 for ac_prog in flex
10424 do
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_prog_FLEX+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test -n "$FLEX"; then
10433 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10437 do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_FLEX="$ac_prog"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446 done
10447 done
10448 IFS=$as_save_IFS
10449
10450 fi
10451 fi
10452 FLEX=$ac_cv_prog_FLEX
10453 if test -n "$FLEX"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10455 $as_echo "$FLEX" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 fi
10460
10461
10462 test -n "$FLEX" && break
10463 done
10464 test -n "$FLEX" || FLEX="$MISSING flex"
10465
10466 case " $build_configdirs " in
10467 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10468 esac
10469
10470 for ac_prog in makeinfo
10471 do
10472 # Extract the first word of "$ac_prog", so it can be a program name with args.
10473 set dummy $ac_prog; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_prog_MAKEINFO+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 if test -n "$MAKEINFO"; then
10480 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489 ac_cv_prog_MAKEINFO="$ac_prog"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10492 fi
10493 done
10494 done
10495 IFS=$as_save_IFS
10496
10497 fi
10498 fi
10499 MAKEINFO=$ac_cv_prog_MAKEINFO
10500 if test -n "$MAKEINFO"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10502 $as_echo "$MAKEINFO" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507
10508
10509 test -n "$MAKEINFO" && break
10510 done
10511 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10512
10513 case " $build_configdirs " in
10514 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10515 *)
10516
10517 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10518 # higher, else we use the "missing" dummy.
10519 if ${MAKEINFO} --version \
10520 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10521 :
10522 else
10523 MAKEINFO="$MISSING makeinfo"
10524 fi
10525 ;;
10526
10527 esac
10528
10529 # FIXME: expect and dejagnu may become build tools?
10530
10531 for ac_prog in expect
10532 do
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_EXPECT+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$EXPECT"; then
10541 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_EXPECT="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554 done
10555 done
10556 IFS=$as_save_IFS
10557
10558 fi
10559 fi
10560 EXPECT=$ac_cv_prog_EXPECT
10561 if test -n "$EXPECT"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10563 $as_echo "$EXPECT" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568
10569
10570 test -n "$EXPECT" && break
10571 done
10572 test -n "$EXPECT" || EXPECT="expect"
10573
10574 case " $configdirs " in
10575 *" expect "*)
10576 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10577 ;;
10578 esac
10579
10580 for ac_prog in runtest
10581 do
10582 # Extract the first word of "$ac_prog", so it can be a program name with args.
10583 set dummy $ac_prog; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_RUNTEST+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test -n "$RUNTEST"; then
10590 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_RUNTEST="$ac_prog"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603 done
10604 done
10605 IFS=$as_save_IFS
10606
10607 fi
10608 fi
10609 RUNTEST=$ac_cv_prog_RUNTEST
10610 if test -n "$RUNTEST"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10612 $as_echo "$RUNTEST" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618
10619 test -n "$RUNTEST" && break
10620 done
10621 test -n "$RUNTEST" || RUNTEST="runtest"
10622
10623 case " $configdirs " in
10624 *" dejagnu "*)
10625 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10626 ;;
10627 esac
10628
10629
10630 # Host tools.
10631 ncn_tool_prefix=
10632 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10633 ncn_target_tool_prefix=
10634 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10635
10636
10637
10638 if test -n "$AR"; then
10639 ac_cv_prog_AR=$AR
10640 elif test -n "$ac_cv_prog_AR"; then
10641 AR=$ac_cv_prog_AR
10642 fi
10643
10644 if test -n "$ac_cv_prog_AR"; then
10645 for ncn_progname in ar; do
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_progname}; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_prog_AR+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -n "$AR"; then
10654 ac_cv_prog_AR="$AR" # Let the user override the test.
10655 else
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10658 do
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10663 ac_cv_prog_AR="${ncn_progname}"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10666 fi
10667 done
10668 done
10669 IFS=$as_save_IFS
10670
10671 fi
10672 fi
10673 AR=$ac_cv_prog_AR
10674 if test -n "$AR"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10676 $as_echo "$AR" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10680 fi
10681
10682
10683 done
10684 fi
10685
10686 for ncn_progname in ar; do
10687 if test -n "$ncn_tool_prefix"; then
10688 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_prog_AR+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if test -n "$AR"; then
10696 ac_cv_prog_AR="$AR" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10708 fi
10709 done
10710 done
10711 IFS=$as_save_IFS
10712
10713 fi
10714 fi
10715 AR=$ac_cv_prog_AR
10716 if test -n "$AR"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10718 $as_echo "$AR" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10722 fi
10723
10724
10725 fi
10726 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if ${ac_cv_prog_AR+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test -n "$AR"; then
10735 ac_cv_prog_AR="$AR" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_prog_AR="${ncn_progname}"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10747 fi
10748 done
10749 done
10750 IFS=$as_save_IFS
10751
10752 fi
10753 fi
10754 AR=$ac_cv_prog_AR
10755 if test -n "$AR"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10757 $as_echo "$AR" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10761 fi
10762
10763
10764 fi
10765 test -n "$ac_cv_prog_AR" && break
10766 done
10767
10768 if test -z "$ac_cv_prog_AR" ; then
10769 set dummy ar
10770 if test $build = $host ; then
10771 AR="$2"
10772 else
10773 AR="${ncn_tool_prefix}$2"
10774 fi
10775 fi
10776
10777
10778
10779 if test -n "$AS"; then
10780 ac_cv_prog_AS=$AS
10781 elif test -n "$ac_cv_prog_AS"; then
10782 AS=$ac_cv_prog_AS
10783 fi
10784
10785 if test -n "$ac_cv_prog_AS"; then
10786 for ncn_progname in as; do
10787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10788 set dummy ${ncn_progname}; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_prog_AS+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test -n "$AS"; then
10795 ac_cv_prog_AS="$AS" # Let the user override the test.
10796 else
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10799 do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_AS="${ncn_progname}"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808 done
10809 done
10810 IFS=$as_save_IFS
10811
10812 fi
10813 fi
10814 AS=$ac_cv_prog_AS
10815 if test -n "$AS"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10817 $as_echo "$AS" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 fi
10822
10823
10824 done
10825 fi
10826
10827 for ncn_progname in as; do
10828 if test -n "$ncn_tool_prefix"; then
10829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10830 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if ${ac_cv_prog_AS+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 if test -n "$AS"; then
10837 ac_cv_prog_AS="$AS" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10841 do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850 done
10851 done
10852 IFS=$as_save_IFS
10853
10854 fi
10855 fi
10856 AS=$ac_cv_prog_AS
10857 if test -n "$AS"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10859 $as_echo "$AS" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864
10865
10866 fi
10867 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10869 set dummy ${ncn_progname}; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_prog_AS+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 if test -n "$AS"; then
10876 ac_cv_prog_AS="$AS" # Let the user override the test.
10877 else
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10880 do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_AS="${ncn_progname}"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889 done
10890 done
10891 IFS=$as_save_IFS
10892
10893 fi
10894 fi
10895 AS=$ac_cv_prog_AS
10896 if test -n "$AS"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10898 $as_echo "$AS" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903
10904
10905 fi
10906 test -n "$ac_cv_prog_AS" && break
10907 done
10908
10909 if test -z "$ac_cv_prog_AS" ; then
10910 set dummy as
10911 if test $build = $host ; then
10912 AS="$2"
10913 else
10914 AS="${ncn_tool_prefix}$2"
10915 fi
10916 fi
10917
10918
10919
10920 if test -n "$DLLTOOL"; then
10921 ac_cv_prog_DLLTOOL=$DLLTOOL
10922 elif test -n "$ac_cv_prog_DLLTOOL"; then
10923 DLLTOOL=$ac_cv_prog_DLLTOOL
10924 fi
10925
10926 if test -n "$ac_cv_prog_DLLTOOL"; then
10927 for ncn_progname in dlltool; do
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929 set dummy ${ncn_progname}; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_prog_DLLTOOL+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 if test -n "$DLLTOOL"; then
10936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10937 else
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10940 do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10945 ac_cv_prog_DLLTOOL="${ncn_progname}"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10948 fi
10949 done
10950 done
10951 IFS=$as_save_IFS
10952
10953 fi
10954 fi
10955 DLLTOOL=$ac_cv_prog_DLLTOOL
10956 if test -n "$DLLTOOL"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10958 $as_echo "$DLLTOOL" >&6; }
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962 fi
10963
10964
10965 done
10966 fi
10967
10968 for ncn_progname in dlltool; do
10969 if test -n "$ncn_tool_prefix"; then
10970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_prog_DLLTOOL+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 if test -n "$DLLTOOL"; then
10978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10979 else
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991 done
10992 done
10993 IFS=$as_save_IFS
10994
10995 fi
10996 fi
10997 DLLTOOL=$ac_cv_prog_DLLTOOL
10998 if test -n "$DLLTOOL"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11000 $as_echo "$DLLTOOL" >&6; }
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11004 fi
11005
11006
11007 fi
11008 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010 set dummy ${ncn_progname}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if ${ac_cv_prog_DLLTOOL+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 if test -n "$DLLTOOL"; then
11017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11018 else
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11021 do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_DLLTOOL="${ncn_progname}"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11029 fi
11030 done
11031 done
11032 IFS=$as_save_IFS
11033
11034 fi
11035 fi
11036 DLLTOOL=$ac_cv_prog_DLLTOOL
11037 if test -n "$DLLTOOL"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11039 $as_echo "$DLLTOOL" >&6; }
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11043 fi
11044
11045
11046 fi
11047 test -n "$ac_cv_prog_DLLTOOL" && break
11048 done
11049
11050 if test -z "$ac_cv_prog_DLLTOOL" ; then
11051 set dummy dlltool
11052 if test $build = $host ; then
11053 DLLTOOL="$2"
11054 else
11055 DLLTOOL="${ncn_tool_prefix}$2"
11056 fi
11057 fi
11058
11059
11060
11061 if test -n "$DSYMUTIL"; then
11062 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11063 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11065 fi
11066
11067 if test -n "$ac_cv_prog_DSYMUTIL"; then
11068 for ncn_progname in dsymutil; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_progname}; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 if test -n "$DSYMUTIL"; then
11077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11078 else
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090 done
11091 done
11092 IFS=$as_save_IFS
11093
11094 fi
11095 fi
11096 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11097 if test -n "$DSYMUTIL"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11099 $as_echo "$DSYMUTIL" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 fi
11104
11105
11106 done
11107 fi
11108
11109 for ncn_progname in dsymutil; do
11110 if test -n "$ncn_tool_prefix"; then
11111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11112 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 if test -n "$DSYMUTIL"; then
11119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11120 else
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11123 do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132 done
11133 done
11134 IFS=$as_save_IFS
11135
11136 fi
11137 fi
11138 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11139 if test -n "$DSYMUTIL"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11141 $as_echo "$DSYMUTIL" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11145 fi
11146
11147
11148 fi
11149 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151 set dummy ${ncn_progname}; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 if test -n "$DSYMUTIL"; then
11158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11159 else
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11162 do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171 done
11172 done
11173 IFS=$as_save_IFS
11174
11175 fi
11176 fi
11177 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11178 if test -n "$DSYMUTIL"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11180 $as_echo "$DSYMUTIL" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 fi
11185
11186
11187 fi
11188 test -n "$ac_cv_prog_DSYMUTIL" && break
11189 done
11190
11191 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11192 set dummy dsymutil
11193 if test $build = $host ; then
11194 DSYMUTIL="$2"
11195 else
11196 DSYMUTIL="${ncn_tool_prefix}$2"
11197 fi
11198 fi
11199
11200
11201
11202 if test -n "$LD"; then
11203 ac_cv_prog_LD=$LD
11204 elif test -n "$ac_cv_prog_LD"; then
11205 LD=$ac_cv_prog_LD
11206 fi
11207
11208 if test -n "$ac_cv_prog_LD"; then
11209 for ncn_progname in ld; do
11210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_progname}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_prog_LD+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 if test -n "$LD"; then
11218 ac_cv_prog_LD="$LD" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_LD="${ncn_progname}"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231 done
11232 done
11233 IFS=$as_save_IFS
11234
11235 fi
11236 fi
11237 LD=$ac_cv_prog_LD
11238 if test -n "$LD"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11240 $as_echo "$LD" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245
11246
11247 done
11248 fi
11249
11250 for ncn_progname in ld; do
11251 if test -n "$ncn_tool_prefix"; then
11252 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_LD+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if test -n "$LD"; then
11260 ac_cv_prog_LD="$LD" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11272 fi
11273 done
11274 done
11275 IFS=$as_save_IFS
11276
11277 fi
11278 fi
11279 LD=$ac_cv_prog_LD
11280 if test -n "$LD"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11282 $as_echo "$LD" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287
11288
11289 fi
11290 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292 set dummy ${ncn_progname}; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if ${ac_cv_prog_LD+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 if test -n "$LD"; then
11299 ac_cv_prog_LD="$LD" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11303 do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_LD="${ncn_progname}"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312 done
11313 done
11314 IFS=$as_save_IFS
11315
11316 fi
11317 fi
11318 LD=$ac_cv_prog_LD
11319 if test -n "$LD"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11321 $as_echo "$LD" >&6; }
11322 else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 $as_echo "no" >&6; }
11325 fi
11326
11327
11328 fi
11329 test -n "$ac_cv_prog_LD" && break
11330 done
11331
11332 if test -z "$ac_cv_prog_LD" ; then
11333 set dummy ld
11334 if test $build = $host ; then
11335 LD="$2"
11336 else
11337 LD="${ncn_tool_prefix}$2"
11338 fi
11339 fi
11340
11341
11342
11343 if test -n "$LIPO"; then
11344 ac_cv_prog_LIPO=$LIPO
11345 elif test -n "$ac_cv_prog_LIPO"; then
11346 LIPO=$ac_cv_prog_LIPO
11347 fi
11348
11349 if test -n "$ac_cv_prog_LIPO"; then
11350 for ncn_progname in lipo; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_prog_LIPO+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test -n "$LIPO"; then
11359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11363 do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368 ac_cv_prog_LIPO="${ncn_progname}"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11371 fi
11372 done
11373 done
11374 IFS=$as_save_IFS
11375
11376 fi
11377 fi
11378 LIPO=$ac_cv_prog_LIPO
11379 if test -n "$LIPO"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11381 $as_echo "$LIPO" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386
11387
11388 done
11389 fi
11390
11391 for ncn_progname in lipo; do
11392 if test -n "$ncn_tool_prefix"; then
11393 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_prog_LIPO+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$LIPO"; then
11401 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11405 do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11410 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11413 fi
11414 done
11415 done
11416 IFS=$as_save_IFS
11417
11418 fi
11419 fi
11420 LIPO=$ac_cv_prog_LIPO
11421 if test -n "$LIPO"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11423 $as_echo "$LIPO" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11427 fi
11428
11429
11430 fi
11431 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433 set dummy ${ncn_progname}; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_prog_LIPO+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 if test -n "$LIPO"; then
11440 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11441 else
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11444 do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449 ac_cv_prog_LIPO="${ncn_progname}"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11452 fi
11453 done
11454 done
11455 IFS=$as_save_IFS
11456
11457 fi
11458 fi
11459 LIPO=$ac_cv_prog_LIPO
11460 if test -n "$LIPO"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11462 $as_echo "$LIPO" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466 fi
11467
11468
11469 fi
11470 test -n "$ac_cv_prog_LIPO" && break
11471 done
11472
11473 if test -z "$ac_cv_prog_LIPO" ; then
11474 set dummy lipo
11475 if test $build = $host ; then
11476 LIPO="$2"
11477 else
11478 LIPO="${ncn_tool_prefix}$2"
11479 fi
11480 fi
11481
11482
11483
11484 if test -n "$NM"; then
11485 ac_cv_prog_NM=$NM
11486 elif test -n "$ac_cv_prog_NM"; then
11487 NM=$ac_cv_prog_NM
11488 fi
11489
11490 if test -n "$ac_cv_prog_NM"; then
11491 for ncn_progname in nm; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493 set dummy ${ncn_progname}; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if ${ac_cv_prog_NM+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 if test -n "$NM"; then
11500 ac_cv_prog_NM="$NM" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509 ac_cv_prog_NM="${ncn_progname}"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11512 fi
11513 done
11514 done
11515 IFS=$as_save_IFS
11516
11517 fi
11518 fi
11519 NM=$ac_cv_prog_NM
11520 if test -n "$NM"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11522 $as_echo "$NM" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527
11528
11529 done
11530 fi
11531
11532 for ncn_progname in nm; do
11533 if test -n "$ncn_tool_prefix"; then
11534 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11535 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 $as_echo_n "checking for $ac_word... " >&6; }
11538 if ${ac_cv_prog_NM+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test -n "$NM"; then
11542 ac_cv_prog_NM="$NM" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11546 do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11554 fi
11555 done
11556 done
11557 IFS=$as_save_IFS
11558
11559 fi
11560 fi
11561 NM=$ac_cv_prog_NM
11562 if test -n "$NM"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11564 $as_echo "$NM" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569
11570
11571 fi
11572 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574 set dummy ${ncn_progname}; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_prog_NM+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 if test -n "$NM"; then
11581 ac_cv_prog_NM="$NM" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_NM="${ncn_progname}"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 NM=$ac_cv_prog_NM
11601 if test -n "$NM"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11603 $as_echo "$NM" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608
11609
11610 fi
11611 test -n "$ac_cv_prog_NM" && break
11612 done
11613
11614 if test -z "$ac_cv_prog_NM" ; then
11615 set dummy nm
11616 if test $build = $host ; then
11617 NM="$2"
11618 else
11619 NM="${ncn_tool_prefix}$2"
11620 fi
11621 fi
11622
11623
11624
11625 if test -n "$RANLIB"; then
11626 ac_cv_prog_RANLIB=$RANLIB
11627 elif test -n "$ac_cv_prog_RANLIB"; then
11628 RANLIB=$ac_cv_prog_RANLIB
11629 fi
11630
11631 if test -n "$ac_cv_prog_RANLIB"; then
11632 for ncn_progname in ranlib; do
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634 set dummy ${ncn_progname}; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_prog_RANLIB+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 if test -n "$RANLIB"; then
11641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11642 else
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11645 do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_RANLIB="${ncn_progname}"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654 done
11655 done
11656 IFS=$as_save_IFS
11657
11658 fi
11659 fi
11660 RANLIB=$ac_cv_prog_RANLIB
11661 if test -n "$RANLIB"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11663 $as_echo "$RANLIB" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668
11669
11670 done
11671 fi
11672
11673 for ncn_progname in ranlib; do
11674 if test -n "$ncn_tool_prefix"; then
11675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_RANLIB+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$RANLIB"; then
11683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 RANLIB=$ac_cv_prog_RANLIB
11703 if test -n "$RANLIB"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11705 $as_echo "$RANLIB" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712 fi
11713 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715 set dummy ${ncn_progname}; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_prog_RANLIB+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 if test -n "$RANLIB"; then
11722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11723 else
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11726 do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_prog_RANLIB="${ncn_progname}"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11734 fi
11735 done
11736 done
11737 IFS=$as_save_IFS
11738
11739 fi
11740 fi
11741 RANLIB=$ac_cv_prog_RANLIB
11742 if test -n "$RANLIB"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11744 $as_echo "$RANLIB" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11748 fi
11749
11750
11751 fi
11752 test -n "$ac_cv_prog_RANLIB" && break
11753 done
11754
11755 if test -z "$ac_cv_prog_RANLIB" ; then
11756 RANLIB="true"
11757 fi
11758
11759
11760
11761 if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP=$STRIP
11763 elif test -n "$ac_cv_prog_STRIP"; then
11764 STRIP=$ac_cv_prog_STRIP
11765 fi
11766
11767 if test -n "$ac_cv_prog_STRIP"; then
11768 for ncn_progname in strip; do
11769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11770 set dummy ${ncn_progname}; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_prog_STRIP+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 if test -n "$STRIP"; then
11777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11778 else
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11781 do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_prog_STRIP="${ncn_progname}"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11789 fi
11790 done
11791 done
11792 IFS=$as_save_IFS
11793
11794 fi
11795 fi
11796 STRIP=$ac_cv_prog_STRIP
11797 if test -n "$STRIP"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11799 $as_echo "$STRIP" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 fi
11804
11805
11806 done
11807 fi
11808
11809 for ncn_progname in strip; do
11810 if test -n "$ncn_tool_prefix"; then
11811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11812 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if ${ac_cv_prog_STRIP+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test -n "$STRIP"; then
11819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11823 do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832 done
11833 done
11834 IFS=$as_save_IFS
11835
11836 fi
11837 fi
11838 STRIP=$ac_cv_prog_STRIP
11839 if test -n "$STRIP"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11841 $as_echo "$STRIP" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846
11847
11848 fi
11849 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11851 set dummy ${ncn_progname}; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if ${ac_cv_prog_STRIP+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 if test -n "$STRIP"; then
11858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11859 else
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11862 do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_STRIP="${ncn_progname}"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871 done
11872 done
11873 IFS=$as_save_IFS
11874
11875 fi
11876 fi
11877 STRIP=$ac_cv_prog_STRIP
11878 if test -n "$STRIP"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11880 $as_echo "$STRIP" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884 fi
11885
11886
11887 fi
11888 test -n "$ac_cv_prog_STRIP" && break
11889 done
11890
11891 if test -z "$ac_cv_prog_STRIP" ; then
11892 STRIP="true"
11893 fi
11894
11895
11896
11897 if test -n "$WINDRES"; then
11898 ac_cv_prog_WINDRES=$WINDRES
11899 elif test -n "$ac_cv_prog_WINDRES"; then
11900 WINDRES=$ac_cv_prog_WINDRES
11901 fi
11902
11903 if test -n "$ac_cv_prog_WINDRES"; then
11904 for ncn_progname in windres; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_prog_WINDRES+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$WINDRES"; then
11913 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_prog_WINDRES="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926 done
11927 done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 WINDRES=$ac_cv_prog_WINDRES
11933 if test -n "$WINDRES"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11935 $as_echo "$WINDRES" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942 done
11943 fi
11944
11945 for ncn_progname in windres; do
11946 if test -n "$ncn_tool_prefix"; then
11947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11948 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_WINDRES+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 if test -n "$WINDRES"; then
11955 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11956 else
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11959 do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11967 fi
11968 done
11969 done
11970 IFS=$as_save_IFS
11971
11972 fi
11973 fi
11974 WINDRES=$ac_cv_prog_WINDRES
11975 if test -n "$WINDRES"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11977 $as_echo "$WINDRES" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982
11983
11984 fi
11985 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11987 set dummy ${ncn_progname}; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if ${ac_cv_prog_WINDRES+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test -n "$WINDRES"; then
11994 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003 ac_cv_prog_WINDRES="${ncn_progname}"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12006 fi
12007 done
12008 done
12009 IFS=$as_save_IFS
12010
12011 fi
12012 fi
12013 WINDRES=$ac_cv_prog_WINDRES
12014 if test -n "$WINDRES"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12016 $as_echo "$WINDRES" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021
12022
12023 fi
12024 test -n "$ac_cv_prog_WINDRES" && break
12025 done
12026
12027 if test -z "$ac_cv_prog_WINDRES" ; then
12028 set dummy windres
12029 if test $build = $host ; then
12030 WINDRES="$2"
12031 else
12032 WINDRES="${ncn_tool_prefix}$2"
12033 fi
12034 fi
12035
12036
12037
12038 if test -n "$WINDMC"; then
12039 ac_cv_prog_WINDMC=$WINDMC
12040 elif test -n "$ac_cv_prog_WINDMC"; then
12041 WINDMC=$ac_cv_prog_WINDMC
12042 fi
12043
12044 if test -n "$ac_cv_prog_WINDMC"; then
12045 for ncn_progname in windmc; do
12046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047 set dummy ${ncn_progname}; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_prog_WINDMC+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test -n "$WINDMC"; then
12054 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12058 do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063 ac_cv_prog_WINDMC="${ncn_progname}"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12066 fi
12067 done
12068 done
12069 IFS=$as_save_IFS
12070
12071 fi
12072 fi
12073 WINDMC=$ac_cv_prog_WINDMC
12074 if test -n "$WINDMC"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12076 $as_echo "$WINDMC" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 fi
12081
12082
12083 done
12084 fi
12085
12086 for ncn_progname in windmc; do
12087 if test -n "$ncn_tool_prefix"; then
12088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_prog_WINDMC+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if test -n "$WINDMC"; then
12096 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12108 fi
12109 done
12110 done
12111 IFS=$as_save_IFS
12112
12113 fi
12114 fi
12115 WINDMC=$ac_cv_prog_WINDMC
12116 if test -n "$WINDMC"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12118 $as_echo "$WINDMC" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 fi
12123
12124
12125 fi
12126 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128 set dummy ${ncn_progname}; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_WINDMC+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$WINDMC"; then
12135 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_WINDMC="${ncn_progname}"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148 done
12149 done
12150 IFS=$as_save_IFS
12151
12152 fi
12153 fi
12154 WINDMC=$ac_cv_prog_WINDMC
12155 if test -n "$WINDMC"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12157 $as_echo "$WINDMC" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162
12163
12164 fi
12165 test -n "$ac_cv_prog_WINDMC" && break
12166 done
12167
12168 if test -z "$ac_cv_prog_WINDMC" ; then
12169 set dummy windmc
12170 if test $build = $host ; then
12171 WINDMC="$2"
12172 else
12173 WINDMC="${ncn_tool_prefix}$2"
12174 fi
12175 fi
12176
12177
12178
12179 if test -n "$OBJCOPY"; then
12180 ac_cv_prog_OBJCOPY=$OBJCOPY
12181 elif test -n "$ac_cv_prog_OBJCOPY"; then
12182 OBJCOPY=$ac_cv_prog_OBJCOPY
12183 fi
12184
12185 if test -n "$ac_cv_prog_OBJCOPY"; then
12186 for ncn_progname in objcopy; do
12187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12188 set dummy ${ncn_progname}; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_prog_OBJCOPY+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$OBJCOPY"; then
12195 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12199 do
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_OBJCOPY="${ncn_progname}"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12207 fi
12208 done
12209 done
12210 IFS=$as_save_IFS
12211
12212 fi
12213 fi
12214 OBJCOPY=$ac_cv_prog_OBJCOPY
12215 if test -n "$OBJCOPY"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12217 $as_echo "$OBJCOPY" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223
12224 done
12225 fi
12226
12227 for ncn_progname in objcopy; do
12228 if test -n "$ncn_tool_prefix"; then
12229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12230 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_OBJCOPY+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test -n "$OBJCOPY"; then
12237 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12249 fi
12250 done
12251 done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 OBJCOPY=$ac_cv_prog_OBJCOPY
12257 if test -n "$OBJCOPY"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12259 $as_echo "$OBJCOPY" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266 fi
12267 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12269 set dummy ${ncn_progname}; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_OBJCOPY+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 if test -n "$OBJCOPY"; then
12276 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12277 else
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12280 do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_OBJCOPY="${ncn_progname}"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289 done
12290 done
12291 IFS=$as_save_IFS
12292
12293 fi
12294 fi
12295 OBJCOPY=$ac_cv_prog_OBJCOPY
12296 if test -n "$OBJCOPY"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12298 $as_echo "$OBJCOPY" >&6; }
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12302 fi
12303
12304
12305 fi
12306 test -n "$ac_cv_prog_OBJCOPY" && break
12307 done
12308
12309 if test -z "$ac_cv_prog_OBJCOPY" ; then
12310 set dummy objcopy
12311 if test $build = $host ; then
12312 OBJCOPY="$2"
12313 else
12314 OBJCOPY="${ncn_tool_prefix}$2"
12315 fi
12316 fi
12317
12318
12319
12320 if test -n "$OBJDUMP"; then
12321 ac_cv_prog_OBJDUMP=$OBJDUMP
12322 elif test -n "$ac_cv_prog_OBJDUMP"; then
12323 OBJDUMP=$ac_cv_prog_OBJDUMP
12324 fi
12325
12326 if test -n "$ac_cv_prog_OBJDUMP"; then
12327 for ncn_progname in objdump; do
12328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12329 set dummy ${ncn_progname}; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if ${ac_cv_prog_OBJDUMP+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 if test -n "$OBJDUMP"; then
12336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12337 else
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12340 do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345 ac_cv_prog_OBJDUMP="${ncn_progname}"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347 break 2
12348 fi
12349 done
12350 done
12351 IFS=$as_save_IFS
12352
12353 fi
12354 fi
12355 OBJDUMP=$ac_cv_prog_OBJDUMP
12356 if test -n "$OBJDUMP"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12358 $as_echo "$OBJDUMP" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363
12364
12365 done
12366 fi
12367
12368 for ncn_progname in objdump; do
12369 if test -n "$ncn_tool_prefix"; then
12370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_prog_OBJDUMP+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test -n "$OBJDUMP"; then
12378 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12379 else
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12382 do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12387 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12390 fi
12391 done
12392 done
12393 IFS=$as_save_IFS
12394
12395 fi
12396 fi
12397 OBJDUMP=$ac_cv_prog_OBJDUMP
12398 if test -n "$OBJDUMP"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12400 $as_echo "$OBJDUMP" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 fi
12405
12406
12407 fi
12408 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410 set dummy ${ncn_progname}; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_prog_OBJDUMP+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$OBJDUMP"; then
12417 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12421 do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_prog_OBJDUMP="${ncn_progname}"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12429 fi
12430 done
12431 done
12432 IFS=$as_save_IFS
12433
12434 fi
12435 fi
12436 OBJDUMP=$ac_cv_prog_OBJDUMP
12437 if test -n "$OBJDUMP"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12439 $as_echo "$OBJDUMP" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444
12445
12446 fi
12447 test -n "$ac_cv_prog_OBJDUMP" && break
12448 done
12449
12450 if test -z "$ac_cv_prog_OBJDUMP" ; then
12451 set dummy objdump
12452 if test $build = $host ; then
12453 OBJDUMP="$2"
12454 else
12455 OBJDUMP="${ncn_tool_prefix}$2"
12456 fi
12457 fi
12458
12459
12460
12461 if test -n "$OTOOL"; then
12462 ac_cv_prog_OTOOL=$OTOOL
12463 elif test -n "$ac_cv_prog_OTOOL"; then
12464 OTOOL=$ac_cv_prog_OTOOL
12465 fi
12466
12467 if test -n "$ac_cv_prog_OTOOL"; then
12468 for ncn_progname in otool; do
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12470 set dummy ${ncn_progname}; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_prog_OTOOL+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 if test -n "$OTOOL"; then
12477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12481 do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_prog_OTOOL="${ncn_progname}"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12489 fi
12490 done
12491 done
12492 IFS=$as_save_IFS
12493
12494 fi
12495 fi
12496 OTOOL=$ac_cv_prog_OTOOL
12497 if test -n "$OTOOL"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12499 $as_echo "$OTOOL" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506 done
12507 fi
12508
12509 for ncn_progname in otool; do
12510 if test -n "$ncn_tool_prefix"; then
12511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_prog_OTOOL+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test -n "$OTOOL"; then
12519 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532 done
12533 done
12534 IFS=$as_save_IFS
12535
12536 fi
12537 fi
12538 OTOOL=$ac_cv_prog_OTOOL
12539 if test -n "$OTOOL"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12541 $as_echo "$OTOOL" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 fi
12549 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12551 set dummy ${ncn_progname}; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_prog_OTOOL+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 if test -n "$OTOOL"; then
12558 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12559 else
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12562 do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567 ac_cv_prog_OTOOL="${ncn_progname}"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571 done
12572 done
12573 IFS=$as_save_IFS
12574
12575 fi
12576 fi
12577 OTOOL=$ac_cv_prog_OTOOL
12578 if test -n "$OTOOL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12580 $as_echo "$OTOOL" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584 fi
12585
12586
12587 fi
12588 test -n "$ac_cv_prog_OTOOL" && break
12589 done
12590
12591 if test -z "$ac_cv_prog_OTOOL" ; then
12592 set dummy otool
12593 if test $build = $host ; then
12594 OTOOL="$2"
12595 else
12596 OTOOL="${ncn_tool_prefix}$2"
12597 fi
12598 fi
12599
12600
12601
12602 if test -n "$READELF"; then
12603 ac_cv_prog_READELF=$READELF
12604 elif test -n "$ac_cv_prog_READELF"; then
12605 READELF=$ac_cv_prog_READELF
12606 fi
12607
12608 if test -n "$ac_cv_prog_READELF"; then
12609 for ncn_progname in readelf; do
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611 set dummy ${ncn_progname}; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_prog_READELF+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 if test -n "$READELF"; then
12618 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12619 else
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12622 do
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12627 ac_cv_prog_READELF="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12630 fi
12631 done
12632 done
12633 IFS=$as_save_IFS
12634
12635 fi
12636 fi
12637 READELF=$ac_cv_prog_READELF
12638 if test -n "$READELF"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12640 $as_echo "$READELF" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645
12646
12647 done
12648 fi
12649
12650 for ncn_progname in readelf; do
12651 if test -n "$ncn_tool_prefix"; then
12652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_prog_READELF+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$READELF"; then
12660 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673 done
12674 done
12675 IFS=$as_save_IFS
12676
12677 fi
12678 fi
12679 READELF=$ac_cv_prog_READELF
12680 if test -n "$READELF"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12682 $as_echo "$READELF" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686 fi
12687
12688
12689 fi
12690 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12692 set dummy ${ncn_progname}; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_prog_READELF+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 if test -n "$READELF"; then
12699 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12700 else
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708 ac_cv_prog_READELF="${ncn_progname}"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12711 fi
12712 done
12713 done
12714 IFS=$as_save_IFS
12715
12716 fi
12717 fi
12718 READELF=$ac_cv_prog_READELF
12719 if test -n "$READELF"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12721 $as_echo "$READELF" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725 fi
12726
12727
12728 fi
12729 test -n "$ac_cv_prog_READELF" && break
12730 done
12731
12732 if test -z "$ac_cv_prog_READELF" ; then
12733 set dummy readelf
12734 if test $build = $host ; then
12735 READELF="$2"
12736 else
12737 READELF="${ncn_tool_prefix}$2"
12738 fi
12739 fi
12740
12741
12742
12743
12744
12745
12746
12747
12748 # Target tools.
12749
12750 # Check whether --with-build-time-tools was given.
12751 if test "${with_build_time_tools+set}" = set; then :
12752 withval=$with_build_time_tools; case x"$withval" in
12753 x/*) ;;
12754 *)
12755 with_build_time_tools=
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12757 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12758 ;;
12759 esac
12760 else
12761 with_build_time_tools=
12762 fi
12763
12764
12765
12766
12767 if test -n "$CC_FOR_TARGET"; then
12768 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12769 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12770 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12771 fi
12772
12773 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12774 for ncn_progname in cc gcc; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$CC_FOR_TARGET"; then
12783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 fi
12801 fi
12802 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12803 if test -n "$CC_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12805 $as_echo "$CC_FOR_TARGET" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811
12812 done
12813 fi
12814
12815 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in cc gcc; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828 done
12829 fi
12830
12831 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12832 for ncn_progname in cc gcc; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$CC_FOR_TARGET"; then
12842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855 done
12856 done
12857 IFS=$as_save_IFS
12858
12859 fi
12860 fi
12861 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12862 if test -n "$CC_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12864 $as_echo "$CC_FOR_TARGET" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871 fi
12872 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$CC_FOR_TARGET"; then
12881 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894 done
12895 done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12901 if test -n "$CC_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12903 $as_echo "$CC_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12912 done
12913 fi
12914
12915 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12916 set dummy cc gcc
12917 if test $build = $target ; then
12918 CC_FOR_TARGET="$2"
12919 else
12920 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921 fi
12922 else
12923 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12924 fi
12925
12926
12927
12928 if test -n "$CXX_FOR_TARGET"; then
12929 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12930 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12931 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12932 fi
12933
12934 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12935 for ncn_progname in c++ g++ cxx gxx; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937 set dummy ${ncn_progname}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 if test -n "$CXX_FOR_TARGET"; then
12944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12948 do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12956 fi
12957 done
12958 done
12959 IFS=$as_save_IFS
12960
12961 fi
12962 fi
12963 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12964 if test -n "$CXX_FOR_TARGET"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12966 $as_echo "$CXX_FOR_TARGET" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12970 fi
12971
12972
12973 done
12974 fi
12975
12976 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in c++ g++ cxx gxx; do
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12984 break
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12988 fi
12989 done
12990 fi
12991
12992 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12993 for ncn_progname in c++ g++ cxx gxx; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$CXX_FOR_TARGET"; then
13003 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016 done
13017 done
13018 IFS=$as_save_IFS
13019
13020 fi
13021 fi
13022 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13023 if test -n "$CXX_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13025 $as_echo "$CXX_FOR_TARGET" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13029 fi
13030
13031
13032 fi
13033 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035 set dummy ${ncn_progname}; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 if test -n "$CXX_FOR_TARGET"; then
13042 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13054 fi
13055 done
13056 done
13057 IFS=$as_save_IFS
13058
13059 fi
13060 fi
13061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13062 if test -n "$CXX_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13064 $as_echo "$CXX_FOR_TARGET" >&6; }
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070
13071 fi
13072 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13073 done
13074 fi
13075
13076 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13077 set dummy c++ g++ cxx gxx
13078 if test $build = $target ; then
13079 CXX_FOR_TARGET="$2"
13080 else
13081 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13082 fi
13083 else
13084 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13085 fi
13086
13087
13088
13089 if test -n "$GCC_FOR_TARGET"; then
13090 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13091 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13092 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13093 fi
13094
13095 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13096 for ncn_progname in gcc; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 set dummy ${ncn_progname}; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$GCC_FOR_TARGET"; then
13105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13109 do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13117 fi
13118 done
13119 done
13120 IFS=$as_save_IFS
13121
13122 fi
13123 fi
13124 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13125 if test -n "$GCC_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13127 $as_echo "$GCC_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 fi
13132
13133
13134 done
13135 fi
13136
13137 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 for ncn_progname in gcc; do
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145 break
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149 fi
13150 done
13151 fi
13152
13153 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13154 for ncn_progname in gcc; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 if test -n "$GCC_FOR_TARGET"; then
13164 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177 done
13178 done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13184 if test -n "$GCC_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13186 $as_echo "$GCC_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193 fi
13194 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$GCC_FOR_TARGET"; then
13203 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13223 if test -n "$GCC_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13225 $as_echo "$GCC_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230
13231
13232 fi
13233 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13234 done
13235 fi
13236
13237 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13238 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13239 else
13240 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13241 fi
13242
13243
13244
13245 if test -n "$GFORTRAN_FOR_TARGET"; then
13246 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13247 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13248 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13249 fi
13250
13251 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13252 for ncn_progname in gfortran; do
13253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13254 set dummy ${ncn_progname}; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 if test -n "$GFORTRAN_FOR_TARGET"; then
13261 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13270 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13273 fi
13274 done
13275 done
13276 IFS=$as_save_IFS
13277
13278 fi
13279 fi
13280 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13281 if test -n "$GFORTRAN_FOR_TARGET"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13283 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288
13289
13290 done
13291 fi
13292
13293 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13294 for ncn_progname in gfortran; do
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13296 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13297 if test -x $with_build_time_tools/${ncn_progname}; then
13298 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300 $as_echo "yes" >&6; }
13301 break
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306 done
13307 fi
13308
13309 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13310 for ncn_progname in gfortran; do
13311 if test -n "$ncn_target_tool_prefix"; then
13312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 $as_echo_n "checking for $ac_word... " >&6; }
13316 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 if test -n "$GFORTRAN_FOR_TARGET"; then
13320 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13324 do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333 done
13334 done
13335 IFS=$as_save_IFS
13336
13337 fi
13338 fi
13339 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13340 if test -n "$GFORTRAN_FOR_TARGET"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13342 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13343 else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13346 fi
13347
13348
13349 fi
13350 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13352 set dummy ${ncn_progname}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 if test -n "$GFORTRAN_FOR_TARGET"; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13360 else
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13363 do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13371 fi
13372 done
13373 done
13374 IFS=$as_save_IFS
13375
13376 fi
13377 fi
13378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13379 if test -n "$GFORTRAN_FOR_TARGET"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13381 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386
13387
13388 fi
13389 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13390 done
13391 fi
13392
13393 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13394 set dummy gfortran
13395 if test $build = $target ; then
13396 GFORTRAN_FOR_TARGET="$2"
13397 else
13398 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13399 fi
13400 else
13401 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13402 fi
13403
13404
13405
13406 if test -n "$GOC_FOR_TARGET"; then
13407 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13408 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13409 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13410 fi
13411
13412 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13413 for ncn_progname in gccgo; do
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13415 set dummy ${ncn_progname}; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 if test -n "$GOC_FOR_TARGET"; then
13422 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13423 else
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13426 do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435 done
13436 done
13437 IFS=$as_save_IFS
13438
13439 fi
13440 fi
13441 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13442 if test -n "$GOC_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13444 $as_echo "$GOC_FOR_TARGET" >&6; }
13445 else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13448 fi
13449
13450
13451 done
13452 fi
13453
13454 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13455 for ncn_progname in gccgo; do
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13457 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13458 if test -x $with_build_time_tools/${ncn_progname}; then
13459 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; }
13462 break
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467 done
13468 fi
13469
13470 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13471 for ncn_progname in gccgo; do
13472 if test -n "$ncn_target_tool_prefix"; then
13473 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13474 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 if test -n "$GOC_FOR_TARGET"; then
13481 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13485 do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13493 fi
13494 done
13495 done
13496 IFS=$as_save_IFS
13497
13498 fi
13499 fi
13500 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13501 if test -n "$GOC_FOR_TARGET"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13503 $as_echo "$GOC_FOR_TARGET" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508
13509
13510 fi
13511 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13513 set dummy ${ncn_progname}; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 if test -n "$GOC_FOR_TARGET"; then
13520 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13521 else
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13524 do
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13532 fi
13533 done
13534 done
13535 IFS=$as_save_IFS
13536
13537 fi
13538 fi
13539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13540 if test -n "$GOC_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13542 $as_echo "$GOC_FOR_TARGET" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547
13548
13549 fi
13550 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13551 done
13552 fi
13553
13554 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13555 set dummy gccgo
13556 if test $build = $target ; then
13557 GOC_FOR_TARGET="$2"
13558 else
13559 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13560 fi
13561 else
13562 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13563 fi
13564
13565
13566
13567 if test -n "$GDC_FOR_TARGET"; then
13568 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13569 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13570 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13571 fi
13572
13573 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13574 for ncn_progname in gdc; do
13575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13576 set dummy ${ncn_progname}; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 if test -n "$GDC_FOR_TARGET"; then
13583 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13587 do
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13595 fi
13596 done
13597 done
13598 IFS=$as_save_IFS
13599
13600 fi
13601 fi
13602 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13603 if test -n "$GDC_FOR_TARGET"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13605 $as_echo "$GDC_FOR_TARGET" >&6; }
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610
13611
13612 done
13613 fi
13614
13615 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13616 for ncn_progname in gdc; do
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13618 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13619 if test -x $with_build_time_tools/${ncn_progname}; then
13620 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13623 break
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628 done
13629 fi
13630
13631 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13632 for ncn_progname in gdc; do
13633 if test -n "$ncn_target_tool_prefix"; then
13634 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13635 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 if test -n "$GDC_FOR_TARGET"; then
13642 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13643 else
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13646 do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655 done
13656 done
13657 IFS=$as_save_IFS
13658
13659 fi
13660 fi
13661 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13662 if test -n "$GDC_FOR_TARGET"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13664 $as_echo "$GDC_FOR_TARGET" >&6; }
13665 else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13668 fi
13669
13670
13671 fi
13672 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13674 set dummy ${ncn_progname}; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 if test -n "$GDC_FOR_TARGET"; then
13681 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13682 else
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13685 do
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 break 2
13693 fi
13694 done
13695 done
13696 IFS=$as_save_IFS
13697
13698 fi
13699 fi
13700 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13701 if test -n "$GDC_FOR_TARGET"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13703 $as_echo "$GDC_FOR_TARGET" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708
13709
13710 fi
13711 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13712 done
13713 fi
13714
13715 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13716 set dummy gdc
13717 if test $build = $target ; then
13718 GDC_FOR_TARGET="$2"
13719 else
13720 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13721 fi
13722 else
13723 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13724 fi
13725
13726
13727
13728 cat > conftest.c << \EOF
13729 #ifdef __GNUC__
13730 gcc_yay;
13731 #endif
13732 EOF
13733 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13734 have_gcc_for_target=yes
13735 else
13736 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13737 have_gcc_for_target=no
13738 fi
13739 rm conftest.c
13740
13741
13742
13743
13744 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13745 if test -n "$with_build_time_tools"; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13747 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13748 if test -x $with_build_time_tools/ar; then
13749 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13750 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13752 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757 elif test $build != $host && test $have_gcc_for_target = yes; then
13758 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13759 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13760 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13761 fi
13762 fi
13763 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13764 # Extract the first word of "ar", so it can be a program name with args.
13765 set dummy ar; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 case $AR_FOR_TARGET in
13772 [\\/]* | ?:[\\/]*)
13773 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13774 ;;
13775 *)
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $gcc_cv_tool_dirs
13778 do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13786 fi
13787 done
13788 done
13789 IFS=$as_save_IFS
13790
13791 ;;
13792 esac
13793 fi
13794 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13795 if test -n "$AR_FOR_TARGET"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13797 $as_echo "$AR_FOR_TARGET" >&6; }
13798 else
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13801 fi
13802
13803
13804 fi
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13806
13807
13808 if test -n "$AR_FOR_TARGET"; then
13809 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13810 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13811 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13812 fi
13813
13814 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13815 for ncn_progname in ar; do
13816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13817 set dummy ${ncn_progname}; ac_word=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 $as_echo_n "checking for $ac_word... " >&6; }
13820 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 if test -n "$AR_FOR_TARGET"; then
13824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13825 else
13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827 for as_dir in $PATH
13828 do
13829 IFS=$as_save_IFS
13830 test -z "$as_dir" && as_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13833 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13835 break 2
13836 fi
13837 done
13838 done
13839 IFS=$as_save_IFS
13840
13841 fi
13842 fi
13843 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13844 if test -n "$AR_FOR_TARGET"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13846 $as_echo "$AR_FOR_TARGET" >&6; }
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851
13852
13853 done
13854 fi
13855
13856 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13857 for ncn_progname in ar; do
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13859 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13860 if test -x $with_build_time_tools/${ncn_progname}; then
13861 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13863 $as_echo "yes" >&6; }
13864 break
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869 done
13870 fi
13871
13872 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13873 for ncn_progname in ar; do
13874 if test -n "$ncn_target_tool_prefix"; then
13875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13876 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if test -n "$AR_FOR_TARGET"; then
13883 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 fi
13901 fi
13902 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13903 if test -n "$AR_FOR_TARGET"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13905 $as_echo "$AR_FOR_TARGET" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13909 fi
13910
13911
13912 fi
13913 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$AR_FOR_TARGET"; then
13922 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13934 fi
13935 done
13936 done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13942 if test -n "$AR_FOR_TARGET"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13944 $as_echo "$AR_FOR_TARGET" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949
13950
13951 fi
13952 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13953 done
13954 fi
13955
13956 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13957 set dummy ar
13958 if test $build = $target ; then
13959 AR_FOR_TARGET="$2"
13960 else
13961 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13962 fi
13963 else
13964 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13965 fi
13966
13967 else
13968 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13969 fi
13970
13971
13972
13973
13974 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13975 if test -n "$with_build_time_tools"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13977 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13978 if test -x $with_build_time_tools/as; then
13979 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13980 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13982 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13986 fi
13987 elif test $build != $host && test $have_gcc_for_target = yes; then
13988 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13989 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13990 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13991 fi
13992 fi
13993 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13994 # Extract the first word of "as", so it can be a program name with args.
13995 set dummy as; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 case $AS_FOR_TARGET in
14002 [\\/]* | ?:[\\/]*)
14003 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14004 ;;
14005 *)
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $gcc_cv_tool_dirs
14008 do
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14013 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14016 fi
14017 done
14018 done
14019 IFS=$as_save_IFS
14020
14021 ;;
14022 esac
14023 fi
14024 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14025 if test -n "$AS_FOR_TARGET"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14027 $as_echo "$AS_FOR_TARGET" >&6; }
14028 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14031 fi
14032
14033
14034 fi
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14036
14037
14038 if test -n "$AS_FOR_TARGET"; then
14039 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14040 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14041 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14042 fi
14043
14044 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14045 for ncn_progname in as; do
14046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14047 set dummy ${ncn_progname}; ac_word=$2
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049 $as_echo_n "checking for $ac_word... " >&6; }
14050 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 if test -n "$AS_FOR_TARGET"; then
14054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14055 else
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14058 do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067 done
14068 done
14069 IFS=$as_save_IFS
14070
14071 fi
14072 fi
14073 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14074 if test -n "$AS_FOR_TARGET"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14076 $as_echo "$AS_FOR_TARGET" >&6; }
14077 else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 fi
14081
14082
14083 done
14084 fi
14085
14086 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14087 for ncn_progname in as; do
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14089 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14090 if test -x $with_build_time_tools/${ncn_progname}; then
14091 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093 $as_echo "yes" >&6; }
14094 break
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097 $as_echo "no" >&6; }
14098 fi
14099 done
14100 fi
14101
14102 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14103 for ncn_progname in as; do
14104 if test -n "$ncn_target_tool_prefix"; then
14105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14106 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 if test -n "$AS_FOR_TARGET"; then
14113 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14125 fi
14126 done
14127 done
14128 IFS=$as_save_IFS
14129
14130 fi
14131 fi
14132 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14133 if test -n "$AS_FOR_TARGET"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14135 $as_echo "$AS_FOR_TARGET" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141
14142 fi
14143 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14145 set dummy ${ncn_progname}; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 if test -n "$AS_FOR_TARGET"; then
14152 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14153 else
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14156 do
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14164 fi
14165 done
14166 done
14167 IFS=$as_save_IFS
14168
14169 fi
14170 fi
14171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14172 if test -n "$AS_FOR_TARGET"; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14174 $as_echo "$AS_FOR_TARGET" >&6; }
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14178 fi
14179
14180
14181 fi
14182 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14183 done
14184 fi
14185
14186 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14187 set dummy as
14188 if test $build = $target ; then
14189 AS_FOR_TARGET="$2"
14190 else
14191 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14192 fi
14193 else
14194 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14195 fi
14196
14197 else
14198 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14199 fi
14200
14201
14202
14203
14204 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14205 if test -n "$with_build_time_tools"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14207 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14208 if test -x $with_build_time_tools/dlltool; then
14209 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14210 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14212 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14216 fi
14217 elif test $build != $host && test $have_gcc_for_target = yes; then
14218 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14219 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14220 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14221 fi
14222 fi
14223 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14224 # Extract the first word of "dlltool", so it can be a program name with args.
14225 set dummy dlltool; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 case $DLLTOOL_FOR_TARGET in
14232 [\\/]* | ?:[\\/]*)
14233 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14234 ;;
14235 *)
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $gcc_cv_tool_dirs
14238 do
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 for ac_exec_ext in '' $ac_executable_extensions; do
14242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14243 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14245 break 2
14246 fi
14247 done
14248 done
14249 IFS=$as_save_IFS
14250
14251 ;;
14252 esac
14253 fi
14254 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14255 if test -n "$DLLTOOL_FOR_TARGET"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14257 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14261 fi
14262
14263
14264 fi
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14266
14267
14268 if test -n "$DLLTOOL_FOR_TARGET"; then
14269 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14270 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14271 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14272 fi
14273
14274 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14275 for ncn_progname in dlltool; do
14276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14277 set dummy ${ncn_progname}; ac_word=$2
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279 $as_echo_n "checking for $ac_word... " >&6; }
14280 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 if test -n "$DLLTOOL_FOR_TARGET"; then
14284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14285 else
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14288 do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297 done
14298 done
14299 IFS=$as_save_IFS
14300
14301 fi
14302 fi
14303 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14304 if test -n "$DLLTOOL_FOR_TARGET"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311
14312
14313 done
14314 fi
14315
14316 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14317 for ncn_progname in dlltool; do
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14319 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14320 if test -x $with_build_time_tools/${ncn_progname}; then
14321 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323 $as_echo "yes" >&6; }
14324 break
14325 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14328 fi
14329 done
14330 fi
14331
14332 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14333 for ncn_progname in dlltool; do
14334 if test -n "$ncn_target_tool_prefix"; then
14335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14336 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 if test -n "$DLLTOOL_FOR_TARGET"; then
14343 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14347 do
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14352 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 break 2
14355 fi
14356 done
14357 done
14358 IFS=$as_save_IFS
14359
14360 fi
14361 fi
14362 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14363 if test -n "$DLLTOOL_FOR_TARGET"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14365 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369 fi
14370
14371
14372 fi
14373 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14375 set dummy ${ncn_progname}; ac_word=$2
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377 $as_echo_n "checking for $ac_word... " >&6; }
14378 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 if test -n "$DLLTOOL_FOR_TARGET"; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14383 else
14384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 for as_dir in $PATH
14386 do
14387 IFS=$as_save_IFS
14388 test -z "$as_dir" && as_dir=.
14389 for ac_exec_ext in '' $ac_executable_extensions; do
14390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14393 break 2
14394 fi
14395 done
14396 done
14397 IFS=$as_save_IFS
14398
14399 fi
14400 fi
14401 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14402 if test -n "$DLLTOOL_FOR_TARGET"; then
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14404 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14405 else
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14408 fi
14409
14410
14411 fi
14412 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14413 done
14414 fi
14415
14416 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14417 set dummy dlltool
14418 if test $build = $target ; then
14419 DLLTOOL_FOR_TARGET="$2"
14420 else
14421 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14422 fi
14423 else
14424 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14425 fi
14426
14427 else
14428 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14429 fi
14430
14431
14432
14433
14434 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14435 if test -n "$with_build_time_tools"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14437 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14438 if test -x $with_build_time_tools/dsymutil; then
14439 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14440 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14442 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14446 fi
14447 elif test $build != $host && test $have_gcc_for_target = yes; then
14448 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14449 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14450 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14451 fi
14452 fi
14453 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14454 # Extract the first word of "dsymutil", so it can be a program name with args.
14455 set dummy dsymutil; ac_word=$2
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457 $as_echo_n "checking for $ac_word... " >&6; }
14458 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 case $DSYMUTIL_FOR_TARGET in
14462 [\\/]* | ?:[\\/]*)
14463 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14464 ;;
14465 *)
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $gcc_cv_tool_dirs
14468 do
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14473 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14476 fi
14477 done
14478 done
14479 IFS=$as_save_IFS
14480
14481 ;;
14482 esac
14483 fi
14484 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14485 if test -n "$DSYMUTIL_FOR_TARGET"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14487 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 fi
14492
14493
14494 fi
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14496
14497
14498 if test -n "$DSYMUTIL_FOR_TARGET"; then
14499 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14500 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14501 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14502 fi
14503
14504 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14505 for ncn_progname in dsymutil; do
14506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14507 set dummy ${ncn_progname}; ac_word=$2
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509 $as_echo_n "checking for $ac_word... " >&6; }
14510 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 if test -n "$DSYMUTIL_FOR_TARGET"; then
14514 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14515 else
14516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14517 for as_dir in $PATH
14518 do
14519 IFS=$as_save_IFS
14520 test -z "$as_dir" && as_dir=.
14521 for ac_exec_ext in '' $ac_executable_extensions; do
14522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14523 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14525 break 2
14526 fi
14527 done
14528 done
14529 IFS=$as_save_IFS
14530
14531 fi
14532 fi
14533 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14534 if test -n "$DSYMUTIL_FOR_TARGET"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14536 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14537 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14540 fi
14541
14542
14543 done
14544 fi
14545
14546 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14547 for ncn_progname in dsymutil; do
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14549 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14550 if test -x $with_build_time_tools/${ncn_progname}; then
14551 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554 break
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 $as_echo "no" >&6; }
14558 fi
14559 done
14560 fi
14561
14562 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14563 for ncn_progname in dsymutil; do
14564 if test -n "$ncn_target_tool_prefix"; then
14565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14566 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568 $as_echo_n "checking for $ac_word... " >&6; }
14569 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 if test -n "$DSYMUTIL_FOR_TARGET"; then
14573 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14574 else
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14577 do
14578 IFS=$as_save_IFS
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14582 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 break 2
14585 fi
14586 done
14587 done
14588 IFS=$as_save_IFS
14589
14590 fi
14591 fi
14592 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14593 if test -n "$DSYMUTIL_FOR_TARGET"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14595 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600
14601
14602 fi
14603 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14605 set dummy ${ncn_progname}; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 if test -n "$DSYMUTIL_FOR_TARGET"; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14613 else
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14616 do
14617 IFS=$as_save_IFS
14618 test -z "$as_dir" && as_dir=.
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14623 break 2
14624 fi
14625 done
14626 done
14627 IFS=$as_save_IFS
14628
14629 fi
14630 fi
14631 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14632 if test -n "$DSYMUTIL_FOR_TARGET"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14634 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638 fi
14639
14640
14641 fi
14642 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14643 done
14644 fi
14645
14646 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14647 set dummy dsymutil
14648 if test $build = $target ; then
14649 DSYMUTIL_FOR_TARGET="$2"
14650 else
14651 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14652 fi
14653 else
14654 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14655 fi
14656
14657 else
14658 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14659 fi
14660
14661
14662
14663
14664 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14665 if test -n "$with_build_time_tools"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14667 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14668 if test -x $with_build_time_tools/ld; then
14669 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14670 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14672 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14673 else
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14676 fi
14677 elif test $build != $host && test $have_gcc_for_target = yes; then
14678 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14679 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14680 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14681 fi
14682 fi
14683 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14684 # Extract the first word of "ld", so it can be a program name with args.
14685 set dummy ld; ac_word=$2
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14687 $as_echo_n "checking for $ac_word... " >&6; }
14688 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 case $LD_FOR_TARGET in
14692 [\\/]* | ?:[\\/]*)
14693 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14694 ;;
14695 *)
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $gcc_cv_tool_dirs
14698 do
14699 IFS=$as_save_IFS
14700 test -z "$as_dir" && as_dir=.
14701 for ac_exec_ext in '' $ac_executable_extensions; do
14702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14705 break 2
14706 fi
14707 done
14708 done
14709 IFS=$as_save_IFS
14710
14711 ;;
14712 esac
14713 fi
14714 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14715 if test -n "$LD_FOR_TARGET"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14717 $as_echo "$LD_FOR_TARGET" >&6; }
14718 else
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14721 fi
14722
14723
14724 fi
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14726
14727
14728 if test -n "$LD_FOR_TARGET"; then
14729 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14730 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14731 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14732 fi
14733
14734 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14735 for ncn_progname in ld; do
14736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14737 set dummy ${ncn_progname}; ac_word=$2
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14739 $as_echo_n "checking for $ac_word... " >&6; }
14740 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 if test -n "$LD_FOR_TARGET"; then
14744 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14745 else
14746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14747 for as_dir in $PATH
14748 do
14749 IFS=$as_save_IFS
14750 test -z "$as_dir" && as_dir=.
14751 for ac_exec_ext in '' $ac_executable_extensions; do
14752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14753 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14755 break 2
14756 fi
14757 done
14758 done
14759 IFS=$as_save_IFS
14760
14761 fi
14762 fi
14763 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14764 if test -n "$LD_FOR_TARGET"; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14766 $as_echo "$LD_FOR_TARGET" >&6; }
14767 else
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14770 fi
14771
14772
14773 done
14774 fi
14775
14776 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14777 for ncn_progname in ld; do
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14779 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14780 if test -x $with_build_time_tools/${ncn_progname}; then
14781 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 $as_echo "yes" >&6; }
14784 break
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14788 fi
14789 done
14790 fi
14791
14792 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14793 for ncn_progname in ld; do
14794 if test -n "$ncn_target_tool_prefix"; then
14795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14796 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14798 $as_echo_n "checking for $ac_word... " >&6; }
14799 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 if test -n "$LD_FOR_TARGET"; then
14803 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14804 else
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14807 do
14808 IFS=$as_save_IFS
14809 test -z "$as_dir" && as_dir=.
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14814 break 2
14815 fi
14816 done
14817 done
14818 IFS=$as_save_IFS
14819
14820 fi
14821 fi
14822 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14823 if test -n "$LD_FOR_TARGET"; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14825 $as_echo "$LD_FOR_TARGET" >&6; }
14826 else
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 $as_echo "no" >&6; }
14829 fi
14830
14831
14832 fi
14833 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14835 set dummy ${ncn_progname}; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 if test -n "$LD_FOR_TARGET"; then
14842 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14843 else
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
14849 for ac_exec_ext in '' $ac_executable_extensions; do
14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853 break 2
14854 fi
14855 done
14856 done
14857 IFS=$as_save_IFS
14858
14859 fi
14860 fi
14861 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14862 if test -n "$LD_FOR_TARGET"; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14864 $as_echo "$LD_FOR_TARGET" >&6; }
14865 else
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867 $as_echo "no" >&6; }
14868 fi
14869
14870
14871 fi
14872 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14873 done
14874 fi
14875
14876 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14877 set dummy ld
14878 if test $build = $target ; then
14879 LD_FOR_TARGET="$2"
14880 else
14881 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14882 fi
14883 else
14884 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14885 fi
14886
14887 else
14888 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14889 fi
14890
14891
14892
14893
14894 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14895 if test -n "$with_build_time_tools"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14897 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14898 if test -x $with_build_time_tools/lipo; then
14899 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14900 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14902 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14903 else
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 $as_echo "no" >&6; }
14906 fi
14907 elif test $build != $host && test $have_gcc_for_target = yes; then
14908 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14909 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14910 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14911 fi
14912 fi
14913 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14914 # Extract the first word of "lipo", so it can be a program name with args.
14915 set dummy lipo; ac_word=$2
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14917 $as_echo_n "checking for $ac_word... " >&6; }
14918 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 case $LIPO_FOR_TARGET in
14922 [\\/]* | ?:[\\/]*)
14923 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14924 ;;
14925 *)
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $gcc_cv_tool_dirs
14928 do
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 break 2
14936 fi
14937 done
14938 done
14939 IFS=$as_save_IFS
14940
14941 ;;
14942 esac
14943 fi
14944 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14945 if test -n "$LIPO_FOR_TARGET"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14947 $as_echo "$LIPO_FOR_TARGET" >&6; }
14948 else
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14951 fi
14952
14953
14954 fi
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14956
14957
14958 if test -n "$LIPO_FOR_TARGET"; then
14959 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14960 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14961 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14962 fi
14963
14964 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14965 for ncn_progname in lipo; do
14966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14967 set dummy ${ncn_progname}; ac_word=$2
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14969 $as_echo_n "checking for $ac_word... " >&6; }
14970 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 if test -n "$LIPO_FOR_TARGET"; then
14974 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14975 else
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14978 do
14979 IFS=$as_save_IFS
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14985 break 2
14986 fi
14987 done
14988 done
14989 IFS=$as_save_IFS
14990
14991 fi
14992 fi
14993 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14994 if test -n "$LIPO_FOR_TARGET"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14996 $as_echo "$LIPO_FOR_TARGET" >&6; }
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15000 fi
15001
15002
15003 done
15004 fi
15005
15006 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15007 for ncn_progname in lipo; do
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15010 if test -x $with_build_time_tools/${ncn_progname}; then
15011 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15013 $as_echo "yes" >&6; }
15014 break
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15018 fi
15019 done
15020 fi
15021
15022 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15023 for ncn_progname in lipo; do
15024 if test -n "$ncn_target_tool_prefix"; then
15025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028 $as_echo_n "checking for $ac_word... " >&6; }
15029 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 if test -n "$LIPO_FOR_TARGET"; then
15033 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15034 else
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15037 do
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 break 2
15045 fi
15046 done
15047 done
15048 IFS=$as_save_IFS
15049
15050 fi
15051 fi
15052 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15053 if test -n "$LIPO_FOR_TARGET"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15055 $as_echo "$LIPO_FOR_TARGET" >&6; }
15056 else
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059 fi
15060
15061
15062 fi
15063 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15065 set dummy ${ncn_progname}; ac_word=$2
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 $as_echo_n "checking for $ac_word... " >&6; }
15068 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 if test -n "$LIPO_FOR_TARGET"; then
15072 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15073 else
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15076 do
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 break 2
15084 fi
15085 done
15086 done
15087 IFS=$as_save_IFS
15088
15089 fi
15090 fi
15091 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15092 if test -n "$LIPO_FOR_TARGET"; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15094 $as_echo "$LIPO_FOR_TARGET" >&6; }
15095 else
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15098 fi
15099
15100
15101 fi
15102 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15103 done
15104 fi
15105
15106 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15107 set dummy lipo
15108 if test $build = $target ; then
15109 LIPO_FOR_TARGET="$2"
15110 else
15111 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15112 fi
15113 else
15114 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15115 fi
15116
15117 else
15118 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15119 fi
15120
15121
15122
15123
15124 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15125 if test -n "$with_build_time_tools"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15127 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15128 if test -x $with_build_time_tools/nm; then
15129 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15130 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15132 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15133 else
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15136 fi
15137 elif test $build != $host && test $have_gcc_for_target = yes; then
15138 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15139 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15140 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15141 fi
15142 fi
15143 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15144 # Extract the first word of "nm", so it can be a program name with args.
15145 set dummy nm; ac_word=$2
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147 $as_echo_n "checking for $ac_word... " >&6; }
15148 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 case $NM_FOR_TARGET in
15152 [\\/]* | ?:[\\/]*)
15153 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15154 ;;
15155 *)
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $gcc_cv_tool_dirs
15158 do
15159 IFS=$as_save_IFS
15160 test -z "$as_dir" && as_dir=.
15161 for ac_exec_ext in '' $ac_executable_extensions; do
15162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15163 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15165 break 2
15166 fi
15167 done
15168 done
15169 IFS=$as_save_IFS
15170
15171 ;;
15172 esac
15173 fi
15174 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15175 if test -n "$NM_FOR_TARGET"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15177 $as_echo "$NM_FOR_TARGET" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15181 fi
15182
15183
15184 fi
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15186
15187
15188 if test -n "$NM_FOR_TARGET"; then
15189 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15190 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15191 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15192 fi
15193
15194 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15195 for ncn_progname in nm; do
15196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15197 set dummy ${ncn_progname}; ac_word=$2
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 $as_echo_n "checking for $ac_word... " >&6; }
15200 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 if test -n "$NM_FOR_TARGET"; then
15204 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15205 else
15206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207 for as_dir in $PATH
15208 do
15209 IFS=$as_save_IFS
15210 test -z "$as_dir" && as_dir=.
15211 for ac_exec_ext in '' $ac_executable_extensions; do
15212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15213 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15215 break 2
15216 fi
15217 done
15218 done
15219 IFS=$as_save_IFS
15220
15221 fi
15222 fi
15223 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15224 if test -n "$NM_FOR_TARGET"; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15226 $as_echo "$NM_FOR_TARGET" >&6; }
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229 $as_echo "no" >&6; }
15230 fi
15231
15232
15233 done
15234 fi
15235
15236 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15237 for ncn_progname in nm; do
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15239 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15240 if test -x $with_build_time_tools/${ncn_progname}; then
15241 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243 $as_echo "yes" >&6; }
15244 break
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15248 fi
15249 done
15250 fi
15251
15252 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15253 for ncn_progname in nm; do
15254 if test -n "$ncn_target_tool_prefix"; then
15255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258 $as_echo_n "checking for $ac_word... " >&6; }
15259 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15260 $as_echo_n "(cached) " >&6
15261 else
15262 if test -n "$NM_FOR_TARGET"; then
15263 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15264 else
15265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15266 for as_dir in $PATH
15267 do
15268 IFS=$as_save_IFS
15269 test -z "$as_dir" && as_dir=.
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15272 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15274 break 2
15275 fi
15276 done
15277 done
15278 IFS=$as_save_IFS
15279
15280 fi
15281 fi
15282 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15283 if test -n "$NM_FOR_TARGET"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15285 $as_echo "$NM_FOR_TARGET" >&6; }
15286 else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288 $as_echo "no" >&6; }
15289 fi
15290
15291
15292 fi
15293 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15295 set dummy ${ncn_progname}; ac_word=$2
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15297 $as_echo_n "checking for $ac_word... " >&6; }
15298 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15299 $as_echo_n "(cached) " >&6
15300 else
15301 if test -n "$NM_FOR_TARGET"; then
15302 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15303 else
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15306 do
15307 IFS=$as_save_IFS
15308 test -z "$as_dir" && as_dir=.
15309 for ac_exec_ext in '' $ac_executable_extensions; do
15310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15311 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15313 break 2
15314 fi
15315 done
15316 done
15317 IFS=$as_save_IFS
15318
15319 fi
15320 fi
15321 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15322 if test -n "$NM_FOR_TARGET"; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15324 $as_echo "$NM_FOR_TARGET" >&6; }
15325 else
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15328 fi
15329
15330
15331 fi
15332 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15333 done
15334 fi
15335
15336 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15337 set dummy nm
15338 if test $build = $target ; then
15339 NM_FOR_TARGET="$2"
15340 else
15341 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15342 fi
15343 else
15344 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15345 fi
15346
15347 else
15348 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15349 fi
15350
15351
15352
15353
15354 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15355 if test -n "$with_build_time_tools"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15357 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15358 if test -x $with_build_time_tools/objcopy; then
15359 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15360 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15362 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15366 fi
15367 elif test $build != $host && test $have_gcc_for_target = yes; then
15368 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15369 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15370 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15371 fi
15372 fi
15373 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15374 # Extract the first word of "objcopy", so it can be a program name with args.
15375 set dummy objcopy; ac_word=$2
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15377 $as_echo_n "checking for $ac_word... " >&6; }
15378 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15379 $as_echo_n "(cached) " >&6
15380 else
15381 case $OBJCOPY_FOR_TARGET in
15382 [\\/]* | ?:[\\/]*)
15383 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15384 ;;
15385 *)
15386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387 for as_dir in $gcc_cv_tool_dirs
15388 do
15389 IFS=$as_save_IFS
15390 test -z "$as_dir" && as_dir=.
15391 for ac_exec_ext in '' $ac_executable_extensions; do
15392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15393 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395 break 2
15396 fi
15397 done
15398 done
15399 IFS=$as_save_IFS
15400
15401 ;;
15402 esac
15403 fi
15404 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15405 if test -n "$OBJCOPY_FOR_TARGET"; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15407 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15408 else
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15411 fi
15412
15413
15414 fi
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15416
15417
15418 if test -n "$OBJCOPY_FOR_TARGET"; then
15419 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15420 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15421 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15422 fi
15423
15424 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15425 for ncn_progname in objcopy; do
15426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15427 set dummy ${ncn_progname}; ac_word=$2
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15429 $as_echo_n "checking for $ac_word... " >&6; }
15430 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 if test -n "$OBJCOPY_FOR_TARGET"; then
15434 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15435 else
15436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15438 do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 for ac_exec_ext in '' $ac_executable_extensions; do
15442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15443 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15445 break 2
15446 fi
15447 done
15448 done
15449 IFS=$as_save_IFS
15450
15451 fi
15452 fi
15453 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15454 if test -n "$OBJCOPY_FOR_TARGET"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15456 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15457 else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15460 fi
15461
15462
15463 done
15464 fi
15465
15466 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15467 for ncn_progname in objcopy; do
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15470 if test -x $with_build_time_tools/${ncn_progname}; then
15471 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473 $as_echo "yes" >&6; }
15474 break
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15478 fi
15479 done
15480 fi
15481
15482 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15483 for ncn_progname in objcopy; do
15484 if test -n "$ncn_target_tool_prefix"; then
15485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488 $as_echo_n "checking for $ac_word... " >&6; }
15489 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 if test -n "$OBJCOPY_FOR_TARGET"; then
15493 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15494 else
15495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15497 do
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 for ac_exec_ext in '' $ac_executable_extensions; do
15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15502 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 break 2
15505 fi
15506 done
15507 done
15508 IFS=$as_save_IFS
15509
15510 fi
15511 fi
15512 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15513 if test -n "$OBJCOPY_FOR_TARGET"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15515 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15516 else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15519 fi
15520
15521
15522 fi
15523 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15525 set dummy ${ncn_progname}; ac_word=$2
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527 $as_echo_n "checking for $ac_word... " >&6; }
15528 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 if test -n "$OBJCOPY_FOR_TARGET"; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15533 else
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15536 do
15537 IFS=$as_save_IFS
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
15540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15541 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15543 break 2
15544 fi
15545 done
15546 done
15547 IFS=$as_save_IFS
15548
15549 fi
15550 fi
15551 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15552 if test -n "$OBJCOPY_FOR_TARGET"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15554 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15558 fi
15559
15560
15561 fi
15562 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15563 done
15564 fi
15565
15566 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15567 set dummy objcopy
15568 if test $build = $target ; then
15569 OBJCOPY_FOR_TARGET="$2"
15570 else
15571 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15572 fi
15573 else
15574 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15575 fi
15576
15577 else
15578 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15579 fi
15580
15581
15582
15583
15584 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15585 if test -n "$with_build_time_tools"; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15587 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15588 if test -x $with_build_time_tools/objdump; then
15589 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15590 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15592 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15593 else
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15595 $as_echo "no" >&6; }
15596 fi
15597 elif test $build != $host && test $have_gcc_for_target = yes; then
15598 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15599 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15600 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15601 fi
15602 fi
15603 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15604 # Extract the first word of "objdump", so it can be a program name with args.
15605 set dummy objdump; ac_word=$2
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15607 $as_echo_n "checking for $ac_word... " >&6; }
15608 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 case $OBJDUMP_FOR_TARGET in
15612 [\\/]* | ?:[\\/]*)
15613 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15614 ;;
15615 *)
15616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15617 for as_dir in $gcc_cv_tool_dirs
15618 do
15619 IFS=$as_save_IFS
15620 test -z "$as_dir" && as_dir=.
15621 for ac_exec_ext in '' $ac_executable_extensions; do
15622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15623 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15625 break 2
15626 fi
15627 done
15628 done
15629 IFS=$as_save_IFS
15630
15631 ;;
15632 esac
15633 fi
15634 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15635 if test -n "$OBJDUMP_FOR_TARGET"; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15637 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15638 else
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15640 $as_echo "no" >&6; }
15641 fi
15642
15643
15644 fi
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15646
15647
15648 if test -n "$OBJDUMP_FOR_TARGET"; then
15649 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15650 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15651 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15652 fi
15653
15654 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15655 for ncn_progname in objdump; do
15656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15657 set dummy ${ncn_progname}; ac_word=$2
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659 $as_echo_n "checking for $ac_word... " >&6; }
15660 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662 else
15663 if test -n "$OBJDUMP_FOR_TARGET"; then
15664 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15665 else
15666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15668 do
15669 IFS=$as_save_IFS
15670 test -z "$as_dir" && as_dir=.
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675 break 2
15676 fi
15677 done
15678 done
15679 IFS=$as_save_IFS
15680
15681 fi
15682 fi
15683 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15684 if test -n "$OBJDUMP_FOR_TARGET"; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15686 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15690 fi
15691
15692
15693 done
15694 fi
15695
15696 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15697 for ncn_progname in objdump; do
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15700 if test -x $with_build_time_tools/${ncn_progname}; then
15701 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703 $as_echo "yes" >&6; }
15704 break
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15708 fi
15709 done
15710 fi
15711
15712 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15713 for ncn_progname in objdump; do
15714 if test -n "$ncn_target_tool_prefix"; then
15715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718 $as_echo_n "checking for $ac_word... " >&6; }
15719 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 if test -n "$OBJDUMP_FOR_TARGET"; then
15723 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15724 else
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15727 do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 for ac_exec_ext in '' $ac_executable_extensions; do
15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15732 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15734 break 2
15735 fi
15736 done
15737 done
15738 IFS=$as_save_IFS
15739
15740 fi
15741 fi
15742 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15743 if test -n "$OBJDUMP_FOR_TARGET"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15745 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15746 else
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15749 fi
15750
15751
15752 fi
15753 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15755 set dummy ${ncn_progname}; ac_word=$2
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 if test -n "$OBJDUMP_FOR_TARGET"; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15763 else
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15766 do
15767 IFS=$as_save_IFS
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 break 2
15774 fi
15775 done
15776 done
15777 IFS=$as_save_IFS
15778
15779 fi
15780 fi
15781 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15782 if test -n "$OBJDUMP_FOR_TARGET"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15784 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15785 else
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15788 fi
15789
15790
15791 fi
15792 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15793 done
15794 fi
15795
15796 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15797 set dummy objdump
15798 if test $build = $target ; then
15799 OBJDUMP_FOR_TARGET="$2"
15800 else
15801 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15802 fi
15803 else
15804 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15805 fi
15806
15807 else
15808 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15809 fi
15810
15811
15812
15813
15814 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15815 if test -n "$with_build_time_tools"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15817 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15818 if test -x $with_build_time_tools/otool; then
15819 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15820 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15822 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 $as_echo "no" >&6; }
15826 fi
15827 elif test $build != $host && test $have_gcc_for_target = yes; then
15828 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15829 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15830 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15831 fi
15832 fi
15833 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15834 # Extract the first word of "otool", so it can be a program name with args.
15835 set dummy otool; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837 $as_echo_n "checking for $ac_word... " >&6; }
15838 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15839 $as_echo_n "(cached) " >&6
15840 else
15841 case $OTOOL_FOR_TARGET in
15842 [\\/]* | ?:[\\/]*)
15843 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15844 ;;
15845 *)
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847 for as_dir in $gcc_cv_tool_dirs
15848 do
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15856 fi
15857 done
15858 done
15859 IFS=$as_save_IFS
15860
15861 ;;
15862 esac
15863 fi
15864 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15865 if test -n "$OTOOL_FOR_TARGET"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15867 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15868 else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 $as_echo "no" >&6; }
15871 fi
15872
15873
15874 fi
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15876
15877
15878 if test -n "$OTOOL_FOR_TARGET"; then
15879 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15880 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15881 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15882 fi
15883
15884 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15885 for ncn_progname in otool; do
15886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15887 set dummy ${ncn_progname}; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 if test -n "$OTOOL_FOR_TARGET"; then
15894 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15895 else
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in $PATH
15898 do
15899 IFS=$as_save_IFS
15900 test -z "$as_dir" && as_dir=.
15901 for ac_exec_ext in '' $ac_executable_extensions; do
15902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15903 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15905 break 2
15906 fi
15907 done
15908 done
15909 IFS=$as_save_IFS
15910
15911 fi
15912 fi
15913 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15914 if test -n "$OTOOL_FOR_TARGET"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15916 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 fi
15921
15922
15923 done
15924 fi
15925
15926 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15927 for ncn_progname in otool; do
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15929 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15930 if test -x $with_build_time_tools/${ncn_progname}; then
15931 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933 $as_echo "yes" >&6; }
15934 break
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15938 fi
15939 done
15940 fi
15941
15942 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15943 for ncn_progname in otool; do
15944 if test -n "$ncn_target_tool_prefix"; then
15945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948 $as_echo_n "checking for $ac_word... " >&6; }
15949 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 if test -n "$OTOOL_FOR_TARGET"; then
15953 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15954 else
15955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956 for as_dir in $PATH
15957 do
15958 IFS=$as_save_IFS
15959 test -z "$as_dir" && as_dir=.
15960 for ac_exec_ext in '' $ac_executable_extensions; do
15961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15962 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15964 break 2
15965 fi
15966 done
15967 done
15968 IFS=$as_save_IFS
15969
15970 fi
15971 fi
15972 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15973 if test -n "$OTOOL_FOR_TARGET"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15975 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979 fi
15980
15981
15982 fi
15983 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15985 set dummy ${ncn_progname}; ac_word=$2
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 $as_echo_n "checking for $ac_word... " >&6; }
15988 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 if test -n "$OTOOL_FOR_TARGET"; then
15992 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15993 else
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995 for as_dir in $PATH
15996 do
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003 break 2
16004 fi
16005 done
16006 done
16007 IFS=$as_save_IFS
16008
16009 fi
16010 fi
16011 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16012 if test -n "$OTOOL_FOR_TARGET"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16014 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16018 fi
16019
16020
16021 fi
16022 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16023 done
16024 fi
16025
16026 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16027 set dummy otool
16028 if test $build = $target ; then
16029 OTOOL_FOR_TARGET="$2"
16030 else
16031 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16032 fi
16033 else
16034 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16035 fi
16036
16037 else
16038 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16039 fi
16040
16041
16042
16043
16044 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16045 if test -n "$with_build_time_tools"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16047 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16048 if test -x $with_build_time_tools/ranlib; then
16049 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16050 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16052 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16056 fi
16057 elif test $build != $host && test $have_gcc_for_target = yes; then
16058 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16059 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16060 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16061 fi
16062 fi
16063 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16064 # Extract the first word of "ranlib", so it can be a program name with args.
16065 set dummy ranlib; ac_word=$2
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16067 $as_echo_n "checking for $ac_word... " >&6; }
16068 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 case $RANLIB_FOR_TARGET in
16072 [\\/]* | ?:[\\/]*)
16073 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16074 ;;
16075 *)
16076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16077 for as_dir in $gcc_cv_tool_dirs
16078 do
16079 IFS=$as_save_IFS
16080 test -z "$as_dir" && as_dir=.
16081 for ac_exec_ext in '' $ac_executable_extensions; do
16082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16083 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16085 break 2
16086 fi
16087 done
16088 done
16089 IFS=$as_save_IFS
16090
16091 ;;
16092 esac
16093 fi
16094 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16095 if test -n "$RANLIB_FOR_TARGET"; then
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16097 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16098 else
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16101 fi
16102
16103
16104 fi
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16106
16107
16108 if test -n "$RANLIB_FOR_TARGET"; then
16109 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16110 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16111 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16112 fi
16113
16114 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16115 for ncn_progname in ranlib; do
16116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16117 set dummy ${ncn_progname}; ac_word=$2
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16119 $as_echo_n "checking for $ac_word... " >&6; }
16120 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 if test -n "$RANLIB_FOR_TARGET"; then
16124 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16125 else
16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127 for as_dir in $PATH
16128 do
16129 IFS=$as_save_IFS
16130 test -z "$as_dir" && as_dir=.
16131 for ac_exec_ext in '' $ac_executable_extensions; do
16132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16133 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135 break 2
16136 fi
16137 done
16138 done
16139 IFS=$as_save_IFS
16140
16141 fi
16142 fi
16143 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16144 if test -n "$RANLIB_FOR_TARGET"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16146 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16150 fi
16151
16152
16153 done
16154 fi
16155
16156 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16157 for ncn_progname in ranlib; do
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16160 if test -x $with_build_time_tools/${ncn_progname}; then
16161 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163 $as_echo "yes" >&6; }
16164 break
16165 else
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16168 fi
16169 done
16170 fi
16171
16172 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16173 for ncn_progname in ranlib; do
16174 if test -n "$ncn_target_tool_prefix"; then
16175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16178 $as_echo_n "checking for $ac_word... " >&6; }
16179 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 if test -n "$RANLIB_FOR_TARGET"; then
16183 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16184 else
16185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186 for as_dir in $PATH
16187 do
16188 IFS=$as_save_IFS
16189 test -z "$as_dir" && as_dir=.
16190 for ac_exec_ext in '' $ac_executable_extensions; do
16191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16192 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16194 break 2
16195 fi
16196 done
16197 done
16198 IFS=$as_save_IFS
16199
16200 fi
16201 fi
16202 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16203 if test -n "$RANLIB_FOR_TARGET"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16205 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16206 else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208 $as_echo "no" >&6; }
16209 fi
16210
16211
16212 fi
16213 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16215 set dummy ${ncn_progname}; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 if test -n "$RANLIB_FOR_TARGET"; then
16222 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16223 else
16224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16226 do
16227 IFS=$as_save_IFS
16228 test -z "$as_dir" && as_dir=.
16229 for ac_exec_ext in '' $ac_executable_extensions; do
16230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16231 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16233 break 2
16234 fi
16235 done
16236 done
16237 IFS=$as_save_IFS
16238
16239 fi
16240 fi
16241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16242 if test -n "$RANLIB_FOR_TARGET"; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16244 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16248 fi
16249
16250
16251 fi
16252 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16253 done
16254 fi
16255
16256 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16257 set dummy ranlib
16258 if test $build = $target ; then
16259 RANLIB_FOR_TARGET="$2"
16260 else
16261 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16262 fi
16263 else
16264 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16265 fi
16266
16267 else
16268 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16269 fi
16270
16271
16272
16273
16274 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16275 if test -n "$with_build_time_tools"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16277 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16278 if test -x $with_build_time_tools/readelf; then
16279 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16280 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16282 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16286 fi
16287 elif test $build != $host && test $have_gcc_for_target = yes; then
16288 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16289 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16290 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16291 fi
16292 fi
16293 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16294 # Extract the first word of "readelf", so it can be a program name with args.
16295 set dummy readelf; ac_word=$2
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16297 $as_echo_n "checking for $ac_word... " >&6; }
16298 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16301 case $READELF_FOR_TARGET in
16302 [\\/]* | ?:[\\/]*)
16303 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16304 ;;
16305 *)
16306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307 for as_dir in $gcc_cv_tool_dirs
16308 do
16309 IFS=$as_save_IFS
16310 test -z "$as_dir" && as_dir=.
16311 for ac_exec_ext in '' $ac_executable_extensions; do
16312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16313 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16315 break 2
16316 fi
16317 done
16318 done
16319 IFS=$as_save_IFS
16320
16321 ;;
16322 esac
16323 fi
16324 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16325 if test -n "$READELF_FOR_TARGET"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16327 $as_echo "$READELF_FOR_TARGET" >&6; }
16328 else
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330 $as_echo "no" >&6; }
16331 fi
16332
16333
16334 fi
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16336
16337
16338 if test -n "$READELF_FOR_TARGET"; then
16339 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16340 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16341 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16342 fi
16343
16344 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16345 for ncn_progname in readelf; do
16346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16347 set dummy ${ncn_progname}; ac_word=$2
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16349 $as_echo_n "checking for $ac_word... " >&6; }
16350 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 if test -n "$READELF_FOR_TARGET"; then
16354 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16355 else
16356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16357 for as_dir in $PATH
16358 do
16359 IFS=$as_save_IFS
16360 test -z "$as_dir" && as_dir=.
16361 for ac_exec_ext in '' $ac_executable_extensions; do
16362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16363 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16365 break 2
16366 fi
16367 done
16368 done
16369 IFS=$as_save_IFS
16370
16371 fi
16372 fi
16373 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16374 if test -n "$READELF_FOR_TARGET"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16376 $as_echo "$READELF_FOR_TARGET" >&6; }
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16380 fi
16381
16382
16383 done
16384 fi
16385
16386 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16387 for ncn_progname in readelf; do
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16389 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16390 if test -x $with_build_time_tools/${ncn_progname}; then
16391 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393 $as_echo "yes" >&6; }
16394 break
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16398 fi
16399 done
16400 fi
16401
16402 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16403 for ncn_progname in readelf; do
16404 if test -n "$ncn_target_tool_prefix"; then
16405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16406 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408 $as_echo_n "checking for $ac_word... " >&6; }
16409 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 if test -n "$READELF_FOR_TARGET"; then
16413 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16414 else
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH
16417 do
16418 IFS=$as_save_IFS
16419 test -z "$as_dir" && as_dir=.
16420 for ac_exec_ext in '' $ac_executable_extensions; do
16421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16422 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16424 break 2
16425 fi
16426 done
16427 done
16428 IFS=$as_save_IFS
16429
16430 fi
16431 fi
16432 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16433 if test -n "$READELF_FOR_TARGET"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16435 $as_echo "$READELF_FOR_TARGET" >&6; }
16436 else
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439 fi
16440
16441
16442 fi
16443 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16445 set dummy ${ncn_progname}; ac_word=$2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447 $as_echo_n "checking for $ac_word... " >&6; }
16448 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 if test -n "$READELF_FOR_TARGET"; then
16452 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16453 else
16454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16456 do
16457 IFS=$as_save_IFS
16458 test -z "$as_dir" && as_dir=.
16459 for ac_exec_ext in '' $ac_executable_extensions; do
16460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463 break 2
16464 fi
16465 done
16466 done
16467 IFS=$as_save_IFS
16468
16469 fi
16470 fi
16471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16472 if test -n "$READELF_FOR_TARGET"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16474 $as_echo "$READELF_FOR_TARGET" >&6; }
16475 else
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16478 fi
16479
16480
16481 fi
16482 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16483 done
16484 fi
16485
16486 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16487 set dummy readelf
16488 if test $build = $target ; then
16489 READELF_FOR_TARGET="$2"
16490 else
16491 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16492 fi
16493 else
16494 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16495 fi
16496
16497 else
16498 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16499 fi
16500
16501
16502
16503
16504 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16505 if test -n "$with_build_time_tools"; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16507 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16508 if test -x $with_build_time_tools/strip; then
16509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16512 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16513 else
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515 $as_echo "no" >&6; }
16516 fi
16517 elif test $build != $host && test $have_gcc_for_target = yes; then
16518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16521 fi
16522 fi
16523 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16524 # Extract the first word of "strip", so it can be a program name with args.
16525 set dummy strip; ac_word=$2
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527 $as_echo_n "checking for $ac_word... " >&6; }
16528 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 case $STRIP_FOR_TARGET in
16532 [\\/]* | ?:[\\/]*)
16533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16534 ;;
16535 *)
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 for as_dir in $gcc_cv_tool_dirs
16538 do
16539 IFS=$as_save_IFS
16540 test -z "$as_dir" && as_dir=.
16541 for ac_exec_ext in '' $ac_executable_extensions; do
16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 break 2
16546 fi
16547 done
16548 done
16549 IFS=$as_save_IFS
16550
16551 ;;
16552 esac
16553 fi
16554 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16555 if test -n "$STRIP_FOR_TARGET"; then
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16557 $as_echo "$STRIP_FOR_TARGET" >&6; }
16558 else
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560 $as_echo "no" >&6; }
16561 fi
16562
16563
16564 fi
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16566
16567
16568 if test -n "$STRIP_FOR_TARGET"; then
16569 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16570 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16571 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16572 fi
16573
16574 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16575 for ncn_progname in strip; do
16576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16577 set dummy ${ncn_progname}; ac_word=$2
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16579 $as_echo_n "checking for $ac_word... " >&6; }
16580 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 if test -n "$STRIP_FOR_TARGET"; then
16584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16585 else
16586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16587 for as_dir in $PATH
16588 do
16589 IFS=$as_save_IFS
16590 test -z "$as_dir" && as_dir=.
16591 for ac_exec_ext in '' $ac_executable_extensions; do
16592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16595 break 2
16596 fi
16597 done
16598 done
16599 IFS=$as_save_IFS
16600
16601 fi
16602 fi
16603 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16604 if test -n "$STRIP_FOR_TARGET"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16606 $as_echo "$STRIP_FOR_TARGET" >&6; }
16607 else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16610 fi
16611
16612
16613 done
16614 fi
16615
16616 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16617 for ncn_progname in strip; do
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16619 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16620 if test -x $with_build_time_tools/${ncn_progname}; then
16621 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623 $as_echo "yes" >&6; }
16624 break
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627 $as_echo "no" >&6; }
16628 fi
16629 done
16630 fi
16631
16632 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16633 for ncn_progname in strip; do
16634 if test -n "$ncn_target_tool_prefix"; then
16635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638 $as_echo_n "checking for $ac_word... " >&6; }
16639 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16640 $as_echo_n "(cached) " >&6
16641 else
16642 if test -n "$STRIP_FOR_TARGET"; then
16643 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16644 else
16645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646 for as_dir in $PATH
16647 do
16648 IFS=$as_save_IFS
16649 test -z "$as_dir" && as_dir=.
16650 for ac_exec_ext in '' $ac_executable_extensions; do
16651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16652 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654 break 2
16655 fi
16656 done
16657 done
16658 IFS=$as_save_IFS
16659
16660 fi
16661 fi
16662 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16663 if test -n "$STRIP_FOR_TARGET"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16665 $as_echo "$STRIP_FOR_TARGET" >&6; }
16666 else
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668 $as_echo "no" >&6; }
16669 fi
16670
16671
16672 fi
16673 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16675 set dummy ${ncn_progname}; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 if test -n "$STRIP_FOR_TARGET"; then
16682 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16683 else
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16686 do
16687 IFS=$as_save_IFS
16688 test -z "$as_dir" && as_dir=.
16689 for ac_exec_ext in '' $ac_executable_extensions; do
16690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693 break 2
16694 fi
16695 done
16696 done
16697 IFS=$as_save_IFS
16698
16699 fi
16700 fi
16701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16702 if test -n "$STRIP_FOR_TARGET"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16704 $as_echo "$STRIP_FOR_TARGET" >&6; }
16705 else
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16708 fi
16709
16710
16711 fi
16712 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16713 done
16714 fi
16715
16716 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16717 set dummy strip
16718 if test $build = $target ; then
16719 STRIP_FOR_TARGET="$2"
16720 else
16721 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16722 fi
16723 else
16724 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16725 fi
16726
16727 else
16728 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16729 fi
16730
16731
16732
16733
16734 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16735 if test -n "$with_build_time_tools"; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16737 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16738 if test -x $with_build_time_tools/windres; then
16739 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16740 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16742 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16743 else
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16746 fi
16747 elif test $build != $host && test $have_gcc_for_target = yes; then
16748 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16749 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16750 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16751 fi
16752 fi
16753 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16754 # Extract the first word of "windres", so it can be a program name with args.
16755 set dummy windres; ac_word=$2
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16757 $as_echo_n "checking for $ac_word... " >&6; }
16758 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16759 $as_echo_n "(cached) " >&6
16760 else
16761 case $WINDRES_FOR_TARGET in
16762 [\\/]* | ?:[\\/]*)
16763 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16764 ;;
16765 *)
16766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16767 for as_dir in $gcc_cv_tool_dirs
16768 do
16769 IFS=$as_save_IFS
16770 test -z "$as_dir" && as_dir=.
16771 for ac_exec_ext in '' $ac_executable_extensions; do
16772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16773 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16775 break 2
16776 fi
16777 done
16778 done
16779 IFS=$as_save_IFS
16780
16781 ;;
16782 esac
16783 fi
16784 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16785 if test -n "$WINDRES_FOR_TARGET"; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16787 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16788 else
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790 $as_echo "no" >&6; }
16791 fi
16792
16793
16794 fi
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16796
16797
16798 if test -n "$WINDRES_FOR_TARGET"; then
16799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16800 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16802 fi
16803
16804 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16805 for ncn_progname in windres; do
16806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16807 set dummy ${ncn_progname}; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813 if test -n "$WINDRES_FOR_TARGET"; then
16814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16815 else
16816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817 for as_dir in $PATH
16818 do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 for ac_exec_ext in '' $ac_executable_extensions; do
16822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16825 break 2
16826 fi
16827 done
16828 done
16829 IFS=$as_save_IFS
16830
16831 fi
16832 fi
16833 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16834 if test -n "$WINDRES_FOR_TARGET"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16836 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16837 else
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839 $as_echo "no" >&6; }
16840 fi
16841
16842
16843 done
16844 fi
16845
16846 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16847 for ncn_progname in windres; do
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16849 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16850 if test -x $with_build_time_tools/${ncn_progname}; then
16851 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854 break
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 $as_echo "no" >&6; }
16858 fi
16859 done
16860 fi
16861
16862 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16863 for ncn_progname in windres; do
16864 if test -n "$ncn_target_tool_prefix"; then
16865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16868 $as_echo_n "checking for $ac_word... " >&6; }
16869 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872 if test -n "$WINDRES_FOR_TARGET"; then
16873 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16874 else
16875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876 for as_dir in $PATH
16877 do
16878 IFS=$as_save_IFS
16879 test -z "$as_dir" && as_dir=.
16880 for ac_exec_ext in '' $ac_executable_extensions; do
16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16882 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16884 break 2
16885 fi
16886 done
16887 done
16888 IFS=$as_save_IFS
16889
16890 fi
16891 fi
16892 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16893 if test -n "$WINDRES_FOR_TARGET"; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16895 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16896 else
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16899 fi
16900
16901
16902 fi
16903 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16905 set dummy ${ncn_progname}; ac_word=$2
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907 $as_echo_n "checking for $ac_word... " >&6; }
16908 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 if test -n "$WINDRES_FOR_TARGET"; then
16912 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16913 else
16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16916 do
16917 IFS=$as_save_IFS
16918 test -z "$as_dir" && as_dir=.
16919 for ac_exec_ext in '' $ac_executable_extensions; do
16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923 break 2
16924 fi
16925 done
16926 done
16927 IFS=$as_save_IFS
16928
16929 fi
16930 fi
16931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16932 if test -n "$WINDRES_FOR_TARGET"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16934 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16935 else
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16938 fi
16939
16940
16941 fi
16942 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16943 done
16944 fi
16945
16946 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16947 set dummy windres
16948 if test $build = $target ; then
16949 WINDRES_FOR_TARGET="$2"
16950 else
16951 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16952 fi
16953 else
16954 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16955 fi
16956
16957 else
16958 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16959 fi
16960
16961
16962
16963
16964 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16965 if test -n "$with_build_time_tools"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16967 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16968 if test -x $with_build_time_tools/windmc; then
16969 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16970 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16972 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16973 else
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16976 fi
16977 elif test $build != $host && test $have_gcc_for_target = yes; then
16978 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16979 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16980 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16981 fi
16982 fi
16983 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16984 # Extract the first word of "windmc", so it can be a program name with args.
16985 set dummy windmc; ac_word=$2
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16987 $as_echo_n "checking for $ac_word... " >&6; }
16988 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 case $WINDMC_FOR_TARGET in
16992 [\\/]* | ?:[\\/]*)
16993 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16994 ;;
16995 *)
16996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997 for as_dir in $gcc_cv_tool_dirs
16998 do
16999 IFS=$as_save_IFS
17000 test -z "$as_dir" && as_dir=.
17001 for ac_exec_ext in '' $ac_executable_extensions; do
17002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17003 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17005 break 2
17006 fi
17007 done
17008 done
17009 IFS=$as_save_IFS
17010
17011 ;;
17012 esac
17013 fi
17014 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17015 if test -n "$WINDMC_FOR_TARGET"; then
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17017 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17018 else
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17021 fi
17022
17023
17024 fi
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17026
17027
17028 if test -n "$WINDMC_FOR_TARGET"; then
17029 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17030 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17031 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17032 fi
17033
17034 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17035 for ncn_progname in windmc; do
17036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17037 set dummy ${ncn_progname}; ac_word=$2
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17039 $as_echo_n "checking for $ac_word... " >&6; }
17040 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 if test -n "$WINDMC_FOR_TARGET"; then
17044 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17045 else
17046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17047 for as_dir in $PATH
17048 do
17049 IFS=$as_save_IFS
17050 test -z "$as_dir" && as_dir=.
17051 for ac_exec_ext in '' $ac_executable_extensions; do
17052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17053 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17055 break 2
17056 fi
17057 done
17058 done
17059 IFS=$as_save_IFS
17060
17061 fi
17062 fi
17063 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17064 if test -n "$WINDMC_FOR_TARGET"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17066 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17067 else
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070 fi
17071
17072
17073 done
17074 fi
17075
17076 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17077 for ncn_progname in windmc; do
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17080 if test -x $with_build_time_tools/${ncn_progname}; then
17081 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083 $as_echo "yes" >&6; }
17084 break
17085 else
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17088 fi
17089 done
17090 fi
17091
17092 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17093 for ncn_progname in windmc; do
17094 if test -n "$ncn_target_tool_prefix"; then
17095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098 $as_echo_n "checking for $ac_word... " >&6; }
17099 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17100 $as_echo_n "(cached) " >&6
17101 else
17102 if test -n "$WINDMC_FOR_TARGET"; then
17103 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17104 else
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 break 2
17115 fi
17116 done
17117 done
17118 IFS=$as_save_IFS
17119
17120 fi
17121 fi
17122 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17123 if test -n "$WINDMC_FOR_TARGET"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17125 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17126 else
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129 fi
17130
17131
17132 fi
17133 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17135 set dummy ${ncn_progname}; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 if test -n "$WINDMC_FOR_TARGET"; then
17142 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17143 else
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17146 do
17147 IFS=$as_save_IFS
17148 test -z "$as_dir" && as_dir=.
17149 for ac_exec_ext in '' $ac_executable_extensions; do
17150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17151 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17153 break 2
17154 fi
17155 done
17156 done
17157 IFS=$as_save_IFS
17158
17159 fi
17160 fi
17161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17162 if test -n "$WINDMC_FOR_TARGET"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17164 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17165 else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17168 fi
17169
17170
17171 fi
17172 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17173 done
17174 fi
17175
17176 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17177 set dummy windmc
17178 if test $build = $target ; then
17179 WINDMC_FOR_TARGET="$2"
17180 else
17181 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17182 fi
17183 else
17184 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17185 fi
17186
17187 else
17188 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17189 fi
17190
17191
17192 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17193
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17195 $as_echo_n "checking where to find the target ar... " >&6; }
17196 if test "x${build}" != "x${host}" ; then
17197 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17198 # We already found the complete path
17199 ac_dir=`dirname $AR_FOR_TARGET`
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17201 $as_echo "pre-installed in $ac_dir" >&6; }
17202 else
17203 # Canadian cross, just use what we found
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17205 $as_echo "pre-installed" >&6; }
17206 fi
17207 else
17208 ok=yes
17209 case " ${configdirs} " in
17210 *" binutils "*) ;;
17211 *) ok=no ;;
17212 esac
17213
17214 if test $ok = yes; then
17215 # An in-tree tool is available and we can use it
17216 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17218 $as_echo "just compiled" >&6; }
17219 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17220 # We already found the complete path
17221 ac_dir=`dirname $AR_FOR_TARGET`
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17223 $as_echo "pre-installed in $ac_dir" >&6; }
17224 elif test "x$target" = "x$host"; then
17225 # We can use an host tool
17226 AR_FOR_TARGET='$(AR)'
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17228 $as_echo "host tool" >&6; }
17229 else
17230 # We need a cross tool
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17232 $as_echo "pre-installed" >&6; }
17233 fi
17234 fi
17235
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17237 $as_echo_n "checking where to find the target as... " >&6; }
17238 if test "x${build}" != "x${host}" ; then
17239 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17240 # We already found the complete path
17241 ac_dir=`dirname $AS_FOR_TARGET`
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17243 $as_echo "pre-installed in $ac_dir" >&6; }
17244 else
17245 # Canadian cross, just use what we found
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247 $as_echo "pre-installed" >&6; }
17248 fi
17249 else
17250 ok=yes
17251 case " ${configdirs} " in
17252 *" gas "*) ;;
17253 *) ok=no ;;
17254 esac
17255
17256 if test $ok = yes; then
17257 # An in-tree tool is available and we can use it
17258 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17260 $as_echo "just compiled" >&6; }
17261 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17262 # We already found the complete path
17263 ac_dir=`dirname $AS_FOR_TARGET`
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17265 $as_echo "pre-installed in $ac_dir" >&6; }
17266 elif test "x$target" = "x$host"; then
17267 # We can use an host tool
17268 AS_FOR_TARGET='$(AS)'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17270 $as_echo "host tool" >&6; }
17271 else
17272 # We need a cross tool
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17274 $as_echo "pre-installed" >&6; }
17275 fi
17276 fi
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17279 $as_echo_n "checking where to find the target cc... " >&6; }
17280 if test "x${build}" != "x${host}" ; then
17281 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17282 # We already found the complete path
17283 ac_dir=`dirname $CC_FOR_TARGET`
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17285 $as_echo "pre-installed in $ac_dir" >&6; }
17286 else
17287 # Canadian cross, just use what we found
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289 $as_echo "pre-installed" >&6; }
17290 fi
17291 else
17292 ok=yes
17293 case " ${configdirs} " in
17294 *" gcc "*) ;;
17295 *) ok=no ;;
17296 esac
17297
17298 if test $ok = yes; then
17299 # An in-tree tool is available and we can use it
17300 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17302 $as_echo "just compiled" >&6; }
17303 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17304 # We already found the complete path
17305 ac_dir=`dirname $CC_FOR_TARGET`
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307 $as_echo "pre-installed in $ac_dir" >&6; }
17308 elif test "x$target" = "x$host"; then
17309 # We can use an host tool
17310 CC_FOR_TARGET='$(CC)'
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17312 $as_echo "host tool" >&6; }
17313 else
17314 # We need a cross tool
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17316 $as_echo "pre-installed" >&6; }
17317 fi
17318 fi
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17321 $as_echo_n "checking where to find the target c++... " >&6; }
17322 if test "x${build}" != "x${host}" ; then
17323 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17324 # We already found the complete path
17325 ac_dir=`dirname $CXX_FOR_TARGET`
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17327 $as_echo "pre-installed in $ac_dir" >&6; }
17328 else
17329 # Canadian cross, just use what we found
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17331 $as_echo "pre-installed" >&6; }
17332 fi
17333 else
17334 ok=yes
17335 case " ${configdirs} " in
17336 *" gcc "*) ;;
17337 *) ok=no ;;
17338 esac
17339 case ,${enable_languages}, in
17340 *,c++,*) ;;
17341 *) ok=no ;;
17342 esac
17343 if test $ok = yes; then
17344 # An in-tree tool is available and we can use it
17345 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'
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17347 $as_echo "just compiled" >&6; }
17348 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17349 # We already found the complete path
17350 ac_dir=`dirname $CXX_FOR_TARGET`
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17352 $as_echo "pre-installed in $ac_dir" >&6; }
17353 elif test "x$target" = "x$host"; then
17354 # We can use an host tool
17355 CXX_FOR_TARGET='$(CXX)'
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17357 $as_echo "host tool" >&6; }
17358 else
17359 # We need a cross tool
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17361 $as_echo "pre-installed" >&6; }
17362 fi
17363 fi
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17366 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17367 if test "x${build}" != "x${host}" ; then
17368 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17369 # We already found the complete path
17370 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17372 $as_echo "pre-installed in $ac_dir" >&6; }
17373 else
17374 # Canadian cross, just use what we found
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17376 $as_echo "pre-installed" >&6; }
17377 fi
17378 else
17379 ok=yes
17380 case " ${configdirs} " in
17381 *" gcc "*) ;;
17382 *) ok=no ;;
17383 esac
17384 case ,${enable_languages}, in
17385 *,c++,*) ;;
17386 *) ok=no ;;
17387 esac
17388 if test $ok = yes; then
17389 # An in-tree tool is available and we can use it
17390 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'
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17392 $as_echo "just compiled" >&6; }
17393 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17394 # We already found the complete path
17395 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17397 $as_echo "pre-installed in $ac_dir" >&6; }
17398 elif test "x$target" = "x$host"; then
17399 # We can use an host tool
17400 RAW_CXX_FOR_TARGET='$(CXX)'
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17402 $as_echo "host tool" >&6; }
17403 else
17404 # We need a cross tool
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17406 $as_echo "pre-installed" >&6; }
17407 fi
17408 fi
17409
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17411 $as_echo_n "checking where to find the target dlltool... " >&6; }
17412 if test "x${build}" != "x${host}" ; then
17413 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17414 # We already found the complete path
17415 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17417 $as_echo "pre-installed in $ac_dir" >&6; }
17418 else
17419 # Canadian cross, just use what we found
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17421 $as_echo "pre-installed" >&6; }
17422 fi
17423 else
17424 ok=yes
17425 case " ${configdirs} " in
17426 *" binutils "*) ;;
17427 *) ok=no ;;
17428 esac
17429
17430 if test $ok = yes; then
17431 # An in-tree tool is available and we can use it
17432 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17434 $as_echo "just compiled" >&6; }
17435 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17436 # We already found the complete path
17437 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17439 $as_echo "pre-installed in $ac_dir" >&6; }
17440 elif test "x$target" = "x$host"; then
17441 # We can use an host tool
17442 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17444 $as_echo "host tool" >&6; }
17445 else
17446 # We need a cross tool
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17448 $as_echo "pre-installed" >&6; }
17449 fi
17450 fi
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17453 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17454 if test "x${build}" != "x${host}" ; then
17455 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17456 # We already found the complete path
17457 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17459 $as_echo "pre-installed in $ac_dir" >&6; }
17460 else
17461 # Canadian cross, just use what we found
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17463 $as_echo "pre-installed" >&6; }
17464 fi
17465 else
17466 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17467 # We already found the complete path
17468 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17470 $as_echo "pre-installed in $ac_dir" >&6; }
17471 elif test "x$target" = "x$host"; then
17472 # We can use an host tool
17473 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17475 $as_echo "host tool" >&6; }
17476 else
17477 # We need a cross tool
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17479 $as_echo "pre-installed" >&6; }
17480 fi
17481 fi
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17484 $as_echo_n "checking where to find the target gcc... " >&6; }
17485 if test "x${build}" != "x${host}" ; then
17486 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17487 # We already found the complete path
17488 ac_dir=`dirname $GCC_FOR_TARGET`
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17490 $as_echo "pre-installed in $ac_dir" >&6; }
17491 else
17492 # Canadian cross, just use what we found
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17494 $as_echo "pre-installed" >&6; }
17495 fi
17496 else
17497 ok=yes
17498 case " ${configdirs} " in
17499 *" gcc "*) ;;
17500 *) ok=no ;;
17501 esac
17502
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507 $as_echo "just compiled" >&6; }
17508 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $GCC_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 GCC_FOR_TARGET='$()'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517 $as_echo "host tool" >&6; }
17518 else
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521 $as_echo "pre-installed" >&6; }
17522 fi
17523 fi
17524
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17526 $as_echo_n "checking where to find the target gfortran... " >&6; }
17527 if test "x${build}" != "x${host}" ; then
17528 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533 else
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536 $as_echo "pre-installed" >&6; }
17537 fi
17538 else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" gcc "*) ;;
17542 *) ok=no ;;
17543 esac
17544 case ,${enable_languages}, in
17545 *,fortran,*) ;;
17546 *) ok=no ;;
17547 esac
17548 if test $ok = yes; then
17549 # An in-tree tool is available and we can use it
17550 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17552 $as_echo "just compiled" >&6; }
17553 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17554 # We already found the complete path
17555 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17557 $as_echo "pre-installed in $ac_dir" >&6; }
17558 elif test "x$target" = "x$host"; then
17559 # We can use an host tool
17560 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17562 $as_echo "host tool" >&6; }
17563 else
17564 # We need a cross tool
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17566 $as_echo "pre-installed" >&6; }
17567 fi
17568 fi
17569
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17571 $as_echo_n "checking where to find the target gccgo... " >&6; }
17572 if test "x${build}" != "x${host}" ; then
17573 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17574 # We already found the complete path
17575 ac_dir=`dirname $GOC_FOR_TARGET`
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17577 $as_echo "pre-installed in $ac_dir" >&6; }
17578 else
17579 # Canadian cross, just use what we found
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17581 $as_echo "pre-installed" >&6; }
17582 fi
17583 else
17584 ok=yes
17585 case " ${configdirs} " in
17586 *" gcc "*) ;;
17587 *) ok=no ;;
17588 esac
17589 case ,${enable_languages}, in
17590 *,go,*) ;;
17591 *) ok=no ;;
17592 esac
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17597 $as_echo "just compiled" >&6; }
17598 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $GOC_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602 $as_echo "pre-installed in $ac_dir" >&6; }
17603 elif test "x$target" = "x$host"; then
17604 # We can use an host tool
17605 GOC_FOR_TARGET='$(GOC)'
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17607 $as_echo "host tool" >&6; }
17608 else
17609 # We need a cross tool
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611 $as_echo "pre-installed" >&6; }
17612 fi
17613 fi
17614
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17616 $as_echo_n "checking where to find the target gdc... " >&6; }
17617 if test "x${build}" != "x${host}" ; then
17618 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17619 # We already found the complete path
17620 ac_dir=`dirname $GDC_FOR_TARGET`
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17622 $as_echo "pre-installed in $ac_dir" >&6; }
17623 else
17624 # Canadian cross, just use what we found
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626 $as_echo "pre-installed" >&6; }
17627 fi
17628 else
17629 ok=yes
17630 case " ${configdirs} " in
17631 *" gcc "*) ;;
17632 *) ok=no ;;
17633 esac
17634 case ,${enable_languages}, in
17635 *,d,*) ;;
17636 *) ok=no ;;
17637 esac
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642 $as_echo "just compiled" >&6; }
17643 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $GDC_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 GDC_FOR_TARGET='$(GDC)'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652 $as_echo "host tool" >&6; }
17653 else
17654 # We need a cross tool
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656 $as_echo "pre-installed" >&6; }
17657 fi
17658 fi
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17661 $as_echo_n "checking where to find the target ld... " >&6; }
17662 if test "x${build}" != "x${host}" ; then
17663 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
17665 ac_dir=`dirname $LD_FOR_TARGET`
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667 $as_echo "pre-installed in $ac_dir" >&6; }
17668 else
17669 # Canadian cross, just use what we found
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671 $as_echo "pre-installed" >&6; }
17672 fi
17673 else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" ld "*) ;;
17677 *) ok=no ;;
17678 esac
17679
17680 if test $ok = yes; then
17681 # An in-tree tool is available and we can use it
17682 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17684 $as_echo "just compiled" >&6; }
17685 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $LD_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689 $as_echo "pre-installed in $ac_dir" >&6; }
17690 elif test "x$target" = "x$host"; then
17691 # We can use an host tool
17692 LD_FOR_TARGET='$(LD)'
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17694 $as_echo "host tool" >&6; }
17695 else
17696 # We need a cross tool
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17698 $as_echo "pre-installed" >&6; }
17699 fi
17700 fi
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17703 $as_echo_n "checking where to find the target lipo... " >&6; }
17704 if test "x${build}" != "x${host}" ; then
17705 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17706 # We already found the complete path
17707 ac_dir=`dirname $LIPO_FOR_TARGET`
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17709 $as_echo "pre-installed in $ac_dir" >&6; }
17710 else
17711 # Canadian cross, just use what we found
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17713 $as_echo "pre-installed" >&6; }
17714 fi
17715 else
17716 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17717 # We already found the complete path
17718 ac_dir=`dirname $LIPO_FOR_TARGET`
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17720 $as_echo "pre-installed in $ac_dir" >&6; }
17721 elif test "x$target" = "x$host"; then
17722 # We can use an host tool
17723 LIPO_FOR_TARGET='$(LIPO)'
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17725 $as_echo "host tool" >&6; }
17726 else
17727 # We need a cross tool
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17729 $as_echo "pre-installed" >&6; }
17730 fi
17731 fi
17732
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17734 $as_echo_n "checking where to find the target nm... " >&6; }
17735 if test "x${build}" != "x${host}" ; then
17736 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17737 # We already found the complete path
17738 ac_dir=`dirname $NM_FOR_TARGET`
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17740 $as_echo "pre-installed in $ac_dir" >&6; }
17741 else
17742 # Canadian cross, just use what we found
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17744 $as_echo "pre-installed" >&6; }
17745 fi
17746 else
17747 ok=yes
17748 case " ${configdirs} " in
17749 *" binutils "*) ;;
17750 *) ok=no ;;
17751 esac
17752
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757 $as_echo "just compiled" >&6; }
17758 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $NM_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 NM_FOR_TARGET='$(NM)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767 $as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771 $as_echo "pre-installed" >&6; }
17772 fi
17773 fi
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17776 $as_echo_n "checking where to find the target objcopy... " >&6; }
17777 if test "x${build}" != "x${host}" ; then
17778 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786 $as_echo "pre-installed" >&6; }
17787 fi
17788 else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" binutils "*) ;;
17792 *) ok=no ;;
17793 esac
17794
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799 $as_echo "just compiled" >&6; }
17800 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804 $as_echo "pre-installed in $ac_dir" >&6; }
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
17807 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809 $as_echo "host tool" >&6; }
17810 else
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813 $as_echo "pre-installed" >&6; }
17814 fi
17815 fi
17816
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17818 $as_echo_n "checking where to find the target objdump... " >&6; }
17819 if test "x${build}" != "x${host}" ; then
17820 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825 else
17826 # Canadian cross, just use what we found
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828 $as_echo "pre-installed" >&6; }
17829 fi
17830 else
17831 ok=yes
17832 case " ${configdirs} " in
17833 *" binutils "*) ;;
17834 *) ok=no ;;
17835 esac
17836
17837 if test $ok = yes; then
17838 # An in-tree tool is available and we can use it
17839 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17841 $as_echo "just compiled" >&6; }
17842 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17843 # We already found the complete path
17844 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17846 $as_echo "pre-installed in $ac_dir" >&6; }
17847 elif test "x$target" = "x$host"; then
17848 # We can use an host tool
17849 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17851 $as_echo "host tool" >&6; }
17852 else
17853 # We need a cross tool
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17855 $as_echo "pre-installed" >&6; }
17856 fi
17857 fi
17858
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17860 $as_echo_n "checking where to find the target otool... " >&6; }
17861 if test "x${build}" != "x${host}" ; then
17862 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17863 # We already found the complete path
17864 ac_dir=`dirname $OTOOL_FOR_TARGET`
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17866 $as_echo "pre-installed in $ac_dir" >&6; }
17867 else
17868 # Canadian cross, just use what we found
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17870 $as_echo "pre-installed" >&6; }
17871 fi
17872 else
17873 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $OTOOL_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877 $as_echo "pre-installed in $ac_dir" >&6; }
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 OTOOL_FOR_TARGET='$(OTOOL)'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882 $as_echo "host tool" >&6; }
17883 else
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17887 fi
17888 fi
17889
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17891 $as_echo_n "checking where to find the target ranlib... " >&6; }
17892 if test "x${build}" != "x${host}" ; then
17893 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $RANLIB_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898 else
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901 $as_echo "pre-installed" >&6; }
17902 fi
17903 else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" binutils "*) ;;
17907 *) ok=no ;;
17908 esac
17909
17910 if test $ok = yes; then
17911 # An in-tree tool is available and we can use it
17912 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17914 $as_echo "just compiled" >&6; }
17915 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $RANLIB_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919 $as_echo "pre-installed in $ac_dir" >&6; }
17920 elif test "x$target" = "x$host"; then
17921 # We can use an host tool
17922 RANLIB_FOR_TARGET='$(RANLIB)'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17924 $as_echo "host tool" >&6; }
17925 else
17926 # We need a cross tool
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928 $as_echo "pre-installed" >&6; }
17929 fi
17930 fi
17931
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17933 $as_echo_n "checking where to find the target readelf... " >&6; }
17934 if test "x${build}" != "x${host}" ; then
17935 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17936 # We already found the complete path
17937 ac_dir=`dirname $READELF_FOR_TARGET`
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939 $as_echo "pre-installed in $ac_dir" >&6; }
17940 else
17941 # Canadian cross, just use what we found
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943 $as_echo "pre-installed" >&6; }
17944 fi
17945 else
17946 ok=yes
17947 case " ${configdirs} " in
17948 *" binutils "*) ;;
17949 *) ok=no ;;
17950 esac
17951
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956 $as_echo "just compiled" >&6; }
17957 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $READELF_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961 $as_echo "pre-installed in $ac_dir" >&6; }
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 READELF_FOR_TARGET='$(READELF)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966 $as_echo "host tool" >&6; }
17967 else
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970 $as_echo "pre-installed" >&6; }
17971 fi
17972 fi
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17975 $as_echo_n "checking where to find the target strip... " >&6; }
17976 if test "x${build}" != "x${host}" ; then
17977 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $STRIP_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981 $as_echo "pre-installed in $ac_dir" >&6; }
17982 else
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985 $as_echo "pre-installed" >&6; }
17986 fi
17987 else
17988 ok=yes
17989 case " ${configdirs} " in
17990 *" binutils "*) ;;
17991 *) ok=no ;;
17992 esac
17993
17994 if test $ok = yes; then
17995 # An in-tree tool is available and we can use it
17996 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17998 $as_echo "just compiled" >&6; }
17999 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
18001 ac_dir=`dirname $STRIP_FOR_TARGET`
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003 $as_echo "pre-installed in $ac_dir" >&6; }
18004 elif test "x$target" = "x$host"; then
18005 # We can use an host tool
18006 STRIP_FOR_TARGET='$(STRIP)'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18008 $as_echo "host tool" >&6; }
18009 else
18010 # We need a cross tool
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18012 $as_echo "pre-installed" >&6; }
18013 fi
18014 fi
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18017 $as_echo_n "checking where to find the target windres... " >&6; }
18018 if test "x${build}" != "x${host}" ; then
18019 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
18021 ac_dir=`dirname $WINDRES_FOR_TARGET`
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18023 $as_echo "pre-installed in $ac_dir" >&6; }
18024 else
18025 # Canadian cross, just use what we found
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027 $as_echo "pre-installed" >&6; }
18028 fi
18029 else
18030 ok=yes
18031 case " ${configdirs} " in
18032 *" binutils "*) ;;
18033 *) ok=no ;;
18034 esac
18035
18036 if test $ok = yes; then
18037 # An in-tree tool is available and we can use it
18038 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18040 $as_echo "just compiled" >&6; }
18041 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18042 # We already found the complete path
18043 ac_dir=`dirname $WINDRES_FOR_TARGET`
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045 $as_echo "pre-installed in $ac_dir" >&6; }
18046 elif test "x$target" = "x$host"; then
18047 # We can use an host tool
18048 WINDRES_FOR_TARGET='$(WINDRES)'
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18050 $as_echo "host tool" >&6; }
18051 else
18052 # We need a cross tool
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18054 $as_echo "pre-installed" >&6; }
18055 fi
18056 fi
18057
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18059 $as_echo_n "checking where to find the target windmc... " >&6; }
18060 if test "x${build}" != "x${host}" ; then
18061 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $WINDMC_FOR_TARGET`
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18065 $as_echo "pre-installed in $ac_dir" >&6; }
18066 else
18067 # Canadian cross, just use what we found
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18069 $as_echo "pre-installed" >&6; }
18070 fi
18071 else
18072 ok=yes
18073 case " ${configdirs} " in
18074 *" binutils "*) ;;
18075 *) ok=no ;;
18076 esac
18077
18078 if test $ok = yes; then
18079 # An in-tree tool is available and we can use it
18080 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18082 $as_echo "just compiled" >&6; }
18083 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18084 # We already found the complete path
18085 ac_dir=`dirname $WINDMC_FOR_TARGET`
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087 $as_echo "pre-installed in $ac_dir" >&6; }
18088 elif test "x$target" = "x$host"; then
18089 # We can use an host tool
18090 WINDMC_FOR_TARGET='$(WINDMC)'
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18092 $as_echo "host tool" >&6; }
18093 else
18094 # We need a cross tool
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18096 $as_echo "pre-installed" >&6; }
18097 fi
18098 fi
18099
18100
18101
18102
18103
18104 # Certain tools may need extra flags.
18105 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18106 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18107 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18108
18109 # When building target libraries, except in a Canadian cross, we use
18110 # the same toolchain as the compiler we just built.
18111 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18112 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18113 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18114 if test $host = $build; then
18115 case " $configdirs " in
18116 *" gcc "*)
18117 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18118 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18119 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18120 ;;
18121 esac
18122 fi
18123
18124
18125
18126
18127
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18129 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18130 # Check whether --enable-maintainer-mode was given.
18131 if test "${enable_maintainer_mode+set}" = set; then :
18132 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18133 else
18134 USE_MAINTAINER_MODE=no
18135 fi
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18138 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18139
18140
18141 if test "$USE_MAINTAINER_MODE" = yes; then
18142 MAINTAINER_MODE_TRUE=
18143 MAINTAINER_MODE_FALSE='#'
18144 else
18145 MAINTAINER_MODE_TRUE='#'
18146 MAINTAINER_MODE_FALSE=
18147 fi
18148 MAINT=$MAINTAINER_MODE_TRUE
18149
18150 # ---------------------
18151 # GCC bootstrap support
18152 # ---------------------
18153
18154 # Stage specific cflags for build.
18155 stage1_cflags="-g"
18156 case $build in
18157 vax-*-*)
18158 case ${GCC} in
18159 yes) stage1_cflags="-g -Wa,-J" ;;
18160 *) stage1_cflags="-g -J" ;;
18161 esac ;;
18162 esac
18163
18164
18165
18166 # Enable --enable-checking in stage1 of the compiler.
18167 # Check whether --enable-stage1-checking was given.
18168 if test "${enable_stage1_checking+set}" = set; then :
18169 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18170 else
18171 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18172 # For --disable-checking or implicit --enable-checking=release, avoid
18173 # setting --enable-checking=gc in the default stage1 checking for LTO
18174 # bootstraps. See PR62077.
18175 case $BUILD_CONFIG in
18176 *lto*)
18177 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18178 *)
18179 stage1_checking=--enable-checking=yes,types;;
18180 esac
18181 if test "x$enable_checking" = x && \
18182 test -d ${srcdir}/gcc && \
18183 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18184 stage1_checking=--enable-checking=yes,types,extra
18185 fi
18186 else
18187 stage1_checking=--enable-checking=$enable_checking,types
18188 fi
18189 fi
18190
18191
18192
18193 # Enable -Werror in bootstrap stage2 and later.
18194 # Check whether --enable-werror was given.
18195 if test "${enable_werror+set}" = set; then :
18196 enableval=$enable_werror;
18197 case ${enable_werror} in
18198 yes) stage2_werror_flag="--enable-werror-always" ;;
18199 *) stage2_werror_flag="" ;;
18200 esac
18201
18202 else
18203
18204 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18205 case $BUILD_CONFIG in
18206 bootstrap-debug)
18207 stage2_werror_flag="--enable-werror-always" ;;
18208 "")
18209 stage2_werror_flag="--enable-werror-always" ;;
18210 esac
18211 fi
18212
18213 fi
18214
18215
18216
18217
18218 # Specify what files to not compare during bootstrap.
18219
18220 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18221 case "$target" in
18222 hppa*64*-*-hpux*) ;;
18223 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18224 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18225 esac
18226
18227
18228 ac_config_files="$ac_config_files Makefile"
18229
18230 cat >confcache <<\_ACEOF
18231 # This file is a shell script that caches the results of configure
18232 # tests run on this system so they can be shared between configure
18233 # scripts and configure runs, see configure's option --config-cache.
18234 # It is not useful on other systems. If it contains results you don't
18235 # want to keep, you may remove or edit it.
18236 #
18237 # config.status only pays attention to the cache file if you give it
18238 # the --recheck option to rerun configure.
18239 #
18240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18242 # following values.
18243
18244 _ACEOF
18245
18246 # The following way of writing the cache mishandles newlines in values,
18247 # but we know of no workaround that is simple, portable, and efficient.
18248 # So, we kill variables containing newlines.
18249 # Ultrix sh set writes to stderr and can't be redirected directly,
18250 # and sets the high bit in the cache file unless we assign to the vars.
18251 (
18252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18253 eval ac_val=\$$ac_var
18254 case $ac_val in #(
18255 *${as_nl}*)
18256 case $ac_var in #(
18257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18258 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18259 esac
18260 case $ac_var in #(
18261 _ | IFS | as_nl) ;; #(
18262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18263 *) { eval $ac_var=; unset $ac_var;} ;;
18264 esac ;;
18265 esac
18266 done
18267
18268 (set) 2>&1 |
18269 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18270 *${as_nl}ac_space=\ *)
18271 # `set' does not quote correctly, so add quotes: double-quote
18272 # substitution turns \\\\ into \\, and sed turns \\ into \.
18273 sed -n \
18274 "s/'/'\\\\''/g;
18275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18276 ;; #(
18277 *)
18278 # `set' quotes correctly as required by POSIX, so do not add quotes.
18279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18280 ;;
18281 esac |
18282 sort
18283 ) |
18284 sed '
18285 /^ac_cv_env_/b end
18286 t clear
18287 :clear
18288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18289 t end
18290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18291 :end' >>confcache
18292 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18293 if test -w "$cache_file"; then
18294 if test "x$cache_file" != "x/dev/null"; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18296 $as_echo "$as_me: updating cache $cache_file" >&6;}
18297 if test ! -f "$cache_file" || test -h "$cache_file"; then
18298 cat confcache >"$cache_file"
18299 else
18300 case $cache_file in #(
18301 */* | ?:*)
18302 mv -f confcache "$cache_file"$$ &&
18303 mv -f "$cache_file"$$ "$cache_file" ;; #(
18304 *)
18305 mv -f confcache "$cache_file" ;;
18306 esac
18307 fi
18308 fi
18309 else
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18311 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18312 fi
18313 fi
18314 rm -f confcache
18315
18316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18317 # Let make expand exec_prefix.
18318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18319
18320 # Transform confdefs.h into DEFS.
18321 # Protect against shell expansion while executing Makefile rules.
18322 # Protect against Makefile macro expansion.
18323 #
18324 # If the first sed substitution is executed (which looks for macros that
18325 # take arguments), then branch to the quote section. Otherwise,
18326 # look for a macro that doesn't take arguments.
18327 ac_script='
18328 :mline
18329 /\\$/{
18330 N
18331 s,\\\n,,
18332 b mline
18333 }
18334 t clear
18335 :clear
18336 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18337 t quote
18338 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18339 t quote
18340 b any
18341 :quote
18342 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18343 s/\[/\\&/g
18344 s/\]/\\&/g
18345 s/\$/$$/g
18346 H
18347 :any
18348 ${
18349 g
18350 s/^\n//
18351 s/\n/ /g
18352 p
18353 }
18354 '
18355 DEFS=`sed -n "$ac_script" confdefs.h`
18356
18357
18358 ac_libobjs=
18359 ac_ltlibobjs=
18360 U=
18361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18362 # 1. Remove the extension, and $U if already installed.
18363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18364 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18366 # will be set to the directory where LIBOBJS objects are built.
18367 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18368 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18369 done
18370 LIBOBJS=$ac_libobjs
18371
18372 LTLIBOBJS=$ac_ltlibobjs
18373
18374
18375
18376 : "${CONFIG_STATUS=./config.status}"
18377 ac_write_fail=0
18378 ac_clean_files_save=$ac_clean_files
18379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18381 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18382 as_write_fail=0
18383 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18384 #! $SHELL
18385 # Generated by $as_me.
18386 # Run this file to recreate the current configuration.
18387 # Compiler output produced by configure, useful for debugging
18388 # configure, is in config.log if it exists.
18389
18390 debug=false
18391 ac_cs_recheck=false
18392 ac_cs_silent=false
18393
18394 SHELL=\${CONFIG_SHELL-$SHELL}
18395 export SHELL
18396 _ASEOF
18397 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18398 ## -------------------- ##
18399 ## M4sh Initialization. ##
18400 ## -------------------- ##
18401
18402 # Be more Bourne compatible
18403 DUALCASE=1; export DUALCASE # for MKS sh
18404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18405 emulate sh
18406 NULLCMD=:
18407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18408 # is contrary to our usage. Disable this feature.
18409 alias -g '${1+"$@"}'='"$@"'
18410 setopt NO_GLOB_SUBST
18411 else
18412 case `(set -o) 2>/dev/null` in #(
18413 *posix*) :
18414 set -o posix ;; #(
18415 *) :
18416 ;;
18417 esac
18418 fi
18419
18420
18421 as_nl='
18422 '
18423 export as_nl
18424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18428 # Prefer a ksh shell builtin over an external printf program on Solaris,
18429 # but without wasting forks for bash or zsh.
18430 if test -z "$BASH_VERSION$ZSH_VERSION" \
18431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18432 as_echo='print -r --'
18433 as_echo_n='print -rn --'
18434 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18435 as_echo='printf %s\n'
18436 as_echo_n='printf %s'
18437 else
18438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18440 as_echo_n='/usr/ucb/echo -n'
18441 else
18442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18443 as_echo_n_body='eval
18444 arg=$1;
18445 case $arg in #(
18446 *"$as_nl"*)
18447 expr "X$arg" : "X\\(.*\\)$as_nl";
18448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18449 esac;
18450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18451 '
18452 export as_echo_n_body
18453 as_echo_n='sh -c $as_echo_n_body as_echo'
18454 fi
18455 export as_echo_body
18456 as_echo='sh -c $as_echo_body as_echo'
18457 fi
18458
18459 # The user is always right.
18460 if test "${PATH_SEPARATOR+set}" != set; then
18461 PATH_SEPARATOR=:
18462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18464 PATH_SEPARATOR=';'
18465 }
18466 fi
18467
18468
18469 # IFS
18470 # We need space, tab and new line, in precisely that order. Quoting is
18471 # there to prevent editors from complaining about space-tab.
18472 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18473 # splitting by setting IFS to empty value.)
18474 IFS=" "" $as_nl"
18475
18476 # Find who we are. Look in the path if we contain no directory separator.
18477 as_myself=
18478 case $0 in #((
18479 *[\\/]* ) as_myself=$0 ;;
18480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $PATH
18482 do
18483 IFS=$as_save_IFS
18484 test -z "$as_dir" && as_dir=.
18485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18486 done
18487 IFS=$as_save_IFS
18488
18489 ;;
18490 esac
18491 # We did not find ourselves, most probably we were run as `sh COMMAND'
18492 # in which case we are not to be found in the path.
18493 if test "x$as_myself" = x; then
18494 as_myself=$0
18495 fi
18496 if test ! -f "$as_myself"; then
18497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18498 exit 1
18499 fi
18500
18501 # Unset variables that we do not need and which cause bugs (e.g. in
18502 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18503 # suppresses any "Segmentation fault" message there. '((' could
18504 # trigger a bug in pdksh 5.2.14.
18505 for as_var in BASH_ENV ENV MAIL MAILPATH
18506 do eval test x\${$as_var+set} = xset \
18507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18508 done
18509 PS1='$ '
18510 PS2='> '
18511 PS4='+ '
18512
18513 # NLS nuisances.
18514 LC_ALL=C
18515 export LC_ALL
18516 LANGUAGE=C
18517 export LANGUAGE
18518
18519 # CDPATH.
18520 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18521
18522
18523 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18524 # ----------------------------------------
18525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18527 # script with STATUS, using 1 if that was 0.
18528 as_fn_error ()
18529 {
18530 as_status=$1; test $as_status -eq 0 && as_status=1
18531 if test "$4"; then
18532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18534 fi
18535 $as_echo "$as_me: error: $2" >&2
18536 as_fn_exit $as_status
18537 } # as_fn_error
18538
18539
18540 # as_fn_set_status STATUS
18541 # -----------------------
18542 # Set $? to STATUS, without forking.
18543 as_fn_set_status ()
18544 {
18545 return $1
18546 } # as_fn_set_status
18547
18548 # as_fn_exit STATUS
18549 # -----------------
18550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18551 as_fn_exit ()
18552 {
18553 set +e
18554 as_fn_set_status $1
18555 exit $1
18556 } # as_fn_exit
18557
18558 # as_fn_unset VAR
18559 # ---------------
18560 # Portably unset VAR.
18561 as_fn_unset ()
18562 {
18563 { eval $1=; unset $1;}
18564 }
18565 as_unset=as_fn_unset
18566 # as_fn_append VAR VALUE
18567 # ----------------------
18568 # Append the text in VALUE to the end of the definition contained in VAR. Take
18569 # advantage of any shell optimizations that allow amortized linear growth over
18570 # repeated appends, instead of the typical quadratic growth present in naive
18571 # implementations.
18572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18573 eval 'as_fn_append ()
18574 {
18575 eval $1+=\$2
18576 }'
18577 else
18578 as_fn_append ()
18579 {
18580 eval $1=\$$1\$2
18581 }
18582 fi # as_fn_append
18583
18584 # as_fn_arith ARG...
18585 # ------------------
18586 # Perform arithmetic evaluation on the ARGs, and store the result in the
18587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18588 # must be portable across $(()) and expr.
18589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18590 eval 'as_fn_arith ()
18591 {
18592 as_val=$(( $* ))
18593 }'
18594 else
18595 as_fn_arith ()
18596 {
18597 as_val=`expr "$@" || test $? -eq 1`
18598 }
18599 fi # as_fn_arith
18600
18601
18602 if expr a : '\(a\)' >/dev/null 2>&1 &&
18603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18604 as_expr=expr
18605 else
18606 as_expr=false
18607 fi
18608
18609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18610 as_basename=basename
18611 else
18612 as_basename=false
18613 fi
18614
18615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18616 as_dirname=dirname
18617 else
18618 as_dirname=false
18619 fi
18620
18621 as_me=`$as_basename -- "$0" ||
18622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18623 X"$0" : 'X\(//\)$' \| \
18624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18625 $as_echo X/"$0" |
18626 sed '/^.*\/\([^/][^/]*\)\/*$/{
18627 s//\1/
18628 q
18629 }
18630 /^X\/\(\/\/\)$/{
18631 s//\1/
18632 q
18633 }
18634 /^X\/\(\/\).*/{
18635 s//\1/
18636 q
18637 }
18638 s/.*/./; q'`
18639
18640 # Avoid depending upon Character Ranges.
18641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18644 as_cr_digits='0123456789'
18645 as_cr_alnum=$as_cr_Letters$as_cr_digits
18646
18647 ECHO_C= ECHO_N= ECHO_T=
18648 case `echo -n x` in #(((((
18649 -n*)
18650 case `echo 'xy\c'` in
18651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18652 xy) ECHO_C='\c';;
18653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18654 ECHO_T=' ';;
18655 esac;;
18656 *)
18657 ECHO_N='-n';;
18658 esac
18659
18660 rm -f conf$$ conf$$.exe conf$$.file
18661 if test -d conf$$.dir; then
18662 rm -f conf$$.dir/conf$$.file
18663 else
18664 rm -f conf$$.dir
18665 mkdir conf$$.dir 2>/dev/null
18666 fi
18667 if (echo >conf$$.file) 2>/dev/null; then
18668 if ln -s conf$$.file conf$$ 2>/dev/null; then
18669 as_ln_s='ln -s'
18670 # ... but there are two gotchas:
18671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18673 # In both cases, we have to default to `cp -pR'.
18674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18675 as_ln_s='cp -pR'
18676 elif ln conf$$.file conf$$ 2>/dev/null; then
18677 as_ln_s=ln
18678 else
18679 as_ln_s='cp -pR'
18680 fi
18681 else
18682 as_ln_s='cp -pR'
18683 fi
18684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18685 rmdir conf$$.dir 2>/dev/null
18686
18687
18688 # as_fn_mkdir_p
18689 # -------------
18690 # Create "$as_dir" as a directory, including parents if necessary.
18691 as_fn_mkdir_p ()
18692 {
18693
18694 case $as_dir in #(
18695 -*) as_dir=./$as_dir;;
18696 esac
18697 test -d "$as_dir" || eval $as_mkdir_p || {
18698 as_dirs=
18699 while :; do
18700 case $as_dir in #(
18701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18702 *) as_qdir=$as_dir;;
18703 esac
18704 as_dirs="'$as_qdir' $as_dirs"
18705 as_dir=`$as_dirname -- "$as_dir" ||
18706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18707 X"$as_dir" : 'X\(//\)[^/]' \| \
18708 X"$as_dir" : 'X\(//\)$' \| \
18709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18710 $as_echo X"$as_dir" |
18711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18712 s//\1/
18713 q
18714 }
18715 /^X\(\/\/\)[^/].*/{
18716 s//\1/
18717 q
18718 }
18719 /^X\(\/\/\)$/{
18720 s//\1/
18721 q
18722 }
18723 /^X\(\/\).*/{
18724 s//\1/
18725 q
18726 }
18727 s/.*/./; q'`
18728 test -d "$as_dir" && break
18729 done
18730 test -z "$as_dirs" || eval "mkdir $as_dirs"
18731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18732
18733
18734 } # as_fn_mkdir_p
18735 if mkdir -p . 2>/dev/null; then
18736 as_mkdir_p='mkdir -p "$as_dir"'
18737 else
18738 test -d ./-p && rmdir ./-p
18739 as_mkdir_p=false
18740 fi
18741
18742
18743 # as_fn_executable_p FILE
18744 # -----------------------
18745 # Test if FILE is an executable regular file.
18746 as_fn_executable_p ()
18747 {
18748 test -f "$1" && test -x "$1"
18749 } # as_fn_executable_p
18750 as_test_x='test -x'
18751 as_executable_p=as_fn_executable_p
18752
18753 # Sed expression to map a string onto a valid CPP name.
18754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18755
18756 # Sed expression to map a string onto a valid variable name.
18757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18758
18759
18760 exec 6>&1
18761 ## ----------------------------------- ##
18762 ## Main body of $CONFIG_STATUS script. ##
18763 ## ----------------------------------- ##
18764 _ASEOF
18765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18766
18767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18768 # Save the log message, to keep $0 and so on meaningful, and to
18769 # report actual input values of CONFIG_FILES etc. instead of their
18770 # values after options handling.
18771 ac_log="
18772 This file was extended by $as_me, which was
18773 generated by GNU Autoconf 2.69. Invocation command line was
18774
18775 CONFIG_FILES = $CONFIG_FILES
18776 CONFIG_HEADERS = $CONFIG_HEADERS
18777 CONFIG_LINKS = $CONFIG_LINKS
18778 CONFIG_COMMANDS = $CONFIG_COMMANDS
18779 $ $0 $@
18780
18781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18782 "
18783
18784 _ACEOF
18785
18786 case $ac_config_files in *"
18787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18788 esac
18789
18790
18791
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 # Files that config.status was made for.
18794 config_files="$ac_config_files"
18795
18796 _ACEOF
18797
18798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18799 ac_cs_usage="\
18800 \`$as_me' instantiates files and other configuration actions
18801 from templates according to the current configuration. Unless the files
18802 and actions are specified as TAGs, all are instantiated by default.
18803
18804 Usage: $0 [OPTION]... [TAG]...
18805
18806 -h, --help print this help, then exit
18807 -V, --version print version number and configuration settings, then exit
18808 --config print configuration, then exit
18809 -q, --quiet, --silent
18810 do not print progress messages
18811 -d, --debug don't remove temporary files
18812 --recheck update $as_me by reconfiguring in the same conditions
18813 --file=FILE[:TEMPLATE]
18814 instantiate the configuration file FILE
18815
18816 Configuration files:
18817 $config_files
18818
18819 Report bugs to the package provider."
18820
18821 _ACEOF
18822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18823 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18824 ac_cs_version="\\
18825 config.status
18826 configured by $0, generated by GNU Autoconf 2.69,
18827 with options \\"\$ac_cs_config\\"
18828
18829 Copyright (C) 2012 Free Software Foundation, Inc.
18830 This config.status script is free software; the Free Software Foundation
18831 gives unlimited permission to copy, distribute and modify it."
18832
18833 ac_pwd='$ac_pwd'
18834 srcdir='$srcdir'
18835 INSTALL='$INSTALL'
18836 AWK='$AWK'
18837 test -n "\$AWK" || AWK=awk
18838 _ACEOF
18839
18840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18841 # The default lists apply if the user does not specify any file.
18842 ac_need_defaults=:
18843 while test $# != 0
18844 do
18845 case $1 in
18846 --*=?*)
18847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18849 ac_shift=:
18850 ;;
18851 --*=)
18852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18853 ac_optarg=
18854 ac_shift=:
18855 ;;
18856 *)
18857 ac_option=$1
18858 ac_optarg=$2
18859 ac_shift=shift
18860 ;;
18861 esac
18862
18863 case $ac_option in
18864 # Handling of the options.
18865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18866 ac_cs_recheck=: ;;
18867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18868 $as_echo "$ac_cs_version"; exit ;;
18869 --config | --confi | --conf | --con | --co | --c )
18870 $as_echo "$ac_cs_config"; exit ;;
18871 --debug | --debu | --deb | --de | --d | -d )
18872 debug=: ;;
18873 --file | --fil | --fi | --f )
18874 $ac_shift
18875 case $ac_optarg in
18876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18877 '') as_fn_error $? "missing file argument" ;;
18878 esac
18879 as_fn_append CONFIG_FILES " '$ac_optarg'"
18880 ac_need_defaults=false;;
18881 --he | --h | --help | --hel | -h )
18882 $as_echo "$ac_cs_usage"; exit ;;
18883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18885 ac_cs_silent=: ;;
18886
18887 # This is an error.
18888 -*) as_fn_error $? "unrecognized option: \`$1'
18889 Try \`$0 --help' for more information." ;;
18890
18891 *) as_fn_append ac_config_targets " $1"
18892 ac_need_defaults=false ;;
18893
18894 esac
18895 shift
18896 done
18897
18898 ac_configure_extra_args=
18899
18900 if $ac_cs_silent; then
18901 exec 6>/dev/null
18902 ac_configure_extra_args="$ac_configure_extra_args --silent"
18903 fi
18904
18905 _ACEOF
18906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18907 if \$ac_cs_recheck; then
18908 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18909 shift
18910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18911 CONFIG_SHELL='$SHELL'
18912 export CONFIG_SHELL
18913 exec "\$@"
18914 fi
18915
18916 _ACEOF
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918 exec 5>>config.log
18919 {
18920 echo
18921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18922 ## Running $as_me. ##
18923 _ASBOX
18924 $as_echo "$ac_log"
18925 } >&5
18926
18927 _ACEOF
18928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18929 #
18930 # INIT-COMMANDS
18931 #
18932 extrasub_build="$extrasub_build"
18933 extrasub_host="$extrasub_host"
18934 extrasub_target="$extrasub_target"
18935
18936 _ACEOF
18937
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18939
18940 # Handling of arguments.
18941 for ac_config_target in $ac_config_targets
18942 do
18943 case $ac_config_target in
18944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18945
18946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18947 esac
18948 done
18949
18950
18951 # If the user did not use the arguments to specify the items to instantiate,
18952 # then the envvar interface is used. Set only those that are not.
18953 # We use the long form for the default assignment because of an extremely
18954 # bizarre bug on SunOS 4.1.3.
18955 if $ac_need_defaults; then
18956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18957 fi
18958
18959 # Have a temporary directory for convenience. Make it in the build tree
18960 # simply because there is no reason against having it here, and in addition,
18961 # creating and moving files from /tmp can sometimes cause problems.
18962 # Hook for its removal unless debugging.
18963 # Note that there is a small window in which the directory will not be cleaned:
18964 # after its creation but before its name has been assigned to `$tmp'.
18965 $debug ||
18966 {
18967 tmp= ac_tmp=
18968 trap 'exit_status=$?
18969 : "${ac_tmp:=$tmp}"
18970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18971 ' 0
18972 trap 'as_fn_exit 1' 1 2 13 15
18973 }
18974 # Create a (secure) tmp directory for tmp files.
18975
18976 {
18977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18978 test -d "$tmp"
18979 } ||
18980 {
18981 tmp=./conf$$-$RANDOM
18982 (umask 077 && mkdir "$tmp")
18983 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18984 ac_tmp=$tmp
18985
18986 # Set up the scripts for CONFIG_FILES section.
18987 # No need to generate them if there are no CONFIG_FILES.
18988 # This happens for instance with `./config.status config.h'.
18989 if test -n "$CONFIG_FILES"; then
18990
18991 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18992 ac_cs_awk_getline=:
18993 ac_cs_awk_pipe_init=
18994 ac_cs_awk_read_file='
18995 while ((getline aline < (F[key])) > 0)
18996 print(aline)
18997 close(F[key])'
18998 ac_cs_awk_pipe_fini=
18999 else
19000 ac_cs_awk_getline=false
19001 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19002 ac_cs_awk_read_file='
19003 print "|#_!!_#|"
19004 print "cat " F[key] " &&"
19005 '$ac_cs_awk_pipe_init
19006 # The final `:' finishes the AND list.
19007 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19008 fi
19009 ac_cr=`echo X | tr X '\015'`
19010 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19011 # But we know of no other shell where ac_cr would be empty at this
19012 # point, so we can use a bashism as a fallback.
19013 if test "x$ac_cr" = x; then
19014 eval ac_cr=\$\'\\r\'
19015 fi
19016 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19017 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19018 ac_cs_awk_cr='\\r'
19019 else
19020 ac_cs_awk_cr=$ac_cr
19021 fi
19022
19023 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19024 _ACEOF
19025
19026 # Create commands to substitute file output variables.
19027 {
19028 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19029 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19030 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19031 echo "_ACAWK" &&
19032 echo "_ACEOF"
19033 } >conf$$files.sh &&
19034 . ./conf$$files.sh ||
19035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19036 rm -f conf$$files.sh
19037
19038 {
19039 echo "cat >conf$$subs.awk <<_ACEOF" &&
19040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19041 echo "_ACEOF"
19042 } >conf$$subs.sh ||
19043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19045 ac_delim='%!_!# '
19046 for ac_last_try in false false false false false :; do
19047 . ./conf$$subs.sh ||
19048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19049
19050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19051 if test $ac_delim_n = $ac_delim_num; then
19052 break
19053 elif $ac_last_try; then
19054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19055 else
19056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19057 fi
19058 done
19059 rm -f conf$$subs.sh
19060
19061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19063 _ACEOF
19064 sed -n '
19065 h
19066 s/^/S["/; s/!.*/"]=/
19067 p
19068 g
19069 s/^[^!]*!//
19070 :repl
19071 t repl
19072 s/'"$ac_delim"'$//
19073 t delim
19074 :nl
19075 h
19076 s/\(.\{148\}\)..*/\1/
19077 t more1
19078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19079 p
19080 n
19081 b repl
19082 :more1
19083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19084 p
19085 g
19086 s/.\{148\}//
19087 t nl
19088 :delim
19089 h
19090 s/\(.\{148\}\)..*/\1/
19091 t more2
19092 s/["\\]/\\&/g; s/^/"/; s/$/"/
19093 p
19094 b
19095 :more2
19096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19097 p
19098 g
19099 s/.\{148\}//
19100 t delim
19101 ' <conf$$subs.awk | sed '
19102 /^[^""]/{
19103 N
19104 s/\n//
19105 }
19106 ' >>$CONFIG_STATUS || ac_write_fail=1
19107 rm -f conf$$subs.awk
19108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109 _ACAWK
19110 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19111 for (key in S) S_is_set[key] = 1
19112 FS = "\a"
19113 \$ac_cs_awk_pipe_init
19114 }
19115 {
19116 line = $ 0
19117 nfields = split(line, field, "@")
19118 substed = 0
19119 len = length(field[1])
19120 for (i = 2; i < nfields; i++) {
19121 key = field[i]
19122 keylen = length(key)
19123 if (S_is_set[key]) {
19124 value = S[key]
19125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19126 len += length(value) + length(field[++i])
19127 substed = 1
19128 } else
19129 len += 1 + keylen
19130 }
19131 if (nfields == 3 && !substed) {
19132 key = field[2]
19133 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19134 \$ac_cs_awk_read_file
19135 next
19136 }
19137 }
19138 print line
19139 }
19140 \$ac_cs_awk_pipe_fini
19141 _ACAWK
19142 _ACEOF
19143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19146 else
19147 cat
19148 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19150 _ACEOF
19151
19152 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19153 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19154 # trailing colons and then remove the whole line if VPATH becomes empty
19155 # (actually we leave an empty line to preserve line numbers).
19156 if test "x$srcdir" = x.; then
19157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19158 h
19159 s///
19160 s/^/:/
19161 s/[ ]*$/:/
19162 s/:\$(srcdir):/:/g
19163 s/:\${srcdir}:/:/g
19164 s/:@srcdir@:/:/g
19165 s/^:*//
19166 s/:*$//
19167 x
19168 s/\(=[ ]*\).*/\1/
19169 G
19170 s/\n//
19171 s/^[^=]*=[ ]*$//
19172 }'
19173 fi
19174
19175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19176 fi # test -n "$CONFIG_FILES"
19177
19178
19179 eval set X " :F $CONFIG_FILES "
19180 shift
19181 for ac_tag
19182 do
19183 case $ac_tag in
19184 :[FHLC]) ac_mode=$ac_tag; continue;;
19185 esac
19186 case $ac_mode$ac_tag in
19187 :[FHL]*:*);;
19188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19189 :[FH]-) ac_tag=-:-;;
19190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19191 esac
19192 ac_save_IFS=$IFS
19193 IFS=:
19194 set x $ac_tag
19195 IFS=$ac_save_IFS
19196 shift
19197 ac_file=$1
19198 shift
19199
19200 case $ac_mode in
19201 :L) ac_source=$1;;
19202 :[FH])
19203 ac_file_inputs=
19204 for ac_f
19205 do
19206 case $ac_f in
19207 -) ac_f="$ac_tmp/stdin";;
19208 *) # Look for the file first in the build tree, then in the source tree
19209 # (if the path is not absolute). The absolute path cannot be DOS-style,
19210 # because $ac_f cannot contain `:'.
19211 test -f "$ac_f" ||
19212 case $ac_f in
19213 [\\/$]*) false;;
19214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19215 esac ||
19216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19217 esac
19218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19219 as_fn_append ac_file_inputs " '$ac_f'"
19220 done
19221
19222 # Let's still pretend it is `configure' which instantiates (i.e., don't
19223 # use $as_me), people would be surprised to read:
19224 # /* config.h. Generated by config.status. */
19225 configure_input='Generated from '`
19226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19227 `' by configure.'
19228 if test x"$ac_file" != x-; then
19229 configure_input="$ac_file. $configure_input"
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19231 $as_echo "$as_me: creating $ac_file" >&6;}
19232 fi
19233 # Neutralize special characters interpreted by sed in replacement strings.
19234 case $configure_input in #(
19235 *\&* | *\|* | *\\* )
19236 ac_sed_conf_input=`$as_echo "$configure_input" |
19237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19238 *) ac_sed_conf_input=$configure_input;;
19239 esac
19240
19241 case $ac_tag in
19242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19244 esac
19245 ;;
19246 esac
19247
19248 ac_dir=`$as_dirname -- "$ac_file" ||
19249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19250 X"$ac_file" : 'X\(//\)[^/]' \| \
19251 X"$ac_file" : 'X\(//\)$' \| \
19252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19253 $as_echo X"$ac_file" |
19254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 s//\1/
19256 q
19257 }
19258 /^X\(\/\/\)[^/].*/{
19259 s//\1/
19260 q
19261 }
19262 /^X\(\/\/\)$/{
19263 s//\1/
19264 q
19265 }
19266 /^X\(\/\).*/{
19267 s//\1/
19268 q
19269 }
19270 s/.*/./; q'`
19271 as_dir="$ac_dir"; as_fn_mkdir_p
19272 ac_builddir=.
19273
19274 case "$ac_dir" in
19275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276 *)
19277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19278 # A ".." for each directory in $ac_dir_suffix.
19279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19280 case $ac_top_builddir_sub in
19281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19283 esac ;;
19284 esac
19285 ac_abs_top_builddir=$ac_pwd
19286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287 # for backward compatibility:
19288 ac_top_builddir=$ac_top_build_prefix
19289
19290 case $srcdir in
19291 .) # We are building in place.
19292 ac_srcdir=.
19293 ac_top_srcdir=$ac_top_builddir_sub
19294 ac_abs_top_srcdir=$ac_pwd ;;
19295 [\\/]* | ?:[\\/]* ) # Absolute name.
19296 ac_srcdir=$srcdir$ac_dir_suffix;
19297 ac_top_srcdir=$srcdir
19298 ac_abs_top_srcdir=$srcdir ;;
19299 *) # Relative name.
19300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301 ac_top_srcdir=$ac_top_build_prefix$srcdir
19302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19303 esac
19304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19305
19306
19307 case $ac_mode in
19308 :F)
19309 #
19310 # CONFIG_FILE
19311 #
19312
19313 case $INSTALL in
19314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19316 esac
19317 _ACEOF
19318
19319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320 # If the template does not know about datarootdir, expand it.
19321 # FIXME: This hack should be removed a few years after 2.60.
19322 ac_datarootdir_hack=; ac_datarootdir_seen=
19323 ac_sed_dataroot='
19324 /datarootdir/ {
19325 p
19326 q
19327 }
19328 /@datadir@/p
19329 /@docdir@/p
19330 /@infodir@/p
19331 /@localedir@/p
19332 /@mandir@/p'
19333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19334 *datarootdir*) ac_datarootdir_seen=yes;;
19335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19338 _ACEOF
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 ac_datarootdir_hack='
19341 s&@datadir@&$datadir&g
19342 s&@docdir@&$docdir&g
19343 s&@infodir@&$infodir&g
19344 s&@localedir@&$localedir&g
19345 s&@mandir@&$mandir&g
19346 s&\\\${datarootdir}&$datarootdir&g' ;;
19347 esac
19348 _ACEOF
19349
19350 # Neutralize VPATH when `$srcdir' = `.'.
19351 # Shell code in configure.ac might set extrasub.
19352 # FIXME: do we really want to maintain this feature?
19353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19354 ac_sed_extra="$ac_vpsub
19355 $extrasub
19356 _ACEOF
19357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19358 :t
19359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19360 s|@configure_input@|$ac_sed_conf_input|;t t
19361 s&@top_builddir@&$ac_top_builddir_sub&;t t
19362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19363 s&@srcdir@&$ac_srcdir&;t t
19364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365 s&@top_srcdir@&$ac_top_srcdir&;t t
19366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367 s&@builddir@&$ac_builddir&;t t
19368 s&@abs_builddir@&$ac_abs_builddir&;t t
19369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370 s&@INSTALL@&$ac_INSTALL&;t t
19371 $ac_datarootdir_hack
19372 "
19373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19374 if $ac_cs_awk_getline; then
19375 $AWK -f "$ac_tmp/subs.awk"
19376 else
19377 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19378 fi \
19379 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19380
19381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19384 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19386 which seems to be undefined. Please make sure it is defined" >&5
19387 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19388 which seems to be undefined. Please make sure it is defined" >&2;}
19389
19390 rm -f "$ac_tmp/stdin"
19391 case $ac_file in
19392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19394 esac \
19395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19396 ;;
19397
19398
19399
19400 esac
19401
19402
19403 case $ac_file$ac_mode in
19404 "Makefile":F) sed "$extrasub_build" Makefile |
19405 sed "$extrasub_host" |
19406 sed "$extrasub_target" > mf$$
19407 mv -f mf$$ Makefile ;;
19408
19409 esac
19410 done # for ac_tag
19411
19412
19413 as_fn_exit 0
19414 _ACEOF
19415 ac_clean_files=$ac_clean_files_save
19416
19417 test $ac_write_fail = 0 ||
19418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19419
19420
19421 # configure is writing to config.log, and then calls config.status.
19422 # config.status does its own redirection, appending to config.log.
19423 # Unfortunately, on DOS this fails, as config.log is still kept open
19424 # by configure, so config.status won't be able to write to it; its
19425 # output is simply discarded. So we exec the FD to /dev/null,
19426 # effectively closing config.log, so it can be properly (re)opened and
19427 # appended to by config.status. When coming back to configure, we
19428 # need to make the FD available again.
19429 if test "$no_create" != yes; then
19430 ac_cs_success=:
19431 ac_config_status_args=
19432 test "$silent" = yes &&
19433 ac_config_status_args="$ac_config_status_args --quiet"
19434 exec 5>/dev/null
19435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19436 exec 5>>config.log
19437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19438 # would make configure fail if this is the last instruction.
19439 $ac_cs_success || as_fn_exit 1
19440 fi
19441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19444 fi
19445