]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
libphobos: Add power*-*-freebsd* as supported target
[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 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
709 GDC
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
727 AWK
728 SED
729 LN_S
730 LN
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr_dir
815 with_mpfr
816 with_mpfr_include
817 with_mpfr_lib
818 with_gmp_dir
819 with_gmp
820 with_gmp_include
821 with_gmp_lib
822 with_stage1_libs
823 with_static_standard_libraries
824 with_stage1_ldflags
825 with_boot_libs
826 with_boot_ldflags
827 with_isl
828 with_isl_include
829 with_isl_lib
830 enable_isl_version_check
831 enable_lto
832 enable_linker_plugin_configure_flags
833 enable_linker_plugin_flags
834 enable_host_shared
835 enable_stage1_languages
836 enable_objc_gc
837 with_target_bdw_gc
838 with_target_bdw_gc_include
839 with_target_bdw_gc_lib
840 with_gcc_major_version_only
841 with_build_sysroot
842 with_debug_prefix_map
843 with_build_config
844 enable_vtable_verify
845 enable_serial_configure
846 with_build_time_tools
847 enable_maintainer_mode
848 enable_stage1_checking
849 enable_werror
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CXX
860 CXXFLAGS
861 CCC
862 build_configargs
863 host_configargs
864 target_configargs
865 AR
866 AS
867 DLLTOOL
868 DSYMUTIL
869 LD
870 LIPO
871 NM
872 RANLIB
873 STRIP
874 WINDRES
875 WINDMC
876 OBJCOPY
877 OBJDUMP
878 OTOOL
879 READELF
880 CC_FOR_TARGET
881 CXX_FOR_TARGET
882 GCC_FOR_TARGET
883 GFORTRAN_FOR_TARGET
884 GOC_FOR_TARGET
885 GDC_FOR_TARGET
886 AR_FOR_TARGET
887 AS_FOR_TARGET
888 DLLTOOL_FOR_TARGET
889 DSYMUTIL_FOR_TARGET
890 LD_FOR_TARGET
891 LIPO_FOR_TARGET
892 NM_FOR_TARGET
893 OBJCOPY_FOR_TARGET
894 OBJDUMP_FOR_TARGET
895 OTOOL_FOR_TARGET
896 RANLIB_FOR_TARGET
897 READELF_FOR_TARGET
898 STRIP_FOR_TARGET
899 WINDRES_FOR_TARGET
900 WINDMC_FOR_TARGET'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
960 fi
961
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1031
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1067
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1072
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1102
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1176
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1235
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1251
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1285
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1288 ;;
1289
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1299
1300 *)
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 ;;
1307
1308 esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1314 fi
1315
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1322 fi
1323
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1329 do
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1373
1374
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1405 fi
1406 else
1407 ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 fi
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420 fi
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 case $srcdir in
1428 *" "*)
1429 as_fn_error $? "path to source, $srcdir, contains spaces"
1430 ;;
1431 esac
1432 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1502
1503 cat <<\_ACEOF
1504
1505 Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518
1519 cat <<\_ACEOF
1520
1521 Optional Features:
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1527 host triple by ARG
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1536
1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1540 Enable compressed debug sections for gas, gold or ld
1541 by default
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
1545 --enable-libada build libada directory
1546 --enable-libssp build libssp directory
1547 --disable-libstdcxx do not build libstdc++-v3 directory
1548 --enable-liboffloadmic=ARG
1549 build liboffloadmic [ARG={no,host,target}]
1550 --enable-bootstrap enable bootstrapping [yes if native build]
1551 --enable-pgo-build[=lto]
1552 enable the PGO build
1553 --disable-isl-version-check
1554 disable check for isl version
1555 --enable-lto enable link time optimization support
1556 --enable-linker-plugin-configure-flags=FLAGS
1557 additional flags for configuring linker plugins
1558 [none]
1559 --enable-linker-plugin-flags=FLAGS
1560 additional flags for configuring and building linker
1561 plugins [none]
1562 --enable-host-shared build host code as shared libraries
1563 --enable-stage1-languages[=all]
1564 choose additional languages to build during stage1.
1565 Mostly useful for compiler development
1566 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1567 Objective-C runtime
1568 --enable-vtable-verify Enable vtable verification feature
1569 --enable-serial-[{host,target,build}-]configure
1570 force sequential configuration of sub-packages for
1571 the host, target or build machine, or all
1572 sub-packages
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-stage1-checking[=all]
1577 choose additional checking for stage1 of the
1578 compiler
1579 --enable-werror enable -Werror in bootstrap stage2 and later
1580
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-build-libsubdir=DIR Directory where to find libraries for build system
1585 --with-system-zlib use installed libz
1586 --with-mpc=PATH specify prefix directory for installed MPC package.
1587 Equivalent to --with-mpc-include=PATH/include plus
1588 --with-mpc-lib=PATH/lib
1589 --with-mpc-include=PATH specify directory for installed MPC include files
1590 --with-mpc-lib=PATH specify directory for the installed MPC library
1591 --with-mpfr-dir=PATH this option has been REMOVED
1592 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1593 Equivalent to --with-mpfr-include=PATH/include plus
1594 --with-mpfr-lib=PATH/lib
1595 --with-mpfr-include=PATH
1596 specify directory for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1598 --with-gmp-dir=PATH this option has been REMOVED
1599 --with-gmp=PATH specify prefix directory for the installed GMP
1600 package. Equivalent to
1601 --with-gmp-include=PATH/include plus
1602 --with-gmp-lib=PATH/lib
1603 --with-gmp-include=PATH specify directory for installed GMP include files
1604 --with-gmp-lib=PATH specify directory for the installed GMP library
1605 --with-stage1-libs=LIBS libraries for stage1
1606 --with-static-standard-libraries
1607 use -static-libstdc++ and -static-libgcc
1608 (default=auto)
1609 --with-stage1-ldflags=FLAGS
1610 linker flags for stage1
1611 --with-boot-libs=LIBS libraries for stage2 and later
1612 --with-boot-ldflags=FLAGS
1613 linker flags for stage2 and later
1614 --with-isl=PATH Specify prefix directory for the installed isl
1615 package. Equivalent to
1616 --with-isl-include=PATH/include plus
1617 --with-isl-lib=PATH/lib
1618 --with-isl-include=PATH Specify directory for installed isl include files
1619 --with-isl-lib=PATH Specify the directory for the installed isl library
1620 --with-target-bdw-gc=PATHLIST
1621 specify prefix directory for installed bdw-gc
1622 package. Equivalent to
1623 --with-target-bdw-gc-include=PATH/include plus
1624 --with-target-bdw-gc-lib=PATH/lib
1625 --with-target-bdw-gc-include=PATHLIST
1626 specify directories for installed bdw-gc include
1627 files
1628 --with-target-bdw-gc-lib=PATHLIST
1629 specify directories for installed bdw-gc library
1630 --with-gcc-major-version-only
1631 use only GCC major number in filesystem paths
1632 --with-build-sysroot=SYSROOT
1633 use sysroot as the system root during the build
1634 --with-debug-prefix-map='A=B C=D ...'
1635 map A to B, C to D ... in debug information
1636 --with-build-config='NAME NAME2...'
1637 use config/NAME.mk build configuration
1638 --with-build-time-tools=PATH
1639 use given path to find target tools during the build
1640
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1651 build_configargs
1652 additional configure arguments for build directories
1653 host_configargs
1654 additional configure arguments for host directories
1655 target_configargs
1656 additional configure arguments for target directories
1657 AR AR for the host
1658 AS AS for the host
1659 DLLTOOL DLLTOOL for the host
1660 DSYMUTIL DSYMUTIL for the host
1661 LD LD for the host
1662 LIPO LIPO for the host
1663 NM NM for the host
1664 RANLIB RANLIB for the host
1665 STRIP STRIP for the host
1666 WINDRES WINDRES for the host
1667 WINDMC WINDMC for the host
1668 OBJCOPY OBJCOPY for the host
1669 OBJDUMP OBJDUMP for the host
1670 OTOOL OTOOL for the host
1671 READELF READELF for the host
1672 CC_FOR_TARGET
1673 CC for the target
1674 CXX_FOR_TARGET
1675 CXX for the target
1676 GCC_FOR_TARGET
1677 GCC for the target
1678 GFORTRAN_FOR_TARGET
1679 GFORTRAN for the target
1680 GOC_FOR_TARGET
1681 GOC for the target
1682 GDC_FOR_TARGET
1683 GDC for the target
1684 AR_FOR_TARGET
1685 AR for the target
1686 AS_FOR_TARGET
1687 AS for the target
1688 DLLTOOL_FOR_TARGET
1689 DLLTOOL for the target
1690 DSYMUTIL_FOR_TARGET
1691 DSYMUTIL for the target
1692 LD_FOR_TARGET
1693 LD for the target
1694 LIPO_FOR_TARGET
1695 LIPO for the target
1696 NM_FOR_TARGET
1697 NM for the target
1698 OBJCOPY_FOR_TARGET
1699 OBJCOPY for the target
1700 OBJDUMP_FOR_TARGET
1701 OBJDUMP for the target
1702 OTOOL_FOR_TARGET
1703 OTOOL for the target
1704 RANLIB_FOR_TARGET
1705 RANLIB for the target
1706 READELF_FOR_TARGET
1707 READELF for the target
1708 STRIP_FOR_TARGET
1709 STRIP for the target
1710 WINDRES_FOR_TARGET
1711 WINDRES for the target
1712 WINDMC_FOR_TARGET
1713 WINDMC for the target
1714
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1717
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1730
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *)
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1746
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1776 fi
1777
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.69
1783
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1789 fi
1790
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1794
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_compile
1832
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865 fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_cxx_try_compile
1870
1871 # ac_fn_cxx_try_link LINENO
1872 # -------------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_link ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915 } # ac_fn_cxx_try_link
1916
1917 # ac_fn_c_try_link LINENO
1918 # -----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_c_try_link ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952 fi
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_link
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1965
1966 It was created by $as_me, which was
1967 generated by GNU Autoconf 2.69. Invocation command line was
1968
1969 $ $0 $@
1970
1971 _ACEOF
1972 exec 5>>config.log
1973 {
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1978
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995
1996 _ASUNAME
1997
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2006
2007 } >&5
2008
2009 cat >&5 <<_ACEOF
2010
2011
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2015
2016 _ACEOF
2017
2018
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2029 do
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042 2)
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2055 ;;
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2058 fi
2059 as_fn_append ac_configure_args " '$ac_arg'"
2060 ;;
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2066
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2074 {
2075 echo
2076
2077 $as_echo "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2080 echo
2081 # The following way of writing the cache mishandles newlines in values,
2082 (
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in #(
2086 *${as_nl}*)
2087 case $ac_var in #(
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 esac
2091 case $ac_var in #(
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2095 esac ;;
2096 esac
2097 done
2098 (set) 2>&1 |
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
2101 sed -n \
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 ;; #(
2105 *)
2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 ;;
2108 esac |
2109 sort
2110 )
2111 echo
2112
2113 $as_echo "## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##"
2116 echo
2117 for ac_var in $ac_subst_vars
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126
2127 if test -n "$ac_subst_files"; then
2128 $as_echo "## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##"
2131 echo
2132 for ac_var in $ac_subst_files
2133 do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2141 fi
2142
2143 if test -s confdefs.h; then
2144 $as_echo "## ----------- ##
2145 ## confdefs.h. ##
2146 ## ----------- ##"
2147 echo
2148 cat confdefs.h
2149 echo
2150 fi
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2154 } >&5
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 exit $exit_status
2158 ' 0
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161 done
2162 ac_signal=0
2163
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2166
2167 $as_echo "/* confdefs.h */" > confdefs.h
2168
2169 # Predefined preprocessor variables.
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2193 _ACEOF
2194
2195
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2198 ac_site_file1=NONE
2199 ac_site_file2=NONE
2200 if test -n "$CONFIG_SITE"; then
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2206 esac
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210 else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2213 fi
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215 do
2216 test "x$ac_site_file" = xNONE && continue
2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2221 . "$ac_site_file" \
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 as_fn_error $? "failed to load site script $ac_site_file
2225 See \`config.log' for more details" "$LINENO" 5; }
2226 fi
2227 done
2228
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2239 fi
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2244 fi
2245
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2294 fi
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 fi
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314
2315
2316
2317
2318
2319
2320 progname=$0
2321 # if PWD already has a value, it is probably wrong.
2322 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2323
2324 # Export original configure arguments for use by sub-configures.
2325 # Quote arguments with shell meta charatcers.
2326 TOPLEVEL_CONFIGURE_ARGUMENTS=
2327 set -- "$progname" "$@"
2328 for ac_arg
2329 do
2330 case "$ac_arg" in
2331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2333 # if the argument is of the form -foo=baz, quote the baz part only
2334 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2335 *) ;;
2336 esac
2337 # Add the quoted argument to the list.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2339 done
2340 if test "$silent" = yes; then
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2342 fi
2343 # Remove the initial space we just introduced and, as these will be
2344 # expanded by make, quote '$'.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2346
2347
2348 # Find the build, host, and target systems.
2349 ac_aux_dir=
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351 if test -f "$ac_dir/install-sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 break
2355 elif test -f "$ac_dir/install.sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 break
2359 elif test -f "$ac_dir/shtool"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 break
2363 fi
2364 done
2365 if test -z "$ac_aux_dir"; then
2366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2367 fi
2368
2369 # These three variables are undocumented and unsupported,
2370 # and are intended to be withdrawn in a future Autoconf release.
2371 # They can cause serious problems if a builder's source tree is in a directory
2372 # whose full name contains unusual characters.
2373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2376
2377
2378 # Make sure we can run config.sub.
2379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2380 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2381
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2383 $as_echo_n "checking build system type... " >&6; }
2384 if ${ac_cv_build+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 ac_build_alias=$build_alias
2388 test "x$ac_build_alias" = x &&
2389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2390 test "x$ac_build_alias" = x &&
2391 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2392 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2394
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2397 $as_echo "$ac_cv_build" >&6; }
2398 case $ac_cv_build in
2399 *-*-*) ;;
2400 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2401 esac
2402 build=$ac_cv_build
2403 ac_save_IFS=$IFS; IFS='-'
2404 set x $ac_cv_build
2405 shift
2406 build_cpu=$1
2407 build_vendor=$2
2408 shift; shift
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2411 build_os=$*
2412 IFS=$ac_save_IFS
2413 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2414
2415
2416 case ${build_alias} in
2417 "") build_noncanonical=${build} ;;
2418 *) build_noncanonical=${build_alias} ;;
2419 esac
2420
2421
2422
2423 case ${host_alias} in
2424 "") host_noncanonical=${build_noncanonical} ;;
2425 *) host_noncanonical=${host_alias} ;;
2426 esac
2427
2428
2429
2430 case ${target_alias} in
2431 "") target_noncanonical=${host_noncanonical} ;;
2432 *) target_noncanonical=${target_alias} ;;
2433 esac
2434
2435
2436
2437
2438 test "$host_noncanonical" = "$target_noncanonical" &&
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2440 NONENONEs,x,x, &&
2441 program_transform_name=s,y,y,
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2444 $as_echo_n "checking host system type... " >&6; }
2445 if ${ac_cv_host+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test "x$host_alias" = x; then
2449 ac_cv_host=$ac_cv_build
2450 else
2451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2453 fi
2454
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2457 $as_echo "$ac_cv_host" >&6; }
2458 case $ac_cv_host in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2461 esac
2462 host=$ac_cv_host
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_host
2465 shift
2466 host_cpu=$1
2467 host_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 host_os=$*
2472 IFS=$ac_save_IFS
2473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2474
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2477 $as_echo_n "checking target system type... " >&6; }
2478 if ${ac_cv_target+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test "x$target_alias" = x; then
2482 ac_cv_target=$ac_cv_host
2483 else
2484 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2486 fi
2487
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2490 $as_echo "$ac_cv_target" >&6; }
2491 case $ac_cv_target in
2492 *-*-*) ;;
2493 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2494 esac
2495 target=$ac_cv_target
2496 ac_save_IFS=$IFS; IFS='-'
2497 set x $ac_cv_target
2498 shift
2499 target_cpu=$1
2500 target_vendor=$2
2501 shift; shift
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2504 target_os=$*
2505 IFS=$ac_save_IFS
2506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2507
2508
2509 # The aliases save the names the user supplied, while $host etc.
2510 # will get canonicalized.
2511 test -n "$target_alias" &&
2512 test "$program_prefix$program_suffix$program_transform_name" = \
2513 NONENONEs,x,x, &&
2514 program_prefix=${target_alias}-
2515
2516 test "$program_prefix" != NONE &&
2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518 # Use a double $ so make ignores it.
2519 test "$program_suffix" != NONE &&
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521 # Double any \ or $.
2522 # By default was `s,x,x', remove it if useless.
2523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525
2526
2527
2528 # Get 'install' or 'install-sh' and its variants.
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2535 # AIX /bin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 # Reject install programs that cannot install multiple files.
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559 /usr/ucb/* ) ;;
2560 *)
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2563 # by default.
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2570 :
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2574 :
2575 else
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2579 mkdir conftest.dir
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2584 then
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2587 fi
2588 fi
2589 fi
2590 done
2591 done
2592 ;;
2593 esac
2594
2595 done
2596 IFS=$as_save_IFS
2597
2598 rm -rf conftest.one conftest.two conftest.dir
2599
2600 fi
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2603 else
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2609 fi
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2613
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2623 $as_echo_n "checking whether ln works... " >&6; }
2624 if ${acx_cv_prog_LN+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 rm -f conftestdata_t
2628 echo >conftestdata_f
2629 if ln conftestdata_f conftestdata_t 2>/dev/null
2630 then
2631 acx_cv_prog_LN=ln
2632 else
2633 acx_cv_prog_LN=no
2634 fi
2635 rm -f conftestdata_f conftestdata_t
2636
2637 fi
2638 if test $acx_cv_prog_LN = no; then
2639 LN="cp"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2641 $as_echo "no, using $LN" >&6; }
2642 else
2643 LN="$acx_cv_prog_LN"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 fi
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2649 $as_echo_n "checking whether ln -s works... " >&6; }
2650 LN_S=$as_ln_s
2651 if test "$LN_S" = "ln -s"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2656 $as_echo "no, using $LN_S" >&6; }
2657 fi
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2661 if ${ac_cv_path_SED+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2665 for ac_i in 1 2 3 4 5 6 7; do
2666 ac_script="$ac_script$as_nl$ac_script"
2667 done
2668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2669 { ac_script=; unset ac_script;}
2670 if test -z "$SED"; then
2671 ac_path_SED_found=false
2672 # Loop through the user's path and test for each of PROGNAME-LIST
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in sed gsed; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2681 as_fn_executable_p "$ac_path_SED" || continue
2682 # Check for GNU ac_path_SED and select it if it is found.
2683 # Check for GNU $ac_path_SED
2684 case `"$ac_path_SED" --version 2>&1` in
2685 *GNU*)
2686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2687 *)
2688 ac_count=0
2689 $as_echo_n 0123456789 >"conftest.in"
2690 while :
2691 do
2692 cat "conftest.in" "conftest.in" >"conftest.tmp"
2693 mv "conftest.tmp" "conftest.in"
2694 cp "conftest.in" "conftest.nl"
2695 $as_echo '' >> "conftest.nl"
2696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2698 as_fn_arith $ac_count + 1 && ac_count=$as_val
2699 if test $ac_count -gt ${ac_path_SED_max-0}; then
2700 # Best one so far, save it but keep looking for a better one
2701 ac_cv_path_SED="$ac_path_SED"
2702 ac_path_SED_max=$ac_count
2703 fi
2704 # 10*(2^10) chars as input seems more than enough
2705 test $ac_count -gt 10 && break
2706 done
2707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2708 esac
2709
2710 $ac_path_SED_found && break 3
2711 done
2712 done
2713 done
2714 IFS=$as_save_IFS
2715 if test -z "$ac_cv_path_SED"; then
2716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2717 fi
2718 else
2719 ac_cv_path_SED=$SED
2720 fi
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2724 $as_echo "$ac_cv_path_SED" >&6; }
2725 SED="$ac_cv_path_SED"
2726 rm -f conftest.sed
2727
2728 for ac_prog in gawk mawk nawk awk
2729 do
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_AWK+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 AWK=$ac_cv_prog_AWK
2758 if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766
2767 test -n "$AWK" && break
2768 done
2769
2770
2771 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2772
2773 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2774 # a relative path.
2775 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2776 INSTALL="${srcpwd}/install-sh -c"
2777 fi
2778
2779 # Set srcdir to "." if that's what it is.
2780 # This is important for multilib support.
2781 pwd=`${PWDCMD-pwd}`
2782 if test "${pwd}" = "${srcpwd}" ; then
2783 srcdir=.
2784 fi
2785
2786 topsrcdir=$srcpwd
2787
2788 extra_host_args=
2789
2790 ### To add a new directory to the tree, first choose whether it is a target
2791 ### or a host dependent tool. Then put it into the appropriate list
2792 ### (library or tools, host or target), doing a dependency sort.
2793
2794 # Subdirs will be configured in the order listed in build_configdirs,
2795 # configdirs, or target_configdirs; see the serialization section below.
2796
2797 # Dependency sorting is only needed when *configuration* must be done in
2798 # a particular order. In all cases a dependency should be specified in
2799 # the Makefile, whether or not it's implicitly specified here.
2800
2801 # Double entries in build_configdirs, configdirs, or target_configdirs may
2802 # cause circular dependencies and break everything horribly.
2803
2804 # these library is used by various programs built for the build
2805 # environment
2806 #
2807 build_libs="build-libiberty build-libcpp"
2808
2809 # these tools are built for the build environment
2810 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2811
2812 # these libraries are used by various programs built for the host environment
2813 #f
2814 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2815
2816 # these tools are built for the host environment
2817 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2818 # know that we are building the simulator.
2819 # binutils, gas and ld appear in that order because it makes sense to run
2820 # "make check" in that particular order.
2821 # If --enable-gold is used, "gold" may replace "ld".
2822 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"
2823
2824 # these libraries are built for the target environment, and are built after
2825 # the host libraries and the host tools (which may be a cross compiler)
2826 # Note that libiberty is not a target library.
2827 target_libraries="target-libgcc \
2828 target-libbacktrace \
2829 target-libgloss \
2830 target-newlib \
2831 target-libgomp \
2832 target-liboffloadmic \
2833 target-libatomic \
2834 target-libitm \
2835 target-libstdc++-v3 \
2836 target-libsanitizer \
2837 target-libvtv \
2838 target-libssp \
2839 target-libquadmath \
2840 target-libgfortran \
2841 target-libffi \
2842 target-libobjc \
2843 target-libada \
2844 target-libgo \
2845 target-libphobos \
2846 target-zlib"
2847
2848 # these tools are built using the target libraries, and are intended to
2849 # run only in the target environment
2850 #
2851 # note: any program that *uses* libraries that are in the "target_libraries"
2852 # list belongs in this list.
2853 #
2854 target_tools="target-rda"
2855
2856 ################################################################################
2857
2858 ## All tools belong in one of the four categories, and are assigned above
2859 ## We assign ${configdirs} this way to remove all embedded newlines. This
2860 ## is important because configure will choke if they ever get through.
2861 ## ${configdirs} is directories we build using the host tools.
2862 ## ${target_configdirs} is directories we build using the target tools.
2863 configdirs=`echo ${host_libs} ${host_tools}`
2864 target_configdirs=`echo ${target_libraries} ${target_tools}`
2865 build_configdirs=`echo ${build_libs} ${build_tools}`
2866
2867
2868
2869 ################################################################################
2870
2871 srcname="gnu development package"
2872
2873 # This gets set non-empty for some net releases of packages.
2874 appdirs=""
2875
2876 # Define is_cross_compiler to save on calls to 'test'.
2877 is_cross_compiler=
2878 if test x"${host}" = x"${target}" ; then
2879 is_cross_compiler=no
2880 else
2881 is_cross_compiler=yes
2882 fi
2883
2884 # Find the build and target subdir names.
2885
2886 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2887 # have matching libraries, they should use host libraries: Makefile.tpl
2888 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2889 # However, they still use the build modules, because the corresponding
2890 # host modules (e.g. bison) are only built for the host when bootstrap
2891 # finishes. So:
2892 # - build_subdir is where we find build modules, and never changes.
2893 # - build_libsubdir is where we find build libraries, and can be overridden.
2894
2895 # Prefix 'build-' so this never conflicts with target_subdir.
2896 build_subdir="build-${build_noncanonical}"
2897
2898 # Check whether --with-build-libsubdir was given.
2899 if test "${with_build_libsubdir+set}" = set; then :
2900 withval=$with_build_libsubdir; build_libsubdir="$withval"
2901 else
2902 build_libsubdir="$build_subdir"
2903 fi
2904
2905 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2906 if ( test $srcdir = . && test -d gcc ) \
2907 || test -d $srcdir/../host-${host_noncanonical}; then
2908 host_subdir="host-${host_noncanonical}"
2909 else
2910 host_subdir=.
2911 fi
2912 # No prefix.
2913 target_subdir=${target_noncanonical}
2914
2915 # Be sure to cover against remnants of an in-tree build.
2916 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2917 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2918 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2919 fi
2920
2921 # Skipdirs are removed silently.
2922 skipdirs=
2923 # Noconfigdirs are removed loudly.
2924 noconfigdirs=""
2925
2926 use_gnu_ld=
2927 # Make sure we don't let GNU ld be added if we didn't want it.
2928 if test x$with_gnu_ld = xno ; then
2929 use_gnu_ld=no
2930 noconfigdirs="$noconfigdirs ld gold"
2931 fi
2932
2933 use_gnu_as=
2934 # Make sure we don't let GNU as be added if we didn't want it.
2935 if test x$with_gnu_as = xno ; then
2936 use_gnu_as=no
2937 noconfigdirs="$noconfigdirs gas"
2938 fi
2939
2940 use_included_zlib=
2941
2942 # Check whether --with-system-zlib was given.
2943 if test "${with_system_zlib+set}" = set; then :
2944 withval=$with_system_zlib;
2945 fi
2946
2947 # Make sure we don't let ZLIB be added if we didn't want it.
2948 if test x$with_system_zlib = xyes ; then
2949 use_included_zlib=no
2950 noconfigdirs="$noconfigdirs zlib"
2951 fi
2952
2953 # some tools are so dependent upon X11 that if we're not building with X,
2954 # it's not even worth trying to configure, much less build, that tool.
2955
2956 case ${with_x} in
2957 yes | "") ;; # the default value for this tree is that X11 is available
2958 no)
2959 skipdirs="${skipdirs} tk itcl libgui"
2960 # We won't be able to build gdbtk without X.
2961 enable_gdbtk=no
2962 ;;
2963 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2964 esac
2965
2966 # Some are only suitable for cross toolchains.
2967 # Remove these if host=target.
2968 cross_only="target-libgloss target-newlib target-opcodes"
2969
2970 case $is_cross_compiler in
2971 no) skipdirs="${skipdirs} ${cross_only}" ;;
2972 esac
2973
2974 # If both --with-headers and --with-libs are specified, default to
2975 # --without-newlib.
2976 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2978 if test x"${with_newlib}" = x ; then
2979 with_newlib=no
2980 fi
2981 fi
2982
2983 # Recognize --with-newlib/--without-newlib.
2984 case ${with_newlib} in
2985 no) skipdirs="${skipdirs} target-newlib" ;;
2986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2987 esac
2988
2989 # Check whether --enable-as-accelerator-for was given.
2990 if test "${enable_as_accelerator_for+set}" = set; then :
2991 enableval=$enable_as_accelerator_for;
2992 fi
2993
2994
2995 # Check whether --enable-offload-targets was given.
2996 if test "${enable_offload_targets+set}" = set; then :
2997 enableval=$enable_offload_targets;
2998 if test x"$enable_offload_targets" = x; then
2999 as_fn_error $? "no offload targets specified" "$LINENO" 5
3000 fi
3001
3002 else
3003 enable_offload_targets=
3004 fi
3005
3006
3007 # Check whether --enable-offload-defaulted was given.
3008 if test "${enable_offload_defaulted+set}" = set; then :
3009 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3010 else
3011 enable_offload_defaulted=
3012 fi
3013
3014
3015 # Handle --enable-gold, --enable-ld.
3016 # --disable-gold [--enable-ld]
3017 # Build only ld. Default option.
3018 # --enable-gold [--enable-ld]
3019 # Build both gold and ld. Install gold as "ld.gold", install ld
3020 # as "ld.bfd" and "ld".
3021 # --enable-gold=default [--enable-ld]
3022 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3023 # install ld as "ld.bfd".
3024 # --enable-gold[=default] --disable-ld
3025 # Build only gold, which is then installed as both "ld.gold" and "ld".
3026 # --enable-gold --enable-ld=default
3027 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3028 # and ld.bfd).
3029 # In other words, ld is default
3030 # --enable-gold=default --enable-ld=default
3031 # Error.
3032
3033 default_ld=
3034 # Check whether --enable-gold was given.
3035 if test "${enable_gold+set}" = set; then :
3036 enableval=$enable_gold; ENABLE_GOLD=$enableval
3037 else
3038 ENABLE_GOLD=no
3039 fi
3040
3041 case "${ENABLE_GOLD}" in
3042 yes|default)
3043 # Check for ELF target.
3044 is_elf=no
3045 case "${target}" in
3046 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3047 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3048 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3049 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3050 case "${target}" in
3051 *-*-linux*aout* | *-*-linux*oldld*)
3052 ;;
3053 *)
3054 is_elf=yes
3055 ;;
3056 esac
3057 esac
3058
3059 if test "$is_elf" = "yes"; then
3060 # Check for target supported by gold.
3061 case "${target}" in
3062 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3063 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3064 configdirs="$configdirs gold"
3065 if test x${ENABLE_GOLD} = xdefault; then
3066 default_ld=gold
3067 fi
3068 ENABLE_GOLD=yes
3069 ;;
3070 esac
3071 fi
3072 ;;
3073 no)
3074 ;;
3075 *)
3076 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3077 ;;
3078 esac
3079
3080 # Check whether --enable-ld was given.
3081 if test "${enable_ld+set}" = set; then :
3082 enableval=$enable_ld; ENABLE_LD=$enableval
3083 else
3084 ENABLE_LD=yes
3085 fi
3086
3087
3088 case "${ENABLE_LD}" in
3089 default)
3090 if test x${default_ld} != x; then
3091 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3092 fi
3093 ;;
3094 yes)
3095 ;;
3096 no)
3097 if test x${ENABLE_GOLD} != xyes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3099 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3100 fi
3101 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3102 ;;
3103 *)
3104 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3105 ;;
3106 esac
3107
3108 # PR gas/19109
3109 # Decide the default method for compressing debug sections.
3110 # Provide a configure time option to override our default.
3111 # Check whether --enable-compressed_debug_sections was given.
3112 if test "${enable_compressed_debug_sections+set}" = set; then :
3113 enableval=$enable_compressed_debug_sections;
3114 if test x"$enable_compressed_debug_sections" = xyes; then
3115 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3116 fi
3117
3118 else
3119 enable_compressed_debug_sections=
3120 fi
3121
3122
3123 # Configure extra directories which are host specific
3124
3125 case "${host}" in
3126 *-cygwin*)
3127 configdirs="$configdirs libtermcap" ;;
3128 esac
3129
3130 # A target can indicate whether a language isn't supported for some reason.
3131 # Only spaces may be used in this macro; not newlines or tabs.
3132 unsupported_languages=
3133
3134 # Remove more programs from consideration, based on the host or
3135 # target this usually means that a port of the program doesn't
3136 # exist yet.
3137
3138 case "${host}" in
3139 i[3456789]86-*-msdosdjgpp*)
3140 noconfigdirs="$noconfigdirs tcl tk itcl"
3141 ;;
3142 esac
3143
3144
3145 # Check whether --enable-libquadmath was given.
3146 if test "${enable_libquadmath+set}" = set; then :
3147 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3148 else
3149 ENABLE_LIBQUADMATH=yes
3150 fi
3151
3152 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3153 noconfigdirs="$noconfigdirs target-libquadmath"
3154 fi
3155
3156
3157 # Check whether --enable-libquadmath-support was given.
3158 if test "${enable_libquadmath_support+set}" = set; then :
3159 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3160 else
3161 ENABLE_LIBQUADMATH_SUPPORT=yes
3162 fi
3163
3164 enable_libquadmath_support=
3165 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3166 enable_libquadmath_support=no
3167 fi
3168
3169
3170 # Check whether --enable-libada was given.
3171 if test "${enable_libada+set}" = set; then :
3172 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3173 else
3174 ENABLE_LIBADA=yes
3175 fi
3176
3177 if test "${ENABLE_LIBADA}" != "yes" ; then
3178 noconfigdirs="$noconfigdirs gnattools"
3179 fi
3180
3181 # Check whether --enable-libssp was given.
3182 if test "${enable_libssp+set}" = set; then :
3183 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3184 else
3185 ENABLE_LIBSSP=yes
3186 fi
3187
3188
3189 # Check whether --enable-libstdcxx was given.
3190 if test "${enable_libstdcxx+set}" = set; then :
3191 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3192 else
3193 ENABLE_LIBSTDCXX=default
3194 fi
3195
3196 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3198 fi
3199
3200 # If this is accelerator compiler and its target is intelmic we enable
3201 # target liboffloadmic by default. If this is compiler with offloading
3202 # for intelmic we enable host liboffloadmic by default. Otherwise
3203 # liboffloadmic is disabled by default.
3204 # Check whether --enable-liboffloadmic was given.
3205 if test "${enable_liboffloadmic+set}" = set; then :
3206 enableval=$enable_liboffloadmic; case "$enableval" in
3207 no | host | target)
3208 enable_liboffloadmic=$enableval ;;
3209 *)
3210 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3211 esac
3212 else
3213 if test x"$enable_as_accelerator_for" != x; then
3214 case "${target}" in
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=target
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3218 ;;
3219 *)
3220 enable_liboffloadmic=no
3221 ;;
3222 esac
3223 else
3224 case "${enable_offload_targets}" in
3225 *-intelmic-* | *-intelmicemul-*)
3226 enable_liboffloadmic=host
3227 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3228 ;;
3229 *)
3230 enable_liboffloadmic=no
3231 ;;
3232 esac
3233 fi
3234 fi
3235
3236
3237
3238 # Enable libgomp by default on hosted POSIX systems, and a few others.
3239 if test x$enable_libgomp = x ; then
3240 case "${target}" in
3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3242 ;;
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3244 ;;
3245 *-*-solaris2* | *-*-hpux11*)
3246 ;;
3247 *-*-darwin* | *-*-aix*)
3248 ;;
3249 nvptx*-*-* | amdgcn*-*-*)
3250 ;;
3251 *)
3252 noconfigdirs="$noconfigdirs target-libgomp"
3253 ;;
3254 esac
3255 fi
3256
3257 # Disable libatomic on unsupported systems.
3258 if test -d ${srcdir}/libatomic; then
3259 if test x$enable_libatomic = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3261 $as_echo_n "checking for libatomic support... " >&6; }
3262 if (srcdir=${srcdir}/libatomic; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libatomic"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3272 fi
3273 fi
3274 fi
3275
3276 # Disable liboffloadmic on unsupported systems.
3277 if test -d ${srcdir}/liboffloadmic; then
3278 if test x$enable_liboffloadmic != xno; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3280 $as_echo_n "checking for liboffloadmic support... " >&6; }
3281 if (srcdir=${srcdir}/liboffloadmic; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-liboffloadmic"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3291 fi
3292 fi
3293 fi
3294
3295 # Disable libitm on unsupported systems.
3296 if test -d ${srcdir}/libitm; then
3297 if test x$enable_libitm = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3299 $as_echo_n "checking for libitm support... " >&6; }
3300 if (srcdir=${srcdir}/libitm; \
3301 . ${srcdir}/configure.tgt; \
3302 test -n "$UNSUPPORTED")
3303 then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libitm"
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3310 fi
3311 fi
3312 fi
3313
3314 # Disable libsanitizer on unsupported systems.
3315 if test -d ${srcdir}/libsanitizer; then
3316 if test x$enable_libsanitizer = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3318 $as_echo_n "checking for libsanitizer support... " >&6; }
3319 if (srcdir=${srcdir}/libsanitizer; \
3320 . ${srcdir}/configure.tgt; \
3321 test -n "$UNSUPPORTED")
3322 then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 noconfigdirs="$noconfigdirs target-libsanitizer"
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 fi
3330 fi
3331 fi
3332
3333 # Disable libvtv on unsupported systems.
3334 if test -d ${srcdir}/libvtv; then
3335 if test x$enable_libvtv = x; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3337 $as_echo_n "checking for libvtv support... " >&6; }
3338 if (srcdir=${srcdir}/libvtv; \
3339 . ${srcdir}/configure.tgt; \
3340 test "$VTV_SUPPORTED" != "yes")
3341 then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 noconfigdirs="$noconfigdirs target-libvtv"
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 fi
3349 fi
3350 fi
3351
3352 # Disable libquadmath for some systems.
3353 case "${target}" in
3354 avr-*-*)
3355 noconfigdirs="$noconfigdirs target-libquadmath"
3356 ;;
3357 # libquadmath is unused on AIX and libquadmath build process use of
3358 # LD_LIBRARY_PATH can break AIX bootstrap.
3359 powerpc-*-aix* | rs6000-*-aix*)
3360 noconfigdirs="$noconfigdirs target-libquadmath"
3361 ;;
3362 esac
3363
3364 # Disable libssp for some systems.
3365 case "${target}" in
3366 avr-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
3375 ;;
3376 pru-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
3380 rl78-*-*)
3381 # libssp uses a misaligned load to trigger a fault, but the RL78
3382 # doesn't fault for those - instead, it gives a build-time error
3383 # for explicit misaligned loads.
3384 noconfigdirs="$noconfigdirs target-libssp"
3385 ;;
3386 visium-*-*)
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3389 ;;
3390 esac
3391
3392 # Disable libstdc++-v3 for some systems.
3393 # Allow user to override this if they pass --enable-libstdc++-v3
3394 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3395 case "${target}" in
3396 *-*-vxworks*)
3397 # VxWorks uses the Dinkumware C++ library.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 amdgcn*-*-*)
3401 # Not ported/fails to build when using newlib.
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
3404 arm*-wince-pe*)
3405 # the C++ libraries don't build on top of CE's C libraries
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
3408 avr-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
3411 bpf-*-*)
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 ;;
3414 ft32-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 ;;
3417 esac
3418 fi
3419
3420 # Disable C++ on systems where it is known to not work.
3421 # For testing, you can override this with --enable-languages=c++.
3422 case ,${enable_languages}, in
3423 *,c++,*)
3424 ;;
3425 *)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages c++"
3429 ;;
3430 esac
3431 ;;
3432 esac
3433
3434 # Disable Objc on systems where it is known to not work.
3435 # For testing, you can override this with --enable-languages=objc.
3436 case ,${enable_languages}, in
3437 *,objc,*)
3438 ;;
3439 *)
3440 case "${target}" in
3441 bpf-*-*)
3442 unsupported_languages="$unsupported_languages objc"
3443 ;;
3444 esac
3445 ;;
3446 esac
3447
3448 # Disable D on systems where it is known to not work.
3449 # For testing, you can override this with --enable-languages=d.
3450 case ,${enable_languages}, in
3451 *,d,*)
3452 ;;
3453 *)
3454 case "${target}" in
3455 bpf-*-*)
3456 unsupported_languages="$unsupported_languages d"
3457 ;;
3458 esac
3459 ;;
3460 esac
3461
3462 # Disable libphobos on unsupported systems.
3463 # For testing, you can override this with --enable-libphobos.
3464 if test -d ${srcdir}/libphobos; then
3465 if test x$enable_libphobos = x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3467 $as_echo_n "checking for libphobos support... " >&6; }
3468 if (srcdir=${srcdir}/libphobos; \
3469 . ${srcdir}/configure.tgt; \
3470 test "$LIBPHOBOS_SUPPORTED" != "yes")
3471 then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 noconfigdirs="$noconfigdirs target-libphobos"
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3478 fi
3479 fi
3480 fi
3481
3482 # Disable Fortran for some systems.
3483 case "${target}" in
3484 mmix-*-*)
3485 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3486 unsupported_languages="$unsupported_languages fortran"
3487 ;;
3488 bpf-*-*)
3489 unsupported_languages="$unsupported_languages fortran"
3490 ;;
3491 esac
3492
3493 # Disable libffi for some systems.
3494 case "${target}" in
3495 powerpc-*-darwin*)
3496 ;;
3497 i[3456789]86-*-darwin*)
3498 ;;
3499 x86_64-*-darwin[912]*)
3500 ;;
3501 *-*-darwin*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 *-*-netware*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 *-*-phoenix*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-rtems*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-tpf*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-uclinux*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 *-*-vxworks*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 aarch64*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 alpha*-*-*vms*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 arm*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 arm-wince-pe)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 arm*-*-symbianelf*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 bpf-*-*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 cris-*-* | crisv32-*-*)
3541 case "${target}" in
3542 *-*-linux*)
3543 ;;
3544 *) # See PR46792 regarding target-libffi.
3545 noconfigdirs="$noconfigdirs target-libffi";;
3546 esac
3547 ;;
3548 hppa*64*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 hppa*-hp-hpux11*)
3552 ;;
3553 hppa*-*-hpux*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3555 ;;
3556 ia64*-*-*vms*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 i[3456789]86-w64-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 i[3456789]86-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 x86_64-*-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 mmix-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 powerpc-*-aix*)
3572 ;;
3573 rs6000-*-aix*)
3574 ;;
3575 ft32-*-*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3577 ;;
3578 *-*-lynxos*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3580 ;;
3581 esac
3582
3583 # Disable the go frontend on systems where it is known to not work. Please keep
3584 # this in sync with contrib/config-list.mk.
3585 case "${target}" in
3586 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3587 unsupported_languages="$unsupported_languages go"
3588 ;;
3589 esac
3590
3591 # Only allow gdbserver on some systems.
3592 if test -d ${srcdir}/gdbserver; then
3593 if test x$enable_gdbserver = x; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3595 $as_echo_n "checking for gdbserver support... " >&6; }
3596 if (srcdir=${srcdir}/gdbserver; \
3597 . ${srcdir}/configure.srv; \
3598 test -n "$UNSUPPORTED")
3599 then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 noconfigdirs="$noconfigdirs gdbserver"
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3606 fi
3607 fi
3608 fi
3609
3610 # Disable libgo for some systems where it is known to not work.
3611 # For testing, you can easily override this with --enable-libgo.
3612 if test x$enable_libgo = x; then
3613 case "${target}" in
3614 *-*-darwin*)
3615 # PR 46986
3616 noconfigdirs="$noconfigdirs target-libgo"
3617 ;;
3618 *-*-cygwin* | *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3620 ;;
3621 bpf-*-*)
3622 noconfigdirs="$noconfigdirs target-libgo"
3623 ;;
3624 esac
3625 fi
3626
3627 # Default libgloss CPU subdirectory.
3628 libgloss_dir="$target_cpu"
3629
3630 case "${target}" in
3631 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3632 libgloss_dir=wince
3633 ;;
3634 aarch64*-*-* )
3635 libgloss_dir=aarch64
3636 ;;
3637 arm*-*-*)
3638 libgloss_dir=arm
3639 ;;
3640 cris-*-* | crisv32-*-*)
3641 libgloss_dir=cris
3642 ;;
3643 hppa*-*-*)
3644 libgloss_dir=pa
3645 ;;
3646 i[3456789]86-*-*)
3647 libgloss_dir=i386
3648 ;;
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3651 ;;
3652 m68*-*-* | fido-*-*)
3653 libgloss_dir=m68k
3654 ;;
3655 mips*-*-*)
3656 libgloss_dir=mips
3657 ;;
3658 powerpc*-*-*)
3659 libgloss_dir=rs6000
3660 ;;
3661 pru-*-*)
3662 libgloss_dir=pru
3663 ;;
3664 sparc*-*-*)
3665 libgloss_dir=sparc
3666 ;;
3667 esac
3668
3669 # Disable newlib and libgloss for various target OSes.
3670 case "${target}" in
3671 alpha*-dec-osf*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3679 fi
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3685 ;;
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 sparc-*-sunos4*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 bpf-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 *-*-aix*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 *-*-beos*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
3704 *-*-chorusos)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 ;;
3707 *-*-dragonfly*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-freebsd*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-lynxos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-mingw*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-netbsd*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-netware*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-tpf*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 *-*-uclinux*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 *-*-vxworks*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 esac
3738
3739 case "${target}" in
3740 *-*-chorusos)
3741 ;;
3742 aarch64-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3745 ;;
3746 amdgcn*-*-*)
3747 ;;
3748 arm-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3751 ;;
3752 powerpc-*-darwin*)
3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3755 ;;
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3759 ;;
3760 x86_64-*-darwin[912]*)
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3763 ;;
3764 *-*-darwin*)
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
3767 ;;
3768 *-*-dragonfly*)
3769 ;;
3770 *-*-freebsd*)
3771 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3772 && ! test -d ${srcdir}/gmp \
3773 && test -f /usr/local/include/gmp.h; then
3774 with_gmp=/usr/local
3775 fi
3776 ;;
3777 *-*-kaos*)
3778 # Remove unsupported stuff on all kaOS configurations.
3779 noconfigdirs="$noconfigdirs target-libgloss"
3780 ;;
3781 *-*-netbsd*)
3782 ;;
3783 *-*-netware*)
3784 ;;
3785 *-*-phoenix*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 ;;
3788 *-*-rtems*)
3789 noconfigdirs="$noconfigdirs target-libgloss"
3790 ;;
3791 # The tpf target doesn't support gdb yet.
3792 *-*-tpf*)
3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3794 ;;
3795 *-*-uclinux*)
3796 noconfigdirs="$noconfigdirs target-rda"
3797 ;;
3798 *-*-vxworks*)
3799 ;;
3800 alpha*-dec-osf*)
3801 # ld works, but does not support shared libraries.
3802 # gas doesn't generate exception information.
3803 noconfigdirs="$noconfigdirs gas ld"
3804 ;;
3805 alpha*-*-*vms*)
3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3807 ;;
3808 alpha*-*-*)
3809 # newlib is not 64 bit ready
3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3811 ;;
3812 bpf-*-*)
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3814 ;;
3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3817 ;;
3818 arc*-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3820 ;;
3821 arm-*-pe*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3823 ;;
3824 arm-*-riscix*)
3825 noconfigdirs="$noconfigdirs ld target-libgloss"
3826 ;;
3827 avr-*-*)
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3830 fi
3831 ;;
3832 c4x-*-* | tic4x-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3834 ;;
3835 tic54x-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
3837 ;;
3838 d10v-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 ;;
3841 d30v-*-*)
3842 noconfigdirs="$noconfigdirs gdb"
3843 ;;
3844 fr30-*-elf*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
3847 ft32-*-*)
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3849 ;;
3850 moxie-*-*)
3851 noconfigdirs="$noconfigdirs"
3852 ;;
3853 h8300*-*-*)
3854 noconfigdirs="$noconfigdirs target-libgloss"
3855 ;;
3856 h8500-*-*)
3857 noconfigdirs="$noconfigdirs target-libgloss"
3858 ;;
3859 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3860 ;;
3861 hppa*64*-*-hpux*)
3862 noconfigdirs="$noconfigdirs gdb"
3863 ;;
3864 hppa*-*-hpux11*)
3865 noconfigdirs="$noconfigdirs gdb ld"
3866 ;;
3867 hppa*64*-*-linux*)
3868 ;;
3869 hppa*-*-linux*)
3870 ;;
3871 hppa*-*-*elf* | \
3872 hppa*-*-lites* | \
3873 hppa*-*-openbsd* | \
3874 hppa*64*-*-*)
3875 ;;
3876 hppa*-*-pro*)
3877 ;;
3878 hppa*-*-*)
3879 noconfigdirs="$noconfigdirs ld"
3880 ;;
3881 i960-*-*)
3882 noconfigdirs="$noconfigdirs gdb"
3883 ;;
3884 ia64*-*-elf*)
3885 # No gdb support yet.
3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3887 ;;
3888 ia64*-**-hpux*)
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3891 ;;
3892 ia64*-*-*vms*)
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
3895 ;;
3896 i[3456789]86-w64-mingw*)
3897 ;;
3898 i[3456789]86-*-mingw*)
3899 target_configdirs="$target_configdirs target-winsup"
3900 ;;
3901 *-*-cygwin*)
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3903 noconfigdirs="$noconfigdirs target-libgloss"
3904 # always build newlib if winsup directory is present.
3905 if test -d "$srcdir/winsup/cygwin"; then
3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3907 elif test -d "$srcdir/newlib"; then
3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3909 fi
3910 ;;
3911 i[3456789]86-*-pe)
3912 noconfigdirs="$noconfigdirs target-libgloss"
3913 ;;
3914 i[3456789]86-*-sco3.2v5*)
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
3917 noconfigdirs="$noconfigdirs ld target-libgloss"
3918 ;;
3919 i[3456789]86-*-sco*)
3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
3921 ;;
3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3923 noconfigdirs="$noconfigdirs target-libgloss"
3924 ;;
3925 i[3456789]86-*-sysv4*)
3926 noconfigdirs="$noconfigdirs target-libgloss"
3927 ;;
3928 i[3456789]86-*-beos*)
3929 noconfigdirs="$noconfigdirs gdb"
3930 ;;
3931 i[3456789]86-*-rdos*)
3932 noconfigdirs="$noconfigdirs gdb"
3933 ;;
3934 mmix-*-*)
3935 noconfigdirs="$noconfigdirs gdb"
3936 ;;
3937 mt-*-*)
3938 noconfigdirs="$noconfigdirs sim"
3939 ;;
3940 nfp-*-*)
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3943 ;;
3944 pdp11-*-*)
3945 noconfigdirs="$noconfigdirs gdb gprof"
3946 ;;
3947 powerpc-*-aix*)
3948 # copied from rs6000-*-* entry
3949 noconfigdirs="$noconfigdirs gprof"
3950 ;;
3951 powerpc*-*-winnt* | powerpc*-*-pe*)
3952 target_configdirs="$target_configdirs target-winsup"
3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3956 ;;
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3960 ;;
3961 powerpc-*-beos*)
3962 noconfigdirs="$noconfigdirs gdb"
3963 ;;
3964 rs6000-*-lynxos*)
3965 noconfigdirs="$noconfigdirs gprof"
3966 ;;
3967 rs6000-*-aix*)
3968 noconfigdirs="$noconfigdirs gprof"
3969 ;;
3970 rs6000-*-*)
3971 noconfigdirs="$noconfigdirs gprof"
3972 ;;
3973 m68k-apollo-*)
3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3975 ;;
3976 microblaze*)
3977 noconfigdirs="$noconfigdirs gprof"
3978 ;;
3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3982 fi
3983 ;;
3984 mips*-*-irix5*)
3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
3986 ;;
3987 mips*-*-irix6*)
3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
3989 ;;
3990 mips*-*-bsd*)
3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3992 ;;
3993 mips*-*-linux*)
3994 ;;
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
3998 ;;
3999 mips*-*-*)
4000 noconfigdirs="$noconfigdirs gprof"
4001 ;;
4002 nvptx*-*-*)
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4004 ;;
4005 sh-*-*)
4006 case "${target}" in
4007 sh*-*-elf)
4008 ;;
4009 *)
4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
4011 esac
4012 ;;
4013 sparc-*-sunos4*)
4014 if test x${is_cross_compiler} = xno ; then
4015 use_gnu_ld=no
4016 fi
4017 ;;
4018 tic6x-*-*)
4019 noconfigdirs="$noconfigdirs sim"
4020 ;;
4021 tilepro*-*-* | tilegx*-*-*)
4022 noconfigdirs="$noconfigdirs sim"
4023 ;;
4024 v810-*-*)
4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4026 ;;
4027 vax-*-*)
4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4029 ;;
4030 wasm32-*-*)
4031 noconfigdirs="$noconfigdirs ld"
4032 ;;
4033 esac
4034
4035 # If we aren't building newlib, then don't build libgloss, since libgloss
4036 # depends upon some newlib header files.
4037 case "${noconfigdirs}" in
4038 *target-libgloss*) ;;
4039 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4040 esac
4041
4042 # Work in distributions that contain no compiler tools, like Autoconf.
4043 host_makefile_frag=/dev/null
4044 if test -d ${srcdir}/config ; then
4045 case "${host}" in
4046 i[3456789]86-*-msdosdjgpp*)
4047 host_makefile_frag="config/mh-djgpp"
4048 ;;
4049 *-cygwin*)
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4052 $as_echo_n "checking to see if cat works as expected... " >&6; }
4053 echo a >cygwin-cat-check
4054 if test `cat cygwin-cat-check` = a ; then
4055 rm cygwin-cat-check
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4058 else
4059 rm cygwin-cat-check
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 as_fn_error $? "The cat command does not ignore carriage return characters.
4063 Please either mount the build directory in binary mode or run the following
4064 commands before running any configure script:
4065 set -o igncr
4066 export SHELLOPTS
4067 " "$LINENO" 5
4068 fi
4069
4070 host_makefile_frag="config/mh-cygwin"
4071 ;;
4072 *-mingw*)
4073 host_makefile_frag="config/mh-mingw"
4074 ;;
4075 alpha*-linux*)
4076 host_makefile_frag="config/mh-alpha-linux"
4077 ;;
4078 hppa*-hp-hpux10*)
4079 host_makefile_frag="config/mh-pa-hpux10"
4080 ;;
4081 hppa*-hp-hpux*)
4082 host_makefile_frag="config/mh-pa"
4083 ;;
4084 hppa*-*)
4085 host_makefile_frag="config/mh-pa"
4086 ;;
4087 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4088 host_makefile_frag="config/mh-darwin"
4089 ;;
4090 powerpc-*-aix*)
4091 host_makefile_frag="config/mh-ppc-aix"
4092 ;;
4093 rs6000-*-aix*)
4094 host_makefile_frag="config/mh-ppc-aix"
4095 ;;
4096 esac
4097 fi
4098
4099 if test "${build}" != "${host}" ; then
4100 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4101 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4102 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4103 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115 else
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
4118 CC_FOR_BUILD="\$(CC)"
4119 CXX_FOR_BUILD="\$(CXX)"
4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4122 GOC_FOR_BUILD="\$(GOC)"
4123 GDC_FOR_BUILD="\$(GDC)"
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
4130 fi
4131
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_CC+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199 done
4200 done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223 CC=$ac_ct_CC
4224 fi
4225 else
4226 CC="$ac_cv_prog_CC"
4227 fi
4228
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_CC+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4262 else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4265 fi
4266
4267
4268 fi
4269 fi
4270 if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272 set dummy cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 ac_prog_rejected=no
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4291 continue
4292 fi
4293 ac_cv_prog_CC="cc"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4300
4301 if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4304 shift
4305 if test $# != 0; then
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4309 shift
4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4311 fi
4312 fi
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4328 for ac_prog in cl.exe
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 CC=$ac_cv_prog_CC
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$CC" && break
4368 done
4369 fi
4370 if test -z "$CC"; then
4371 ac_ct_CC=$CC
4372 for ac_prog in cl.exe
4373 do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_CC="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 $as_echo "$ac_ct_CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411 test -n "$ac_ct_CC" && break
4412 done
4413
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4422 esac
4423 CC=$ac_ct_CC
4424 fi
4425 fi
4426
4427 fi
4428
4429
4430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "no acceptable C compiler found in \$PATH
4433 See \`config.log' for more details" "$LINENO" 5; }
4434
4435 # Provide some information about the compiler.
4436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437 set X $ac_compile
4438 ac_compiler=$2
4439 for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4448 ac_status=$?
4449 if test -s conftest.err; then
4450 sed '10a\
4451 ... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
4454 fi
4455 rm -f conftest.er1 conftest.err
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 done
4459
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 int
4464 main ()
4465 {
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 ac_clean_files_save=$ac_clean_files
4472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4473 # Try to create an executable without -o first, disregard a.out.
4474 # It will help us diagnose broken compilers, and finding out an intuition
4475 # of exeext.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 $as_echo_n "checking whether the C compiler works... " >&6; }
4478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4479
4480 # The possible output files:
4481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4482
4483 ac_rmfiles=
4484 for ac_file in $ac_files
4485 do
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 esac
4490 done
4491 rm -f $ac_rmfiles
4492
4493 if { { ac_try="$ac_link_default"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4507 # so that the user can short-circuit this test for compilers unknown to
4508 # Autoconf.
4509 for ac_file in $ac_files ''
4510 do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4514 ;;
4515 [ab].out )
4516 # We found the default executable, but exeext='' is most
4517 # certainly right.
4518 break;;
4519 *.* )
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 then :; else
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 fi
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4528 # actually working.
4529 break;;
4530 * )
4531 break;;
4532 esac
4533 done
4534 test "$ac_cv_exeext" = no && ac_cv_exeext=
4535
4536 else
4537 ac_file=''
4538 fi
4539 if test -z "$ac_file"; then :
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error 77 "C compiler cannot create executables
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554 $as_echo_n "checking for C compiler default output file name... " >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556 $as_echo "$ac_file" >&6; }
4557 ac_exeext=$ac_cv_exeext
4558
4559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562 $as_echo_n "checking for suffix of executables... " >&6; }
4563 if { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576 # work properly (i.e., refer to `conftest.exe'), while it won't with
4577 # `rm'.
4578 for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 break;;
4584 * ) break;;
4585 esac
4586 done
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details" "$LINENO" 5; }
4592 fi
4593 rm -f conftest conftest$ac_cv_exeext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595 $as_echo "$ac_cv_exeext" >&6; }
4596
4597 rm -f conftest.$ac_ext
4598 EXEEXT=$ac_cv_exeext
4599 ac_exeext=$EXEEXT
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdio.h>
4603 int
4604 main ()
4605 {
4606 FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 ac_clean_files="$ac_clean_files conftest.out"
4614 # Check that the compiler produces executables we can run. If not, either
4615 # the compiler is broken, or we cross compile.
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617 $as_echo_n "checking whether we are cross compiling... " >&6; }
4618 if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4641 cross_compiling=no
4642 else
4643 if test "$cross_compiling" = maybe; then
4644 cross_compiling=yes
4645 else
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot run C compiled programs.
4649 If you meant to cross compile, use \`--host'.
4650 See \`config.log' for more details" "$LINENO" 5; }
4651 fi
4652 fi
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655 $as_echo "$cross_compiling" >&6; }
4656
4657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658 ac_clean_files=$ac_clean_files_save
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660 $as_echo_n "checking for suffix of object files... " >&6; }
4661 if ${ac_cv_objext+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.o conftest.obj
4676 if { { ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
4684 ac_status=$?
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
4689 case $ac_file in
4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 break;;
4693 esac
4694 done
4695 else
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error $? "cannot compute suffix of object files: cannot compile
4702 See \`config.log' for more details" "$LINENO" 5; }
4703 fi
4704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707 $as_echo "$ac_cv_objext" >&6; }
4708 OBJEXT=$ac_cv_objext
4709 ac_objext=$OBJEXT
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if ${ac_cv_c_compiler_gnu+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722 choke me
4723 #endif
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_compiler_gnu=yes
4731 else
4732 ac_compiler_gnu=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742 else
4743 GCC=
4744 fi
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if ${ac_cv_prog_cc_g+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_g=yes
4769 else
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775 main ()
4776 {
4777
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783
4784 else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4817 fi
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4823 fi
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if ${ac_cv_prog_cc_c89+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 struct stat;
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4841 char **p;
4842 int i;
4843 {
4844 return p[i];
4845 }
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4847 {
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4854 }
4855
4856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
4859 as 'x'. The following induces an error, until -std is added to get
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
4862 that's true only with -std. */
4863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864
4865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867 #define FOO(x) 'x'
4868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869
4870 int test (int i, double x);
4871 struct s1 {int (*f) (int a);};
4872 struct s2 {int (*f) (double a);};
4873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874 int argc;
4875 char **argv;
4876 int
4877 main ()
4878 {
4879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4886 do
4887 CC="$ac_save_CC $ac_arg"
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
4893 done
4894 rm -f conftest.$ac_ext
4895 CC=$ac_save_CC
4896
4897 fi
4898 # AC_CACHE_VAL
4899 case "x$ac_cv_prog_cc_c89" in
4900 x)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 $as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 $as_echo "unsupported" >&6; } ;;
4906 *)
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4910 esac
4911 if test "x$ac_cv_prog_cc_c89" != xno; then :
4912
4913 fi
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4922 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4923 if ${ac_cv_prog_cc_c99+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 ac_cv_prog_cc_c99=no
4927 ac_save_CC=$CC
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <stdarg.h>
4931 #include <stdbool.h>
4932 #include <stdlib.h>
4933 #include <wchar.h>
4934 #include <stdio.h>
4935
4936 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4937 #define debug(...) fprintf (stderr, __VA_ARGS__)
4938 #define showlist(...) puts (#__VA_ARGS__)
4939 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4940 static void
4941 test_varargs_macros (void)
4942 {
4943 int x = 1234;
4944 int y = 5678;
4945 debug ("Flag");
4946 debug ("X = %d\n", x);
4947 showlist (The first, second, and third items.);
4948 report (x>y, "x is %d but y is %d", x, y);
4949 }
4950
4951 // Check long long types.
4952 #define BIG64 18446744073709551615ull
4953 #define BIG32 4294967295ul
4954 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4955 #if !BIG_OK
4956 your preprocessor is broken;
4957 #endif
4958 #if BIG_OK
4959 #else
4960 your preprocessor is broken;
4961 #endif
4962 static long long int bignum = -9223372036854775807LL;
4963 static unsigned long long int ubignum = BIG64;
4964
4965 struct incomplete_array
4966 {
4967 int datasize;
4968 double data[];
4969 };
4970
4971 struct named_init {
4972 int number;
4973 const wchar_t *name;
4974 double average;
4975 };
4976
4977 typedef const char *ccp;
4978
4979 static inline int
4980 test_restrict (ccp restrict text)
4981 {
4982 // See if C++-style comments work.
4983 // Iterate through items via the restricted pointer.
4984 // Also check for declarations in for loops.
4985 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4986 continue;
4987 return 0;
4988 }
4989
4990 // Check varargs and va_copy.
4991 static void
4992 test_varargs (const char *format, ...)
4993 {
4994 va_list args;
4995 va_start (args, format);
4996 va_list args_copy;
4997 va_copy (args_copy, args);
4998
4999 const char *str;
5000 int number;
5001 float fnumber;
5002
5003 while (*format)
5004 {
5005 switch (*format++)
5006 {
5007 case 's': // string
5008 str = va_arg (args_copy, const char *);
5009 break;
5010 case 'd': // int
5011 number = va_arg (args_copy, int);
5012 break;
5013 case 'f': // float
5014 fnumber = va_arg (args_copy, double);
5015 break;
5016 default:
5017 break;
5018 }
5019 }
5020 va_end (args_copy);
5021 va_end (args);
5022 }
5023
5024 int
5025 main ()
5026 {
5027
5028 // Check bool.
5029 _Bool success = false;
5030
5031 // Check restrict.
5032 if (test_restrict ("String literal") == 0)
5033 success = true;
5034 char *restrict newvar = "Another string";
5035
5036 // Check varargs.
5037 test_varargs ("s, d' f .", "string", 65, 34.234);
5038 test_varargs_macros ();
5039
5040 // Check flexible array members.
5041 struct incomplete_array *ia =
5042 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5043 ia->datasize = 10;
5044 for (int i = 0; i < ia->datasize; ++i)
5045 ia->data[i] = i * 1.234;
5046
5047 // Check named initializers.
5048 struct named_init ni = {
5049 .number = 34,
5050 .name = L"Test wide string",
5051 .average = 543.34343,
5052 };
5053
5054 ni.number = 58;
5055
5056 int dynamic_array[ni.number];
5057 dynamic_array[ni.number - 1] = 543;
5058
5059 // work around unused variable warnings
5060 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5061 || dynamic_array[ni.number - 1] != 543);
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5068 do
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_c99=$ac_arg
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext
5074 test "x$ac_cv_prog_cc_c99" != "xno" && break
5075 done
5076 rm -f conftest.$ac_ext
5077 CC=$ac_save_CC
5078
5079 fi
5080 # AC_CACHE_VAL
5081 case "x$ac_cv_prog_cc_c99" in
5082 x)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5084 $as_echo "none needed" >&6; } ;;
5085 xno)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 $as_echo "unsupported" >&6; } ;;
5088 *)
5089 CC="$CC $ac_cv_prog_cc_c99"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5091 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5092 esac
5093 if test "x$ac_cv_prog_cc_c99" != xno; then :
5094
5095 fi
5096
5097
5098 ac_ext=cpp
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 if test -z "$CXX"; then
5104 if test -n "$CCC"; then
5105 CXX=$CCC
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5109 do
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$CXX"; then
5118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 CXX=$ac_cv_prog_CXX
5138 if test -n "$CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5140 $as_echo "$CXX" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 test -n "$CXX" && break
5148 done
5149 fi
5150 if test -z "$CXX"; then
5151 ac_ct_CXX=$CXX
5152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5153 do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_CXX"; then
5162 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_CXX="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5182 if test -n "$ac_ct_CXX"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5184 $as_echo "$ac_ct_CXX" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 test -n "$ac_ct_CXX" && break
5192 done
5193
5194 if test "x$ac_ct_CXX" = x; then
5195 CXX="g++"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 CXX=$ac_ct_CXX
5204 fi
5205 fi
5206
5207 fi
5208 fi
5209 # Provide some information about the compiler.
5210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5211 set X $ac_compile
5212 ac_compiler=$2
5213 for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220 $as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5222 ac_status=$?
5223 if test -s conftest.err; then
5224 sed '10a\
5225 ... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5228 fi
5229 rm -f conftest.er1 conftest.err
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5232 done
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5235 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5236 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241
5242 int
5243 main ()
5244 {
5245 #ifndef __GNUC__
5246 choke me
5247 #endif
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 ac_compiler_gnu=yes
5255 else
5256 ac_compiler_gnu=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5260
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5263 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5264 if test $ac_compiler_gnu = yes; then
5265 GXX=yes
5266 else
5267 GXX=
5268 fi
5269 ac_test_CXXFLAGS=${CXXFLAGS+set}
5270 ac_save_CXXFLAGS=$CXXFLAGS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5272 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5273 if ${ac_cv_prog_cxx_g+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277 ac_cxx_werror_flag=yes
5278 ac_cv_prog_cxx_g=no
5279 CXXFLAGS="-g"
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282
5283 int
5284 main ()
5285 {
5286
5287 ;
5288 return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_cxx_try_compile "$LINENO"; then :
5292 ac_cv_prog_cxx_g=yes
5293 else
5294 CXXFLAGS=""
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297
5298 int
5299 main ()
5300 {
5301
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_cxx_try_compile "$LINENO"; then :
5307
5308 else
5309 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5310 CXXFLAGS="-g"
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313
5314 int
5315 main ()
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_cxx_try_compile "$LINENO"; then :
5323 ac_cv_prog_cxx_g=yes
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5333 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5334 if test "$ac_test_CXXFLAGS" = set; then
5335 CXXFLAGS=$ac_save_CXXFLAGS
5336 elif test $ac_cv_prog_cxx_g = yes; then
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-g -O2"
5339 else
5340 CXXFLAGS="-g"
5341 fi
5342 else
5343 if test "$GXX" = yes; then
5344 CXXFLAGS="-O2"
5345 else
5346 CXXFLAGS=
5347 fi
5348 fi
5349 ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354
5355
5356 # We must set the default linker to the linker used by gcc for the correct
5357 # operation of libtool. If LD is not defined and we are using gcc, try to
5358 # set the LD default to the ld used by gcc.
5359 if test -z "$LD"; then
5360 if test "$GCC" = yes; then
5361 case $build in
5362 *-*-mingw*)
5363 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5364 *)
5365 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5366 esac
5367 case $gcc_prog_ld in
5368 # Accept absolute paths.
5369 [\\/]* | [A-Za-z]:[\\/]*)
5370 LD="$gcc_prog_ld" ;;
5371 esac
5372 fi
5373 fi
5374
5375 # Check whether -static-libstdc++ -static-libgcc is supported.
5376 have_static_libs=no
5377 if test "$GCC" = yes; then
5378 saved_LDFLAGS="$LDFLAGS"
5379
5380 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5382 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5383 ac_ext=cpp
5384 ac_cpp='$CXXCPP $CPPFLAGS'
5385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5388
5389
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5394 #error -static-libstdc++ not implemented
5395 #endif
5396 int main() {}
5397 _ACEOF
5398 if ac_fn_cxx_try_link "$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }; have_static_libs=yes
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
5413
5414 LDFLAGS="$saved_LDFLAGS"
5415 fi
5416
5417
5418
5419
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_GNATBIND+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$GNATBIND"; then
5429 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 GNATBIND=$ac_cv_prog_GNATBIND
5449 if test -n "$GNATBIND"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5451 $as_echo "$GNATBIND" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458 fi
5459 if test -z "$ac_cv_prog_GNATBIND"; then
5460 ac_ct_GNATBIND=$GNATBIND
5461 # Extract the first word of "gnatbind", so it can be a program name with args.
5462 set dummy gnatbind; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$ac_ct_GNATBIND"; then
5469 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5489 if test -n "$ac_ct_GNATBIND"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5491 $as_echo "$ac_ct_GNATBIND" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497 if test "x$ac_ct_GNATBIND" = x; then
5498 GNATBIND="no"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501 yes:)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5505 esac
5506 GNATBIND=$ac_ct_GNATBIND
5507 fi
5508 else
5509 GNATBIND="$ac_cv_prog_GNATBIND"
5510 fi
5511
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_GNATMAKE+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$GNATMAKE"; then
5521 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 GNATMAKE=$ac_cv_prog_GNATMAKE
5541 if test -n "$GNATMAKE"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5543 $as_echo "$GNATMAKE" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 fi
5551 if test -z "$ac_cv_prog_GNATMAKE"; then
5552 ac_ct_GNATMAKE=$GNATMAKE
5553 # Extract the first word of "gnatmake", so it can be a program name with args.
5554 set dummy gnatmake; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_GNATMAKE"; then
5561 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5581 if test -n "$ac_ct_GNATMAKE"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5583 $as_echo "$ac_ct_GNATMAKE" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589 if test "x$ac_ct_GNATMAKE" = x; then
5590 GNATMAKE="no"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 GNATMAKE=$ac_ct_GNATMAKE
5599 fi
5600 else
5601 GNATMAKE="$ac_cv_prog_GNATMAKE"
5602 fi
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5605 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5606 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 cat >conftest.adb <<EOF
5610 procedure conftest is begin null; end conftest;
5611 EOF
5612 acx_cv_cc_gcc_supports_ada=no
5613 # There is a bug in old released versions of GCC which causes the
5614 # driver to exit successfully when the appropriate language module
5615 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5616 # Therefore we must check for the error message as well as an
5617 # unsuccessful exit.
5618 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5619 # given a .adb file, but produce no object file. So we must check
5620 # if an object file was really produced to guard against this.
5621 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5622 if test x"$errors" = x && test -f conftest.$ac_objext; then
5623 acx_cv_cc_gcc_supports_ada=yes
5624 fi
5625 rm -f conftest.*
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5628 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5629
5630 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5631 have_gnat=yes
5632 else
5633 have_gnat=no
5634 fi
5635
5636
5637
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$GDC"; then
5647 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 GDC=$ac_cv_prog_GDC
5667 if test -n "$GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5669 $as_echo "$GDC" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676 fi
5677 if test -z "$ac_cv_prog_GDC"; then
5678 ac_ct_GDC=$GDC
5679 # Extract the first word of "gdc", so it can be a program name with args.
5680 set dummy gdc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_GDC"; then
5687 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_GDC="gdc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5707 if test -n "$ac_ct_GDC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5709 $as_echo "$ac_ct_GDC" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715 if test "x$ac_ct_GDC" = x; then
5716 GDC="no"
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719 yes:)
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5723 esac
5724 GDC=$ac_ct_GDC
5725 fi
5726 else
5727 GDC="$ac_cv_prog_GDC"
5728 fi
5729
5730 if test "x$GDC" != xno; then
5731 have_gdc=yes
5732 else
5733 have_gdc=no
5734 fi
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5737 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5738 if ${gcc_cv_prog_cmp_skip+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 echo abfoo >t1
5742 echo cdfoo >t2
5743 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5744 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5745 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5746 :
5747 else
5748 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5749 fi
5750 fi
5751 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5752 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5753 :
5754 else
5755 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5756 fi
5757 fi
5758 rm t1 t2
5759
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5762 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5763 do_compare="$gcc_cv_prog_cmp_skip"
5764
5765
5766
5767 # Check whether --enable-bootstrap was given.
5768 if test "${enable_bootstrap+set}" = set; then :
5769 enableval=$enable_bootstrap;
5770 else
5771 enable_bootstrap=default
5772 fi
5773
5774
5775 # Issue errors and warnings for invalid/strange bootstrap combinations.
5776 if test -r $srcdir/gcc/configure; then
5777 have_compiler=yes
5778 else
5779 have_compiler=no
5780 fi
5781
5782 case "$have_compiler:$host:$target:$enable_bootstrap" in
5783 *:*:*:no) ;;
5784
5785 # Default behavior. Enable bootstrap if we have a compiler
5786 # and we are in a native configuration.
5787 yes:$build:$build:default)
5788 enable_bootstrap=yes ;;
5789
5790 *:*:*:default)
5791 enable_bootstrap=no ;;
5792
5793 # We have a compiler and we are in a native configuration, bootstrap is ok
5794 yes:$build:$build:yes)
5795 ;;
5796
5797 # Other configurations, but we have a compiler. Assume the user knows
5798 # what he's doing.
5799 yes:*:*:yes)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5801 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5802 ;;
5803
5804 # No compiler: if they passed --enable-bootstrap explicitly, fail
5805 no:*:*:yes)
5806 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5807
5808 # Fail if wrong command line
5809 *)
5810 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5811 ;;
5812 esac
5813
5814 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5815 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5816 # require C++11 (or higher).
5817 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5818 CXX="$CXX -std=c++11"
5819 elif test "$have_compiler" = yes; then
5820 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5821 ac_ext=cpp
5822 ac_cpp='$CXXCPP $CPPFLAGS'
5823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826 ac_success=no
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5829 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5830 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835
5836
5837 // If the compiler admits that it is not ready for C++11, why torture it?
5838 // Hopefully, this will speed up the test.
5839
5840 #ifndef __cplusplus
5841
5842 #error "This is not a C++ compiler"
5843
5844 #elif __cplusplus < 201103L
5845
5846 #error "This is not a C++11 compiler"
5847
5848 #else
5849
5850 namespace cxx11
5851 {
5852
5853 namespace test_static_assert
5854 {
5855
5856 template <typename T>
5857 struct check
5858 {
5859 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5860 };
5861
5862 }
5863
5864 namespace test_final_override
5865 {
5866
5867 struct Base
5868 {
5869 virtual ~Base() {}
5870 virtual void f() {}
5871 };
5872
5873 struct Derived : public Base
5874 {
5875 virtual ~Derived() override {}
5876 virtual void f() override {}
5877 };
5878
5879 }
5880
5881 namespace test_double_right_angle_brackets
5882 {
5883
5884 template < typename T >
5885 struct check {};
5886
5887 typedef check<void> single_type;
5888 typedef check<check<void>> double_type;
5889 typedef check<check<check<void>>> triple_type;
5890 typedef check<check<check<check<void>>>> quadruple_type;
5891
5892 }
5893
5894 namespace test_decltype
5895 {
5896
5897 int
5898 f()
5899 {
5900 int a = 1;
5901 decltype(a) b = 2;
5902 return a + b;
5903 }
5904
5905 }
5906
5907 namespace test_type_deduction
5908 {
5909
5910 template < typename T1, typename T2 >
5911 struct is_same
5912 {
5913 static const bool value = false;
5914 };
5915
5916 template < typename T >
5917 struct is_same<T, T>
5918 {
5919 static const bool value = true;
5920 };
5921
5922 template < typename T1, typename T2 >
5923 auto
5924 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5925 {
5926 return a1 + a2;
5927 }
5928
5929 int
5930 test(const int c, volatile int v)
5931 {
5932 static_assert(is_same<int, decltype(0)>::value == true, "");
5933 static_assert(is_same<int, decltype(c)>::value == false, "");
5934 static_assert(is_same<int, decltype(v)>::value == false, "");
5935 auto ac = c;
5936 auto av = v;
5937 auto sumi = ac + av + 'x';
5938 auto sumf = ac + av + 1.0;
5939 static_assert(is_same<int, decltype(ac)>::value == true, "");
5940 static_assert(is_same<int, decltype(av)>::value == true, "");
5941 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5942 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5943 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5944 return (sumf > 0.0) ? sumi : add(c, v);
5945 }
5946
5947 }
5948
5949 namespace test_noexcept
5950 {
5951
5952 int f() { return 0; }
5953 int g() noexcept { return 0; }
5954
5955 static_assert(noexcept(f()) == false, "");
5956 static_assert(noexcept(g()) == true, "");
5957
5958 }
5959
5960 namespace test_constexpr
5961 {
5962
5963 template < typename CharT >
5964 unsigned long constexpr
5965 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5966 {
5967 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5968 }
5969
5970 template < typename CharT >
5971 unsigned long constexpr
5972 strlen_c(const CharT *const s) noexcept
5973 {
5974 return strlen_c_r(s, 0UL);
5975 }
5976
5977 static_assert(strlen_c("") == 0UL, "");
5978 static_assert(strlen_c("1") == 1UL, "");
5979 static_assert(strlen_c("example") == 7UL, "");
5980 static_assert(strlen_c("another\0example") == 7UL, "");
5981
5982 }
5983
5984 namespace test_rvalue_references
5985 {
5986
5987 template < int N >
5988 struct answer
5989 {
5990 static constexpr int value = N;
5991 };
5992
5993 answer<1> f(int&) { return answer<1>(); }
5994 answer<2> f(const int&) { return answer<2>(); }
5995 answer<3> f(int&&) { return answer<3>(); }
5996
5997 void
5998 test()
5999 {
6000 int i = 0;
6001 const int c = 0;
6002 static_assert(decltype(f(i))::value == 1, "");
6003 static_assert(decltype(f(c))::value == 2, "");
6004 static_assert(decltype(f(0))::value == 3, "");
6005 }
6006
6007 }
6008
6009 namespace test_uniform_initialization
6010 {
6011
6012 struct test
6013 {
6014 static const int zero {};
6015 static const int one {1};
6016 };
6017
6018 static_assert(test::zero == 0, "");
6019 static_assert(test::one == 1, "");
6020
6021 }
6022
6023 namespace test_lambdas
6024 {
6025
6026 void
6027 test1()
6028 {
6029 auto lambda1 = [](){};
6030 auto lambda2 = lambda1;
6031 lambda1();
6032 lambda2();
6033 }
6034
6035 int
6036 test2()
6037 {
6038 auto a = [](int i, int j){ return i + j; }(1, 2);
6039 auto b = []() -> int { return '0'; }();
6040 auto c = [=](){ return a + b; }();
6041 auto d = [&](){ return c; }();
6042 auto e = [a, &b](int x) mutable {
6043 const auto identity = [](int y){ return y; };
6044 for (auto i = 0; i < a; ++i)
6045 a += b--;
6046 return x + identity(a + b);
6047 }(0);
6048 return a + b + c + d + e;
6049 }
6050
6051 int
6052 test3()
6053 {
6054 const auto nullary = [](){ return 0; };
6055 const auto unary = [](int x){ return x; };
6056 using nullary_t = decltype(nullary);
6057 using unary_t = decltype(unary);
6058 const auto higher1st = [](nullary_t f){ return f(); };
6059 const auto higher2nd = [unary](nullary_t f1){
6060 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6061 };
6062 return higher1st(nullary) + higher2nd(nullary)(unary);
6063 }
6064
6065 }
6066
6067 namespace test_variadic_templates
6068 {
6069
6070 template <int...>
6071 struct sum;
6072
6073 template <int N0, int... N1toN>
6074 struct sum<N0, N1toN...>
6075 {
6076 static constexpr auto value = N0 + sum<N1toN...>::value;
6077 };
6078
6079 template <>
6080 struct sum<>
6081 {
6082 static constexpr auto value = 0;
6083 };
6084
6085 static_assert(sum<>::value == 0, "");
6086 static_assert(sum<1>::value == 1, "");
6087 static_assert(sum<23>::value == 23, "");
6088 static_assert(sum<1, 2>::value == 3, "");
6089 static_assert(sum<5, 5, 11>::value == 21, "");
6090 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6091
6092 }
6093
6094 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6095 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6096 // because of this.
6097 namespace test_template_alias_sfinae
6098 {
6099
6100 struct foo {};
6101
6102 template<typename T>
6103 using member = typename T::member_type;
6104
6105 template<typename T>
6106 void func(...) {}
6107
6108 template<typename T>
6109 void func(member<T>*) {}
6110
6111 void test();
6112
6113 void test() { func<foo>(0); }
6114
6115 }
6116
6117 } // namespace cxx11
6118
6119 #endif // __cplusplus >= 201103L
6120
6121
6122
6123 _ACEOF
6124 if ac_fn_cxx_try_compile "$LINENO"; then :
6125 ax_cv_cxx_compile_cxx11=yes
6126 else
6127 ax_cv_cxx_compile_cxx11=no
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6132 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6133 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6134 ac_success=yes
6135 fi
6136
6137 if test x$ac_success = xno; then
6138 for alternative in ${ax_cxx_compile_alternatives}; do
6139 switch="-std=gnu++${alternative}"
6140 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6142 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6143 if eval \${$cachevar+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 ac_save_CXX="$CXX"
6147 CXX="$CXX $switch"
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150
6151
6152 // If the compiler admits that it is not ready for C++11, why torture it?
6153 // Hopefully, this will speed up the test.
6154
6155 #ifndef __cplusplus
6156
6157 #error "This is not a C++ compiler"
6158
6159 #elif __cplusplus < 201103L
6160
6161 #error "This is not a C++11 compiler"
6162
6163 #else
6164
6165 namespace cxx11
6166 {
6167
6168 namespace test_static_assert
6169 {
6170
6171 template <typename T>
6172 struct check
6173 {
6174 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6175 };
6176
6177 }
6178
6179 namespace test_final_override
6180 {
6181
6182 struct Base
6183 {
6184 virtual ~Base() {}
6185 virtual void f() {}
6186 };
6187
6188 struct Derived : public Base
6189 {
6190 virtual ~Derived() override {}
6191 virtual void f() override {}
6192 };
6193
6194 }
6195
6196 namespace test_double_right_angle_brackets
6197 {
6198
6199 template < typename T >
6200 struct check {};
6201
6202 typedef check<void> single_type;
6203 typedef check<check<void>> double_type;
6204 typedef check<check<check<void>>> triple_type;
6205 typedef check<check<check<check<void>>>> quadruple_type;
6206
6207 }
6208
6209 namespace test_decltype
6210 {
6211
6212 int
6213 f()
6214 {
6215 int a = 1;
6216 decltype(a) b = 2;
6217 return a + b;
6218 }
6219
6220 }
6221
6222 namespace test_type_deduction
6223 {
6224
6225 template < typename T1, typename T2 >
6226 struct is_same
6227 {
6228 static const bool value = false;
6229 };
6230
6231 template < typename T >
6232 struct is_same<T, T>
6233 {
6234 static const bool value = true;
6235 };
6236
6237 template < typename T1, typename T2 >
6238 auto
6239 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6240 {
6241 return a1 + a2;
6242 }
6243
6244 int
6245 test(const int c, volatile int v)
6246 {
6247 static_assert(is_same<int, decltype(0)>::value == true, "");
6248 static_assert(is_same<int, decltype(c)>::value == false, "");
6249 static_assert(is_same<int, decltype(v)>::value == false, "");
6250 auto ac = c;
6251 auto av = v;
6252 auto sumi = ac + av + 'x';
6253 auto sumf = ac + av + 1.0;
6254 static_assert(is_same<int, decltype(ac)>::value == true, "");
6255 static_assert(is_same<int, decltype(av)>::value == true, "");
6256 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6257 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6258 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6259 return (sumf > 0.0) ? sumi : add(c, v);
6260 }
6261
6262 }
6263
6264 namespace test_noexcept
6265 {
6266
6267 int f() { return 0; }
6268 int g() noexcept { return 0; }
6269
6270 static_assert(noexcept(f()) == false, "");
6271 static_assert(noexcept(g()) == true, "");
6272
6273 }
6274
6275 namespace test_constexpr
6276 {
6277
6278 template < typename CharT >
6279 unsigned long constexpr
6280 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6281 {
6282 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6283 }
6284
6285 template < typename CharT >
6286 unsigned long constexpr
6287 strlen_c(const CharT *const s) noexcept
6288 {
6289 return strlen_c_r(s, 0UL);
6290 }
6291
6292 static_assert(strlen_c("") == 0UL, "");
6293 static_assert(strlen_c("1") == 1UL, "");
6294 static_assert(strlen_c("example") == 7UL, "");
6295 static_assert(strlen_c("another\0example") == 7UL, "");
6296
6297 }
6298
6299 namespace test_rvalue_references
6300 {
6301
6302 template < int N >
6303 struct answer
6304 {
6305 static constexpr int value = N;
6306 };
6307
6308 answer<1> f(int&) { return answer<1>(); }
6309 answer<2> f(const int&) { return answer<2>(); }
6310 answer<3> f(int&&) { return answer<3>(); }
6311
6312 void
6313 test()
6314 {
6315 int i = 0;
6316 const int c = 0;
6317 static_assert(decltype(f(i))::value == 1, "");
6318 static_assert(decltype(f(c))::value == 2, "");
6319 static_assert(decltype(f(0))::value == 3, "");
6320 }
6321
6322 }
6323
6324 namespace test_uniform_initialization
6325 {
6326
6327 struct test
6328 {
6329 static const int zero {};
6330 static const int one {1};
6331 };
6332
6333 static_assert(test::zero == 0, "");
6334 static_assert(test::one == 1, "");
6335
6336 }
6337
6338 namespace test_lambdas
6339 {
6340
6341 void
6342 test1()
6343 {
6344 auto lambda1 = [](){};
6345 auto lambda2 = lambda1;
6346 lambda1();
6347 lambda2();
6348 }
6349
6350 int
6351 test2()
6352 {
6353 auto a = [](int i, int j){ return i + j; }(1, 2);
6354 auto b = []() -> int { return '0'; }();
6355 auto c = [=](){ return a + b; }();
6356 auto d = [&](){ return c; }();
6357 auto e = [a, &b](int x) mutable {
6358 const auto identity = [](int y){ return y; };
6359 for (auto i = 0; i < a; ++i)
6360 a += b--;
6361 return x + identity(a + b);
6362 }(0);
6363 return a + b + c + d + e;
6364 }
6365
6366 int
6367 test3()
6368 {
6369 const auto nullary = [](){ return 0; };
6370 const auto unary = [](int x){ return x; };
6371 using nullary_t = decltype(nullary);
6372 using unary_t = decltype(unary);
6373 const auto higher1st = [](nullary_t f){ return f(); };
6374 const auto higher2nd = [unary](nullary_t f1){
6375 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6376 };
6377 return higher1st(nullary) + higher2nd(nullary)(unary);
6378 }
6379
6380 }
6381
6382 namespace test_variadic_templates
6383 {
6384
6385 template <int...>
6386 struct sum;
6387
6388 template <int N0, int... N1toN>
6389 struct sum<N0, N1toN...>
6390 {
6391 static constexpr auto value = N0 + sum<N1toN...>::value;
6392 };
6393
6394 template <>
6395 struct sum<>
6396 {
6397 static constexpr auto value = 0;
6398 };
6399
6400 static_assert(sum<>::value == 0, "");
6401 static_assert(sum<1>::value == 1, "");
6402 static_assert(sum<23>::value == 23, "");
6403 static_assert(sum<1, 2>::value == 3, "");
6404 static_assert(sum<5, 5, 11>::value == 21, "");
6405 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6406
6407 }
6408
6409 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6410 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6411 // because of this.
6412 namespace test_template_alias_sfinae
6413 {
6414
6415 struct foo {};
6416
6417 template<typename T>
6418 using member = typename T::member_type;
6419
6420 template<typename T>
6421 void func(...) {}
6422
6423 template<typename T>
6424 void func(member<T>*) {}
6425
6426 void test();
6427
6428 void test() { func<foo>(0); }
6429
6430 }
6431
6432 } // namespace cxx11
6433
6434 #endif // __cplusplus >= 201103L
6435
6436
6437
6438 _ACEOF
6439 if ac_fn_cxx_try_compile "$LINENO"; then :
6440 eval $cachevar=yes
6441 else
6442 eval $cachevar=no
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 CXX="$ac_save_CXX"
6446 fi
6447 eval ac_res=\$$cachevar
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6449 $as_echo "$ac_res" >&6; }
6450 if eval test x\$$cachevar = xyes; then
6451 CXX="$CXX $switch"
6452 if test -n "$CXXCPP" ; then
6453 CXXCPP="$CXXCPP $switch"
6454 fi
6455 ac_success=yes
6456 break
6457 fi
6458 done
6459 fi
6460
6461 if test x$ac_success = xno; then
6462 for alternative in ${ax_cxx_compile_alternatives}; do
6463 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6464 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6466 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6467 if eval \${$cachevar+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 ac_save_CXX="$CXX"
6471 CXX="$CXX $switch"
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474
6475
6476 // If the compiler admits that it is not ready for C++11, why torture it?
6477 // Hopefully, this will speed up the test.
6478
6479 #ifndef __cplusplus
6480
6481 #error "This is not a C++ compiler"
6482
6483 #elif __cplusplus < 201103L
6484
6485 #error "This is not a C++11 compiler"
6486
6487 #else
6488
6489 namespace cxx11
6490 {
6491
6492 namespace test_static_assert
6493 {
6494
6495 template <typename T>
6496 struct check
6497 {
6498 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6499 };
6500
6501 }
6502
6503 namespace test_final_override
6504 {
6505
6506 struct Base
6507 {
6508 virtual ~Base() {}
6509 virtual void f() {}
6510 };
6511
6512 struct Derived : public Base
6513 {
6514 virtual ~Derived() override {}
6515 virtual void f() override {}
6516 };
6517
6518 }
6519
6520 namespace test_double_right_angle_brackets
6521 {
6522
6523 template < typename T >
6524 struct check {};
6525
6526 typedef check<void> single_type;
6527 typedef check<check<void>> double_type;
6528 typedef check<check<check<void>>> triple_type;
6529 typedef check<check<check<check<void>>>> quadruple_type;
6530
6531 }
6532
6533 namespace test_decltype
6534 {
6535
6536 int
6537 f()
6538 {
6539 int a = 1;
6540 decltype(a) b = 2;
6541 return a + b;
6542 }
6543
6544 }
6545
6546 namespace test_type_deduction
6547 {
6548
6549 template < typename T1, typename T2 >
6550 struct is_same
6551 {
6552 static const bool value = false;
6553 };
6554
6555 template < typename T >
6556 struct is_same<T, T>
6557 {
6558 static const bool value = true;
6559 };
6560
6561 template < typename T1, typename T2 >
6562 auto
6563 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6564 {
6565 return a1 + a2;
6566 }
6567
6568 int
6569 test(const int c, volatile int v)
6570 {
6571 static_assert(is_same<int, decltype(0)>::value == true, "");
6572 static_assert(is_same<int, decltype(c)>::value == false, "");
6573 static_assert(is_same<int, decltype(v)>::value == false, "");
6574 auto ac = c;
6575 auto av = v;
6576 auto sumi = ac + av + 'x';
6577 auto sumf = ac + av + 1.0;
6578 static_assert(is_same<int, decltype(ac)>::value == true, "");
6579 static_assert(is_same<int, decltype(av)>::value == true, "");
6580 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6581 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6582 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6583 return (sumf > 0.0) ? sumi : add(c, v);
6584 }
6585
6586 }
6587
6588 namespace test_noexcept
6589 {
6590
6591 int f() { return 0; }
6592 int g() noexcept { return 0; }
6593
6594 static_assert(noexcept(f()) == false, "");
6595 static_assert(noexcept(g()) == true, "");
6596
6597 }
6598
6599 namespace test_constexpr
6600 {
6601
6602 template < typename CharT >
6603 unsigned long constexpr
6604 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6605 {
6606 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6607 }
6608
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c(const CharT *const s) noexcept
6612 {
6613 return strlen_c_r(s, 0UL);
6614 }
6615
6616 static_assert(strlen_c("") == 0UL, "");
6617 static_assert(strlen_c("1") == 1UL, "");
6618 static_assert(strlen_c("example") == 7UL, "");
6619 static_assert(strlen_c("another\0example") == 7UL, "");
6620
6621 }
6622
6623 namespace test_rvalue_references
6624 {
6625
6626 template < int N >
6627 struct answer
6628 {
6629 static constexpr int value = N;
6630 };
6631
6632 answer<1> f(int&) { return answer<1>(); }
6633 answer<2> f(const int&) { return answer<2>(); }
6634 answer<3> f(int&&) { return answer<3>(); }
6635
6636 void
6637 test()
6638 {
6639 int i = 0;
6640 const int c = 0;
6641 static_assert(decltype(f(i))::value == 1, "");
6642 static_assert(decltype(f(c))::value == 2, "");
6643 static_assert(decltype(f(0))::value == 3, "");
6644 }
6645
6646 }
6647
6648 namespace test_uniform_initialization
6649 {
6650
6651 struct test
6652 {
6653 static const int zero {};
6654 static const int one {1};
6655 };
6656
6657 static_assert(test::zero == 0, "");
6658 static_assert(test::one == 1, "");
6659
6660 }
6661
6662 namespace test_lambdas
6663 {
6664
6665 void
6666 test1()
6667 {
6668 auto lambda1 = [](){};
6669 auto lambda2 = lambda1;
6670 lambda1();
6671 lambda2();
6672 }
6673
6674 int
6675 test2()
6676 {
6677 auto a = [](int i, int j){ return i + j; }(1, 2);
6678 auto b = []() -> int { return '0'; }();
6679 auto c = [=](){ return a + b; }();
6680 auto d = [&](){ return c; }();
6681 auto e = [a, &b](int x) mutable {
6682 const auto identity = [](int y){ return y; };
6683 for (auto i = 0; i < a; ++i)
6684 a += b--;
6685 return x + identity(a + b);
6686 }(0);
6687 return a + b + c + d + e;
6688 }
6689
6690 int
6691 test3()
6692 {
6693 const auto nullary = [](){ return 0; };
6694 const auto unary = [](int x){ return x; };
6695 using nullary_t = decltype(nullary);
6696 using unary_t = decltype(unary);
6697 const auto higher1st = [](nullary_t f){ return f(); };
6698 const auto higher2nd = [unary](nullary_t f1){
6699 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6700 };
6701 return higher1st(nullary) + higher2nd(nullary)(unary);
6702 }
6703
6704 }
6705
6706 namespace test_variadic_templates
6707 {
6708
6709 template <int...>
6710 struct sum;
6711
6712 template <int N0, int... N1toN>
6713 struct sum<N0, N1toN...>
6714 {
6715 static constexpr auto value = N0 + sum<N1toN...>::value;
6716 };
6717
6718 template <>
6719 struct sum<>
6720 {
6721 static constexpr auto value = 0;
6722 };
6723
6724 static_assert(sum<>::value == 0, "");
6725 static_assert(sum<1>::value == 1, "");
6726 static_assert(sum<23>::value == 23, "");
6727 static_assert(sum<1, 2>::value == 3, "");
6728 static_assert(sum<5, 5, 11>::value == 21, "");
6729 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6730
6731 }
6732
6733 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6734 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6735 // because of this.
6736 namespace test_template_alias_sfinae
6737 {
6738
6739 struct foo {};
6740
6741 template<typename T>
6742 using member = typename T::member_type;
6743
6744 template<typename T>
6745 void func(...) {}
6746
6747 template<typename T>
6748 void func(member<T>*) {}
6749
6750 void test();
6751
6752 void test() { func<foo>(0); }
6753
6754 }
6755
6756 } // namespace cxx11
6757
6758 #endif // __cplusplus >= 201103L
6759
6760
6761
6762 _ACEOF
6763 if ac_fn_cxx_try_compile "$LINENO"; then :
6764 eval $cachevar=yes
6765 else
6766 eval $cachevar=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 CXX="$ac_save_CXX"
6770 fi
6771 eval ac_res=\$$cachevar
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6773 $as_echo "$ac_res" >&6; }
6774 if eval test x\$$cachevar = xyes; then
6775 CXX="$CXX $switch"
6776 if test -n "$CXXCPP" ; then
6777 CXXCPP="$CXXCPP $switch"
6778 fi
6779 ac_success=yes
6780 break
6781 fi
6782 done
6783 if test x$ac_success = xyes; then
6784 break
6785 fi
6786 done
6787 fi
6788
6789 ac_ext=c
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
6795 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6796 if test x$ac_success = xno; then
6797 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6798 fi
6799 fi
6800 if test x$ac_success = xno; then
6801 HAVE_CXX11=0
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6803 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6804 else
6805 HAVE_CXX11=1
6806
6807 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6808
6809 fi
6810
6811
6812
6813 if test "${build}" != "${host}"; then
6814 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6815 ac_ext=cpp
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820 ac_success=no
6821 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6822 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6823 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6824 CXX="$CXX_FOR_BUILD"
6825 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6826 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6828 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6829 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834
6835
6836 // If the compiler admits that it is not ready for C++11, why torture it?
6837 // Hopefully, this will speed up the test.
6838
6839 #ifndef __cplusplus
6840
6841 #error "This is not a C++ compiler"
6842
6843 #elif __cplusplus < 201103L
6844
6845 #error "This is not a C++11 compiler"
6846
6847 #else
6848
6849 namespace cxx11
6850 {
6851
6852 namespace test_static_assert
6853 {
6854
6855 template <typename T>
6856 struct check
6857 {
6858 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6859 };
6860
6861 }
6862
6863 namespace test_final_override
6864 {
6865
6866 struct Base
6867 {
6868 virtual ~Base() {}
6869 virtual void f() {}
6870 };
6871
6872 struct Derived : public Base
6873 {
6874 virtual ~Derived() override {}
6875 virtual void f() override {}
6876 };
6877
6878 }
6879
6880 namespace test_double_right_angle_brackets
6881 {
6882
6883 template < typename T >
6884 struct check {};
6885
6886 typedef check<void> single_type;
6887 typedef check<check<void>> double_type;
6888 typedef check<check<check<void>>> triple_type;
6889 typedef check<check<check<check<void>>>> quadruple_type;
6890
6891 }
6892
6893 namespace test_decltype
6894 {
6895
6896 int
6897 f()
6898 {
6899 int a = 1;
6900 decltype(a) b = 2;
6901 return a + b;
6902 }
6903
6904 }
6905
6906 namespace test_type_deduction
6907 {
6908
6909 template < typename T1, typename T2 >
6910 struct is_same
6911 {
6912 static const bool value = false;
6913 };
6914
6915 template < typename T >
6916 struct is_same<T, T>
6917 {
6918 static const bool value = true;
6919 };
6920
6921 template < typename T1, typename T2 >
6922 auto
6923 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6924 {
6925 return a1 + a2;
6926 }
6927
6928 int
6929 test(const int c, volatile int v)
6930 {
6931 static_assert(is_same<int, decltype(0)>::value == true, "");
6932 static_assert(is_same<int, decltype(c)>::value == false, "");
6933 static_assert(is_same<int, decltype(v)>::value == false, "");
6934 auto ac = c;
6935 auto av = v;
6936 auto sumi = ac + av + 'x';
6937 auto sumf = ac + av + 1.0;
6938 static_assert(is_same<int, decltype(ac)>::value == true, "");
6939 static_assert(is_same<int, decltype(av)>::value == true, "");
6940 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6941 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6942 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6943 return (sumf > 0.0) ? sumi : add(c, v);
6944 }
6945
6946 }
6947
6948 namespace test_noexcept
6949 {
6950
6951 int f() { return 0; }
6952 int g() noexcept { return 0; }
6953
6954 static_assert(noexcept(f()) == false, "");
6955 static_assert(noexcept(g()) == true, "");
6956
6957 }
6958
6959 namespace test_constexpr
6960 {
6961
6962 template < typename CharT >
6963 unsigned long constexpr
6964 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6965 {
6966 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6967 }
6968
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c(const CharT *const s) noexcept
6972 {
6973 return strlen_c_r(s, 0UL);
6974 }
6975
6976 static_assert(strlen_c("") == 0UL, "");
6977 static_assert(strlen_c("1") == 1UL, "");
6978 static_assert(strlen_c("example") == 7UL, "");
6979 static_assert(strlen_c("another\0example") == 7UL, "");
6980
6981 }
6982
6983 namespace test_rvalue_references
6984 {
6985
6986 template < int N >
6987 struct answer
6988 {
6989 static constexpr int value = N;
6990 };
6991
6992 answer<1> f(int&) { return answer<1>(); }
6993 answer<2> f(const int&) { return answer<2>(); }
6994 answer<3> f(int&&) { return answer<3>(); }
6995
6996 void
6997 test()
6998 {
6999 int i = 0;
7000 const int c = 0;
7001 static_assert(decltype(f(i))::value == 1, "");
7002 static_assert(decltype(f(c))::value == 2, "");
7003 static_assert(decltype(f(0))::value == 3, "");
7004 }
7005
7006 }
7007
7008 namespace test_uniform_initialization
7009 {
7010
7011 struct test
7012 {
7013 static const int zero {};
7014 static const int one {1};
7015 };
7016
7017 static_assert(test::zero == 0, "");
7018 static_assert(test::one == 1, "");
7019
7020 }
7021
7022 namespace test_lambdas
7023 {
7024
7025 void
7026 test1()
7027 {
7028 auto lambda1 = [](){};
7029 auto lambda2 = lambda1;
7030 lambda1();
7031 lambda2();
7032 }
7033
7034 int
7035 test2()
7036 {
7037 auto a = [](int i, int j){ return i + j; }(1, 2);
7038 auto b = []() -> int { return '0'; }();
7039 auto c = [=](){ return a + b; }();
7040 auto d = [&](){ return c; }();
7041 auto e = [a, &b](int x) mutable {
7042 const auto identity = [](int y){ return y; };
7043 for (auto i = 0; i < a; ++i)
7044 a += b--;
7045 return x + identity(a + b);
7046 }(0);
7047 return a + b + c + d + e;
7048 }
7049
7050 int
7051 test3()
7052 {
7053 const auto nullary = [](){ return 0; };
7054 const auto unary = [](int x){ return x; };
7055 using nullary_t = decltype(nullary);
7056 using unary_t = decltype(unary);
7057 const auto higher1st = [](nullary_t f){ return f(); };
7058 const auto higher2nd = [unary](nullary_t f1){
7059 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7060 };
7061 return higher1st(nullary) + higher2nd(nullary)(unary);
7062 }
7063
7064 }
7065
7066 namespace test_variadic_templates
7067 {
7068
7069 template <int...>
7070 struct sum;
7071
7072 template <int N0, int... N1toN>
7073 struct sum<N0, N1toN...>
7074 {
7075 static constexpr auto value = N0 + sum<N1toN...>::value;
7076 };
7077
7078 template <>
7079 struct sum<>
7080 {
7081 static constexpr auto value = 0;
7082 };
7083
7084 static_assert(sum<>::value == 0, "");
7085 static_assert(sum<1>::value == 1, "");
7086 static_assert(sum<23>::value == 23, "");
7087 static_assert(sum<1, 2>::value == 3, "");
7088 static_assert(sum<5, 5, 11>::value == 21, "");
7089 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7090
7091 }
7092
7093 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7094 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7095 // because of this.
7096 namespace test_template_alias_sfinae
7097 {
7098
7099 struct foo {};
7100
7101 template<typename T>
7102 using member = typename T::member_type;
7103
7104 template<typename T>
7105 void func(...) {}
7106
7107 template<typename T>
7108 void func(member<T>*) {}
7109
7110 void test();
7111
7112 void test() { func<foo>(0); }
7113
7114 }
7115
7116 } // namespace cxx11
7117
7118 #endif // __cplusplus >= 201103L
7119
7120
7121
7122 _ACEOF
7123 if ac_fn_cxx_try_compile "$LINENO"; then :
7124 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7125 else
7126 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7131 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7132 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7133 ac_success=yes
7134 fi
7135
7136 if test x$ac_success = xno; then
7137 for alternative in ${ax_cxx_compile_alternatives}; do
7138 switch="-std=gnu++${alternative}"
7139 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7141 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7142 if eval \${$cachevar+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 ac_save_CXX="$CXX"
7146 CXX="$CXX $switch"
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149
7150
7151 // If the compiler admits that it is not ready for C++11, why torture it?
7152 // Hopefully, this will speed up the test.
7153
7154 #ifndef __cplusplus
7155
7156 #error "This is not a C++ compiler"
7157
7158 #elif __cplusplus < 201103L
7159
7160 #error "This is not a C++11 compiler"
7161
7162 #else
7163
7164 namespace cxx11
7165 {
7166
7167 namespace test_static_assert
7168 {
7169
7170 template <typename T>
7171 struct check
7172 {
7173 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7174 };
7175
7176 }
7177
7178 namespace test_final_override
7179 {
7180
7181 struct Base
7182 {
7183 virtual ~Base() {}
7184 virtual void f() {}
7185 };
7186
7187 struct Derived : public Base
7188 {
7189 virtual ~Derived() override {}
7190 virtual void f() override {}
7191 };
7192
7193 }
7194
7195 namespace test_double_right_angle_brackets
7196 {
7197
7198 template < typename T >
7199 struct check {};
7200
7201 typedef check<void> single_type;
7202 typedef check<check<void>> double_type;
7203 typedef check<check<check<void>>> triple_type;
7204 typedef check<check<check<check<void>>>> quadruple_type;
7205
7206 }
7207
7208 namespace test_decltype
7209 {
7210
7211 int
7212 f()
7213 {
7214 int a = 1;
7215 decltype(a) b = 2;
7216 return a + b;
7217 }
7218
7219 }
7220
7221 namespace test_type_deduction
7222 {
7223
7224 template < typename T1, typename T2 >
7225 struct is_same
7226 {
7227 static const bool value = false;
7228 };
7229
7230 template < typename T >
7231 struct is_same<T, T>
7232 {
7233 static const bool value = true;
7234 };
7235
7236 template < typename T1, typename T2 >
7237 auto
7238 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7239 {
7240 return a1 + a2;
7241 }
7242
7243 int
7244 test(const int c, volatile int v)
7245 {
7246 static_assert(is_same<int, decltype(0)>::value == true, "");
7247 static_assert(is_same<int, decltype(c)>::value == false, "");
7248 static_assert(is_same<int, decltype(v)>::value == false, "");
7249 auto ac = c;
7250 auto av = v;
7251 auto sumi = ac + av + 'x';
7252 auto sumf = ac + av + 1.0;
7253 static_assert(is_same<int, decltype(ac)>::value == true, "");
7254 static_assert(is_same<int, decltype(av)>::value == true, "");
7255 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7256 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7257 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7258 return (sumf > 0.0) ? sumi : add(c, v);
7259 }
7260
7261 }
7262
7263 namespace test_noexcept
7264 {
7265
7266 int f() { return 0; }
7267 int g() noexcept { return 0; }
7268
7269 static_assert(noexcept(f()) == false, "");
7270 static_assert(noexcept(g()) == true, "");
7271
7272 }
7273
7274 namespace test_constexpr
7275 {
7276
7277 template < typename CharT >
7278 unsigned long constexpr
7279 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7280 {
7281 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7282 }
7283
7284 template < typename CharT >
7285 unsigned long constexpr
7286 strlen_c(const CharT *const s) noexcept
7287 {
7288 return strlen_c_r(s, 0UL);
7289 }
7290
7291 static_assert(strlen_c("") == 0UL, "");
7292 static_assert(strlen_c("1") == 1UL, "");
7293 static_assert(strlen_c("example") == 7UL, "");
7294 static_assert(strlen_c("another\0example") == 7UL, "");
7295
7296 }
7297
7298 namespace test_rvalue_references
7299 {
7300
7301 template < int N >
7302 struct answer
7303 {
7304 static constexpr int value = N;
7305 };
7306
7307 answer<1> f(int&) { return answer<1>(); }
7308 answer<2> f(const int&) { return answer<2>(); }
7309 answer<3> f(int&&) { return answer<3>(); }
7310
7311 void
7312 test()
7313 {
7314 int i = 0;
7315 const int c = 0;
7316 static_assert(decltype(f(i))::value == 1, "");
7317 static_assert(decltype(f(c))::value == 2, "");
7318 static_assert(decltype(f(0))::value == 3, "");
7319 }
7320
7321 }
7322
7323 namespace test_uniform_initialization
7324 {
7325
7326 struct test
7327 {
7328 static const int zero {};
7329 static const int one {1};
7330 };
7331
7332 static_assert(test::zero == 0, "");
7333 static_assert(test::one == 1, "");
7334
7335 }
7336
7337 namespace test_lambdas
7338 {
7339
7340 void
7341 test1()
7342 {
7343 auto lambda1 = [](){};
7344 auto lambda2 = lambda1;
7345 lambda1();
7346 lambda2();
7347 }
7348
7349 int
7350 test2()
7351 {
7352 auto a = [](int i, int j){ return i + j; }(1, 2);
7353 auto b = []() -> int { return '0'; }();
7354 auto c = [=](){ return a + b; }();
7355 auto d = [&](){ return c; }();
7356 auto e = [a, &b](int x) mutable {
7357 const auto identity = [](int y){ return y; };
7358 for (auto i = 0; i < a; ++i)
7359 a += b--;
7360 return x + identity(a + b);
7361 }(0);
7362 return a + b + c + d + e;
7363 }
7364
7365 int
7366 test3()
7367 {
7368 const auto nullary = [](){ return 0; };
7369 const auto unary = [](int x){ return x; };
7370 using nullary_t = decltype(nullary);
7371 using unary_t = decltype(unary);
7372 const auto higher1st = [](nullary_t f){ return f(); };
7373 const auto higher2nd = [unary](nullary_t f1){
7374 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7375 };
7376 return higher1st(nullary) + higher2nd(nullary)(unary);
7377 }
7378
7379 }
7380
7381 namespace test_variadic_templates
7382 {
7383
7384 template <int...>
7385 struct sum;
7386
7387 template <int N0, int... N1toN>
7388 struct sum<N0, N1toN...>
7389 {
7390 static constexpr auto value = N0 + sum<N1toN...>::value;
7391 };
7392
7393 template <>
7394 struct sum<>
7395 {
7396 static constexpr auto value = 0;
7397 };
7398
7399 static_assert(sum<>::value == 0, "");
7400 static_assert(sum<1>::value == 1, "");
7401 static_assert(sum<23>::value == 23, "");
7402 static_assert(sum<1, 2>::value == 3, "");
7403 static_assert(sum<5, 5, 11>::value == 21, "");
7404 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7405
7406 }
7407
7408 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7409 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7410 // because of this.
7411 namespace test_template_alias_sfinae
7412 {
7413
7414 struct foo {};
7415
7416 template<typename T>
7417 using member = typename T::member_type;
7418
7419 template<typename T>
7420 void func(...) {}
7421
7422 template<typename T>
7423 void func(member<T>*) {}
7424
7425 void test();
7426
7427 void test() { func<foo>(0); }
7428
7429 }
7430
7431 } // namespace cxx11
7432
7433 #endif // __cplusplus >= 201103L
7434
7435
7436
7437 _ACEOF
7438 if ac_fn_cxx_try_compile "$LINENO"; then :
7439 eval $cachevar=yes
7440 else
7441 eval $cachevar=no
7442 fi
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 CXX="$ac_save_CXX"
7445 fi
7446 eval ac_res=\$$cachevar
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7448 $as_echo "$ac_res" >&6; }
7449 if eval test x\$$cachevar = xyes; then
7450 CXX="$CXX $switch"
7451 if test -n "$CXXCPP" ; then
7452 CXXCPP="$CXXCPP $switch"
7453 fi
7454 ac_success=yes
7455 break
7456 fi
7457 done
7458 fi
7459
7460 if test x$ac_success = xno; then
7461 for alternative in ${ax_cxx_compile_alternatives}; do
7462 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7463 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7465 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7466 if eval \${$cachevar+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 ac_save_CXX="$CXX"
7470 CXX="$CXX $switch"
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473
7474
7475 // If the compiler admits that it is not ready for C++11, why torture it?
7476 // Hopefully, this will speed up the test.
7477
7478 #ifndef __cplusplus
7479
7480 #error "This is not a C++ compiler"
7481
7482 #elif __cplusplus < 201103L
7483
7484 #error "This is not a C++11 compiler"
7485
7486 #else
7487
7488 namespace cxx11
7489 {
7490
7491 namespace test_static_assert
7492 {
7493
7494 template <typename T>
7495 struct check
7496 {
7497 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7498 };
7499
7500 }
7501
7502 namespace test_final_override
7503 {
7504
7505 struct Base
7506 {
7507 virtual ~Base() {}
7508 virtual void f() {}
7509 };
7510
7511 struct Derived : public Base
7512 {
7513 virtual ~Derived() override {}
7514 virtual void f() override {}
7515 };
7516
7517 }
7518
7519 namespace test_double_right_angle_brackets
7520 {
7521
7522 template < typename T >
7523 struct check {};
7524
7525 typedef check<void> single_type;
7526 typedef check<check<void>> double_type;
7527 typedef check<check<check<void>>> triple_type;
7528 typedef check<check<check<check<void>>>> quadruple_type;
7529
7530 }
7531
7532 namespace test_decltype
7533 {
7534
7535 int
7536 f()
7537 {
7538 int a = 1;
7539 decltype(a) b = 2;
7540 return a + b;
7541 }
7542
7543 }
7544
7545 namespace test_type_deduction
7546 {
7547
7548 template < typename T1, typename T2 >
7549 struct is_same
7550 {
7551 static const bool value = false;
7552 };
7553
7554 template < typename T >
7555 struct is_same<T, T>
7556 {
7557 static const bool value = true;
7558 };
7559
7560 template < typename T1, typename T2 >
7561 auto
7562 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7563 {
7564 return a1 + a2;
7565 }
7566
7567 int
7568 test(const int c, volatile int v)
7569 {
7570 static_assert(is_same<int, decltype(0)>::value == true, "");
7571 static_assert(is_same<int, decltype(c)>::value == false, "");
7572 static_assert(is_same<int, decltype(v)>::value == false, "");
7573 auto ac = c;
7574 auto av = v;
7575 auto sumi = ac + av + 'x';
7576 auto sumf = ac + av + 1.0;
7577 static_assert(is_same<int, decltype(ac)>::value == true, "");
7578 static_assert(is_same<int, decltype(av)>::value == true, "");
7579 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7580 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7581 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7582 return (sumf > 0.0) ? sumi : add(c, v);
7583 }
7584
7585 }
7586
7587 namespace test_noexcept
7588 {
7589
7590 int f() { return 0; }
7591 int g() noexcept { return 0; }
7592
7593 static_assert(noexcept(f()) == false, "");
7594 static_assert(noexcept(g()) == true, "");
7595
7596 }
7597
7598 namespace test_constexpr
7599 {
7600
7601 template < typename CharT >
7602 unsigned long constexpr
7603 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7604 {
7605 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7606 }
7607
7608 template < typename CharT >
7609 unsigned long constexpr
7610 strlen_c(const CharT *const s) noexcept
7611 {
7612 return strlen_c_r(s, 0UL);
7613 }
7614
7615 static_assert(strlen_c("") == 0UL, "");
7616 static_assert(strlen_c("1") == 1UL, "");
7617 static_assert(strlen_c("example") == 7UL, "");
7618 static_assert(strlen_c("another\0example") == 7UL, "");
7619
7620 }
7621
7622 namespace test_rvalue_references
7623 {
7624
7625 template < int N >
7626 struct answer
7627 {
7628 static constexpr int value = N;
7629 };
7630
7631 answer<1> f(int&) { return answer<1>(); }
7632 answer<2> f(const int&) { return answer<2>(); }
7633 answer<3> f(int&&) { return answer<3>(); }
7634
7635 void
7636 test()
7637 {
7638 int i = 0;
7639 const int c = 0;
7640 static_assert(decltype(f(i))::value == 1, "");
7641 static_assert(decltype(f(c))::value == 2, "");
7642 static_assert(decltype(f(0))::value == 3, "");
7643 }
7644
7645 }
7646
7647 namespace test_uniform_initialization
7648 {
7649
7650 struct test
7651 {
7652 static const int zero {};
7653 static const int one {1};
7654 };
7655
7656 static_assert(test::zero == 0, "");
7657 static_assert(test::one == 1, "");
7658
7659 }
7660
7661 namespace test_lambdas
7662 {
7663
7664 void
7665 test1()
7666 {
7667 auto lambda1 = [](){};
7668 auto lambda2 = lambda1;
7669 lambda1();
7670 lambda2();
7671 }
7672
7673 int
7674 test2()
7675 {
7676 auto a = [](int i, int j){ return i + j; }(1, 2);
7677 auto b = []() -> int { return '0'; }();
7678 auto c = [=](){ return a + b; }();
7679 auto d = [&](){ return c; }();
7680 auto e = [a, &b](int x) mutable {
7681 const auto identity = [](int y){ return y; };
7682 for (auto i = 0; i < a; ++i)
7683 a += b--;
7684 return x + identity(a + b);
7685 }(0);
7686 return a + b + c + d + e;
7687 }
7688
7689 int
7690 test3()
7691 {
7692 const auto nullary = [](){ return 0; };
7693 const auto unary = [](int x){ return x; };
7694 using nullary_t = decltype(nullary);
7695 using unary_t = decltype(unary);
7696 const auto higher1st = [](nullary_t f){ return f(); };
7697 const auto higher2nd = [unary](nullary_t f1){
7698 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7699 };
7700 return higher1st(nullary) + higher2nd(nullary)(unary);
7701 }
7702
7703 }
7704
7705 namespace test_variadic_templates
7706 {
7707
7708 template <int...>
7709 struct sum;
7710
7711 template <int N0, int... N1toN>
7712 struct sum<N0, N1toN...>
7713 {
7714 static constexpr auto value = N0 + sum<N1toN...>::value;
7715 };
7716
7717 template <>
7718 struct sum<>
7719 {
7720 static constexpr auto value = 0;
7721 };
7722
7723 static_assert(sum<>::value == 0, "");
7724 static_assert(sum<1>::value == 1, "");
7725 static_assert(sum<23>::value == 23, "");
7726 static_assert(sum<1, 2>::value == 3, "");
7727 static_assert(sum<5, 5, 11>::value == 21, "");
7728 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7729
7730 }
7731
7732 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7733 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7734 // because of this.
7735 namespace test_template_alias_sfinae
7736 {
7737
7738 struct foo {};
7739
7740 template<typename T>
7741 using member = typename T::member_type;
7742
7743 template<typename T>
7744 void func(...) {}
7745
7746 template<typename T>
7747 void func(member<T>*) {}
7748
7749 void test();
7750
7751 void test() { func<foo>(0); }
7752
7753 }
7754
7755 } // namespace cxx11
7756
7757 #endif // __cplusplus >= 201103L
7758
7759
7760
7761 _ACEOF
7762 if ac_fn_cxx_try_compile "$LINENO"; then :
7763 eval $cachevar=yes
7764 else
7765 eval $cachevar=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 CXX="$ac_save_CXX"
7769 fi
7770 eval ac_res=\$$cachevar
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7772 $as_echo "$ac_res" >&6; }
7773 if eval test x\$$cachevar = xyes; then
7774 CXX="$CXX $switch"
7775 if test -n "$CXXCPP" ; then
7776 CXXCPP="$CXXCPP $switch"
7777 fi
7778 ac_success=yes
7779 break
7780 fi
7781 done
7782 if test x$ac_success = xyes; then
7783 break
7784 fi
7785 done
7786 fi
7787 CXX_FOR_BUILD="$CXX"
7788 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7789 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7790 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7791 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7792 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7793 ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7800 if test x$ac_success = xno; then
7801 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7802 fi
7803 fi
7804 if test x$ac_success = xno; then
7805 HAVE_CXX11_FOR_BUILD=0
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7807 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7808 else
7809 HAVE_CXX11_FOR_BUILD=1
7810
7811 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7812
7813 fi
7814
7815
7816 fi
7817 fi
7818
7819 # Check whether --enable-pgo-build was given.
7820 if test "${enable_pgo_build+set}" = set; then :
7821 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7822 else
7823 enable_pgo_build=no
7824 fi
7825
7826
7827 # Issue errors and warnings for invalid/strange PGO build combinations.
7828 case "$have_compiler:$host:$target:$enable_pgo_build" in
7829 *:*:*:no) ;;
7830
7831 # Allow the PGO build only if we aren't building a compiler and
7832 # we are in a native configuration.
7833 no:$build:$build:yes | no:$build:$build:lto) ;;
7834
7835 # Disallow the PGO bootstrap if we are building a compiler.
7836 yes:*:*:yes | yes:*:*:lto)
7837 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7838
7839 *)
7840 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7841 ;;
7842 esac
7843
7844 if test "$enable_pgo_build" != "no"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7846 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7847 old_CFLAGS="$CFLAGS"
7848 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7849 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7850
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 int foo;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856
7857 else
7858 PGO_BUILD_GEN_CFLAGS=
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 CFLAGS="$old_CFLAGS"
7862 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7865 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7870 fi
7871
7872 if test "$enable_pgo_build" = "lto"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7874 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7875 old_CFLAGS="$CFLAGS"
7876 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7877 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int foo;
7881 _ACEOF
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883
7884 else
7885 PGO_BUILD_LTO_CFLAGS=
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 CFLAGS="$old_CFLAGS"
7889 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7891 $as_echo "yes" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7896 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7897 fi
7898 fi
7899 fi
7900
7901
7902
7903
7904 # Used for setting $lt_cv_objdir
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7906 $as_echo_n "checking for objdir... " >&6; }
7907 if ${lt_cv_objdir+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 rm -f .libs 2>/dev/null
7911 mkdir .libs 2>/dev/null
7912 if test -d .libs; then
7913 lt_cv_objdir=.libs
7914 else
7915 # MS-DOS does not allow filenames that begin with a dot.
7916 lt_cv_objdir=_libs
7917 fi
7918 rmdir .libs 2>/dev/null
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7921 $as_echo "$lt_cv_objdir" >&6; }
7922 objdir=$lt_cv_objdir
7923
7924
7925
7926
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define LT_OBJDIR "$lt_cv_objdir/"
7930 _ACEOF
7931
7932
7933
7934 # Check for GMP, MPFR and MPC
7935 gmplibs="-lmpc -lmpfr -lgmp"
7936 gmpinc=
7937 have_gmp=no
7938
7939 # Specify a location for mpc
7940 # check for this first so it ends up on the link line before mpfr.
7941
7942 # Check whether --with-mpc was given.
7943 if test "${with_mpc+set}" = set; then :
7944 withval=$with_mpc;
7945 fi
7946
7947
7948 # Check whether --with-mpc-include was given.
7949 if test "${with_mpc_include+set}" = set; then :
7950 withval=$with_mpc_include;
7951 fi
7952
7953
7954 # Check whether --with-mpc-lib was given.
7955 if test "${with_mpc_lib+set}" = set; then :
7956 withval=$with_mpc_lib;
7957 fi
7958
7959
7960 if test "x$with_mpc" != x; then
7961 gmplibs="-L$with_mpc/lib $gmplibs"
7962 gmpinc="-I$with_mpc/include $gmpinc"
7963 fi
7964 if test "x$with_mpc_include" != x; then
7965 gmpinc="-I$with_mpc_include $gmpinc"
7966 fi
7967 if test "x$with_mpc_lib" != x; then
7968 gmplibs="-L$with_mpc_lib $gmplibs"
7969 fi
7970 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7971 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7972 gmpinc='-I$$s/mpc/src '"$gmpinc"
7973 # Do not test the mpc version. Assume that it is sufficient, since
7974 # it is in the source tree, and the library has not been built yet
7975 # but it would be included on the link line in the version check below
7976 # hence making the test fail.
7977 have_gmp=yes
7978 fi
7979
7980 # Specify a location for mpfr
7981 # check for this first so it ends up on the link line before gmp.
7982
7983 # Check whether --with-mpfr-dir was given.
7984 if test "${with_mpfr_dir+set}" = set; then :
7985 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7986 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7987 fi
7988
7989
7990
7991 # Check whether --with-mpfr was given.
7992 if test "${with_mpfr+set}" = set; then :
7993 withval=$with_mpfr;
7994 fi
7995
7996
7997 # Check whether --with-mpfr-include was given.
7998 if test "${with_mpfr_include+set}" = set; then :
7999 withval=$with_mpfr_include;
8000 fi
8001
8002
8003 # Check whether --with-mpfr-lib was given.
8004 if test "${with_mpfr_lib+set}" = set; then :
8005 withval=$with_mpfr_lib;
8006 fi
8007
8008
8009 if test "x$with_mpfr" != x; then
8010 gmplibs="-L$with_mpfr/lib $gmplibs"
8011 gmpinc="-I$with_mpfr/include $gmpinc"
8012 fi
8013 if test "x$with_mpfr_include" != x; then
8014 gmpinc="-I$with_mpfr_include $gmpinc"
8015 fi
8016 if test "x$with_mpfr_lib" != x; then
8017 gmplibs="-L$with_mpfr_lib $gmplibs"
8018 fi
8019 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8020 # MPFR v3.1.0 moved the sources into a src sub-directory.
8021 if ! test -d ${srcdir}/mpfr/src; then
8022 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8023 fi
8024 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8025 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8026 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8027 # Do not test the mpfr version. Assume that it is sufficient, since
8028 # it is in the source tree, and the library has not been built yet
8029 # but it would be included on the link line in the version check below
8030 # hence making the test fail.
8031 have_gmp=yes
8032 fi
8033
8034 # Specify a location for gmp
8035
8036 # Check whether --with-gmp-dir was given.
8037 if test "${with_gmp_dir+set}" = set; then :
8038 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
8039 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8040 fi
8041
8042
8043
8044 # Check whether --with-gmp was given.
8045 if test "${with_gmp+set}" = set; then :
8046 withval=$with_gmp;
8047 fi
8048
8049
8050 # Check whether --with-gmp-include was given.
8051 if test "${with_gmp_include+set}" = set; then :
8052 withval=$with_gmp_include;
8053 fi
8054
8055
8056 # Check whether --with-gmp-lib was given.
8057 if test "${with_gmp_lib+set}" = set; then :
8058 withval=$with_gmp_lib;
8059 fi
8060
8061
8062
8063 if test "x$with_gmp" != x; then
8064 gmplibs="-L$with_gmp/lib $gmplibs"
8065 gmpinc="-I$with_gmp/include $gmpinc"
8066 fi
8067 if test "x$with_gmp_include" != x; then
8068 gmpinc="-I$with_gmp_include $gmpinc"
8069 fi
8070 if test "x$with_gmp_lib" != x; then
8071 gmplibs="-L$with_gmp_lib $gmplibs"
8072 fi
8073 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8074 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8075 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8076 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8077 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8078 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8079 # Do not test the gmp version. Assume that it is sufficient, since
8080 # it is in the source tree, and the library has not been built yet
8081 # but it would be included on the link line in the version check below
8082 # hence making the test fail.
8083 have_gmp=yes
8084 fi
8085
8086 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8087 have_gmp=yes
8088 saved_CFLAGS="$CFLAGS"
8089 CFLAGS="$CFLAGS $gmpinc"
8090 # Check for the recommended and required versions of GMP.
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8092 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include "gmp.h"
8096 int
8097 main ()
8098 {
8099
8100 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8101 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8102 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8103 choke me
8104 #endif
8105
8106 ;
8107 return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <gmp.h>
8114 int
8115 main ()
8116 {
8117
8118 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8119 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8120 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8121 choke me
8122 #endif
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8133 $as_echo "buggy but acceptable" >&6; }
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }; have_gmp=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141
8142 # If we have GMP, check the MPFR version.
8143 if test x"$have_gmp" = xyes; then
8144 # Check for the recommended and required versions of MPFR.
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8146 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <gmp.h>
8150 #include <mpfr.h>
8151 int
8152 main ()
8153 {
8154
8155 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8156 choke me
8157 #endif
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <gmp.h>
8167 #include <mpfr.h>
8168 int
8169 main ()
8170 {
8171
8172 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8173 choke me
8174 #endif
8175
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182 $as_echo "yes" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8185 $as_echo "buggy but acceptable" >&6; }
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }; have_gmp=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194
8195 # Check for the MPC header version.
8196 if test x"$have_gmp" = xyes ; then
8197 # Check for the recommended and required versions of MPC.
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8199 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 #include <mpc.h>
8203 int
8204 main ()
8205 {
8206
8207 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8208 choke me
8209 #endif
8210
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_c_try_compile "$LINENO"; then :
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <mpc.h>
8219 int
8220 main ()
8221 {
8222
8223 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8224 choke me
8225 #endif
8226
8227 ;
8228 return 0;
8229 }
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8236 $as_echo "buggy but acceptable" >&6; }
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }; have_gmp=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245
8246 # Now check the MPFR library.
8247 if test x"$have_gmp" = xyes; then
8248 saved_LIBS="$LIBS"
8249 LIBS="$LIBS $gmplibs"
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8251 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 #include <mpc.h>
8255 int
8256 main ()
8257 {
8258
8259 mpfr_t n;
8260 mpfr_t x;
8261 mpc_t c;
8262 int t;
8263 mpfr_init (n);
8264 mpfr_init (x);
8265 mpfr_atan2 (n, n, x, MPFR_RNDN);
8266 mpfr_erfc (n, x, MPFR_RNDN);
8267 mpfr_subnormalize (x, t, MPFR_RNDN);
8268 mpfr_clear(n);
8269 mpfr_clear(x);
8270 mpc_init2 (c, 53);
8271 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8272 mpc_cosh (c, c, MPC_RNDNN);
8273 mpc_pow (c, c, c, MPC_RNDNN);
8274 mpc_acosh (c, c, MPC_RNDNN);
8275 mpc_clear (c);
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }; have_gmp=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290 LIBS="$saved_LIBS"
8291 fi
8292
8293 CFLAGS="$saved_CFLAGS"
8294
8295 # The library versions listed in the error message below should match
8296 # the HARD-minimums enforced above.
8297 if test x$have_gmp != xyes; then
8298 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8299 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8300 their locations. Source code for these libraries can be found at
8301 their respective hosting sites as well as at
8302 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8303 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8304 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8305 make sure that you have installed both the libraries and the header
8306 files. They may be located in separate packages." "$LINENO" 5
8307 fi
8308 fi
8309
8310 # Flags needed for both GMP, MPFR and/or MPC.
8311
8312
8313
8314
8315
8316
8317
8318 # Libraries to use for stage1 or when not bootstrapping.
8319
8320 # Check whether --with-stage1-libs was given.
8321 if test "${with_stage1_libs+set}" = set; then :
8322 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8323 stage1_libs=
8324 else
8325 stage1_libs=$withval
8326 fi
8327 else
8328 stage1_libs=
8329 fi
8330
8331
8332
8333 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8334 # default is yes if gcc is being built; no otherwise. The reason for
8335 # this default is that gdb is sometimes linked against GNU Source
8336 # Highlight, which is a shared library that uses C++ exceptions. In
8337 # this case, -static-libstdc++ will cause crashes.
8338
8339 # Check whether --with-static-standard-libraries was given.
8340 if test "${with_static_standard_libraries+set}" = set; then :
8341 withval=$with_static_standard_libraries;
8342 else
8343 with_static_standard_libraries=auto
8344 fi
8345
8346 if test "$with_static_standard_libraries" = auto; then
8347 with_static_standard_libraries=$have_compiler
8348 fi
8349
8350 # Linker flags to use for stage1 or when not bootstrapping.
8351
8352 # Check whether --with-stage1-ldflags was given.
8353 if test "${with_stage1_ldflags+set}" = set; then :
8354 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8355 stage1_ldflags=
8356 else
8357 stage1_ldflags=$withval
8358 fi
8359 else
8360 stage1_ldflags=
8361 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8362 # if supported. But if the user explicitly specified the libraries to use,
8363 # trust that they are doing what they want.
8364 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8365 -a "$have_static_libs" = yes; then
8366 stage1_ldflags="-static-libstdc++ -static-libgcc"
8367 fi
8368 fi
8369
8370
8371
8372 # Libraries to use for stage2 and later builds.
8373
8374 # Check whether --with-boot-libs was given.
8375 if test "${with_boot_libs+set}" = set; then :
8376 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8377 poststage1_libs=
8378 else
8379 poststage1_libs=$withval
8380 fi
8381 else
8382 poststage1_libs=
8383 fi
8384
8385
8386
8387 # Linker flags to use for stage2 and later builds.
8388
8389 # Check whether --with-boot-ldflags was given.
8390 if test "${with_boot_ldflags+set}" = set; then :
8391 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8392 poststage1_ldflags=
8393 else
8394 poststage1_ldflags=$withval
8395 fi
8396 else
8397 poststage1_ldflags=
8398 # In stages 2 and 3, default to linking libstdc++ and libgcc
8399 # statically. But if the user explicitly specified the libraries to
8400 # use, trust that they are doing what they want.
8401 if test "$poststage1_libs" = ""; then
8402 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8403 fi
8404 fi
8405
8406
8407
8408 # GCC GRAPHITE dependency isl.
8409 # Basic setup is inlined here, actual checks are in config/isl.m4
8410
8411
8412 # Check whether --with-isl was given.
8413 if test "${with_isl+set}" = set; then :
8414 withval=$with_isl;
8415 fi
8416
8417
8418 # Treat --without-isl as a request to disable
8419 # GRAPHITE support and skip all following checks.
8420 if test "x$with_isl" != "xno"; then
8421 # Check for isl
8422
8423
8424 # Check whether --with-isl-include was given.
8425 if test "${with_isl_include+set}" = set; then :
8426 withval=$with_isl_include;
8427 fi
8428
8429
8430 # Check whether --with-isl-lib was given.
8431 if test "${with_isl_lib+set}" = set; then :
8432 withval=$with_isl_lib;
8433 fi
8434
8435
8436 # Check whether --enable-isl-version-check was given.
8437 if test "${enable_isl_version_check+set}" = set; then :
8438 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8439 else
8440 ENABLE_ISL_CHECK=yes
8441 fi
8442
8443
8444 # Initialize isllibs and islinc.
8445 case $with_isl in
8446 no)
8447 isllibs=
8448 islinc=
8449 ;;
8450 "" | yes)
8451 ;;
8452 *)
8453 isllibs="-L$with_isl/lib"
8454 islinc="-I$with_isl/include"
8455 ;;
8456 esac
8457 if test "x${with_isl_include}" != x ; then
8458 islinc="-I$with_isl_include"
8459 fi
8460 if test "x${with_isl_lib}" != x; then
8461 isllibs="-L$with_isl_lib"
8462 fi
8463 if test "x${islinc}" = x && test "x${isllibs}" = x \
8464 && test -d ${srcdir}/isl; then
8465 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8466 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8467 ENABLE_ISL_CHECK=no
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8469 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8470 fi
8471
8472 isllibs="${isllibs} -lisl"
8473
8474
8475
8476 if test "${ENABLE_ISL_CHECK}" = yes ; then
8477 _isl_saved_CFLAGS=$CFLAGS
8478 _isl_saved_LDFLAGS=$LDFLAGS
8479 _isl_saved_LIBS=$LIBS
8480
8481 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8482 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8483 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8486 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <isl/schedule.h>
8490 int
8491 main ()
8492 {
8493 isl_options_set_schedule_serialize_sccs (NULL, 0);
8494 ;
8495 return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 gcc_cv_isl=yes
8500 else
8501 gcc_cv_isl=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8506 $as_echo "$gcc_cv_isl" >&6; }
8507
8508 if test "${gcc_cv_isl}" = no ; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8510 $as_echo "required isl version is 0.15 or later" >&6; }
8511 fi
8512
8513 CFLAGS=$_isl_saved_CFLAGS
8514 LDFLAGS=$_isl_saved_LDFLAGS
8515 LIBS=$_isl_saved_LIBS
8516 fi
8517
8518
8519
8520
8521
8522
8523 if test "x${with_isl}" = xno; then
8524 graphite_requested=no
8525 elif test "x${with_isl}" != x \
8526 || test "x${with_isl_include}" != x \
8527 || test "x${with_isl_lib}" != x ; then
8528 graphite_requested=yes
8529 else
8530 graphite_requested=no
8531 fi
8532
8533
8534
8535 if test "${gcc_cv_isl}" = no ; then
8536 isllibs=
8537 islinc=
8538 fi
8539
8540 if test "${graphite_requested}" = yes \
8541 && test "x${isllibs}" = x \
8542 && test "x${islinc}" = x ; then
8543
8544 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8545 fi
8546
8547
8548 fi
8549
8550 # If the isl check failed, disable builds of in-tree variant of isl
8551 if test "x$with_isl" = xno ||
8552 test "x$gcc_cv_isl" = xno; then
8553 noconfigdirs="$noconfigdirs isl"
8554 islinc=
8555 fi
8556
8557
8558
8559
8560 # Check for LTO support.
8561 # Check whether --enable-lto was given.
8562 if test "${enable_lto+set}" = set; then :
8563 enableval=$enable_lto; enable_lto=$enableval
8564 else
8565 enable_lto=yes; default_enable_lto=yes
8566 fi
8567
8568
8569
8570
8571
8572 target_elf=no
8573 case $target in
8574 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8575 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8576 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8577 nvptx-*-none)
8578 target_elf=no
8579 ;;
8580 *)
8581 target_elf=yes
8582 ;;
8583 esac
8584
8585 if test $target_elf = yes; then :
8586 # ELF platforms build the lto-plugin always.
8587 build_lto_plugin=yes
8588
8589 else
8590 if test x"$default_enable_lto" = x"yes" ; then
8591 case $target in
8592 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8593 # On other non-ELF platforms, LTO has yet to be validated.
8594 *) enable_lto=no ;;
8595 esac
8596 else
8597 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8598 # It would also be nice to check the binutils support, but we don't
8599 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8600 # warn during gcc/ subconfigure; unless you're bootstrapping with
8601 # -flto it won't be needed until after installation anyway.
8602 case $target in
8603 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8604 *) if test x"$enable_lto" = x"yes"; then
8605 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8606 fi
8607 ;;
8608 esac
8609 fi
8610 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8611 # Build it unless LTO was explicitly disabled.
8612 case $target in
8613 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8614 *) ;;
8615 esac
8616
8617 fi
8618
8619
8620 # Check whether --enable-linker-plugin-configure-flags was given.
8621 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8622 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8623 else
8624 extra_linker_plugin_configure_flags=
8625 fi
8626
8627
8628 # Check whether --enable-linker-plugin-flags was given.
8629 if test "${enable_linker_plugin_flags+set}" = set; then :
8630 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8631 else
8632 extra_linker_plugin_flags=
8633 fi
8634
8635
8636
8637 # Enable --enable-host-shared.
8638 # Checked early to determine whether jit is an 'all' language
8639 # Check whether --enable-host-shared was given.
8640 if test "${enable_host_shared+set}" = set; then :
8641 enableval=$enable_host_shared; host_shared=$enableval
8642 case $target in
8643 x86_64-*-darwin* | aarch64-*-darwin*)
8644 if test x$host_shared != xyes ; then
8645 # PIC is the default, and actually cannot be switched off.
8646 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8647 host_shared=yes
8648 fi ;;
8649 *) ;;
8650 esac
8651 else
8652 case $target in
8653 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8654 *) host_shared=no ;;
8655 esac
8656 fi
8657
8658
8659
8660 # By default, C and C++ are the only stage 1 languages.
8661 stage1_languages=,c,
8662
8663 # Target libraries that we bootstrap.
8664 bootstrap_target_libs=,target-libgcc,
8665
8666 # Figure out what language subdirectories are present.
8667 # Look if the user specified --enable-languages="..."; if not, use
8668 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8669 # go away some day.
8670 # NB: embedded tabs in this IF block -- do not untabify
8671 if test -d ${srcdir}/gcc; then
8672 if test x"${enable_languages+set}" != xset; then
8673 if test x"${LANGUAGES+set}" = xset; then
8674 enable_languages="${LANGUAGES}"
8675 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8676 else
8677 enable_languages=default
8678 fi
8679 else
8680 if test x"${enable_languages}" = x ||
8681 test x"${enable_languages}" = xyes;
8682 then
8683 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8684 exit 1
8685 fi
8686 fi
8687 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8688
8689 # 'f95' is the old name for the 'fortran' language. We issue a warning
8690 # and make the substitution.
8691 case ,${enable_languages}, in
8692 *,f95,*)
8693 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8694 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8695 ;;
8696 esac
8697
8698 # If bootstrapping, C++ must be enabled.
8699 case ",$enable_languages,:$enable_bootstrap" in
8700 *,c++,*:*) ;;
8701 *:yes)
8702 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8703 enable_languages="${enable_languages},c++"
8704 else
8705 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8706 fi
8707 ;;
8708 esac
8709
8710 # First scan to see if an enabled language requires some other language.
8711 # We assume that a given config-lang.in will list all the language
8712 # front ends it requires, even if some are required indirectly.
8713 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8714 case ${lang_frag} in
8715 ..) ;;
8716 # The odd quoting in the next line works around
8717 # an apparent bug in bash 1.12 on linux.
8718 ${srcdir}/gcc/[*]/config-lang.in) ;;
8719 *)
8720 # From the config-lang.in, get $language, $lang_requires, and
8721 # $lang_requires_boot_languages.
8722 language=
8723 lang_requires=
8724 lang_requires_boot_languages=
8725 # set srcdir during sourcing lang_frag to the gcc dir.
8726 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8727 # polutes this shell
8728 saved_srcdir=${srcdir}
8729 srcdir=${srcdir}/gcc . ${lang_frag}
8730 srcdir=${saved_srcdir}
8731 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8732 case ,${enable_languages}, in
8733 *,$other,*) ;;
8734 *,default,*) ;;
8735 *,all,*) ;;
8736 *,$language,*)
8737 echo " \`$other' language required by \`$language'; enabling" 1>&2
8738 enable_languages="${enable_languages},${other}"
8739 ;;
8740 esac
8741 done
8742 for other in ${lang_requires_boot_languages} ; do
8743 if test "$other" != "c"; then
8744 case ,${enable_stage1_languages}, in
8745 *,$other,*) ;;
8746 *,default,*) ;;
8747 *,all,*) ;;
8748 *)
8749 case ,${enable_languages}, in
8750 *,$language,*)
8751 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8752 enable_stage1_languages="$enable_stage1_languages,${other}"
8753 ;;
8754 esac
8755 ;;
8756 esac
8757 fi
8758 done
8759 ;;
8760 esac
8761 done
8762
8763 new_enable_languages=,c,
8764
8765 # If LTO is enabled, add the LTO front end.
8766 if test "$enable_lto" = "yes" ; then
8767 case ,${enable_languages}, in
8768 *,lto,*) ;;
8769 *) enable_languages="${enable_languages},lto" ;;
8770 esac
8771 if test "${build_lto_plugin}" = "yes" ; then
8772 configdirs="$configdirs lto-plugin"
8773 fi
8774 fi
8775
8776 # If we're building an offloading compiler, add the LTO front end.
8777 if test x"$enable_as_accelerator_for" != x ; then
8778 case ,${enable_languages}, in
8779 *,lto,*) ;;
8780 *) enable_languages="${enable_languages},lto" ;;
8781 esac
8782 fi
8783
8784 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8785 potential_languages=,c,
8786
8787 enabled_target_libs=
8788 disabled_target_libs=
8789
8790 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8791 case ${lang_frag} in
8792 ..) ;;
8793 # The odd quoting in the next line works around
8794 # an apparent bug in bash 1.12 on linux.
8795 ${srcdir}/gcc/[*]/config-lang.in) ;;
8796 *)
8797 # From the config-lang.in, get $language, $target_libs,
8798 # $lang_dirs, $boot_language, and $build_by_default
8799 language=
8800 target_libs=
8801 lang_dirs=
8802 subdir_requires=
8803 boot_language=no
8804 build_by_default=yes
8805 # set srcdir during sourcing. See above about save & restore
8806 saved_srcdir=${srcdir}
8807 srcdir=${srcdir}/gcc . ${lang_frag}
8808 srcdir=${saved_srcdir}
8809 if test x${language} = x; then
8810 echo "${lang_frag} doesn't set \$language." 1>&2
8811 exit 1
8812 fi
8813
8814 if test "$language" = "c++"; then
8815 boot_language=yes
8816 fi
8817
8818 add_this_lang=no
8819 # C is always enabled, so no need to add it again
8820 if test "$language" != "c"; then
8821 case ,${enable_languages}, in
8822 *,${language},*)
8823 # Language was explicitly selected; include it
8824 add_this_lang=yes
8825 ;;
8826 *,all,*)
8827 # All languages are enabled
8828 add_this_lang=all
8829 ;;
8830 *,default,*)
8831 # 'default' was selected, select it if it is a default language
8832 add_this_lang=${build_by_default}
8833 ;;
8834 esac
8835 fi
8836
8837 # Disable languages that need other directories if these aren't available.
8838 for i in $subdir_requires; do
8839 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8840 case ${add_this_lang} in
8841 yes)
8842 # Specifically requested language; tell them.
8843 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8844 ;;
8845 all)
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8847 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8848 add_this_lang=unsupported
8849 ;;
8850 *)
8851 # Silently disable.
8852 add_this_lang=unsupported
8853 ;;
8854 esac
8855 done
8856
8857 # Disable Ada if no preexisting GNAT is available.
8858 case ${add_this_lang}:${language}:${have_gnat} in
8859 yes:ada:no)
8860 # Specifically requested language; tell them.
8861 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8862 ;;
8863 all:ada:no)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8865 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8866 add_this_lang=unsupported
8867 ;;
8868 *:ada:no)
8869 # Silently disable.
8870 add_this_lang=unsupported
8871 ;;
8872 esac
8873
8874 # Disable D if no preexisting GDC is available.
8875 case ${add_this_lang}:${language}:${have_gdc} in
8876 yes:d:no)
8877 # Specifically requested language; tell them.
8878 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8879 ;;
8880 all:d:no)
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8882 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8883 add_this_lang=unsupported
8884 ;;
8885 *:d:no)
8886 # Silently disable.
8887 add_this_lang=unsupported
8888 ;;
8889 esac
8890
8891 # Disable jit if -enable-host-shared not specified
8892 # but not if building for Mingw. All code in Windows
8893 # is position independent code (PIC).
8894 case $target in
8895 *mingw*) ;;
8896 *)
8897 case ${add_this_lang}:${language}:${host_shared} in
8898 yes:jit:no)
8899 # PR jit/64780: explicitly specify --enable-host-shared
8900 as_fn_error $? "
8901 Enabling language \"jit\" requires --enable-host-shared.
8902
8903 --enable-host-shared typically slows the rest of the compiler down by
8904 a few %, so you must explicitly enable it.
8905
8906 If you want to build both the jit and the regular compiler, it is often
8907 best to do this via two separate configure/builds, in separate
8908 directories, to avoid imposing the performance cost of
8909 --enable-host-shared on the regular compiler." "$LINENO" 5
8910 ;;
8911 all:jit:no)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8913 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8914 add_this_lang=unsupported
8915 ;;
8916 *:jit:no)
8917 # Silently disable.
8918 add_this_lang=unsupported
8919 ;;
8920 esac
8921 ;;
8922 esac
8923
8924 # Disable a language that is unsupported by the target.
8925 case "${add_this_lang}: $unsupported_languages " in
8926 no:*) ;;
8927 unsupported:*) ;;
8928 *:*" $language "*)
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8930 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8931 add_this_lang=unsupported
8932 ;;
8933 esac
8934
8935 case $add_this_lang in
8936 unsupported)
8937 # Remove language-dependent dirs.
8938 disabled_target_libs="$disabled_target_libs $target_libs"
8939 noconfigdirs="$noconfigdirs $lang_dirs"
8940 ;;
8941 no)
8942 # Remove language-dependent dirs; still show language as supported.
8943 disabled_target_libs="$disabled_target_libs $target_libs"
8944 noconfigdirs="$noconfigdirs $lang_dirs"
8945 potential_languages="${potential_languages}${language},"
8946 ;;
8947 all|yes)
8948 new_enable_languages="${new_enable_languages}${language},"
8949 potential_languages="${potential_languages}${language},"
8950 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8951 enabled_target_libs="$enabled_target_libs $target_libs"
8952 case "${boot_language}:,$enable_stage1_languages," in
8953 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8954 # Add to (comma-separated) list of stage 1 languages.
8955 case ",$stage1_languages," in
8956 *,$language,* | ,yes, | ,all,) ;;
8957 *) stage1_languages="${stage1_languages}${language}," ;;
8958 esac
8959 # We need to bootstrap any supporting libraries.
8960 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8961 ;;
8962 esac
8963 ;;
8964 esac
8965 ;;
8966 esac
8967 done
8968
8969 # Add target libraries which are only needed for disabled languages
8970 # to noconfigdirs.
8971 if test -n "$disabled_target_libs"; then
8972 for dir in $disabled_target_libs; do
8973 case " $enabled_target_libs " in
8974 *" ${dir} "*) ;;
8975 *) noconfigdirs="$noconfigdirs $dir" ;;
8976 esac
8977 done
8978 fi
8979
8980 # Check whether --enable-stage1-languages was given.
8981 if test "${enable_stage1_languages+set}" = set; then :
8982 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8983 ,no,|,,)
8984 # Set it to something that will have no effect in the loop below
8985 enable_stage1_languages=c ;;
8986 ,yes,)
8987 enable_stage1_languages=`echo $new_enable_languages | \
8988 sed -e "s/^,//" -e "s/,$//" ` ;;
8989 *,all,*)
8990 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8991 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8992 esac
8993
8994 # Add "good" languages from enable_stage1_languages to stage1_languages,
8995 # while "bad" languages go in missing_languages. Leave no duplicates.
8996 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8997 case $potential_languages in
8998 *,$i,*)
8999 case $stage1_languages in
9000 *,$i,*) ;;
9001 *) stage1_languages="$stage1_languages$i," ;;
9002 esac ;;
9003 *)
9004 case $missing_languages in
9005 *,$i,*) ;;
9006 *) missing_languages="$missing_languages$i," ;;
9007 esac ;;
9008 esac
9009 done
9010 fi
9011
9012
9013 # Remove leading/trailing commas that were added for simplicity
9014 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9015 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9016 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9017 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9018
9019 if test "x$missing_languages" != x; then
9020 as_fn_error $? "
9021 The following requested languages could not be built: ${missing_languages}
9022 Supported languages are: ${potential_languages}" "$LINENO" 5
9023 fi
9024 if test "x$new_enable_languages" != "x$enable_languages"; then
9025 echo The following languages will be built: ${new_enable_languages}
9026 enable_languages="$new_enable_languages"
9027 fi
9028
9029
9030 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9031 fi
9032
9033 # Handle --disable-<component> generically.
9034 for dir in $configdirs $build_configdirs $target_configdirs ; do
9035 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9036 varname=`echo $dirname | sed -e s/+/_/g`
9037 if eval test x\${enable_${varname}} "=" xno ; then
9038 noconfigdirs="$noconfigdirs $dir"
9039 fi
9040 done
9041
9042 # Check for Boehm's garbage collector
9043 # Check whether --enable-objc-gc was given.
9044 if test "${enable_objc_gc+set}" = set; then :
9045 enableval=$enable_objc_gc;
9046 fi
9047
9048
9049 # Check whether --with-target-bdw-gc was given.
9050 if test "${with_target_bdw_gc+set}" = set; then :
9051 withval=$with_target_bdw_gc;
9052 fi
9053
9054
9055 # Check whether --with-target-bdw-gc-include was given.
9056 if test "${with_target_bdw_gc_include+set}" = set; then :
9057 withval=$with_target_bdw_gc_include;
9058 fi
9059
9060
9061 # Check whether --with-target-bdw-gc-lib was given.
9062 if test "${with_target_bdw_gc_lib+set}" = set; then :
9063 withval=$with_target_bdw_gc_lib;
9064 fi
9065
9066
9067 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9069 $as_echo_n "checking for bdw garbage collector... " >&6; }
9070 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9072 $as_echo "using bdw-gc in default locations" >&6; }
9073 else
9074 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9075 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9076 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9077 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9080 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9081 fi
9082 fi
9083 esac
9084
9085 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9086 case ,${enable_languages}, in
9087 *,c++,*)
9088 # Disable libitm, libsanitizer if we're not building libstdc++
9089 case "${noconfigdirs}" in
9090 *target-libstdc++-v3*)
9091 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9092 ;;
9093 *) ;;
9094 esac
9095 ;;
9096 *)
9097 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9098 ;;
9099 esac
9100
9101 # If gcc/ is not in the source tree then we'll not be building a
9102 # target compiler, assume in that case we don't want to build any
9103 # target libraries or tools.
9104 #
9105 # This was added primarily for the benefit for binutils-gdb who reuse
9106 # this configure script, but don't always have target tools available.
9107 if test ! -d ${srcdir}/gcc; then
9108 skipdirs="${skipdirs} ${target_configdirs}"
9109 fi
9110
9111 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9112 # $build_configdirs and $target_configdirs.
9113 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9114
9115 notsupp=""
9116 for dir in . $skipdirs $noconfigdirs ; do
9117 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9118 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9119 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9120 if test -r $srcdir/$dirname/configure ; then
9121 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9122 true
9123 else
9124 notsupp="$notsupp $dir"
9125 fi
9126 fi
9127 fi
9128 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9129 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9130 if test -r $srcdir/$dirname/configure ; then
9131 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9132 true
9133 else
9134 notsupp="$notsupp $dir"
9135 fi
9136 fi
9137 fi
9138 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9139 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9140 if test -r $srcdir/$dirname/configure ; then
9141 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9142 true
9143 else
9144 notsupp="$notsupp $dir"
9145 fi
9146 fi
9147 fi
9148 done
9149
9150 # Quietly strip out all directories which aren't configurable in this tree.
9151 # This relies on all configurable subdirectories being autoconfiscated, which
9152 # is now the case.
9153 build_configdirs_all="$build_configdirs"
9154 build_configdirs=
9155 for i in ${build_configdirs_all} ; do
9156 j=`echo $i | sed -e s/build-//g`
9157 if test -f ${srcdir}/$j/configure ; then
9158 build_configdirs="${build_configdirs} $i"
9159 fi
9160 done
9161
9162 configdirs_all="$configdirs"
9163 configdirs=
9164 for i in ${configdirs_all} ; do
9165 if test -f ${srcdir}/$i/configure ; then
9166 configdirs="${configdirs} $i"
9167 fi
9168 done
9169
9170 target_configdirs_all="$target_configdirs"
9171 target_configdirs=
9172 for i in ${target_configdirs_all} ; do
9173 j=`echo $i | sed -e s/target-//g`
9174 if test -f ${srcdir}/$j/configure ; then
9175 target_configdirs="${target_configdirs} $i"
9176 fi
9177 done
9178
9179 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9180 # so we have to add it after the preceding checks.
9181 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9182 then
9183 case " $configdirs " in
9184 *" libiberty "*)
9185 # If we can build libiberty, we can also build libiberty-linker-plugin.
9186 configdirs="$configdirs libiberty-linker-plugin"
9187 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9188 --with-libiberty=../libiberty-linker-plugin";;
9189 *)
9190 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9191 esac
9192 fi
9193
9194 # Sometimes we have special requirements for the host libiberty.
9195 extra_host_libiberty_configure_flags=
9196 extra_host_zlib_configure_flags=
9197 case " $configdirs " in
9198 *" lto-plugin "* | *" libcc1 "*)
9199 # When these are to be built as shared libraries, the same applies to
9200 # libiberty.
9201 extra_host_libiberty_configure_flags=--enable-shared
9202 ;;
9203 *" bfd "*)
9204 # When bfd is to be built as a shared library, the same applies to
9205 # zlib.
9206 if test "$enable_shared" = "yes"; then
9207 extra_host_zlib_configure_flags=--enable-host-shared
9208 fi
9209 ;;
9210 esac
9211
9212
9213
9214 # Produce a warning message for the subdirs we can't configure.
9215 # This isn't especially interesting in the Cygnus tree, but in the individual
9216 # FSF releases, it's important to let people know when their machine isn't
9217 # supported by the one or two programs in a package.
9218
9219 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9220 # If $appdirs is non-empty, at least one of those directories must still
9221 # be configured, or we error out. (E.g., if the gas release supports a
9222 # specified target in some subdirs but not the gas subdir, we shouldn't
9223 # pretend that all is well.)
9224 if test -n "$appdirs" ; then
9225 for dir in $appdirs ; do
9226 if test -r $dir/Makefile.in ; then
9227 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9228 appdirs=""
9229 break
9230 fi
9231 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9232 appdirs=""
9233 break
9234 fi
9235 fi
9236 done
9237 if test -n "$appdirs" ; then
9238 echo "*** This configuration is not supported by this package." 1>&2
9239 exit 1
9240 fi
9241 fi
9242 # Okay, some application will build, or we don't care to check. Still
9243 # notify of subdirs not getting built.
9244 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9245 echo " ${notsupp}" 1>&2
9246 echo " (Any other directories should still work fine.)" 1>&2
9247 fi
9248
9249 case "$host" in
9250 *msdosdjgpp*)
9251 enable_gdbtk=no ;;
9252 esac
9253
9254 # To find our prefix, in gcc_cv_tool_prefix.
9255
9256 # The user is always right.
9257 if test "${PATH_SEPARATOR+set}" != set; then
9258 echo "#! /bin/sh" >conf$$.sh
9259 echo "exit 0" >>conf$$.sh
9260 chmod +x conf$$.sh
9261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9262 PATH_SEPARATOR=';'
9263 else
9264 PATH_SEPARATOR=:
9265 fi
9266 rm -f conf$$.sh
9267 fi
9268
9269
9270 get_gcc_base_ver="cat"
9271
9272 # Check whether --with-gcc-major-version-only was given.
9273 if test "${with_gcc_major_version_only+set}" = set; then :
9274 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9275 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9276 fi
9277
9278 fi
9279
9280
9281
9282
9283
9284
9285 if test "x$exec_prefix" = xNONE; then
9286 if test "x$prefix" = xNONE; then
9287 gcc_cv_tool_prefix=$ac_default_prefix
9288 else
9289 gcc_cv_tool_prefix=$prefix
9290 fi
9291 else
9292 gcc_cv_tool_prefix=$exec_prefix
9293 fi
9294
9295 # If there is no compiler in the tree, use the PATH only. In any
9296 # case, if there is no compiler in the tree nobody should use
9297 # AS_FOR_TARGET and LD_FOR_TARGET.
9298 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9299 if test x$with_gcc_major_version_only = xyes ; then
9300 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9301 else
9302 gcc_version=`cat $srcdir/gcc/BASE-VER`
9303 fi
9304 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9305 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9306 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9307 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9308 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9309 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9310 else
9311 gcc_cv_tool_dirs=
9312 fi
9313
9314 if test x$build = x$target && test -n "$md_exec_prefix"; then
9315 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9316 fi
9317
9318
9319
9320 copy_dirs=
9321
9322
9323 # Check whether --with-build-sysroot was given.
9324 if test "${with_build_sysroot+set}" = set; then :
9325 withval=$with_build_sysroot; if test x"$withval" != x ; then
9326 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9327 fi
9328 else
9329 SYSROOT_CFLAGS_FOR_TARGET=
9330 fi
9331
9332
9333
9334
9335 # Check whether --with-debug-prefix-map was given.
9336 if test "${with_debug_prefix_map+set}" = set; then :
9337 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9338 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9339 for debug_map in $withval; do
9340 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9341 done
9342 fi
9343 else
9344 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9345 fi
9346
9347
9348
9349 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9350 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9351 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9352 # We want to ensure that TARGET libraries (which we know are built with
9353 # gcc) are built with "-O2 -g", so include those options when setting
9354 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9355 if test "x$CFLAGS_FOR_TARGET" = x; then
9356 if test "x${is_cross_compiler}" = xyes; then
9357 CFLAGS_FOR_TARGET="-g -O2"
9358 else
9359 CFLAGS_FOR_TARGET=$CFLAGS
9360 case " $CFLAGS " in
9361 *" -O2 "*) ;;
9362 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9363 esac
9364 case " $CFLAGS " in
9365 *" -g "* | *" -g3 "*) ;;
9366 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9367 esac
9368 fi
9369 fi
9370
9371
9372 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9373 if test "x${is_cross_compiler}" = xyes; then
9374 CXXFLAGS_FOR_TARGET="-g -O2"
9375 else
9376 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9377 case " $CXXFLAGS " in
9378 *" -O2 "*) ;;
9379 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9380 esac
9381 case " $CXXFLAGS " in
9382 *" -g "* | *" -g3 "*) ;;
9383 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9384 esac
9385 fi
9386 fi
9387
9388
9389
9390
9391 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9392 # the named directory are copied to $(tooldir)/sys-include.
9393 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9394 if test x${is_cross_compiler} = xno ; then
9395 echo 1>&2 '***' --with-headers is only supported when cross compiling
9396 exit 1
9397 fi
9398 if test x"${with_headers}" != xyes ; then
9399 x=${gcc_cv_tool_prefix}
9400 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9401 fi
9402 fi
9403
9404 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9405 # the name directories are copied to $(tooldir)/lib. Multiple directories
9406 # are permitted.
9407 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9408 if test x${is_cross_compiler} = xno ; then
9409 echo 1>&2 '***' --with-libs is only supported when cross compiling
9410 exit 1
9411 fi
9412 if test x"${with_libs}" != xyes ; then
9413 # Copy the libraries in reverse order, so that files in the first named
9414 # library override files in subsequent libraries.
9415 x=${gcc_cv_tool_prefix}
9416 for l in ${with_libs}; do
9417 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9418 done
9419 fi
9420 fi
9421
9422 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9423 #
9424 # This is done by determining whether or not the appropriate directory
9425 # is available, and by checking whether or not specific configurations
9426 # have requested that this magic not happen.
9427 #
9428 # The command line options always override the explicit settings in
9429 # configure.ac, and the settings in configure.ac override this magic.
9430 #
9431 # If the default for a toolchain is to use GNU as and ld, and you don't
9432 # want to do that, then you should use the --without-gnu-as and
9433 # --without-gnu-ld options for the configure script. Similarly, if
9434 # the default is to use the included zlib and you don't want to do that,
9435 # you should use the --with-system-zlib option for the configure script.
9436
9437 if test x${use_gnu_as} = x &&
9438 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9439 with_gnu_as=yes
9440 extra_host_args="$extra_host_args --with-gnu-as"
9441 fi
9442
9443 if test x${use_gnu_ld} = x &&
9444 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9445 with_gnu_ld=yes
9446 extra_host_args="$extra_host_args --with-gnu-ld"
9447 fi
9448
9449 if test x${use_included_zlib} = x &&
9450 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9451 :
9452 else
9453 with_system_zlib=yes
9454 extra_host_args="$extra_host_args --with-system-zlib"
9455 fi
9456
9457 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9458 # can detect this case.
9459
9460 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9461 with_newlib=yes
9462 extra_host_args="$extra_host_args --with-newlib"
9463 fi
9464
9465 # Handle ${copy_dirs}
9466 set fnord ${copy_dirs}
9467 shift
9468 while test $# != 0 ; do
9469 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9470 :
9471 else
9472 echo Copying $1 to $2
9473
9474 # Use the install script to create the directory and all required
9475 # parent directories.
9476 if test -d $2 ; then
9477 :
9478 else
9479 echo >config.temp
9480 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9481 fi
9482
9483 # Copy the directory, assuming we have tar.
9484 # FIXME: Should we use B in the second tar? Not all systems support it.
9485 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9486
9487 # It is the responsibility of the user to correctly adjust all
9488 # symlinks. If somebody can figure out how to handle them correctly
9489 # here, feel free to add the code.
9490
9491 echo $1 > $2/COPIED
9492 fi
9493 shift; shift
9494 done
9495
9496 # Determine a target-dependent exec_prefix that the installed
9497 # gcc will search in. Keep this list sorted by triplet, with
9498 # the *-*-osname triplets last.
9499 md_exec_prefix=
9500 case "${target}" in
9501 i[34567]86-pc-msdosdjgpp*)
9502 md_exec_prefix=/dev/env/DJDIR/bin
9503 ;;
9504 *-*-hpux* | \
9505 *-*-nto-qnx* | \
9506 *-*-solaris2*)
9507 md_exec_prefix=/usr/ccs/bin
9508 ;;
9509 esac
9510
9511 extra_arflags_for_target=
9512 extra_nmflags_for_target=
9513 extra_ranlibflags_for_target=
9514 target_makefile_frag=/dev/null
9515 case "${target}" in
9516 spu-*-*)
9517 target_makefile_frag="config/mt-spu"
9518 ;;
9519 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9520 target_makefile_frag="config/mt-sde"
9521 ;;
9522 mipsisa*-*-elfoabi*)
9523 target_makefile_frag="config/mt-mips-elfoabi"
9524 ;;
9525 mips*-*-*linux* | mips*-*-gnu*)
9526 target_makefile_frag="config/mt-mips-gnu"
9527 ;;
9528 nios2-*-elf*)
9529 target_makefile_frag="config/mt-nios2-elf"
9530 ;;
9531 *-*-linux-android*)
9532 target_makefile_frag="config/mt-android"
9533 ;;
9534 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9535 target_makefile_frag="config/mt-gnu"
9536 ;;
9537 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9538 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9539 # commands to handle both 32-bit and 64-bit objects. These flags are
9540 # harmless if we're using GNU nm or ar.
9541 extra_arflags_for_target=" -X32_64"
9542 extra_nmflags_for_target=" -B -X32_64"
9543 ;;
9544 esac
9545
9546 alphaieee_frag=/dev/null
9547 case $target in
9548 alpha*-*-*)
9549 # This just makes sure to use the -mieee option to build target libs.
9550 # This should probably be set individually by each library.
9551 alphaieee_frag="config/mt-alphaieee"
9552 ;;
9553 esac
9554
9555 # If --enable-target-optspace always use -Os instead of -O2 to build
9556 # the target libraries, similarly if it is not specified, use -Os
9557 # on selected platforms.
9558 ospace_frag=/dev/null
9559 case "${enable_target_optspace}:${target}" in
9560 yes:*)
9561 ospace_frag="config/mt-ospace"
9562 ;;
9563 :d30v-*)
9564 ospace_frag="config/mt-d30v"
9565 ;;
9566 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9567 ospace_frag="config/mt-ospace"
9568 ;;
9569 no:* | :*)
9570 ;;
9571 *)
9572 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9573 ;;
9574 esac
9575
9576 # Some systems (e.g., one of the i386-aix systems the gas testers are
9577 # using) don't handle "\$" correctly, so don't use it here.
9578 tooldir='${exec_prefix}'/${target_noncanonical}
9579 build_tooldir=${tooldir}
9580
9581 # Create a .gdbinit file which runs the one in srcdir
9582 # and tells GDB to look there for source files.
9583
9584 if test -r ${srcdir}/.gdbinit ; then
9585 case ${srcdir} in
9586 .) ;;
9587 *) cat > ./.gdbinit <<EOF
9588 # ${NO_EDIT}
9589 dir ${srcdir}
9590 dir .
9591 source ${srcdir}/.gdbinit
9592 EOF
9593 ;;
9594 esac
9595 fi
9596
9597 # Make sure that the compiler is able to generate an executable. If it
9598 # can't, we are probably in trouble. We don't care whether we can run the
9599 # executable--we might be using a cross compiler--we only care whether it
9600 # can be created. At this point the main configure script has set CC.
9601 we_are_ok=no
9602 echo "int main () { return 0; }" > conftest.c
9603 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9604 if test $? = 0 ; then
9605 if test -s conftest || test -s conftest.exe ; then
9606 we_are_ok=yes
9607 fi
9608 fi
9609 case $we_are_ok in
9610 no)
9611 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9612 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9613 rm -f conftest*
9614 exit 1
9615 ;;
9616 esac
9617 rm -f conftest*
9618
9619 # Decide which environment variable is used to find dynamic libraries.
9620 case "${host}" in
9621 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9622 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9623 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9624 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9625 esac
9626
9627 # On systems where the dynamic library environment variable is PATH,
9628 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9629 # built executables to PATH.
9630 if test "$RPATH_ENVVAR" = PATH; then
9631 GCC_SHLIB_SUBDIR=/shlib
9632 else
9633 GCC_SHLIB_SUBDIR=
9634 fi
9635
9636 # Adjust the toplevel makefile according to whether bootstrap was selected.
9637 case $enable_bootstrap in
9638 yes)
9639 bootstrap_suffix=bootstrap
9640 BUILD_CONFIG=bootstrap-debug
9641 ;;
9642 no)
9643 bootstrap_suffix=no-bootstrap
9644 BUILD_CONFIG=
9645 ;;
9646 esac
9647
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9649 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9650
9651
9652 # Check whether --with-build-config was given.
9653 if test "${with_build_config+set}" = set; then :
9654 withval=$with_build_config; case $with_build_config in
9655 yes) with_build_config= ;;
9656 no) with_build_config= BUILD_CONFIG= ;;
9657 esac
9658 fi
9659
9660
9661 if test "x${with_build_config}" != x; then
9662 BUILD_CONFIG=$with_build_config
9663 else
9664 case $BUILD_CONFIG in
9665 bootstrap-debug)
9666 if echo "int f (void) { return 0; }" > conftest.c &&
9667 ${CC} -c conftest.c &&
9668 mv conftest.o conftest.o.g0 &&
9669 ${CC} -c -g conftest.c &&
9670 mv conftest.o conftest.o.g &&
9671 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9672 :
9673 else
9674 BUILD_CONFIG=
9675 fi
9676 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9677 ;;
9678 esac
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9681 $as_echo "$BUILD_CONFIG" >&6; }
9682
9683
9684 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9686 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9687 # Check whether --enable-vtable-verify was given.
9688 if test "${enable_vtable_verify+set}" = set; then :
9689 enableval=$enable_vtable_verify; case "$enableval" in
9690 yes) enable_vtable_verify=yes ;;
9691 no) enable_vtable_verify=no ;;
9692 *) enable_vtable_verify=no;;
9693 esac
9694 else
9695 enable_vtable_verify=no
9696 fi
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9699 $as_echo "$enable_vtable_verify" >&6; }
9700
9701 # Record target_configdirs and the configure arguments for target and
9702 # build configuration in Makefile.
9703 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9704 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9705 bootstrap_fixincludes=no
9706
9707 # If we are building libgomp, bootstrap it.
9708 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9709 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9710 fi
9711
9712 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9713 # or bootstrap-ubsan, bootstrap it.
9714 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9715 case "$BUILD_CONFIG" in
9716 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9717 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9718 bootstrap_fixincludes=yes
9719 ;;
9720 esac
9721 fi
9722
9723 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9724 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9725 test "$enable_vtable_verify" != no; then
9726 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9727 fi
9728
9729 # If we are building libatomic and the list of enabled languages includes the
9730 # D frontend, bootstrap it.
9731 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9732 case ,${enable_languages}, in
9733 *,d,*)
9734 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9735 ;;
9736 esac
9737 fi
9738
9739 # Determine whether gdb needs tk/tcl or not.
9740 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9741 # and in that case we want gdb to be built without tk. Ugh!
9742 # In fact I believe gdb is the *only* package directly dependent on tk,
9743 # so we should be able to put the 'maybe's in unconditionally and
9744 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9745 # 100% sure that that's safe though.
9746
9747 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9748 case "$enable_gdbtk" in
9749 no)
9750 GDB_TK="" ;;
9751 yes)
9752 GDB_TK="${gdb_tk}" ;;
9753 *)
9754 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9755 # distro. Eventually someone will fix this and move Insight, nee
9756 # gdbtk to a separate directory.
9757 if test -d ${srcdir}/gdb/gdbtk ; then
9758 GDB_TK="${gdb_tk}"
9759 else
9760 GDB_TK=""
9761 fi
9762 ;;
9763 esac
9764 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9765 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9766
9767 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9768 # else does, only include them if one of these is built. The Makefile
9769 # provides the ordering, so it's enough here to add to the list.
9770 case " ${configdirs} " in
9771 *\ gdb\ *)
9772 configdirs="${configdirs} gnulib gdbsupport"
9773 ;;
9774 *\ gdbserver\ *)
9775 configdirs="${configdirs} gnulib gdbsupport"
9776 ;;
9777 *\ sim\ *)
9778 configdirs="${configdirs} gnulib"
9779 ;;
9780 esac
9781
9782 # Strip out unwanted targets.
9783
9784 # While at that, we remove Makefiles if we were started for recursive
9785 # configuration, so that the top-level Makefile reconfigures them,
9786 # like we used to do when configure itself was recursive.
9787
9788 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9789 # but now we're fixing up the Makefile ourselves with the additional
9790 # commands passed to AC_CONFIG_FILES. Use separate variables
9791 # extrasub-{build,host,target} not because there is any reason to split
9792 # the substitutions up that way, but only to remain below the limit of
9793 # 99 commands in a script, for HP-UX sed.
9794
9795 # Do not nest @if/@endif or @unless/@endunless pairs, because
9796 # configure will not warn you at all.
9797
9798 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9799 yes:yes:*\ gold\ *:*,c++,*) ;;
9800 yes:yes:*\ gold\ *:*)
9801 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9802 ;;
9803 esac
9804
9805 extrasub_build=
9806 for module in ${build_configdirs} ; do
9807 if test -z "${no_recursion}" \
9808 && test -f ${build_subdir}/${module}/Makefile; then
9809 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9810 rm -f ${build_subdir}/${module}/Makefile
9811 fi
9812 extrasub_build="$extrasub_build
9813 /^@if build-$module\$/d
9814 /^@endif build-$module\$/d
9815 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9816 /^@if build-$module-$bootstrap_suffix\$/d
9817 /^@endif build-$module-$bootstrap_suffix\$/d
9818 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9819 done
9820 extrasub_host=
9821 for module in ${configdirs} ; do
9822 if test -z "${no_recursion}"; then
9823 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9824 if test -f ${file}; then
9825 echo 1>&2 "*** removing ${file} to force reconfigure"
9826 rm -f ${file}
9827 fi
9828 done
9829 fi
9830 case ${module},${bootstrap_fixincludes} in
9831 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9832 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9833 esac
9834 extrasub_host="$extrasub_host
9835 /^@if $module\$/d
9836 /^@endif $module\$/d
9837 /^@unless $module\$/,/^@endunless $module\$/d
9838 /^@if $module-$host_bootstrap_suffix\$/d
9839 /^@endif $module-$host_bootstrap_suffix\$/d
9840 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9841 done
9842 extrasub_target=
9843 for module in ${target_configdirs} ; do
9844 if test -z "${no_recursion}" \
9845 && test -f ${target_subdir}/${module}/Makefile; then
9846 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9847 rm -f ${target_subdir}/${module}/Makefile
9848 fi
9849
9850 # We only bootstrap target libraries listed in bootstrap_target_libs.
9851 case $bootstrap_target_libs in
9852 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9853 *) target_bootstrap_suffix=no-bootstrap ;;
9854 esac
9855
9856 extrasub_target="$extrasub_target
9857 /^@if target-$module\$/d
9858 /^@endif target-$module\$/d
9859 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9860 /^@if target-$module-$target_bootstrap_suffix\$/d
9861 /^@endif target-$module-$target_bootstrap_suffix\$/d
9862 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9863 done
9864
9865 # Do the final fixup along with target modules.
9866 extrasub_target="$extrasub_target
9867 /^@if /,/^@endif /d
9868 /^@unless /d
9869 /^@endunless /d"
9870
9871 if test "$enable_pgo_build" != "no"; then
9872 extrasub_build="$extrasub_build
9873 /^@if pgo-build\$/d
9874 /^@endif pgo-build\$/d"
9875 fi
9876
9877 # Create the serialization dependencies. This uses a temporary file.
9878
9879 # Check whether --enable-serial-configure was given.
9880 if test "${enable_serial_configure+set}" = set; then :
9881 enableval=$enable_serial_configure;
9882 fi
9883
9884
9885 case ${enable_serial_configure} in
9886 yes)
9887 enable_serial_build_configure=yes
9888 enable_serial_host_configure=yes
9889 enable_serial_target_configure=yes
9890 ;;
9891 esac
9892
9893 # These force 'configure's to be done one at a time, to avoid problems
9894 # with contention over a shared config.cache.
9895 rm -f serdep.tmp
9896 echo '# serdep.tmp' > serdep.tmp
9897 olditem=
9898 test "x${enable_serial_build_configure}" = xyes &&
9899 for item in ${build_configdirs} ; do
9900 case ${olditem} in
9901 "") ;;
9902 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9903 esac
9904 olditem=${item}
9905 done
9906 olditem=
9907 test "x${enable_serial_host_configure}" = xyes &&
9908 for item in ${configdirs} ; do
9909 case ${olditem} in
9910 "") ;;
9911 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9912 esac
9913 olditem=${item}
9914 done
9915 olditem=
9916 test "x${enable_serial_target_configure}" = xyes &&
9917 for item in ${target_configdirs} ; do
9918 case ${olditem} in
9919 "") ;;
9920 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9921 esac
9922 olditem=${item}
9923 done
9924 serialization_dependencies=serdep.tmp
9925
9926
9927 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9928 # target, nonopt, and variable assignments. These are the ones we
9929 # might not want to pass down to subconfigures. The exception being
9930 # --cache-file=/dev/null, which is used to turn off the use of cache
9931 # files altogether, and which should be passed on to subconfigures.
9932 # Also strip program-prefix, program-suffix, and program-transform-name,
9933 # so that we can pass down a consistent program-transform-name.
9934 baseargs=
9935 tbaseargs=
9936 keep_next=no
9937 skip_next=no
9938 eval "set -- $ac_configure_args"
9939 for ac_arg
9940 do
9941 if test X"$skip_next" = X"yes"; then
9942 skip_next=no
9943 continue
9944 fi
9945 if test X"$keep_next" = X"yes"; then
9946 case $ac_arg in
9947 *\'*)
9948 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9949 esac
9950 baseargs="$baseargs '$ac_arg'"
9951 tbaseargs="$tbaseargs '$ac_arg'"
9952 keep_next=no
9953 continue
9954 fi
9955
9956 # Handle separated arguments. Based on the logic generated by
9957 # autoconf 2.59.
9958 case $ac_arg in
9959 *=* | --config-cache | -C | -disable-* | --disable-* \
9960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9962 | -with-* | --with-* | -without-* | --without-* | --x)
9963 separate_arg=no
9964 ;;
9965 -*)
9966 separate_arg=yes
9967 ;;
9968 *)
9969 separate_arg=no
9970 ;;
9971 esac
9972
9973 skip_targ=no
9974 case $ac_arg in
9975
9976 --with-* | --without-*)
9977 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9978
9979 case $libopt in
9980 *[-_]include)
9981 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9982 ;;
9983 *[-_]lib)
9984 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9985 ;;
9986 *)
9987 lib=$libopt
9988 ;;
9989 esac
9990
9991
9992 case $lib in
9993 mpc | mpfr | gmp | isl)
9994 # If we're processing --with-$lib, --with-$lib-include or
9995 # --with-$lib-lib, for one of the libs above, and target is
9996 # different from host, don't pass the current argument to any
9997 # target library's configure.
9998 if test x$is_cross_compiler = xyes; then
9999 skip_targ=yes
10000 fi
10001 ;;
10002 esac
10003 ;;
10004 esac
10005
10006 case "$ac_arg" in
10007 --cache-file=/dev/null | \
10008 -cache-file=/dev/null )
10009 # Handled here to avoid the test to skip args below.
10010 baseargs="$baseargs '$ac_arg'"
10011 tbaseargs="$tbaseargs '$ac_arg'"
10012 # Assert: $separate_arg should always be no.
10013 keep_next=$separate_arg
10014 ;;
10015 --no*)
10016 continue
10017 ;;
10018 --c* | \
10019 --sr* | \
10020 --ho* | \
10021 --bu* | \
10022 --t* | \
10023 --program-* | \
10024 -cache_file* | \
10025 -srcdir* | \
10026 -host* | \
10027 -build* | \
10028 -target* | \
10029 -program-prefix* | \
10030 -program-suffix* | \
10031 -program-transform-name* )
10032 skip_next=$separate_arg
10033 continue
10034 ;;
10035 -*)
10036 # An option. Add it.
10037 case $ac_arg in
10038 *\'*)
10039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10040 esac
10041 baseargs="$baseargs '$ac_arg'"
10042 if test X"$skip_targ" = Xno; then
10043 tbaseargs="$tbaseargs '$ac_arg'"
10044 fi
10045 keep_next=$separate_arg
10046 ;;
10047 *)
10048 # Either a variable assignment, or a nonopt (triplet). Don't
10049 # pass it down; let the Makefile handle this.
10050 continue
10051 ;;
10052 esac
10053 done
10054 # Remove the initial space we just introduced and, as these will be
10055 # expanded by make, quote '$'.
10056 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10057
10058 # Add in --program-transform-name, after --program-prefix and
10059 # --program-suffix have been applied to it. Autoconf has already
10060 # doubled dollar signs and backslashes in program_transform_name; we want
10061 # the backslashes un-doubled, and then the entire thing wrapped in single
10062 # quotes, because this will be expanded first by make and then by the shell.
10063 # Also, because we want to override the logic in subdir configure scripts to
10064 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10065 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10066 ${program_transform_name}
10067 EOF_SED
10068 gcc_transform_name=`cat conftestsed.out`
10069 rm -f conftestsed.out
10070 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10071 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10072 if test "$silent" = yes; then
10073 baseargs="$baseargs --silent"
10074 tbaseargs="$tbaseargs --silent"
10075 fi
10076 baseargs="$baseargs --disable-option-checking"
10077 tbaseargs="$tbaseargs --disable-option-checking"
10078
10079 # Record and document user additions to sub configure arguments.
10080
10081
10082
10083
10084 # For the build-side libraries, we just need to pretend we're native,
10085 # and not use the same cache file. Multilibs are neither needed nor
10086 # desired. We can't even use the same cache file for all build-side
10087 # libraries, as they're compiled differently; some with C, some with
10088 # C++ or with different feature-enabling options.
10089 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10090
10091 # For host modules, accept cache file option, or specification as blank.
10092 case "${cache_file}" in
10093 "") # empty
10094 cache_file_option="" ;;
10095 /* | [A-Za-z]:[\\/]* ) # absolute path
10096 cache_file_option="--cache-file=${cache_file}" ;;
10097 *) # relative path
10098 cache_file_option="--cache-file=../${cache_file}" ;;
10099 esac
10100
10101 # Host dirs don't like to share a cache file either, horribly enough.
10102 # This seems to be due to autoconf 2.5x stupidity.
10103 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10104
10105 target_configargs="$target_configargs ${tbaseargs}"
10106
10107 # Passing a --with-cross-host argument lets the target libraries know
10108 # whether they are being built with a cross-compiler or being built
10109 # native. However, it would be better to use other mechanisms to make the
10110 # sorts of decisions they want to make on this basis. Please consider
10111 # this option to be deprecated. FIXME.
10112 if test x${is_cross_compiler} = xyes ; then
10113 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10114 fi
10115
10116 # Special user-friendly check for native x86_64-linux build, if
10117 # multilib is not explicitly enabled.
10118 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10119 x86_64-*linux*:yes:$build:$build:)
10120 # Make sure we have a development environment that handles 32-bit
10121 dev64=no
10122 echo "int main () { return 0; }" > conftest.c
10123 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10124 if test $? = 0 ; then
10125 if test -s conftest || test -s conftest.exe ; then
10126 dev64=yes
10127 fi
10128 fi
10129 rm -f conftest*
10130 if test x${dev64} != xyes ; then
10131 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
10132 fi
10133 ;;
10134 esac
10135
10136 # Default to --enable-multilib.
10137 if test x${enable_multilib} = x ; then
10138 target_configargs="--enable-multilib ${target_configargs}"
10139 fi
10140
10141 # Pass --with-newlib if appropriate. Note that target_configdirs has
10142 # changed from the earlier setting of with_newlib.
10143 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10144 target_configargs="--with-newlib ${target_configargs}"
10145 fi
10146
10147 # Different target subdirs use different values of certain variables
10148 # (notably CXX). Worse, multilibs use *lots* of different values.
10149 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10150 # it doesn't automatically accept command-line overrides of them.
10151 # This means it's not safe for target subdirs to share a cache file,
10152 # which is disgusting, but there you have it. Hopefully this can be
10153 # fixed in future. It's still worthwhile to use a cache file for each
10154 # directory. I think.
10155
10156 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10157 # We need to pass --target, as newer autoconf's requires consistency
10158 # for target_alias and gcc doesn't manage it consistently.
10159 target_configargs="--cache-file=./config.cache ${target_configargs}"
10160
10161 FLAGS_FOR_TARGET=
10162 case " $target_configdirs " in
10163 *" newlib "*)
10164 case " $target_configargs " in
10165 *" --with-newlib "*)
10166 case "$target" in
10167 *-cygwin*)
10168 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10169 ;;
10170 esac
10171
10172 # If we're not building GCC, don't discard standard headers.
10173 if test -d ${srcdir}/gcc; then
10174 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10175
10176 if test "${build}" != "${host}"; then
10177 # On Canadian crosses, CC_FOR_TARGET will have already been set
10178 # by `configure', so we won't have an opportunity to add -Bgcc/
10179 # to it. This is right: we don't want to search that directory
10180 # for binaries, but we want the header files in there, so add
10181 # them explicitly.
10182 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10183
10184 # Someone might think of using the pre-installed headers on
10185 # Canadian crosses, in case the installed compiler is not fully
10186 # compatible with the compiler being built. In this case, it
10187 # would be better to flag an error than risking having
10188 # incompatible object files being constructed. We can't
10189 # guarantee that an error will be flagged, but let's hope the
10190 # compiler will do it, when presented with incompatible header
10191 # files.
10192 fi
10193 fi
10194
10195 case "${target}-${is_cross_compiler}" in
10196 i[3456789]86-*-linux*-no)
10197 # Here host == target, so we don't need to build gcc,
10198 # so we don't want to discard standard headers.
10199 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10200 ;;
10201 *)
10202 # If we're building newlib, use its generic headers last, but search
10203 # for any libc-related directories first (so make it the last -B
10204 # switch).
10205 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10206
10207 # If we're building libgloss, find the startup file, simulator library
10208 # and linker script.
10209 case " $target_configdirs " in
10210 *" libgloss "*)
10211 # Look for startup file, simulator library and maybe linker script.
10212 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10213 # Look for libnosys.a in case the target needs it.
10214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10215 # Most targets have the linker script in the source directory.
10216 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10217 ;;
10218 esac
10219 ;;
10220 esac
10221 ;;
10222 esac
10223 ;;
10224 esac
10225
10226 case "$target" in
10227 x86_64-*mingw* | *-w64-mingw*)
10228 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10229 # however, use a symlink named 'mingw' in ${prefix} .
10230 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10231 ;;
10232 *-mingw*)
10233 # MinGW can't be handled as Cygwin above since it does not use newlib.
10234 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'
10235 ;;
10236 esac
10237
10238 # Allow the user to override the flags for
10239 # our build compiler if desired.
10240 if test x"${build}" = x"${host}" ; then
10241 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10242 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10243 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10244 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10245 fi
10246
10247 # On Canadian crosses, we'll be searching the right directories for
10248 # the previously-installed cross compiler, so don't bother to add
10249 # flags for directories within the install tree of the compiler
10250 # being built; programs in there won't even run.
10251 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10252 # Search for pre-installed headers if nothing else fits.
10253 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10254 fi
10255
10256 if test "x${use_gnu_ld}" = x &&
10257 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10258 # Arrange for us to find uninstalled linker scripts.
10259 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10260 fi
10261
10262 # Search for other target-specific linker scripts and such.
10263 case "${target}" in
10264 mep*)
10265 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10266 ;;
10267 esac
10268
10269 # Makefile fragments.
10270 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10271 do
10272 eval fragval=\$$frag
10273 if test $fragval != /dev/null; then
10274 eval $frag=${srcdir}/$fragval
10275 fi
10276 done
10277
10278
10279
10280
10281
10282 # Miscellanea: directories, flags, etc.
10283
10284
10285
10286
10287
10288
10289
10290
10291 # Build module lists & subconfigure args.
10292
10293
10294
10295 # Host module lists & subconfigure args.
10296
10297
10298
10299
10300 # Target module lists & subconfigure args.
10301
10302
10303
10304 # Build tools.
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325 # Generate default definitions for YACC, M4, LEX and other programs that run
10326 # on the build machine. These are used if the Makefile can't locate these
10327 # programs in objdir.
10328 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10329
10330 for ac_prog in 'bison -y' byacc yacc
10331 do
10332 # Extract the first word of "$ac_prog", so it can be a program name with args.
10333 set dummy $ac_prog; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_YACC+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 if test -n "$YACC"; then
10340 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349 ac_cv_prog_YACC="$ac_prog"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 break 2
10352 fi
10353 done
10354 done
10355 IFS=$as_save_IFS
10356
10357 fi
10358 fi
10359 YACC=$ac_cv_prog_YACC
10360 if test -n "$YACC"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10362 $as_echo "$YACC" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369 test -n "$YACC" && break
10370 done
10371 test -n "$YACC" || YACC="$MISSING bison -y"
10372
10373 case " $build_configdirs " in
10374 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10375 esac
10376
10377 for ac_prog in bison
10378 do
10379 # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_prog_BISON+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 if test -n "$BISON"; then
10387 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_BISON="$ac_prog"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400 done
10401 done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 BISON=$ac_cv_prog_BISON
10407 if test -n "$BISON"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10409 $as_echo "$BISON" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414
10415
10416 test -n "$BISON" && break
10417 done
10418 test -n "$BISON" || BISON="$MISSING bison"
10419
10420 case " $build_configdirs " in
10421 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10422 esac
10423
10424 for ac_prog in gm4 gnum4 m4
10425 do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_prog_M4+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 if test -n "$M4"; then
10434 ac_cv_prog_M4="$M4" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10438 do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_M4="$ac_prog"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447 done
10448 done
10449 IFS=$as_save_IFS
10450
10451 fi
10452 fi
10453 M4=$ac_cv_prog_M4
10454 if test -n "$M4"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10456 $as_echo "$M4" >&6; }
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461
10462
10463 test -n "$M4" && break
10464 done
10465 test -n "$M4" || M4="$MISSING m4"
10466
10467 case " $build_configdirs " in
10468 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10469 esac
10470
10471 for ac_prog in flex lex
10472 do
10473 # Extract the first word of "$ac_prog", so it can be a program name with args.
10474 set dummy $ac_prog; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if ${ac_cv_prog_LEX+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 if test -n "$LEX"; then
10481 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10485 do
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_LEX="$ac_prog"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494 done
10495 done
10496 IFS=$as_save_IFS
10497
10498 fi
10499 fi
10500 LEX=$ac_cv_prog_LEX
10501 if test -n "$LEX"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10503 $as_echo "$LEX" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508
10509
10510 test -n "$LEX" && break
10511 done
10512 test -n "$LEX" || LEX="$MISSING flex"
10513
10514 case " $build_configdirs " in
10515 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10516 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10517 esac
10518
10519 for ac_prog in flex
10520 do
10521 # Extract the first word of "$ac_prog", so it can be a program name with args.
10522 set dummy $ac_prog; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_FLEX+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -n "$FLEX"; then
10529 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_FLEX="$ac_prog"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542 done
10543 done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 FLEX=$ac_cv_prog_FLEX
10549 if test -n "$FLEX"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10551 $as_echo "$FLEX" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558 test -n "$FLEX" && break
10559 done
10560 test -n "$FLEX" || FLEX="$MISSING flex"
10561
10562 case " $build_configdirs " in
10563 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10564 esac
10565
10566 for ac_prog in makeinfo
10567 do
10568 # Extract the first word of "$ac_prog", so it can be a program name with args.
10569 set dummy $ac_prog; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if ${ac_cv_prog_MAKEINFO+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 if test -n "$MAKEINFO"; then
10576 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10577 else
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10580 do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_prog_MAKEINFO="$ac_prog"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10588 fi
10589 done
10590 done
10591 IFS=$as_save_IFS
10592
10593 fi
10594 fi
10595 MAKEINFO=$ac_cv_prog_MAKEINFO
10596 if test -n "$MAKEINFO"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10598 $as_echo "$MAKEINFO" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602 fi
10603
10604
10605 test -n "$MAKEINFO" && break
10606 done
10607 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10608
10609 case " $build_configdirs " in
10610 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10611 *)
10612
10613 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10614 # higher, else we use the "missing" dummy.
10615 if ${MAKEINFO} --version \
10616 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10617 :
10618 else
10619 MAKEINFO="$MISSING makeinfo"
10620 fi
10621 ;;
10622
10623 esac
10624
10625 # FIXME: expect and dejagnu may become build tools?
10626
10627 for ac_prog in expect
10628 do
10629 # Extract the first word of "$ac_prog", so it can be a program name with args.
10630 set dummy $ac_prog; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if ${ac_cv_prog_EXPECT+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 if test -n "$EXPECT"; then
10637 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_EXPECT="$ac_prog"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10649 fi
10650 done
10651 done
10652 IFS=$as_save_IFS
10653
10654 fi
10655 fi
10656 EXPECT=$ac_cv_prog_EXPECT
10657 if test -n "$EXPECT"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10659 $as_echo "$EXPECT" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 fi
10664
10665
10666 test -n "$EXPECT" && break
10667 done
10668 test -n "$EXPECT" || EXPECT="expect"
10669
10670 case " $configdirs " in
10671 *" expect "*)
10672 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10673 ;;
10674 esac
10675
10676 for ac_prog in runtest
10677 do
10678 # Extract the first word of "$ac_prog", so it can be a program name with args.
10679 set dummy $ac_prog; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if ${ac_cv_prog_RUNTEST+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 if test -n "$RUNTEST"; then
10686 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10687 else
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10690 do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_prog_RUNTEST="$ac_prog"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699 done
10700 done
10701 IFS=$as_save_IFS
10702
10703 fi
10704 fi
10705 RUNTEST=$ac_cv_prog_RUNTEST
10706 if test -n "$RUNTEST"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10708 $as_echo "$RUNTEST" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10712 fi
10713
10714
10715 test -n "$RUNTEST" && break
10716 done
10717 test -n "$RUNTEST" || RUNTEST="runtest"
10718
10719 case " $configdirs " in
10720 *" dejagnu "*)
10721 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10722 ;;
10723 esac
10724
10725
10726 # Host tools.
10727 ncn_tool_prefix=
10728 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10729 ncn_target_tool_prefix=
10730 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10731
10732
10733
10734 if test -n "$AR"; then
10735 ac_cv_prog_AR=$AR
10736 elif test -n "$ac_cv_prog_AR"; then
10737 AR=$ac_cv_prog_AR
10738 fi
10739
10740 if test -n "$ac_cv_prog_AR"; then
10741 for ncn_progname in ar; do
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743 set dummy ${ncn_progname}; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_prog_AR+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 if test -n "$AR"; then
10750 ac_cv_prog_AR="$AR" # Let the user override the test.
10751 else
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10754 do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_AR="${ncn_progname}"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763 done
10764 done
10765 IFS=$as_save_IFS
10766
10767 fi
10768 fi
10769 AR=$ac_cv_prog_AR
10770 if test -n "$AR"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10772 $as_echo "$AR" >&6; }
10773 else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10776 fi
10777
10778
10779 done
10780 fi
10781
10782 for ncn_progname in ar; do
10783 if test -n "$ncn_tool_prefix"; then
10784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_AR+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$AR"; then
10792 ac_cv_prog_AR="$AR" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805 done
10806 done
10807 IFS=$as_save_IFS
10808
10809 fi
10810 fi
10811 AR=$ac_cv_prog_AR
10812 if test -n "$AR"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10814 $as_echo "$AR" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10818 fi
10819
10820
10821 fi
10822 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_AR+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 if test -n "$AR"; then
10831 ac_cv_prog_AR="$AR" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_AR="${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10843 fi
10844 done
10845 done
10846 IFS=$as_save_IFS
10847
10848 fi
10849 fi
10850 AR=$ac_cv_prog_AR
10851 if test -n "$AR"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10853 $as_echo "$AR" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860 fi
10861 test -n "$ac_cv_prog_AR" && break
10862 done
10863
10864 if test -z "$ac_cv_prog_AR" ; then
10865 set dummy ar
10866 if test $build = $host ; then
10867 AR="$2"
10868 else
10869 AR="${ncn_tool_prefix}$2"
10870 fi
10871 fi
10872
10873
10874
10875 if test -n "$AS"; then
10876 ac_cv_prog_AS=$AS
10877 elif test -n "$ac_cv_prog_AS"; then
10878 AS=$ac_cv_prog_AS
10879 fi
10880
10881 if test -n "$ac_cv_prog_AS"; then
10882 for ncn_progname in as; do
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884 set dummy ${ncn_progname}; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_prog_AS+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 if test -n "$AS"; then
10891 ac_cv_prog_AS="$AS" # Let the user override the test.
10892 else
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_AS="${ncn_progname}"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904 done
10905 done
10906 IFS=$as_save_IFS
10907
10908 fi
10909 fi
10910 AS=$ac_cv_prog_AS
10911 if test -n "$AS"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10913 $as_echo "$AS" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918
10919
10920 done
10921 fi
10922
10923 for ncn_progname in as; do
10924 if test -n "$ncn_tool_prefix"; then
10925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10926 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928 $as_echo_n "checking for $ac_word... " >&6; }
10929 if ${ac_cv_prog_AS+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 if test -n "$AS"; then
10933 ac_cv_prog_AS="$AS" # Let the user override the test.
10934 else
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946 done
10947 done
10948 IFS=$as_save_IFS
10949
10950 fi
10951 fi
10952 AS=$ac_cv_prog_AS
10953 if test -n "$AS"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10955 $as_echo "$AS" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 fi
10960
10961
10962 fi
10963 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_AS+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 if test -n "$AS"; then
10972 ac_cv_prog_AS="$AS" # Let the user override the test.
10973 else
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10976 do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_AS="${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985 done
10986 done
10987 IFS=$as_save_IFS
10988
10989 fi
10990 fi
10991 AS=$ac_cv_prog_AS
10992 if test -n "$AS"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10994 $as_echo "$AS" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998 fi
10999
11000
11001 fi
11002 test -n "$ac_cv_prog_AS" && break
11003 done
11004
11005 if test -z "$ac_cv_prog_AS" ; then
11006 set dummy as
11007 if test $build = $host ; then
11008 AS="$2"
11009 else
11010 AS="${ncn_tool_prefix}$2"
11011 fi
11012 fi
11013
11014
11015
11016 if test -n "$DLLTOOL"; then
11017 ac_cv_prog_DLLTOOL=$DLLTOOL
11018 elif test -n "$ac_cv_prog_DLLTOOL"; then
11019 DLLTOOL=$ac_cv_prog_DLLTOOL
11020 fi
11021
11022 if test -n "$ac_cv_prog_DLLTOOL"; then
11023 for ncn_progname in dlltool; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025 set dummy ${ncn_progname}; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_prog_DLLTOOL+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 if test -n "$DLLTOOL"; then
11032 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11033 else
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_DLLTOOL="${ncn_progname}"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045 done
11046 done
11047 IFS=$as_save_IFS
11048
11049 fi
11050 fi
11051 DLLTOOL=$ac_cv_prog_DLLTOOL
11052 if test -n "$DLLTOOL"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11054 $as_echo "$DLLTOOL" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11058 fi
11059
11060
11061 done
11062 fi
11063
11064 for ncn_progname in dlltool; do
11065 if test -n "$ncn_tool_prefix"; then
11066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_DLLTOOL+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test -n "$DLLTOOL"; then
11074 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087 done
11088 done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 DLLTOOL=$ac_cv_prog_DLLTOOL
11094 if test -n "$DLLTOOL"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11096 $as_echo "$DLLTOOL" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_prog_DLLTOOL+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$DLLTOOL"; then
11113 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_DLLTOOL="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 DLLTOOL=$ac_cv_prog_DLLTOOL
11133 if test -n "$DLLTOOL"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11135 $as_echo "$DLLTOOL" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142 fi
11143 test -n "$ac_cv_prog_DLLTOOL" && break
11144 done
11145
11146 if test -z "$ac_cv_prog_DLLTOOL" ; then
11147 set dummy dlltool
11148 if test $build = $host ; then
11149 DLLTOOL="$2"
11150 else
11151 DLLTOOL="${ncn_tool_prefix}$2"
11152 fi
11153 fi
11154
11155
11156
11157 if test -n "$DSYMUTIL"; then
11158 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11159 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11160 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11161 fi
11162
11163 if test -n "$ac_cv_prog_DSYMUTIL"; then
11164 for ncn_progname in dsymutil; do
11165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166 set dummy ${ncn_progname}; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 if test -n "$DSYMUTIL"; then
11173 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11174 else
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 fi
11191 fi
11192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11193 if test -n "$DSYMUTIL"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11195 $as_echo "$DSYMUTIL" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202 done
11203 fi
11204
11205 for ncn_progname in dsymutil; do
11206 if test -n "$ncn_tool_prefix"; then
11207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11208 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test -n "$DSYMUTIL"; then
11215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11216 else
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228 done
11229 done
11230 IFS=$as_save_IFS
11231
11232 fi
11233 fi
11234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11235 if test -n "$DSYMUTIL"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11237 $as_echo "$DSYMUTIL" >&6; }
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242
11243
11244 fi
11245 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$DSYMUTIL"; then
11254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11274 if test -n "$DSYMUTIL"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11276 $as_echo "$DSYMUTIL" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 fi
11284 test -n "$ac_cv_prog_DSYMUTIL" && break
11285 done
11286
11287 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11288 set dummy dsymutil
11289 if test $build = $host ; then
11290 DSYMUTIL="$2"
11291 else
11292 DSYMUTIL="${ncn_tool_prefix}$2"
11293 fi
11294 fi
11295
11296
11297
11298 if test -n "$LD"; then
11299 ac_cv_prog_LD=$LD
11300 elif test -n "$ac_cv_prog_LD"; then
11301 LD=$ac_cv_prog_LD
11302 fi
11303
11304 if test -n "$ac_cv_prog_LD"; then
11305 for ncn_progname in ld; do
11306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11307 set dummy ${ncn_progname}; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if ${ac_cv_prog_LD+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 if test -n "$LD"; then
11314 ac_cv_prog_LD="$LD" # Let the user override the test.
11315 else
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11318 do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11323 ac_cv_prog_LD="${ncn_progname}"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327 done
11328 done
11329 IFS=$as_save_IFS
11330
11331 fi
11332 fi
11333 LD=$ac_cv_prog_LD
11334 if test -n "$LD"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11336 $as_echo "$LD" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341
11342
11343 done
11344 fi
11345
11346 for ncn_progname in ld; do
11347 if test -n "$ncn_tool_prefix"; then
11348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_LD+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 if test -n "$LD"; then
11356 ac_cv_prog_LD="$LD" # Let the user override the test.
11357 else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11360 do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11368 fi
11369 done
11370 done
11371 IFS=$as_save_IFS
11372
11373 fi
11374 fi
11375 LD=$ac_cv_prog_LD
11376 if test -n "$LD"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11378 $as_echo "$LD" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383
11384
11385 fi
11386 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_LD+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 if test -n "$LD"; then
11395 ac_cv_prog_LD="$LD" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_LD="${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408 done
11409 done
11410 IFS=$as_save_IFS
11411
11412 fi
11413 fi
11414 LD=$ac_cv_prog_LD
11415 if test -n "$LD"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11417 $as_echo "$LD" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423
11424 fi
11425 test -n "$ac_cv_prog_LD" && break
11426 done
11427
11428 if test -z "$ac_cv_prog_LD" ; then
11429 set dummy ld
11430 if test $build = $host ; then
11431 LD="$2"
11432 else
11433 LD="${ncn_tool_prefix}$2"
11434 fi
11435 fi
11436
11437
11438
11439 if test -n "$LIPO"; then
11440 ac_cv_prog_LIPO=$LIPO
11441 elif test -n "$ac_cv_prog_LIPO"; then
11442 LIPO=$ac_cv_prog_LIPO
11443 fi
11444
11445 if test -n "$ac_cv_prog_LIPO"; then
11446 for ncn_progname in lipo; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448 set dummy ${ncn_progname}; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_LIPO+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 if test -n "$LIPO"; then
11455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11456 else
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_prog_LIPO="${ncn_progname}"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468 done
11469 done
11470 IFS=$as_save_IFS
11471
11472 fi
11473 fi
11474 LIPO=$ac_cv_prog_LIPO
11475 if test -n "$LIPO"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11477 $as_echo "$LIPO" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11481 fi
11482
11483
11484 done
11485 fi
11486
11487 for ncn_progname in lipo; do
11488 if test -n "$ncn_tool_prefix"; then
11489 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11490 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_prog_LIPO+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 if test -n "$LIPO"; then
11497 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11509 fi
11510 done
11511 done
11512 IFS=$as_save_IFS
11513
11514 fi
11515 fi
11516 LIPO=$ac_cv_prog_LIPO
11517 if test -n "$LIPO"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11519 $as_echo "$LIPO" >&6; }
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524
11525
11526 fi
11527 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11529 set dummy ${ncn_progname}; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if ${ac_cv_prog_LIPO+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 if test -n "$LIPO"; then
11536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11537 else
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_LIPO="${ncn_progname}"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11548 fi
11549 done
11550 done
11551 IFS=$as_save_IFS
11552
11553 fi
11554 fi
11555 LIPO=$ac_cv_prog_LIPO
11556 if test -n "$LIPO"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11558 $as_echo "$LIPO" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11562 fi
11563
11564
11565 fi
11566 test -n "$ac_cv_prog_LIPO" && break
11567 done
11568
11569 if test -z "$ac_cv_prog_LIPO" ; then
11570 set dummy lipo
11571 if test $build = $host ; then
11572 LIPO="$2"
11573 else
11574 LIPO="${ncn_tool_prefix}$2"
11575 fi
11576 fi
11577
11578
11579
11580 if test -n "$NM"; then
11581 ac_cv_prog_NM=$NM
11582 elif test -n "$ac_cv_prog_NM"; then
11583 NM=$ac_cv_prog_NM
11584 fi
11585
11586 if test -n "$ac_cv_prog_NM"; then
11587 for ncn_progname in nm; do
11588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11589 set dummy ${ncn_progname}; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if ${ac_cv_prog_NM+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 if test -n "$NM"; then
11596 ac_cv_prog_NM="$NM" # Let the user override the test.
11597 else
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11600 do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11605 ac_cv_prog_NM="${ncn_progname}"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609 done
11610 done
11611 IFS=$as_save_IFS
11612
11613 fi
11614 fi
11615 NM=$ac_cv_prog_NM
11616 if test -n "$NM"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11618 $as_echo "$NM" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fi
11623
11624
11625 done
11626 fi
11627
11628 for ncn_progname in nm; do
11629 if test -n "$ncn_tool_prefix"; then
11630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11631 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_prog_NM+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 if test -n "$NM"; then
11638 ac_cv_prog_NM="$NM" # Let the user override the test.
11639 else
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11642 do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651 done
11652 done
11653 IFS=$as_save_IFS
11654
11655 fi
11656 fi
11657 NM=$ac_cv_prog_NM
11658 if test -n "$NM"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11660 $as_echo "$NM" >&6; }
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664 fi
11665
11666
11667 fi
11668 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11670 set dummy ${ncn_progname}; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_prog_NM+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 if test -n "$NM"; then
11677 ac_cv_prog_NM="$NM" # Let the user override the test.
11678 else
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682 IFS=$as_save_IFS
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11686 ac_cv_prog_NM="${ncn_progname}"
11687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 break 2
11689 fi
11690 done
11691 done
11692 IFS=$as_save_IFS
11693
11694 fi
11695 fi
11696 NM=$ac_cv_prog_NM
11697 if test -n "$NM"; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11699 $as_echo "$NM" >&6; }
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705
11706 fi
11707 test -n "$ac_cv_prog_NM" && break
11708 done
11709
11710 if test -z "$ac_cv_prog_NM" ; then
11711 set dummy nm
11712 if test $build = $host ; then
11713 NM="$2"
11714 else
11715 NM="${ncn_tool_prefix}$2"
11716 fi
11717 fi
11718
11719
11720
11721 if test -n "$RANLIB"; then
11722 ac_cv_prog_RANLIB=$RANLIB
11723 elif test -n "$ac_cv_prog_RANLIB"; then
11724 RANLIB=$ac_cv_prog_RANLIB
11725 fi
11726
11727 if test -n "$ac_cv_prog_RANLIB"; then
11728 for ncn_progname in ranlib; do
11729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11730 set dummy ${ncn_progname}; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_prog_RANLIB+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 if test -n "$RANLIB"; then
11737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11738 else
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_prog_RANLIB="${ncn_progname}"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750 done
11751 done
11752 IFS=$as_save_IFS
11753
11754 fi
11755 fi
11756 RANLIB=$ac_cv_prog_RANLIB
11757 if test -n "$RANLIB"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11759 $as_echo "$RANLIB" >&6; }
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 fi
11764
11765
11766 done
11767 fi
11768
11769 for ncn_progname in ranlib; do
11770 if test -n "$ncn_tool_prefix"; then
11771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11772 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_prog_RANLIB+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 if test -n "$RANLIB"; then
11779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11780 else
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 break 2
11791 fi
11792 done
11793 done
11794 IFS=$as_save_IFS
11795
11796 fi
11797 fi
11798 RANLIB=$ac_cv_prog_RANLIB
11799 if test -n "$RANLIB"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11801 $as_echo "$RANLIB" >&6; }
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 fi
11806
11807
11808 fi
11809 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11811 set dummy ${ncn_progname}; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_RANLIB+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 if test -n "$RANLIB"; then
11818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11819 else
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11822 do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_RANLIB="${ncn_progname}"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11830 fi
11831 done
11832 done
11833 IFS=$as_save_IFS
11834
11835 fi
11836 fi
11837 RANLIB=$ac_cv_prog_RANLIB
11838 if test -n "$RANLIB"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11840 $as_echo "$RANLIB" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845
11846
11847 fi
11848 test -n "$ac_cv_prog_RANLIB" && break
11849 done
11850
11851 if test -z "$ac_cv_prog_RANLIB" ; then
11852 RANLIB="true"
11853 fi
11854
11855
11856
11857 if test -n "$STRIP"; then
11858 ac_cv_prog_STRIP=$STRIP
11859 elif test -n "$ac_cv_prog_STRIP"; then
11860 STRIP=$ac_cv_prog_STRIP
11861 fi
11862
11863 if test -n "$ac_cv_prog_STRIP"; then
11864 for ncn_progname in strip; do
11865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11866 set dummy ${ncn_progname}; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_prog_STRIP+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 if test -n "$STRIP"; then
11873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11874 else
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11877 do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_STRIP="${ncn_progname}"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886 done
11887 done
11888 IFS=$as_save_IFS
11889
11890 fi
11891 fi
11892 STRIP=$ac_cv_prog_STRIP
11893 if test -n "$STRIP"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11895 $as_echo "$STRIP" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 fi
11900
11901
11902 done
11903 fi
11904
11905 for ncn_progname in strip; do
11906 if test -n "$ncn_tool_prefix"; then
11907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_STRIP+:} false; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 if test -n "$STRIP"; then
11915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11916 else
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928 done
11929 done
11930 IFS=$as_save_IFS
11931
11932 fi
11933 fi
11934 STRIP=$ac_cv_prog_STRIP
11935 if test -n "$STRIP"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11937 $as_echo "$STRIP" >&6; }
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 fi
11942
11943
11944 fi
11945 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11947 set dummy ${ncn_progname}; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_STRIP+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$STRIP"; then
11954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_STRIP="${ncn_progname}"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967 done
11968 done
11969 IFS=$as_save_IFS
11970
11971 fi
11972 fi
11973 STRIP=$ac_cv_prog_STRIP
11974 if test -n "$STRIP"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11976 $as_echo "$STRIP" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983 fi
11984 test -n "$ac_cv_prog_STRIP" && break
11985 done
11986
11987 if test -z "$ac_cv_prog_STRIP" ; then
11988 STRIP="true"
11989 fi
11990
11991
11992
11993 if test -n "$WINDRES"; then
11994 ac_cv_prog_WINDRES=$WINDRES
11995 elif test -n "$ac_cv_prog_WINDRES"; then
11996 WINDRES=$ac_cv_prog_WINDRES
11997 fi
11998
11999 if test -n "$ac_cv_prog_WINDRES"; then
12000 for ncn_progname in windres; do
12001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12002 set dummy ${ncn_progname}; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_prog_WINDRES+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 if test -n "$WINDRES"; then
12009 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12010 else
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_prog_WINDRES="${ncn_progname}"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12021 fi
12022 done
12023 done
12024 IFS=$as_save_IFS
12025
12026 fi
12027 fi
12028 WINDRES=$ac_cv_prog_WINDRES
12029 if test -n "$WINDRES"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12031 $as_echo "$WINDRES" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036
12037
12038 done
12039 fi
12040
12041 for ncn_progname in windres; do
12042 if test -n "$ncn_tool_prefix"; then
12043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_prog_WINDRES+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 if test -n "$WINDRES"; then
12051 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12052 else
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12063 fi
12064 done
12065 done
12066 IFS=$as_save_IFS
12067
12068 fi
12069 fi
12070 WINDRES=$ac_cv_prog_WINDRES
12071 if test -n "$WINDRES"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12073 $as_echo "$WINDRES" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079
12080 fi
12081 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_WINDRES+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$WINDRES"; then
12090 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_WINDRES="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 WINDRES=$ac_cv_prog_WINDRES
12110 if test -n "$WINDRES"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12112 $as_echo "$WINDRES" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118
12119 fi
12120 test -n "$ac_cv_prog_WINDRES" && break
12121 done
12122
12123 if test -z "$ac_cv_prog_WINDRES" ; then
12124 set dummy windres
12125 if test $build = $host ; then
12126 WINDRES="$2"
12127 else
12128 WINDRES="${ncn_tool_prefix}$2"
12129 fi
12130 fi
12131
12132
12133
12134 if test -n "$WINDMC"; then
12135 ac_cv_prog_WINDMC=$WINDMC
12136 elif test -n "$ac_cv_prog_WINDMC"; then
12137 WINDMC=$ac_cv_prog_WINDMC
12138 fi
12139
12140 if test -n "$ac_cv_prog_WINDMC"; then
12141 for ncn_progname in windmc; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143 set dummy ${ncn_progname}; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_prog_WINDMC+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 if test -n "$WINDMC"; then
12150 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12151 else
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12154 do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_prog_WINDMC="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163 done
12164 done
12165 IFS=$as_save_IFS
12166
12167 fi
12168 fi
12169 WINDMC=$ac_cv_prog_WINDMC
12170 if test -n "$WINDMC"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12172 $as_echo "$WINDMC" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 fi
12177
12178
12179 done
12180 fi
12181
12182 for ncn_progname in windmc; do
12183 if test -n "$ncn_tool_prefix"; then
12184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_prog_WINDMC+:} false; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 if test -n "$WINDMC"; then
12192 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12193 else
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12196 do
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12204 fi
12205 done
12206 done
12207 IFS=$as_save_IFS
12208
12209 fi
12210 fi
12211 WINDMC=$ac_cv_prog_WINDMC
12212 if test -n "$WINDMC"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12214 $as_echo "$WINDMC" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218 fi
12219
12220
12221 fi
12222 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_WINDMC+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$WINDMC"; then
12231 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_prog_WINDMC="${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244 done
12245 done
12246 IFS=$as_save_IFS
12247
12248 fi
12249 fi
12250 WINDMC=$ac_cv_prog_WINDMC
12251 if test -n "$WINDMC"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12253 $as_echo "$WINDMC" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260 fi
12261 test -n "$ac_cv_prog_WINDMC" && break
12262 done
12263
12264 if test -z "$ac_cv_prog_WINDMC" ; then
12265 set dummy windmc
12266 if test $build = $host ; then
12267 WINDMC="$2"
12268 else
12269 WINDMC="${ncn_tool_prefix}$2"
12270 fi
12271 fi
12272
12273
12274
12275 if test -n "$OBJCOPY"; then
12276 ac_cv_prog_OBJCOPY=$OBJCOPY
12277 elif test -n "$ac_cv_prog_OBJCOPY"; then
12278 OBJCOPY=$ac_cv_prog_OBJCOPY
12279 fi
12280
12281 if test -n "$ac_cv_prog_OBJCOPY"; then
12282 for ncn_progname in objcopy; do
12283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12284 set dummy ${ncn_progname}; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_prog_OBJCOPY+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test -n "$OBJCOPY"; then
12291 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300 ac_cv_prog_OBJCOPY="${ncn_progname}"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304 done
12305 done
12306 IFS=$as_save_IFS
12307
12308 fi
12309 fi
12310 OBJCOPY=$ac_cv_prog_OBJCOPY
12311 if test -n "$OBJCOPY"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12313 $as_echo "$OBJCOPY" >&6; }
12314 else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317 fi
12318
12319
12320 done
12321 fi
12322
12323 for ncn_progname in objcopy; do
12324 if test -n "$ncn_tool_prefix"; then
12325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_OBJCOPY+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$OBJCOPY"; then
12333 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350 fi
12351 fi
12352 OBJCOPY=$ac_cv_prog_OBJCOPY
12353 if test -n "$OBJCOPY"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12355 $as_echo "$OBJCOPY" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361
12362 fi
12363 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_OBJCOPY+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 if test -n "$OBJCOPY"; then
12372 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12373 else
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_OBJCOPY="${ncn_progname}"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385 done
12386 done
12387 IFS=$as_save_IFS
12388
12389 fi
12390 fi
12391 OBJCOPY=$ac_cv_prog_OBJCOPY
12392 if test -n "$OBJCOPY"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12394 $as_echo "$OBJCOPY" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401 fi
12402 test -n "$ac_cv_prog_OBJCOPY" && break
12403 done
12404
12405 if test -z "$ac_cv_prog_OBJCOPY" ; then
12406 set dummy objcopy
12407 if test $build = $host ; then
12408 OBJCOPY="$2"
12409 else
12410 OBJCOPY="${ncn_tool_prefix}$2"
12411 fi
12412 fi
12413
12414
12415
12416 if test -n "$OBJDUMP"; then
12417 ac_cv_prog_OBJDUMP=$OBJDUMP
12418 elif test -n "$ac_cv_prog_OBJDUMP"; then
12419 OBJDUMP=$ac_cv_prog_OBJDUMP
12420 fi
12421
12422 if test -n "$ac_cv_prog_OBJDUMP"; then
12423 for ncn_progname in objdump; do
12424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12425 set dummy ${ncn_progname}; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_prog_OBJDUMP+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$OBJDUMP"; then
12432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_prog_OBJDUMP="${ncn_progname}"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 OBJDUMP=$ac_cv_prog_OBJDUMP
12452 if test -n "$OBJDUMP"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12454 $as_echo "$OBJDUMP" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 done
12462 fi
12463
12464 for ncn_progname in objdump; do
12465 if test -n "$ncn_tool_prefix"; then
12466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_OBJDUMP+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 if test -n "$OBJDUMP"; then
12474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12486 fi
12487 done
12488 done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 OBJDUMP=$ac_cv_prog_OBJDUMP
12494 if test -n "$OBJDUMP"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12496 $as_echo "$OBJDUMP" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503 fi
12504 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if ${ac_cv_prog_OBJDUMP+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 if test -n "$OBJDUMP"; then
12513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_OBJDUMP="${ncn_progname}"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12525 fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 OBJDUMP=$ac_cv_prog_OBJDUMP
12533 if test -n "$OBJDUMP"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12535 $as_echo "$OBJDUMP" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540
12541
12542 fi
12543 test -n "$ac_cv_prog_OBJDUMP" && break
12544 done
12545
12546 if test -z "$ac_cv_prog_OBJDUMP" ; then
12547 set dummy objdump
12548 if test $build = $host ; then
12549 OBJDUMP="$2"
12550 else
12551 OBJDUMP="${ncn_tool_prefix}$2"
12552 fi
12553 fi
12554
12555
12556
12557 if test -n "$OTOOL"; then
12558 ac_cv_prog_OTOOL=$OTOOL
12559 elif test -n "$ac_cv_prog_OTOOL"; then
12560 OTOOL=$ac_cv_prog_OTOOL
12561 fi
12562
12563 if test -n "$ac_cv_prog_OTOOL"; then
12564 for ncn_progname in otool; do
12565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12566 set dummy ${ncn_progname}; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_prog_OTOOL+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 if test -n "$OTOOL"; then
12573 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12574 else
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12577 do
12578 IFS=$as_save_IFS
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582 ac_cv_prog_OTOOL="${ncn_progname}"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 break 2
12585 fi
12586 done
12587 done
12588 IFS=$as_save_IFS
12589
12590 fi
12591 fi
12592 OTOOL=$ac_cv_prog_OTOOL
12593 if test -n "$OTOOL"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12595 $as_echo "$OTOOL" >&6; }
12596 else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 fi
12600
12601
12602 done
12603 fi
12604
12605 for ncn_progname in otool; do
12606 if test -n "$ncn_tool_prefix"; then
12607 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12608 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if ${ac_cv_prog_OTOOL+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 if test -n "$OTOOL"; then
12615 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12616 else
12617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618 for as_dir in $PATH
12619 do
12620 IFS=$as_save_IFS
12621 test -z "$as_dir" && as_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12624 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 break 2
12627 fi
12628 done
12629 done
12630 IFS=$as_save_IFS
12631
12632 fi
12633 fi
12634 OTOOL=$ac_cv_prog_OTOOL
12635 if test -n "$OTOOL"; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12637 $as_echo "$OTOOL" >&6; }
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641 fi
12642
12643
12644 fi
12645 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12647 set dummy ${ncn_progname}; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649 $as_echo_n "checking for $ac_word... " >&6; }
12650 if ${ac_cv_prog_OTOOL+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 if test -n "$OTOOL"; then
12654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12655 else
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 ac_cv_prog_OTOOL="${ncn_progname}"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667 done
12668 done
12669 IFS=$as_save_IFS
12670
12671 fi
12672 fi
12673 OTOOL=$ac_cv_prog_OTOOL
12674 if test -n "$OTOOL"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12676 $as_echo "$OTOOL" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680 fi
12681
12682
12683 fi
12684 test -n "$ac_cv_prog_OTOOL" && break
12685 done
12686
12687 if test -z "$ac_cv_prog_OTOOL" ; then
12688 set dummy otool
12689 if test $build = $host ; then
12690 OTOOL="$2"
12691 else
12692 OTOOL="${ncn_tool_prefix}$2"
12693 fi
12694 fi
12695
12696
12697
12698 if test -n "$READELF"; then
12699 ac_cv_prog_READELF=$READELF
12700 elif test -n "$ac_cv_prog_READELF"; then
12701 READELF=$ac_cv_prog_READELF
12702 fi
12703
12704 if test -n "$ac_cv_prog_READELF"; then
12705 for ncn_progname in readelf; do
12706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707 set dummy ${ncn_progname}; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if ${ac_cv_prog_READELF+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 if test -n "$READELF"; then
12714 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12723 ac_cv_prog_READELF="${ncn_progname}"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12726 fi
12727 done
12728 done
12729 IFS=$as_save_IFS
12730
12731 fi
12732 fi
12733 READELF=$ac_cv_prog_READELF
12734 if test -n "$READELF"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12736 $as_echo "$READELF" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741
12742
12743 done
12744 fi
12745
12746 for ncn_progname in readelf; do
12747 if test -n "$ncn_tool_prefix"; then
12748 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12749 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_prog_READELF+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 if test -n "$READELF"; then
12756 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12757 else
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12760 do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12768 fi
12769 done
12770 done
12771 IFS=$as_save_IFS
12772
12773 fi
12774 fi
12775 READELF=$ac_cv_prog_READELF
12776 if test -n "$READELF"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12778 $as_echo "$READELF" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783
12784
12785 fi
12786 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12788 set dummy ${ncn_progname}; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if ${ac_cv_prog_READELF+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 if test -n "$READELF"; then
12795 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12796 else
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12799 do
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12804 ac_cv_prog_READELF="${ncn_progname}"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12807 fi
12808 done
12809 done
12810 IFS=$as_save_IFS
12811
12812 fi
12813 fi
12814 READELF=$ac_cv_prog_READELF
12815 if test -n "$READELF"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12817 $as_echo "$READELF" >&6; }
12818 else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821 fi
12822
12823
12824 fi
12825 test -n "$ac_cv_prog_READELF" && break
12826 done
12827
12828 if test -z "$ac_cv_prog_READELF" ; then
12829 set dummy readelf
12830 if test $build = $host ; then
12831 READELF="$2"
12832 else
12833 READELF="${ncn_tool_prefix}$2"
12834 fi
12835 fi
12836
12837
12838
12839
12840
12841
12842
12843
12844 # Target tools.
12845
12846 # Check whether --with-build-time-tools was given.
12847 if test "${with_build_time_tools+set}" = set; then :
12848 withval=$with_build_time_tools; case x"$withval" in
12849 x/*) ;;
12850 *)
12851 with_build_time_tools=
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12853 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12854 ;;
12855 esac
12856 else
12857 with_build_time_tools=
12858 fi
12859
12860
12861
12862
12863 if test -n "$CC_FOR_TARGET"; then
12864 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12865 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12866 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12867 fi
12868
12869 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12870 for ncn_progname in cc gcc; do
12871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12872 set dummy ${ncn_progname}; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 if test -n "$CC_FOR_TARGET"; then
12879 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12880 else
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12883 do
12884 IFS=$as_save_IFS
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12888 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12890 break 2
12891 fi
12892 done
12893 done
12894 IFS=$as_save_IFS
12895
12896 fi
12897 fi
12898 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12899 if test -n "$CC_FOR_TARGET"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12901 $as_echo "$CC_FOR_TARGET" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12905 fi
12906
12907
12908 done
12909 fi
12910
12911 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12912 for ncn_progname in cc gcc; do
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12915 if test -x $with_build_time_tools/${ncn_progname}; then
12916 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919 break
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923 fi
12924 done
12925 fi
12926
12927 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12928 for ncn_progname in cc gcc; do
12929 if test -n "$ncn_target_tool_prefix"; then
12930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 if test -n "$CC_FOR_TARGET"; then
12938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951 done
12952 done
12953 IFS=$as_save_IFS
12954
12955 fi
12956 fi
12957 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12958 if test -n "$CC_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12960 $as_echo "$CC_FOR_TARGET" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 fi
12965
12966
12967 fi
12968 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 if test -n "$CC_FOR_TARGET"; then
12977 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12978 else
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12981 do
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 break 2
12989 fi
12990 done
12991 done
12992 IFS=$as_save_IFS
12993
12994 fi
12995 fi
12996 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12997 if test -n "$CC_FOR_TARGET"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12999 $as_echo "$CC_FOR_TARGET" >&6; }
13000 else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 fi
13004
13005
13006 fi
13007 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13008 done
13009 fi
13010
13011 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13012 set dummy cc gcc
13013 if test $build = $target ; then
13014 CC_FOR_TARGET="$2"
13015 else
13016 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13017 fi
13018 else
13019 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13020 fi
13021
13022
13023
13024 if test -n "$CXX_FOR_TARGET"; then
13025 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13026 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13027 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13028 fi
13029
13030 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13031 for ncn_progname in c++ g++ cxx gxx; do
13032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13033 set dummy ${ncn_progname}; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 if test -n "$CXX_FOR_TARGET"; then
13040 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053 done
13054 done
13055 IFS=$as_save_IFS
13056
13057 fi
13058 fi
13059 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13060 if test -n "$CXX_FOR_TARGET"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13062 $as_echo "$CXX_FOR_TARGET" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067
13068
13069 done
13070 fi
13071
13072 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13073 for ncn_progname in c++ g++ cxx gxx; do
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13075 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13076 if test -x $with_build_time_tools/${ncn_progname}; then
13077 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13080 break
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085 done
13086 fi
13087
13088 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13089 for ncn_progname in c++ g++ cxx gxx; do
13090 if test -n "$ncn_target_tool_prefix"; then
13091 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13092 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$CXX_FOR_TARGET"; then
13099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 fi
13117 fi
13118 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13119 if test -n "$CXX_FOR_TARGET"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13121 $as_echo "$CXX_FOR_TARGET" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125 fi
13126
13127
13128 fi
13129 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 if test -n "$CXX_FOR_TARGET"; then
13138 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151 done
13152 done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13158 if test -n "$CXX_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13160 $as_echo "$CXX_FOR_TARGET" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167 fi
13168 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13169 done
13170 fi
13171
13172 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13173 set dummy c++ g++ cxx gxx
13174 if test $build = $target ; then
13175 CXX_FOR_TARGET="$2"
13176 else
13177 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13178 fi
13179 else
13180 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13181 fi
13182
13183
13184
13185 if test -n "$GCC_FOR_TARGET"; then
13186 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13187 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13188 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13189 fi
13190
13191 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13192 for ncn_progname in gcc; do
13193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -n "$GCC_FOR_TARGET"; then
13201 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13213 fi
13214 done
13215 done
13216 IFS=$as_save_IFS
13217
13218 fi
13219 fi
13220 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13221 if test -n "$GCC_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13223 $as_echo "$GCC_FOR_TARGET" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229
13230 done
13231 fi
13232
13233 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13234 for ncn_progname in gcc; do
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13236 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13237 if test -x $with_build_time_tools/${ncn_progname}; then
13238 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241 break
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246 done
13247 fi
13248
13249 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13250 for ncn_progname in gcc; do
13251 if test -n "$ncn_target_tool_prefix"; then
13252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13253 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 if test -n "$GCC_FOR_TARGET"; then
13260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13269 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273 done
13274 done
13275 IFS=$as_save_IFS
13276
13277 fi
13278 fi
13279 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13280 if test -n "$GCC_FOR_TARGET"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13282 $as_echo "$GCC_FOR_TARGET" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287
13288
13289 fi
13290 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -n "$GCC_FOR_TARGET"; then
13299 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13311 fi
13312 done
13313 done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13319 if test -n "$GCC_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13321 $as_echo "$GCC_FOR_TARGET" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327
13328 fi
13329 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13330 done
13331 fi
13332
13333 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13334 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13335 else
13336 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13337 fi
13338
13339
13340
13341 if test -n "$GFORTRAN_FOR_TARGET"; then
13342 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13343 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13344 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13345 fi
13346
13347 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13348 for ncn_progname in gfortran; do
13349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13350 set dummy ${ncn_progname}; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test -n "$GFORTRAN_FOR_TARGET"; then
13357 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13358 else
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 fi
13375 fi
13376 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13377 if test -n "$GFORTRAN_FOR_TARGET"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13379 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383 fi
13384
13385
13386 done
13387 fi
13388
13389 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13390 for ncn_progname in gfortran; do
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13392 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13393 if test -x $with_build_time_tools/${ncn_progname}; then
13394 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13396 $as_echo "yes" >&6; }
13397 break
13398 else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 fi
13402 done
13403 fi
13404
13405 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13406 for ncn_progname in gfortran; do
13407 if test -n "$ncn_target_tool_prefix"; then
13408 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13409 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 if test -n "$GFORTRAN_FOR_TARGET"; then
13416 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13417 else
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13428 fi
13429 done
13430 done
13431 IFS=$as_save_IFS
13432
13433 fi
13434 fi
13435 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13436 if test -n "$GFORTRAN_FOR_TARGET"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13438 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 fi
13443
13444
13445 fi
13446 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 if test -n "$GFORTRAN_FOR_TARGET"; then
13455 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13459 do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13467 fi
13468 done
13469 done
13470 IFS=$as_save_IFS
13471
13472 fi
13473 fi
13474 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13475 if test -n "$GFORTRAN_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13477 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482
13483
13484 fi
13485 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13486 done
13487 fi
13488
13489 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13490 set dummy gfortran
13491 if test $build = $target ; then
13492 GFORTRAN_FOR_TARGET="$2"
13493 else
13494 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13495 fi
13496 else
13497 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13498 fi
13499
13500
13501
13502 if test -n "$GOC_FOR_TARGET"; then
13503 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13504 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13505 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13506 fi
13507
13508 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13509 for ncn_progname in gccgo; do
13510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13511 set dummy ${ncn_progname}; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 if test -n "$GOC_FOR_TARGET"; then
13518 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13527 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13530 fi
13531 done
13532 done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13538 if test -n "$GOC_FOR_TARGET"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13540 $as_echo "$GOC_FOR_TARGET" >&6; }
13541 else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545
13546
13547 done
13548 fi
13549
13550 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13551 for ncn_progname in gccgo; do
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13553 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13554 if test -x $with_build_time_tools/${ncn_progname}; then
13555 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 $as_echo "yes" >&6; }
13558 break
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563 done
13564 fi
13565
13566 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13567 for ncn_progname in gccgo; do
13568 if test -n "$ncn_target_tool_prefix"; then
13569 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13570 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 if test -n "$GOC_FOR_TARGET"; then
13577 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13578 else
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13581 do
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13589 fi
13590 done
13591 done
13592 IFS=$as_save_IFS
13593
13594 fi
13595 fi
13596 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13597 if test -n "$GOC_FOR_TARGET"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13599 $as_echo "$GOC_FOR_TARGET" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606 fi
13607 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13609 set dummy ${ncn_progname}; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -n "$GOC_FOR_TARGET"; then
13616 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13636 if test -n "$GOC_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13638 $as_echo "$GOC_FOR_TARGET" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13647 done
13648 fi
13649
13650 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13651 set dummy gccgo
13652 if test $build = $target ; then
13653 GOC_FOR_TARGET="$2"
13654 else
13655 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13656 fi
13657 else
13658 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13659 fi
13660
13661
13662
13663 if test -n "$GDC_FOR_TARGET"; then
13664 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13665 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13666 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13667 fi
13668
13669 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13670 for ncn_progname in gdc; do
13671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13672 set dummy ${ncn_progname}; ac_word=$2
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 $as_echo_n "checking for $ac_word... " >&6; }
13675 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 if test -n "$GDC_FOR_TARGET"; then
13679 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13680 else
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13683 do
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 break 2
13691 fi
13692 done
13693 done
13694 IFS=$as_save_IFS
13695
13696 fi
13697 fi
13698 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13699 if test -n "$GDC_FOR_TARGET"; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13701 $as_echo "$GDC_FOR_TARGET" >&6; }
13702 else
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705 fi
13706
13707
13708 done
13709 fi
13710
13711 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13712 for ncn_progname in gdc; do
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13714 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13715 if test -x $with_build_time_tools/${ncn_progname}; then
13716 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718 $as_echo "yes" >&6; }
13719 break
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13723 fi
13724 done
13725 fi
13726
13727 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13728 for ncn_progname in gdc; do
13729 if test -n "$ncn_target_tool_prefix"; then
13730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13731 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 if test -n "$GDC_FOR_TARGET"; then
13738 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13739 else
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13742 do
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13750 fi
13751 done
13752 done
13753 IFS=$as_save_IFS
13754
13755 fi
13756 fi
13757 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13758 if test -n "$GDC_FOR_TARGET"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13760 $as_echo "$GDC_FOR_TARGET" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13764 fi
13765
13766
13767 fi
13768 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 if test -n "$GDC_FOR_TARGET"; then
13777 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13778 else
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13781 do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13789 fi
13790 done
13791 done
13792 IFS=$as_save_IFS
13793
13794 fi
13795 fi
13796 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13797 if test -n "$GDC_FOR_TARGET"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13799 $as_echo "$GDC_FOR_TARGET" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13803 fi
13804
13805
13806 fi
13807 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13808 done
13809 fi
13810
13811 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13812 set dummy gdc
13813 if test $build = $target ; then
13814 GDC_FOR_TARGET="$2"
13815 else
13816 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13817 fi
13818 else
13819 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13820 fi
13821
13822
13823
13824 cat > conftest.c << \EOF
13825 #ifdef __GNUC__
13826 gcc_yay;
13827 #endif
13828 EOF
13829 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13830 have_gcc_for_target=yes
13831 else
13832 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13833 have_gcc_for_target=no
13834 fi
13835 rm conftest.c
13836
13837
13838
13839
13840 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13841 if test -n "$with_build_time_tools"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13843 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13844 if test -x $with_build_time_tools/ar; then
13845 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13846 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13848 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852 fi
13853 elif test $build != $host && test $have_gcc_for_target = yes; then
13854 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13855 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13856 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13857 fi
13858 fi
13859 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13860 # Extract the first word of "ar", so it can be a program name with args.
13861 set dummy ar; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 case $AR_FOR_TARGET in
13868 [\\/]* | ?:[\\/]*)
13869 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13870 ;;
13871 *)
13872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873 for as_dir in $gcc_cv_tool_dirs
13874 do
13875 IFS=$as_save_IFS
13876 test -z "$as_dir" && as_dir=.
13877 for ac_exec_ext in '' $ac_executable_extensions; do
13878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13879 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13881 break 2
13882 fi
13883 done
13884 done
13885 IFS=$as_save_IFS
13886
13887 ;;
13888 esac
13889 fi
13890 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13891 if test -n "$AR_FOR_TARGET"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13893 $as_echo "$AR_FOR_TARGET" >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898
13899
13900 fi
13901 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13902
13903
13904 if test -n "$AR_FOR_TARGET"; then
13905 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13906 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13907 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13908 fi
13909
13910 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13911 for ncn_progname in ar; do
13912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13913 set dummy ${ncn_progname}; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915 $as_echo_n "checking for $ac_word... " >&6; }
13916 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 if test -n "$AR_FOR_TARGET"; then
13920 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13921 else
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13924 do
13925 IFS=$as_save_IFS
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13931 break 2
13932 fi
13933 done
13934 done
13935 IFS=$as_save_IFS
13936
13937 fi
13938 fi
13939 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13940 if test -n "$AR_FOR_TARGET"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13942 $as_echo "$AR_FOR_TARGET" >&6; }
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 fi
13947
13948
13949 done
13950 fi
13951
13952 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13953 for ncn_progname in ar; do
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13956 if test -x $with_build_time_tools/${ncn_progname}; then
13957 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13959 $as_echo "yes" >&6; }
13960 break
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13964 fi
13965 done
13966 fi
13967
13968 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13969 for ncn_progname in ar; do
13970 if test -n "$ncn_target_tool_prefix"; then
13971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974 $as_echo_n "checking for $ac_word... " >&6; }
13975 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 if test -n "$AR_FOR_TARGET"; then
13979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13980 else
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13983 do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992 done
13993 done
13994 IFS=$as_save_IFS
13995
13996 fi
13997 fi
13998 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13999 if test -n "$AR_FOR_TARGET"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14001 $as_echo "$AR_FOR_TARGET" >&6; }
14002 else
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14005 fi
14006
14007
14008 fi
14009 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14011 set dummy ${ncn_progname}; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 if test -n "$AR_FOR_TARGET"; then
14018 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14038 if test -n "$AR_FOR_TARGET"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14040 $as_echo "$AR_FOR_TARGET" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 fi
14045
14046
14047 fi
14048 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14049 done
14050 fi
14051
14052 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14053 set dummy ar
14054 if test $build = $target ; then
14055 AR_FOR_TARGET="$2"
14056 else
14057 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14058 fi
14059 else
14060 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14061 fi
14062
14063 else
14064 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14065 fi
14066
14067
14068
14069
14070 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14071 if test -n "$with_build_time_tools"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14073 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14074 if test -x $with_build_time_tools/as; then
14075 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14076 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14078 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14082 fi
14083 elif test $build != $host && test $have_gcc_for_target = yes; then
14084 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14085 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14086 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14087 fi
14088 fi
14089 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14090 # Extract the first word of "as", so it can be a program name with args.
14091 set dummy as; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 case $AS_FOR_TARGET in
14098 [\\/]* | ?:[\\/]*)
14099 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14100 ;;
14101 *)
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $gcc_cv_tool_dirs
14104 do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113 done
14114 done
14115 IFS=$as_save_IFS
14116
14117 ;;
14118 esac
14119 fi
14120 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14121 if test -n "$AS_FOR_TARGET"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14123 $as_echo "$AS_FOR_TARGET" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 fi
14128
14129
14130 fi
14131 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14132
14133
14134 if test -n "$AS_FOR_TARGET"; then
14135 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14136 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14137 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14138 fi
14139
14140 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14141 for ncn_progname in as; do
14142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14143 set dummy ${ncn_progname}; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$AS_FOR_TARGET"; then
14150 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14170 if test -n "$AS_FOR_TARGET"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14172 $as_echo "$AS_FOR_TARGET" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178
14179 done
14180 fi
14181
14182 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14183 for ncn_progname in as; do
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14186 if test -x $with_build_time_tools/${ncn_progname}; then
14187 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190 break
14191 else
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14194 fi
14195 done
14196 fi
14197
14198 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14199 for ncn_progname in as; do
14200 if test -n "$ncn_target_tool_prefix"; then
14201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14204 $as_echo_n "checking for $ac_word... " >&6; }
14205 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 if test -n "$AS_FOR_TARGET"; then
14209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14210 else
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14213 do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14221 fi
14222 done
14223 done
14224 IFS=$as_save_IFS
14225
14226 fi
14227 fi
14228 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14229 if test -n "$AS_FOR_TARGET"; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14231 $as_echo "$AS_FOR_TARGET" >&6; }
14232 else
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234 $as_echo "no" >&6; }
14235 fi
14236
14237
14238 fi
14239 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$AS_FOR_TARGET"; then
14248 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265 fi
14266 fi
14267 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14268 if test -n "$AS_FOR_TARGET"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14270 $as_echo "$AS_FOR_TARGET" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277 fi
14278 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14279 done
14280 fi
14281
14282 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14283 set dummy as
14284 if test $build = $target ; then
14285 AS_FOR_TARGET="$2"
14286 else
14287 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14288 fi
14289 else
14290 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14291 fi
14292
14293 else
14294 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14295 fi
14296
14297
14298
14299
14300 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14301 if test -n "$with_build_time_tools"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14303 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14304 if test -x $with_build_time_tools/dlltool; then
14305 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14306 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14308 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14309 else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14312 fi
14313 elif test $build != $host && test $have_gcc_for_target = yes; then
14314 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14315 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14316 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14317 fi
14318 fi
14319 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14320 # Extract the first word of "dlltool", so it can be a program name with args.
14321 set dummy dlltool; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 case $DLLTOOL_FOR_TARGET in
14328 [\\/]* | ?:[\\/]*)
14329 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14330 ;;
14331 *)
14332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $gcc_cv_tool_dirs
14334 do
14335 IFS=$as_save_IFS
14336 test -z "$as_dir" && as_dir=.
14337 for ac_exec_ext in '' $ac_executable_extensions; do
14338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14339 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14341 break 2
14342 fi
14343 done
14344 done
14345 IFS=$as_save_IFS
14346
14347 ;;
14348 esac
14349 fi
14350 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14351 if test -n "$DLLTOOL_FOR_TARGET"; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14353 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14354 else
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356 $as_echo "no" >&6; }
14357 fi
14358
14359
14360 fi
14361 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14362
14363
14364 if test -n "$DLLTOOL_FOR_TARGET"; then
14365 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14366 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14367 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14368 fi
14369
14370 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14371 for ncn_progname in dlltool; do
14372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14373 set dummy ${ncn_progname}; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$DLLTOOL_FOR_TARGET"; then
14380 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14392 fi
14393 done
14394 done
14395 IFS=$as_save_IFS
14396
14397 fi
14398 fi
14399 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14400 if test -n "$DLLTOOL_FOR_TARGET"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14402 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14406 fi
14407
14408
14409 done
14410 fi
14411
14412 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14413 for ncn_progname in dlltool; do
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14416 if test -x $with_build_time_tools/${ncn_progname}; then
14417 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14419 $as_echo "yes" >&6; }
14420 break
14421 else
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424 fi
14425 done
14426 fi
14427
14428 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14429 for ncn_progname in dlltool; do
14430 if test -n "$ncn_target_tool_prefix"; then
14431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 if test -n "$DLLTOOL_FOR_TARGET"; then
14439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14440 else
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14443 do
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 fi
14457 fi
14458 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14459 if test -n "$DLLTOOL_FOR_TARGET"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14461 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14465 fi
14466
14467
14468 fi
14469 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$DLLTOOL_FOR_TARGET"; then
14478 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491 done
14492 done
14493 IFS=$as_save_IFS
14494
14495 fi
14496 fi
14497 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14498 if test -n "$DLLTOOL_FOR_TARGET"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 fi
14505
14506
14507 fi
14508 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14509 done
14510 fi
14511
14512 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14513 set dummy dlltool
14514 if test $build = $target ; then
14515 DLLTOOL_FOR_TARGET="$2"
14516 else
14517 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14518 fi
14519 else
14520 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14521 fi
14522
14523 else
14524 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14525 fi
14526
14527
14528
14529
14530 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14531 if test -n "$with_build_time_tools"; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14533 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14534 if test -x $with_build_time_tools/dsymutil; then
14535 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14536 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14538 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14539 else
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14542 fi
14543 elif test $build != $host && test $have_gcc_for_target = yes; then
14544 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14545 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14546 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14547 fi
14548 fi
14549 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14550 # Extract the first word of "dsymutil", so it can be a program name with args.
14551 set dummy dsymutil; ac_word=$2
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14553 $as_echo_n "checking for $ac_word... " >&6; }
14554 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 case $DSYMUTIL_FOR_TARGET in
14558 [\\/]* | ?:[\\/]*)
14559 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14560 ;;
14561 *)
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $gcc_cv_tool_dirs
14564 do
14565 IFS=$as_save_IFS
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14571 break 2
14572 fi
14573 done
14574 done
14575 IFS=$as_save_IFS
14576
14577 ;;
14578 esac
14579 fi
14580 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14581 if test -n "$DSYMUTIL_FOR_TARGET"; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14583 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14584 else
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14587 fi
14588
14589
14590 fi
14591 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14592
14593
14594 if test -n "$DSYMUTIL_FOR_TARGET"; then
14595 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14596 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14597 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14598 fi
14599
14600 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14601 for ncn_progname in dsymutil; do
14602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14603 set dummy ${ncn_progname}; ac_word=$2
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14605 $as_echo_n "checking for $ac_word... " >&6; }
14606 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 if test -n "$DSYMUTIL_FOR_TARGET"; then
14610 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14611 else
14612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14613 for as_dir in $PATH
14614 do
14615 IFS=$as_save_IFS
14616 test -z "$as_dir" && as_dir=.
14617 for ac_exec_ext in '' $ac_executable_extensions; do
14618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14619 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14621 break 2
14622 fi
14623 done
14624 done
14625 IFS=$as_save_IFS
14626
14627 fi
14628 fi
14629 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14630 if test -n "$DSYMUTIL_FOR_TARGET"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14632 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14636 fi
14637
14638
14639 done
14640 fi
14641
14642 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14643 for ncn_progname in dsymutil; do
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14646 if test -x $with_build_time_tools/${ncn_progname}; then
14647 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 $as_echo "yes" >&6; }
14650 break
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655 done
14656 fi
14657
14658 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14659 for ncn_progname in dsymutil; do
14660 if test -n "$ncn_target_tool_prefix"; then
14661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 if test -n "$DSYMUTIL_FOR_TARGET"; then
14669 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14670 else
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14673 do
14674 IFS=$as_save_IFS
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14680 break 2
14681 fi
14682 done
14683 done
14684 IFS=$as_save_IFS
14685
14686 fi
14687 fi
14688 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14689 if test -n "$DSYMUTIL_FOR_TARGET"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14691 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14692 else
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14695 fi
14696
14697
14698 fi
14699 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 if test -n "$DSYMUTIL_FOR_TARGET"; then
14708 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14709 else
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14712 do
14713 IFS=$as_save_IFS
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 break 2
14720 fi
14721 done
14722 done
14723 IFS=$as_save_IFS
14724
14725 fi
14726 fi
14727 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14728 if test -n "$DSYMUTIL_FOR_TARGET"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14730 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14731 else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14734 fi
14735
14736
14737 fi
14738 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14739 done
14740 fi
14741
14742 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14743 set dummy dsymutil
14744 if test $build = $target ; then
14745 DSYMUTIL_FOR_TARGET="$2"
14746 else
14747 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14748 fi
14749 else
14750 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14751 fi
14752
14753 else
14754 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14755 fi
14756
14757
14758
14759
14760 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14761 if test -n "$with_build_time_tools"; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14763 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14764 if test -x $with_build_time_tools/ld; then
14765 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14766 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14768 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14769 else
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14772 fi
14773 elif test $build != $host && test $have_gcc_for_target = yes; then
14774 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14775 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14776 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14777 fi
14778 fi
14779 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14780 # Extract the first word of "ld", so it can be a program name with args.
14781 set dummy ld; ac_word=$2
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14783 $as_echo_n "checking for $ac_word... " >&6; }
14784 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 case $LD_FOR_TARGET in
14788 [\\/]* | ?:[\\/]*)
14789 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14790 ;;
14791 *)
14792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $gcc_cv_tool_dirs
14794 do
14795 IFS=$as_save_IFS
14796 test -z "$as_dir" && as_dir=.
14797 for ac_exec_ext in '' $ac_executable_extensions; do
14798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14799 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14801 break 2
14802 fi
14803 done
14804 done
14805 IFS=$as_save_IFS
14806
14807 ;;
14808 esac
14809 fi
14810 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14811 if test -n "$LD_FOR_TARGET"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14813 $as_echo "$LD_FOR_TARGET" >&6; }
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 fi
14818
14819
14820 fi
14821 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14822
14823
14824 if test -n "$LD_FOR_TARGET"; then
14825 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14826 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14827 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14828 fi
14829
14830 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14831 for ncn_progname in ld; do
14832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14833 set dummy ${ncn_progname}; ac_word=$2
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14835 $as_echo_n "checking for $ac_word... " >&6; }
14836 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 if test -n "$LD_FOR_TARGET"; then
14840 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14841 else
14842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14843 for as_dir in $PATH
14844 do
14845 IFS=$as_save_IFS
14846 test -z "$as_dir" && as_dir=.
14847 for ac_exec_ext in '' $ac_executable_extensions; do
14848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14849 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14851 break 2
14852 fi
14853 done
14854 done
14855 IFS=$as_save_IFS
14856
14857 fi
14858 fi
14859 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14860 if test -n "$LD_FOR_TARGET"; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14862 $as_echo "$LD_FOR_TARGET" >&6; }
14863 else
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 $as_echo "no" >&6; }
14866 fi
14867
14868
14869 done
14870 fi
14871
14872 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14873 for ncn_progname in ld; do
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14876 if test -x $with_build_time_tools/${ncn_progname}; then
14877 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 $as_echo "yes" >&6; }
14880 break
14881 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14884 fi
14885 done
14886 fi
14887
14888 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14889 for ncn_progname in ld; do
14890 if test -n "$ncn_target_tool_prefix"; then
14891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 if test -n "$LD_FOR_TARGET"; then
14899 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14900 else
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $PATH
14903 do
14904 IFS=$as_save_IFS
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14910 break 2
14911 fi
14912 done
14913 done
14914 IFS=$as_save_IFS
14915
14916 fi
14917 fi
14918 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14919 if test -n "$LD_FOR_TARGET"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14921 $as_echo "$LD_FOR_TARGET" >&6; }
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 fi
14926
14927
14928 fi
14929 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 if test -n "$LD_FOR_TARGET"; then
14938 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14939 else
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14942 do
14943 IFS=$as_save_IFS
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949 break 2
14950 fi
14951 done
14952 done
14953 IFS=$as_save_IFS
14954
14955 fi
14956 fi
14957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14958 if test -n "$LD_FOR_TARGET"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14960 $as_echo "$LD_FOR_TARGET" >&6; }
14961 else
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964 fi
14965
14966
14967 fi
14968 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14969 done
14970 fi
14971
14972 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14973 set dummy ld
14974 if test $build = $target ; then
14975 LD_FOR_TARGET="$2"
14976 else
14977 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14978 fi
14979 else
14980 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14981 fi
14982
14983 else
14984 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14985 fi
14986
14987
14988
14989
14990 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14991 if test -n "$with_build_time_tools"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14993 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14994 if test -x $with_build_time_tools/lipo; then
14995 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14996 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14998 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14999 else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15002 fi
15003 elif test $build != $host && test $have_gcc_for_target = yes; then
15004 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15005 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15006 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15007 fi
15008 fi
15009 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15010 # Extract the first word of "lipo", so it can be a program name with args.
15011 set dummy lipo; ac_word=$2
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15013 $as_echo_n "checking for $ac_word... " >&6; }
15014 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 case $LIPO_FOR_TARGET in
15018 [\\/]* | ?:[\\/]*)
15019 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15020 ;;
15021 *)
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in $gcc_cv_tool_dirs
15024 do
15025 IFS=$as_save_IFS
15026 test -z "$as_dir" && as_dir=.
15027 for ac_exec_ext in '' $ac_executable_extensions; do
15028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15029 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15031 break 2
15032 fi
15033 done
15034 done
15035 IFS=$as_save_IFS
15036
15037 ;;
15038 esac
15039 fi
15040 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15041 if test -n "$LIPO_FOR_TARGET"; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15043 $as_echo "$LIPO_FOR_TARGET" >&6; }
15044 else
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 $as_echo "no" >&6; }
15047 fi
15048
15049
15050 fi
15051 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15052
15053
15054 if test -n "$LIPO_FOR_TARGET"; then
15055 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15056 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15057 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15058 fi
15059
15060 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15061 for ncn_progname in lipo; do
15062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15063 set dummy ${ncn_progname}; ac_word=$2
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15065 $as_echo_n "checking for $ac_word... " >&6; }
15066 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069 if test -n "$LIPO_FOR_TARGET"; then
15070 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15071 else
15072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15073 for as_dir in $PATH
15074 do
15075 IFS=$as_save_IFS
15076 test -z "$as_dir" && as_dir=.
15077 for ac_exec_ext in '' $ac_executable_extensions; do
15078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15079 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15081 break 2
15082 fi
15083 done
15084 done
15085 IFS=$as_save_IFS
15086
15087 fi
15088 fi
15089 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15090 if test -n "$LIPO_FOR_TARGET"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15092 $as_echo "$LIPO_FOR_TARGET" >&6; }
15093 else
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15096 fi
15097
15098
15099 done
15100 fi
15101
15102 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15103 for ncn_progname in lipo; do
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15106 if test -x $with_build_time_tools/${ncn_progname}; then
15107 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15109 $as_echo "yes" >&6; }
15110 break
15111 else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15114 fi
15115 done
15116 fi
15117
15118 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15119 for ncn_progname in lipo; do
15120 if test -n "$ncn_target_tool_prefix"; then
15121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15124 $as_echo_n "checking for $ac_word... " >&6; }
15125 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15126 $as_echo_n "(cached) " >&6
15127 else
15128 if test -n "$LIPO_FOR_TARGET"; then
15129 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15130 else
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $PATH
15133 do
15134 IFS=$as_save_IFS
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 break 2
15141 fi
15142 done
15143 done
15144 IFS=$as_save_IFS
15145
15146 fi
15147 fi
15148 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15149 if test -n "$LIPO_FOR_TARGET"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15151 $as_echo "$LIPO_FOR_TARGET" >&6; }
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15155 fi
15156
15157
15158 fi
15159 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 if test -n "$LIPO_FOR_TARGET"; then
15168 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15169 else
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15172 do
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15180 fi
15181 done
15182 done
15183 IFS=$as_save_IFS
15184
15185 fi
15186 fi
15187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15188 if test -n "$LIPO_FOR_TARGET"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15190 $as_echo "$LIPO_FOR_TARGET" >&6; }
15191 else
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15194 fi
15195
15196
15197 fi
15198 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15199 done
15200 fi
15201
15202 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15203 set dummy lipo
15204 if test $build = $target ; then
15205 LIPO_FOR_TARGET="$2"
15206 else
15207 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15208 fi
15209 else
15210 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15211 fi
15212
15213 else
15214 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15215 fi
15216
15217
15218
15219
15220 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15221 if test -n "$with_build_time_tools"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15223 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15224 if test -x $with_build_time_tools/nm; then
15225 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15226 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15228 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15229 else
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232 fi
15233 elif test $build != $host && test $have_gcc_for_target = yes; then
15234 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15235 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15236 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15237 fi
15238 fi
15239 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15240 # Extract the first word of "nm", so it can be a program name with args.
15241 set dummy nm; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15243 $as_echo_n "checking for $ac_word... " >&6; }
15244 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 case $NM_FOR_TARGET in
15248 [\\/]* | ?:[\\/]*)
15249 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15250 ;;
15251 *)
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $gcc_cv_tool_dirs
15254 do
15255 IFS=$as_save_IFS
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15261 break 2
15262 fi
15263 done
15264 done
15265 IFS=$as_save_IFS
15266
15267 ;;
15268 esac
15269 fi
15270 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15271 if test -n "$NM_FOR_TARGET"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15273 $as_echo "$NM_FOR_TARGET" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278
15279
15280 fi
15281 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15282
15283
15284 if test -n "$NM_FOR_TARGET"; then
15285 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15286 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15287 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15288 fi
15289
15290 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15291 for ncn_progname in nm; do
15292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15293 set dummy ${ncn_progname}; ac_word=$2
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15295 $as_echo_n "checking for $ac_word... " >&6; }
15296 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15297 $as_echo_n "(cached) " >&6
15298 else
15299 if test -n "$NM_FOR_TARGET"; then
15300 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15301 else
15302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15303 for as_dir in $PATH
15304 do
15305 IFS=$as_save_IFS
15306 test -z "$as_dir" && as_dir=.
15307 for ac_exec_ext in '' $ac_executable_extensions; do
15308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15309 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15311 break 2
15312 fi
15313 done
15314 done
15315 IFS=$as_save_IFS
15316
15317 fi
15318 fi
15319 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15320 if test -n "$NM_FOR_TARGET"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15322 $as_echo "$NM_FOR_TARGET" >&6; }
15323 else
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15326 fi
15327
15328
15329 done
15330 fi
15331
15332 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15333 for ncn_progname in nm; do
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15336 if test -x $with_build_time_tools/${ncn_progname}; then
15337 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15339 $as_echo "yes" >&6; }
15340 break
15341 else
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15344 fi
15345 done
15346 fi
15347
15348 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15349 for ncn_progname in nm; do
15350 if test -n "$ncn_target_tool_prefix"; then
15351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15354 $as_echo_n "checking for $ac_word... " >&6; }
15355 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 if test -n "$NM_FOR_TARGET"; then
15359 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15360 else
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15363 do
15364 IFS=$as_save_IFS
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15370 break 2
15371 fi
15372 done
15373 done
15374 IFS=$as_save_IFS
15375
15376 fi
15377 fi
15378 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15379 if test -n "$NM_FOR_TARGET"; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15381 $as_echo "$NM_FOR_TARGET" >&6; }
15382 else
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15384 $as_echo "no" >&6; }
15385 fi
15386
15387
15388 fi
15389 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 if test -n "$NM_FOR_TARGET"; then
15398 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15399 else
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15402 do
15403 IFS=$as_save_IFS
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15409 break 2
15410 fi
15411 done
15412 done
15413 IFS=$as_save_IFS
15414
15415 fi
15416 fi
15417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15418 if test -n "$NM_FOR_TARGET"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15420 $as_echo "$NM_FOR_TARGET" >&6; }
15421 else
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15424 fi
15425
15426
15427 fi
15428 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15429 done
15430 fi
15431
15432 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15433 set dummy nm
15434 if test $build = $target ; then
15435 NM_FOR_TARGET="$2"
15436 else
15437 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15438 fi
15439 else
15440 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15441 fi
15442
15443 else
15444 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15445 fi
15446
15447
15448
15449
15450 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15451 if test -n "$with_build_time_tools"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15453 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15454 if test -x $with_build_time_tools/objcopy; then
15455 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15456 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15458 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461 $as_echo "no" >&6; }
15462 fi
15463 elif test $build != $host && test $have_gcc_for_target = yes; then
15464 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15465 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15466 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15467 fi
15468 fi
15469 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15470 # Extract the first word of "objcopy", so it can be a program name with args.
15471 set dummy objcopy; ac_word=$2
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15473 $as_echo_n "checking for $ac_word... " >&6; }
15474 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15477 case $OBJCOPY_FOR_TARGET in
15478 [\\/]* | ?:[\\/]*)
15479 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15480 ;;
15481 *)
15482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483 for as_dir in $gcc_cv_tool_dirs
15484 do
15485 IFS=$as_save_IFS
15486 test -z "$as_dir" && as_dir=.
15487 for ac_exec_ext in '' $ac_executable_extensions; do
15488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15489 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15491 break 2
15492 fi
15493 done
15494 done
15495 IFS=$as_save_IFS
15496
15497 ;;
15498 esac
15499 fi
15500 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15501 if test -n "$OBJCOPY_FOR_TARGET"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15503 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15504 else
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15507 fi
15508
15509
15510 fi
15511 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15512
15513
15514 if test -n "$OBJCOPY_FOR_TARGET"; then
15515 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15516 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15517 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15518 fi
15519
15520 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15521 for ncn_progname in objcopy; do
15522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15523 set dummy ${ncn_progname}; ac_word=$2
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15525 $as_echo_n "checking for $ac_word... " >&6; }
15526 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 if test -n "$OBJCOPY_FOR_TARGET"; then
15530 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15531 else
15532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15533 for as_dir in $PATH
15534 do
15535 IFS=$as_save_IFS
15536 test -z "$as_dir" && as_dir=.
15537 for ac_exec_ext in '' $ac_executable_extensions; do
15538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15539 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15541 break 2
15542 fi
15543 done
15544 done
15545 IFS=$as_save_IFS
15546
15547 fi
15548 fi
15549 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15550 if test -n "$OBJCOPY_FOR_TARGET"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15552 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15553 else
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555 $as_echo "no" >&6; }
15556 fi
15557
15558
15559 done
15560 fi
15561
15562 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15563 for ncn_progname in objcopy; do
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15566 if test -x $with_build_time_tools/${ncn_progname}; then
15567 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15569 $as_echo "yes" >&6; }
15570 break
15571 else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15574 fi
15575 done
15576 fi
15577
15578 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15579 for ncn_progname in objcopy; do
15580 if test -n "$ncn_target_tool_prefix"; then
15581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15584 $as_echo_n "checking for $ac_word... " >&6; }
15585 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 if test -n "$OBJCOPY_FOR_TARGET"; then
15589 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15590 else
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15593 do
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15600 break 2
15601 fi
15602 done
15603 done
15604 IFS=$as_save_IFS
15605
15606 fi
15607 fi
15608 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15609 if test -n "$OBJCOPY_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15611 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15615 fi
15616
15617
15618 fi
15619 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 if test -n "$OBJCOPY_FOR_TARGET"; then
15628 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15629 else
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15632 do
15633 IFS=$as_save_IFS
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15639 break 2
15640 fi
15641 done
15642 done
15643 IFS=$as_save_IFS
15644
15645 fi
15646 fi
15647 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15648 if test -n "$OBJCOPY_FOR_TARGET"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15650 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15651 else
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15654 fi
15655
15656
15657 fi
15658 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15659 done
15660 fi
15661
15662 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15663 set dummy objcopy
15664 if test $build = $target ; then
15665 OBJCOPY_FOR_TARGET="$2"
15666 else
15667 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15668 fi
15669 else
15670 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15671 fi
15672
15673 else
15674 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15675 fi
15676
15677
15678
15679
15680 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15681 if test -n "$with_build_time_tools"; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15683 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15684 if test -x $with_build_time_tools/objdump; then
15685 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15686 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15688 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15689 else
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15692 fi
15693 elif test $build != $host && test $have_gcc_for_target = yes; then
15694 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15695 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15696 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15697 fi
15698 fi
15699 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15700 # Extract the first word of "objdump", so it can be a program name with args.
15701 set dummy objdump; ac_word=$2
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15703 $as_echo_n "checking for $ac_word... " >&6; }
15704 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 case $OBJDUMP_FOR_TARGET in
15708 [\\/]* | ?:[\\/]*)
15709 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15710 ;;
15711 *)
15712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15713 for as_dir in $gcc_cv_tool_dirs
15714 do
15715 IFS=$as_save_IFS
15716 test -z "$as_dir" && as_dir=.
15717 for ac_exec_ext in '' $ac_executable_extensions; do
15718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15719 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15721 break 2
15722 fi
15723 done
15724 done
15725 IFS=$as_save_IFS
15726
15727 ;;
15728 esac
15729 fi
15730 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15731 if test -n "$OBJDUMP_FOR_TARGET"; then
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15733 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15734 else
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737 fi
15738
15739
15740 fi
15741 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15742
15743
15744 if test -n "$OBJDUMP_FOR_TARGET"; then
15745 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15746 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15747 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15748 fi
15749
15750 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15751 for ncn_progname in objdump; do
15752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15753 set dummy ${ncn_progname}; ac_word=$2
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15755 $as_echo_n "checking for $ac_word... " >&6; }
15756 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 if test -n "$OBJDUMP_FOR_TARGET"; then
15760 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15761 else
15762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15763 for as_dir in $PATH
15764 do
15765 IFS=$as_save_IFS
15766 test -z "$as_dir" && as_dir=.
15767 for ac_exec_ext in '' $ac_executable_extensions; do
15768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15769 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15771 break 2
15772 fi
15773 done
15774 done
15775 IFS=$as_save_IFS
15776
15777 fi
15778 fi
15779 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15780 if test -n "$OBJDUMP_FOR_TARGET"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15782 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15783 else
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 $as_echo "no" >&6; }
15786 fi
15787
15788
15789 done
15790 fi
15791
15792 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15793 for ncn_progname in objdump; do
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15796 if test -x $with_build_time_tools/${ncn_progname}; then
15797 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15799 $as_echo "yes" >&6; }
15800 break
15801 else
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15804 fi
15805 done
15806 fi
15807
15808 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15809 for ncn_progname in objdump; do
15810 if test -n "$ncn_target_tool_prefix"; then
15811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15814 $as_echo_n "checking for $ac_word... " >&6; }
15815 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 if test -n "$OBJDUMP_FOR_TARGET"; then
15819 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15823 do
15824 IFS=$as_save_IFS
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15830 break 2
15831 fi
15832 done
15833 done
15834 IFS=$as_save_IFS
15835
15836 fi
15837 fi
15838 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15839 if test -n "$OBJDUMP_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15841 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15845 fi
15846
15847
15848 fi
15849 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 if test -n "$OBJDUMP_FOR_TARGET"; then
15858 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15859 else
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15862 do
15863 IFS=$as_save_IFS
15864 test -z "$as_dir" && as_dir=.
15865 for ac_exec_ext in '' $ac_executable_extensions; do
15866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15869 break 2
15870 fi
15871 done
15872 done
15873 IFS=$as_save_IFS
15874
15875 fi
15876 fi
15877 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15878 if test -n "$OBJDUMP_FOR_TARGET"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15880 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15881 else
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886
15887 fi
15888 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15889 done
15890 fi
15891
15892 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15893 set dummy objdump
15894 if test $build = $target ; then
15895 OBJDUMP_FOR_TARGET="$2"
15896 else
15897 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15898 fi
15899 else
15900 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15901 fi
15902
15903 else
15904 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15905 fi
15906
15907
15908
15909
15910 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15911 if test -n "$with_build_time_tools"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15913 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15914 if test -x $with_build_time_tools/otool; then
15915 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15916 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15918 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15919 else
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921 $as_echo "no" >&6; }
15922 fi
15923 elif test $build != $host && test $have_gcc_for_target = yes; then
15924 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15925 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15926 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15927 fi
15928 fi
15929 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15930 # Extract the first word of "otool", so it can be a program name with args.
15931 set dummy otool; ac_word=$2
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933 $as_echo_n "checking for $ac_word... " >&6; }
15934 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936 else
15937 case $OTOOL_FOR_TARGET in
15938 [\\/]* | ?:[\\/]*)
15939 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15940 ;;
15941 *)
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943 for as_dir in $gcc_cv_tool_dirs
15944 do
15945 IFS=$as_save_IFS
15946 test -z "$as_dir" && as_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15949 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15951 break 2
15952 fi
15953 done
15954 done
15955 IFS=$as_save_IFS
15956
15957 ;;
15958 esac
15959 fi
15960 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15961 if test -n "$OTOOL_FOR_TARGET"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15963 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967 fi
15968
15969
15970 fi
15971 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15972
15973
15974 if test -n "$OTOOL_FOR_TARGET"; then
15975 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15976 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15977 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15978 fi
15979
15980 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15981 for ncn_progname in otool; do
15982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15983 set dummy ${ncn_progname}; ac_word=$2
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15985 $as_echo_n "checking for $ac_word... " >&6; }
15986 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 if test -n "$OTOOL_FOR_TARGET"; then
15990 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15991 else
15992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15993 for as_dir in $PATH
15994 do
15995 IFS=$as_save_IFS
15996 test -z "$as_dir" && as_dir=.
15997 for ac_exec_ext in '' $ac_executable_extensions; do
15998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15999 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16001 break 2
16002 fi
16003 done
16004 done
16005 IFS=$as_save_IFS
16006
16007 fi
16008 fi
16009 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16010 if test -n "$OTOOL_FOR_TARGET"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16012 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017
16018
16019 done
16020 fi
16021
16022 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16023 for ncn_progname in otool; do
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16026 if test -x $with_build_time_tools/${ncn_progname}; then
16027 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16029 $as_echo "yes" >&6; }
16030 break
16031 else
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033 $as_echo "no" >&6; }
16034 fi
16035 done
16036 fi
16037
16038 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16039 for ncn_progname in otool; do
16040 if test -n "$ncn_target_tool_prefix"; then
16041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16044 $as_echo_n "checking for $ac_word... " >&6; }
16045 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 if test -n "$OTOOL_FOR_TARGET"; then
16049 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16050 else
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16053 do
16054 IFS=$as_save_IFS
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 break 2
16061 fi
16062 done
16063 done
16064 IFS=$as_save_IFS
16065
16066 fi
16067 fi
16068 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16069 if test -n "$OTOOL_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16071 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16075 fi
16076
16077
16078 fi
16079 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083 $as_echo_n "checking for $ac_word... " >&6; }
16084 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 if test -n "$OTOOL_FOR_TARGET"; then
16088 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16089 else
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16092 do
16093 IFS=$as_save_IFS
16094 test -z "$as_dir" && as_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16099 break 2
16100 fi
16101 done
16102 done
16103 IFS=$as_save_IFS
16104
16105 fi
16106 fi
16107 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16108 if test -n "$OTOOL_FOR_TARGET"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16110 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16111 else
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114 fi
16115
16116
16117 fi
16118 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16119 done
16120 fi
16121
16122 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16123 set dummy otool
16124 if test $build = $target ; then
16125 OTOOL_FOR_TARGET="$2"
16126 else
16127 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16128 fi
16129 else
16130 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16131 fi
16132
16133 else
16134 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16135 fi
16136
16137
16138
16139
16140 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16141 if test -n "$with_build_time_tools"; then
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16143 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16144 if test -x $with_build_time_tools/ranlib; then
16145 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16146 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16148 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16149 else
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152 fi
16153 elif test $build != $host && test $have_gcc_for_target = yes; then
16154 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16155 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16156 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16157 fi
16158 fi
16159 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16160 # Extract the first word of "ranlib", so it can be a program name with args.
16161 set dummy ranlib; ac_word=$2
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16163 $as_echo_n "checking for $ac_word... " >&6; }
16164 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 case $RANLIB_FOR_TARGET in
16168 [\\/]* | ?:[\\/]*)
16169 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16170 ;;
16171 *)
16172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16173 for as_dir in $gcc_cv_tool_dirs
16174 do
16175 IFS=$as_save_IFS
16176 test -z "$as_dir" && as_dir=.
16177 for ac_exec_ext in '' $ac_executable_extensions; do
16178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16179 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16181 break 2
16182 fi
16183 done
16184 done
16185 IFS=$as_save_IFS
16186
16187 ;;
16188 esac
16189 fi
16190 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16191 if test -n "$RANLIB_FOR_TARGET"; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16193 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16194 else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16197 fi
16198
16199
16200 fi
16201 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16202
16203
16204 if test -n "$RANLIB_FOR_TARGET"; then
16205 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16206 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16207 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16208 fi
16209
16210 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16211 for ncn_progname in ranlib; do
16212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16213 set dummy ${ncn_progname}; ac_word=$2
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16215 $as_echo_n "checking for $ac_word... " >&6; }
16216 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16217 $as_echo_n "(cached) " >&6
16218 else
16219 if test -n "$RANLIB_FOR_TARGET"; then
16220 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16221 else
16222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16223 for as_dir in $PATH
16224 do
16225 IFS=$as_save_IFS
16226 test -z "$as_dir" && as_dir=.
16227 for ac_exec_ext in '' $ac_executable_extensions; do
16228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16229 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16231 break 2
16232 fi
16233 done
16234 done
16235 IFS=$as_save_IFS
16236
16237 fi
16238 fi
16239 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16240 if test -n "$RANLIB_FOR_TARGET"; then
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16242 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16243 else
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245 $as_echo "no" >&6; }
16246 fi
16247
16248
16249 done
16250 fi
16251
16252 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16253 for ncn_progname in ranlib; do
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16255 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16256 if test -x $with_build_time_tools/${ncn_progname}; then
16257 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259 $as_echo "yes" >&6; }
16260 break
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16264 fi
16265 done
16266 fi
16267
16268 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16269 for ncn_progname in ranlib; do
16270 if test -n "$ncn_target_tool_prefix"; then
16271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274 $as_echo_n "checking for $ac_word... " >&6; }
16275 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 if test -n "$RANLIB_FOR_TARGET"; then
16279 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16280 else
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16283 do
16284 IFS=$as_save_IFS
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16290 break 2
16291 fi
16292 done
16293 done
16294 IFS=$as_save_IFS
16295
16296 fi
16297 fi
16298 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16299 if test -n "$RANLIB_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16301 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16302 else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16305 fi
16306
16307
16308 fi
16309 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 if test -n "$RANLIB_FOR_TARGET"; then
16318 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323 IFS=$as_save_IFS
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16329 break 2
16330 fi
16331 done
16332 done
16333 IFS=$as_save_IFS
16334
16335 fi
16336 fi
16337 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16338 if test -n "$RANLIB_FOR_TARGET"; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16340 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16341 else
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344 fi
16345
16346
16347 fi
16348 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16349 done
16350 fi
16351
16352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16353 set dummy ranlib
16354 if test $build = $target ; then
16355 RANLIB_FOR_TARGET="$2"
16356 else
16357 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16358 fi
16359 else
16360 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16361 fi
16362
16363 else
16364 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16365 fi
16366
16367
16368
16369
16370 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16371 if test -n "$with_build_time_tools"; then
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16373 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16374 if test -x $with_build_time_tools/readelf; then
16375 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16376 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16378 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16379 else
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16381 $as_echo "no" >&6; }
16382 fi
16383 elif test $build != $host && test $have_gcc_for_target = yes; then
16384 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16385 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16386 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16387 fi
16388 fi
16389 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16390 # Extract the first word of "readelf", so it can be a program name with args.
16391 set dummy readelf; ac_word=$2
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16393 $as_echo_n "checking for $ac_word... " >&6; }
16394 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 case $READELF_FOR_TARGET in
16398 [\\/]* | ?:[\\/]*)
16399 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16400 ;;
16401 *)
16402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16403 for as_dir in $gcc_cv_tool_dirs
16404 do
16405 IFS=$as_save_IFS
16406 test -z "$as_dir" && as_dir=.
16407 for ac_exec_ext in '' $ac_executable_extensions; do
16408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16409 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16411 break 2
16412 fi
16413 done
16414 done
16415 IFS=$as_save_IFS
16416
16417 ;;
16418 esac
16419 fi
16420 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16421 if test -n "$READELF_FOR_TARGET"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16423 $as_echo "$READELF_FOR_TARGET" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 fi
16428
16429
16430 fi
16431 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16432
16433
16434 if test -n "$READELF_FOR_TARGET"; then
16435 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16436 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16437 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16438 fi
16439
16440 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16441 for ncn_progname in readelf; do
16442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16443 set dummy ${ncn_progname}; ac_word=$2
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445 $as_echo_n "checking for $ac_word... " >&6; }
16446 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16447 $as_echo_n "(cached) " >&6
16448 else
16449 if test -n "$READELF_FOR_TARGET"; then
16450 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16451 else
16452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16453 for as_dir in $PATH
16454 do
16455 IFS=$as_save_IFS
16456 test -z "$as_dir" && as_dir=.
16457 for ac_exec_ext in '' $ac_executable_extensions; do
16458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16459 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16461 break 2
16462 fi
16463 done
16464 done
16465 IFS=$as_save_IFS
16466
16467 fi
16468 fi
16469 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16470 if test -n "$READELF_FOR_TARGET"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16472 $as_echo "$READELF_FOR_TARGET" >&6; }
16473 else
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 $as_echo "no" >&6; }
16476 fi
16477
16478
16479 done
16480 fi
16481
16482 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16483 for ncn_progname in readelf; do
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16485 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16486 if test -x $with_build_time_tools/${ncn_progname}; then
16487 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16489 $as_echo "yes" >&6; }
16490 break
16491 else
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16494 fi
16495 done
16496 fi
16497
16498 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16499 for ncn_progname in readelf; do
16500 if test -n "$ncn_target_tool_prefix"; then
16501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 if test -n "$READELF_FOR_TARGET"; then
16509 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16510 else
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16513 do
16514 IFS=$as_save_IFS
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520 break 2
16521 fi
16522 done
16523 done
16524 IFS=$as_save_IFS
16525
16526 fi
16527 fi
16528 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16529 if test -n "$READELF_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16531 $as_echo "$READELF_FOR_TARGET" >&6; }
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 fi
16536
16537
16538 fi
16539 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 if test -n "$READELF_FOR_TARGET"; then
16548 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16549 else
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16552 do
16553 IFS=$as_save_IFS
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16559 break 2
16560 fi
16561 done
16562 done
16563 IFS=$as_save_IFS
16564
16565 fi
16566 fi
16567 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16568 if test -n "$READELF_FOR_TARGET"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16570 $as_echo "$READELF_FOR_TARGET" >&6; }
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 fi
16575
16576
16577 fi
16578 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16579 done
16580 fi
16581
16582 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16583 set dummy readelf
16584 if test $build = $target ; then
16585 READELF_FOR_TARGET="$2"
16586 else
16587 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16588 fi
16589 else
16590 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16591 fi
16592
16593 else
16594 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16595 fi
16596
16597
16598
16599
16600 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16601 if test -n "$with_build_time_tools"; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16603 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16604 if test -x $with_build_time_tools/strip; then
16605 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16606 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16608 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16609 else
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16612 fi
16613 elif test $build != $host && test $have_gcc_for_target = yes; then
16614 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16615 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16616 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16617 fi
16618 fi
16619 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16620 # Extract the first word of "strip", so it can be a program name with args.
16621 set dummy strip; ac_word=$2
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16623 $as_echo_n "checking for $ac_word... " >&6; }
16624 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 case $STRIP_FOR_TARGET in
16628 [\\/]* | ?:[\\/]*)
16629 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16630 ;;
16631 *)
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633 for as_dir in $gcc_cv_tool_dirs
16634 do
16635 IFS=$as_save_IFS
16636 test -z "$as_dir" && as_dir=.
16637 for ac_exec_ext in '' $ac_executable_extensions; do
16638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16639 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16641 break 2
16642 fi
16643 done
16644 done
16645 IFS=$as_save_IFS
16646
16647 ;;
16648 esac
16649 fi
16650 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16651 if test -n "$STRIP_FOR_TARGET"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16653 $as_echo "$STRIP_FOR_TARGET" >&6; }
16654 else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 $as_echo "no" >&6; }
16657 fi
16658
16659
16660 fi
16661 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16662
16663
16664 if test -n "$STRIP_FOR_TARGET"; then
16665 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16666 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16667 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16668 fi
16669
16670 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16671 for ncn_progname in strip; do
16672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16673 set dummy ${ncn_progname}; ac_word=$2
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675 $as_echo_n "checking for $ac_word... " >&6; }
16676 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16677 $as_echo_n "(cached) " >&6
16678 else
16679 if test -n "$STRIP_FOR_TARGET"; then
16680 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16681 else
16682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16683 for as_dir in $PATH
16684 do
16685 IFS=$as_save_IFS
16686 test -z "$as_dir" && as_dir=.
16687 for ac_exec_ext in '' $ac_executable_extensions; do
16688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16689 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16691 break 2
16692 fi
16693 done
16694 done
16695 IFS=$as_save_IFS
16696
16697 fi
16698 fi
16699 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16700 if test -n "$STRIP_FOR_TARGET"; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16702 $as_echo "$STRIP_FOR_TARGET" >&6; }
16703 else
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16706 fi
16707
16708
16709 done
16710 fi
16711
16712 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16713 for ncn_progname in strip; do
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16715 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16716 if test -x $with_build_time_tools/${ncn_progname}; then
16717 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16719 $as_echo "yes" >&6; }
16720 break
16721 else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 $as_echo "no" >&6; }
16724 fi
16725 done
16726 fi
16727
16728 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16729 for ncn_progname in strip; do
16730 if test -n "$ncn_target_tool_prefix"; then
16731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if test -n "$STRIP_FOR_TARGET"; then
16739 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16743 do
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16751 fi
16752 done
16753 done
16754 IFS=$as_save_IFS
16755
16756 fi
16757 fi
16758 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16759 if test -n "$STRIP_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16761 $as_echo "$STRIP_FOR_TARGET" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767
16768 fi
16769 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 if test -n "$STRIP_FOR_TARGET"; then
16778 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16779 else
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16782 do
16783 IFS=$as_save_IFS
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16789 break 2
16790 fi
16791 done
16792 done
16793 IFS=$as_save_IFS
16794
16795 fi
16796 fi
16797 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16798 if test -n "$STRIP_FOR_TARGET"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16800 $as_echo "$STRIP_FOR_TARGET" >&6; }
16801 else
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16803 $as_echo "no" >&6; }
16804 fi
16805
16806
16807 fi
16808 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16809 done
16810 fi
16811
16812 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16813 set dummy strip
16814 if test $build = $target ; then
16815 STRIP_FOR_TARGET="$2"
16816 else
16817 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16818 fi
16819 else
16820 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16821 fi
16822
16823 else
16824 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16825 fi
16826
16827
16828
16829
16830 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16831 if test -n "$with_build_time_tools"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16833 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16834 if test -x $with_build_time_tools/windres; then
16835 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16836 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16838 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16839 else
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16842 fi
16843 elif test $build != $host && test $have_gcc_for_target = yes; then
16844 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16845 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16846 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16847 fi
16848 fi
16849 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16850 # Extract the first word of "windres", so it can be a program name with args.
16851 set dummy windres; ac_word=$2
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16853 $as_echo_n "checking for $ac_word... " >&6; }
16854 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 case $WINDRES_FOR_TARGET in
16858 [\\/]* | ?:[\\/]*)
16859 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16860 ;;
16861 *)
16862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16863 for as_dir in $gcc_cv_tool_dirs
16864 do
16865 IFS=$as_save_IFS
16866 test -z "$as_dir" && as_dir=.
16867 for ac_exec_ext in '' $ac_executable_extensions; do
16868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16869 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16871 break 2
16872 fi
16873 done
16874 done
16875 IFS=$as_save_IFS
16876
16877 ;;
16878 esac
16879 fi
16880 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16881 if test -n "$WINDRES_FOR_TARGET"; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16883 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16884 else
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887 fi
16888
16889
16890 fi
16891 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16892
16893
16894 if test -n "$WINDRES_FOR_TARGET"; then
16895 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16896 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16897 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16898 fi
16899
16900 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16901 for ncn_progname in windres; do
16902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16903 set dummy ${ncn_progname}; ac_word=$2
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16905 $as_echo_n "checking for $ac_word... " >&6; }
16906 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 if test -n "$WINDRES_FOR_TARGET"; then
16910 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16911 else
16912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16913 for as_dir in $PATH
16914 do
16915 IFS=$as_save_IFS
16916 test -z "$as_dir" && as_dir=.
16917 for ac_exec_ext in '' $ac_executable_extensions; do
16918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16919 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16921 break 2
16922 fi
16923 done
16924 done
16925 IFS=$as_save_IFS
16926
16927 fi
16928 fi
16929 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16930 if test -n "$WINDRES_FOR_TARGET"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16932 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16933 else
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16936 fi
16937
16938
16939 done
16940 fi
16941
16942 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16943 for ncn_progname in windres; do
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16946 if test -x $with_build_time_tools/${ncn_progname}; then
16947 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16949 $as_echo "yes" >&6; }
16950 break
16951 else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16954 fi
16955 done
16956 fi
16957
16958 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16959 for ncn_progname in windres; do
16960 if test -n "$ncn_target_tool_prefix"; then
16961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16964 $as_echo_n "checking for $ac_word... " >&6; }
16965 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 if test -n "$WINDRES_FOR_TARGET"; then
16969 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16970 else
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16973 do
16974 IFS=$as_save_IFS
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 break 2
16981 fi
16982 done
16983 done
16984 IFS=$as_save_IFS
16985
16986 fi
16987 fi
16988 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16989 if test -n "$WINDRES_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16991 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16995 fi
16996
16997
16998 fi
16999 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 if test -n "$WINDRES_FOR_TARGET"; then
17008 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17009 else
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17012 do
17013 IFS=$as_save_IFS
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019 break 2
17020 fi
17021 done
17022 done
17023 IFS=$as_save_IFS
17024
17025 fi
17026 fi
17027 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17028 if test -n "$WINDRES_FOR_TARGET"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17030 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17031 else
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034 fi
17035
17036
17037 fi
17038 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17039 done
17040 fi
17041
17042 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17043 set dummy windres
17044 if test $build = $target ; then
17045 WINDRES_FOR_TARGET="$2"
17046 else
17047 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17048 fi
17049 else
17050 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17051 fi
17052
17053 else
17054 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17055 fi
17056
17057
17058
17059
17060 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17061 if test -n "$with_build_time_tools"; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17063 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17064 if test -x $with_build_time_tools/windmc; then
17065 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17066 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17068 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17069 else
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17072 fi
17073 elif test $build != $host && test $have_gcc_for_target = yes; then
17074 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17075 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17076 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17077 fi
17078 fi
17079 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17080 # Extract the first word of "windmc", so it can be a program name with args.
17081 set dummy windmc; ac_word=$2
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17083 $as_echo_n "checking for $ac_word... " >&6; }
17084 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17085 $as_echo_n "(cached) " >&6
17086 else
17087 case $WINDMC_FOR_TARGET in
17088 [\\/]* | ?:[\\/]*)
17089 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17090 ;;
17091 *)
17092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $gcc_cv_tool_dirs
17094 do
17095 IFS=$as_save_IFS
17096 test -z "$as_dir" && as_dir=.
17097 for ac_exec_ext in '' $ac_executable_extensions; do
17098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17099 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17101 break 2
17102 fi
17103 done
17104 done
17105 IFS=$as_save_IFS
17106
17107 ;;
17108 esac
17109 fi
17110 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17111 if test -n "$WINDMC_FOR_TARGET"; then
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17113 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17114 else
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 $as_echo "no" >&6; }
17117 fi
17118
17119
17120 fi
17121 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17122
17123
17124 if test -n "$WINDMC_FOR_TARGET"; then
17125 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17126 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17127 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17128 fi
17129
17130 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17131 for ncn_progname in windmc; do
17132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17133 set dummy ${ncn_progname}; ac_word=$2
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17135 $as_echo_n "checking for $ac_word... " >&6; }
17136 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17137 $as_echo_n "(cached) " >&6
17138 else
17139 if test -n "$WINDMC_FOR_TARGET"; then
17140 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17141 else
17142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143 for as_dir in $PATH
17144 do
17145 IFS=$as_save_IFS
17146 test -z "$as_dir" && as_dir=.
17147 for ac_exec_ext in '' $ac_executable_extensions; do
17148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17149 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17151 break 2
17152 fi
17153 done
17154 done
17155 IFS=$as_save_IFS
17156
17157 fi
17158 fi
17159 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17160 if test -n "$WINDMC_FOR_TARGET"; then
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17162 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17163 else
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17166 fi
17167
17168
17169 done
17170 fi
17171
17172 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17173 for ncn_progname in windmc; do
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17175 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17176 if test -x $with_build_time_tools/${ncn_progname}; then
17177 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17179 $as_echo "yes" >&6; }
17180 break
17181 else
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17184 fi
17185 done
17186 fi
17187
17188 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17189 for ncn_progname in windmc; do
17190 if test -n "$ncn_target_tool_prefix"; then
17191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17194 $as_echo_n "checking for $ac_word... " >&6; }
17195 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17198 if test -n "$WINDMC_FOR_TARGET"; then
17199 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17200 else
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17203 do
17204 IFS=$as_save_IFS
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17210 break 2
17211 fi
17212 done
17213 done
17214 IFS=$as_save_IFS
17215
17216 fi
17217 fi
17218 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17219 if test -n "$WINDMC_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17221 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17222 else
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225 fi
17226
17227
17228 fi
17229 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17233 $as_echo_n "checking for $ac_word... " >&6; }
17234 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 if test -n "$WINDMC_FOR_TARGET"; then
17238 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17239 else
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17242 do
17243 IFS=$as_save_IFS
17244 test -z "$as_dir" && as_dir=.
17245 for ac_exec_ext in '' $ac_executable_extensions; do
17246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17249 break 2
17250 fi
17251 done
17252 done
17253 IFS=$as_save_IFS
17254
17255 fi
17256 fi
17257 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17258 if test -n "$WINDMC_FOR_TARGET"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17260 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17261 else
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264 fi
17265
17266
17267 fi
17268 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17269 done
17270 fi
17271
17272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17273 set dummy windmc
17274 if test $build = $target ; then
17275 WINDMC_FOR_TARGET="$2"
17276 else
17277 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17278 fi
17279 else
17280 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17281 fi
17282
17283 else
17284 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17285 fi
17286
17287
17288 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17289
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17291 $as_echo_n "checking where to find the target ar... " >&6; }
17292 if test "x${build}" != "x${host}" ; then
17293 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17294 # We already found the complete path
17295 ac_dir=`dirname $AR_FOR_TARGET`
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17297 $as_echo "pre-installed in $ac_dir" >&6; }
17298 else
17299 # Canadian cross, just use what we found
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17301 $as_echo "pre-installed" >&6; }
17302 fi
17303 else
17304 ok=yes
17305 case " ${configdirs} " in
17306 *" binutils "*) ;;
17307 *) ok=no ;;
17308 esac
17309
17310 if test $ok = yes; then
17311 # An in-tree tool is available and we can use it
17312 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17314 $as_echo "just compiled" >&6; }
17315 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17316 # We already found the complete path
17317 ac_dir=`dirname $AR_FOR_TARGET`
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17319 $as_echo "pre-installed in $ac_dir" >&6; }
17320 elif test "x$target" = "x$host"; then
17321 # We can use an host tool
17322 AR_FOR_TARGET='$(AR)'
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17324 $as_echo "host tool" >&6; }
17325 else
17326 # We need a cross tool
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17328 $as_echo "pre-installed" >&6; }
17329 fi
17330 fi
17331
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17333 $as_echo_n "checking where to find the target as... " >&6; }
17334 if test "x${build}" != "x${host}" ; then
17335 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17336 # We already found the complete path
17337 ac_dir=`dirname $AS_FOR_TARGET`
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17339 $as_echo "pre-installed in $ac_dir" >&6; }
17340 else
17341 # Canadian cross, just use what we found
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17343 $as_echo "pre-installed" >&6; }
17344 fi
17345 else
17346 ok=yes
17347 case " ${configdirs} " in
17348 *" gas "*) ;;
17349 *) ok=no ;;
17350 esac
17351
17352 if test $ok = yes; then
17353 # An in-tree tool is available and we can use it
17354 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17356 $as_echo "just compiled" >&6; }
17357 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17358 # We already found the complete path
17359 ac_dir=`dirname $AS_FOR_TARGET`
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17361 $as_echo "pre-installed in $ac_dir" >&6; }
17362 elif test "x$target" = "x$host"; then
17363 # We can use an host tool
17364 AS_FOR_TARGET='$(AS)'
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17366 $as_echo "host tool" >&6; }
17367 else
17368 # We need a cross tool
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17371 fi
17372 fi
17373
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17375 $as_echo_n "checking where to find the target cc... " >&6; }
17376 if test "x${build}" != "x${host}" ; then
17377 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17378 # We already found the complete path
17379 ac_dir=`dirname $CC_FOR_TARGET`
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17381 $as_echo "pre-installed in $ac_dir" >&6; }
17382 else
17383 # Canadian cross, just use what we found
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17385 $as_echo "pre-installed" >&6; }
17386 fi
17387 else
17388 ok=yes
17389 case " ${configdirs} " in
17390 *" gcc "*) ;;
17391 *) ok=no ;;
17392 esac
17393
17394 if test $ok = yes; then
17395 # An in-tree tool is available and we can use it
17396 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17398 $as_echo "just compiled" >&6; }
17399 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17400 # We already found the complete path
17401 ac_dir=`dirname $CC_FOR_TARGET`
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17403 $as_echo "pre-installed in $ac_dir" >&6; }
17404 elif test "x$target" = "x$host"; then
17405 # We can use an host tool
17406 CC_FOR_TARGET='$(CC)'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17408 $as_echo "host tool" >&6; }
17409 else
17410 # We need a cross tool
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17412 $as_echo "pre-installed" >&6; }
17413 fi
17414 fi
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17417 $as_echo_n "checking where to find the target c++... " >&6; }
17418 if test "x${build}" != "x${host}" ; then
17419 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17420 # We already found the complete path
17421 ac_dir=`dirname $CXX_FOR_TARGET`
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17423 $as_echo "pre-installed in $ac_dir" >&6; }
17424 else
17425 # Canadian cross, just use what we found
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17427 $as_echo "pre-installed" >&6; }
17428 fi
17429 else
17430 ok=yes
17431 case " ${configdirs} " in
17432 *" gcc "*) ;;
17433 *) ok=no ;;
17434 esac
17435 case ,${enable_languages}, in
17436 *,c++,*) ;;
17437 *) ok=no ;;
17438 esac
17439 if test $ok = yes; then
17440 # An in-tree tool is available and we can use it
17441 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'
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17443 $as_echo "just compiled" >&6; }
17444 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17445 # We already found the complete path
17446 ac_dir=`dirname $CXX_FOR_TARGET`
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17448 $as_echo "pre-installed in $ac_dir" >&6; }
17449 elif test "x$target" = "x$host"; then
17450 # We can use an host tool
17451 CXX_FOR_TARGET='$(CXX)'
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17453 $as_echo "host tool" >&6; }
17454 else
17455 # We need a cross tool
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17457 $as_echo "pre-installed" >&6; }
17458 fi
17459 fi
17460
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17462 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17463 if test "x${build}" != "x${host}" ; then
17464 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17465 # We already found the complete path
17466 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17468 $as_echo "pre-installed in $ac_dir" >&6; }
17469 else
17470 # Canadian cross, just use what we found
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17472 $as_echo "pre-installed" >&6; }
17473 fi
17474 else
17475 ok=yes
17476 case " ${configdirs} " in
17477 *" gcc "*) ;;
17478 *) ok=no ;;
17479 esac
17480 case ,${enable_languages}, in
17481 *,c++,*) ;;
17482 *) ok=no ;;
17483 esac
17484 if test $ok = yes; then
17485 # An in-tree tool is available and we can use it
17486 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'
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17488 $as_echo "just compiled" >&6; }
17489 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17490 # We already found the complete path
17491 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17493 $as_echo "pre-installed in $ac_dir" >&6; }
17494 elif test "x$target" = "x$host"; then
17495 # We can use an host tool
17496 RAW_CXX_FOR_TARGET='$(CXX)'
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17498 $as_echo "host tool" >&6; }
17499 else
17500 # We need a cross tool
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17502 $as_echo "pre-installed" >&6; }
17503 fi
17504 fi
17505
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17507 $as_echo_n "checking where to find the target dlltool... " >&6; }
17508 if test "x${build}" != "x${host}" ; then
17509 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17510 # We already found the complete path
17511 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17513 $as_echo "pre-installed in $ac_dir" >&6; }
17514 else
17515 # Canadian cross, just use what we found
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17517 $as_echo "pre-installed" >&6; }
17518 fi
17519 else
17520 ok=yes
17521 case " ${configdirs} " in
17522 *" binutils "*) ;;
17523 *) ok=no ;;
17524 esac
17525
17526 if test $ok = yes; then
17527 # An in-tree tool is available and we can use it
17528 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17530 $as_echo "just compiled" >&6; }
17531 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17532 # We already found the complete path
17533 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17535 $as_echo "pre-installed in $ac_dir" >&6; }
17536 elif test "x$target" = "x$host"; then
17537 # We can use an host tool
17538 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17540 $as_echo "host tool" >&6; }
17541 else
17542 # We need a cross tool
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17544 $as_echo "pre-installed" >&6; }
17545 fi
17546 fi
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17549 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17550 if test "x${build}" != "x${host}" ; then
17551 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17552 # We already found the complete path
17553 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17555 $as_echo "pre-installed in $ac_dir" >&6; }
17556 else
17557 # Canadian cross, just use what we found
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17559 $as_echo "pre-installed" >&6; }
17560 fi
17561 else
17562 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17563 # We already found the complete path
17564 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17566 $as_echo "pre-installed in $ac_dir" >&6; }
17567 elif test "x$target" = "x$host"; then
17568 # We can use an host tool
17569 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17571 $as_echo "host tool" >&6; }
17572 else
17573 # We need a cross tool
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17575 $as_echo "pre-installed" >&6; }
17576 fi
17577 fi
17578
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17580 $as_echo_n "checking where to find the target gcc... " >&6; }
17581 if test "x${build}" != "x${host}" ; then
17582 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17583 # We already found the complete path
17584 ac_dir=`dirname $GCC_FOR_TARGET`
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17586 $as_echo "pre-installed in $ac_dir" >&6; }
17587 else
17588 # Canadian cross, just use what we found
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17590 $as_echo "pre-installed" >&6; }
17591 fi
17592 else
17593 ok=yes
17594 case " ${configdirs} " in
17595 *" gcc "*) ;;
17596 *) ok=no ;;
17597 esac
17598
17599 if test $ok = yes; then
17600 # An in-tree tool is available and we can use it
17601 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17603 $as_echo "just compiled" >&6; }
17604 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $GCC_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17608 $as_echo "pre-installed in $ac_dir" >&6; }
17609 elif test "x$target" = "x$host"; then
17610 # We can use an host tool
17611 GCC_FOR_TARGET='$()'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17613 $as_echo "host tool" >&6; }
17614 else
17615 # We need a cross tool
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17617 $as_echo "pre-installed" >&6; }
17618 fi
17619 fi
17620
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17622 $as_echo_n "checking where to find the target gfortran... " >&6; }
17623 if test "x${build}" != "x${host}" ; then
17624 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17625 # We already found the complete path
17626 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17628 $as_echo "pre-installed in $ac_dir" >&6; }
17629 else
17630 # Canadian cross, just use what we found
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17632 $as_echo "pre-installed" >&6; }
17633 fi
17634 else
17635 ok=yes
17636 case " ${configdirs} " in
17637 *" gcc "*) ;;
17638 *) ok=no ;;
17639 esac
17640 case ,${enable_languages}, in
17641 *,fortran,*) ;;
17642 *) ok=no ;;
17643 esac
17644 if test $ok = yes; then
17645 # An in-tree tool is available and we can use it
17646 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17648 $as_echo "just compiled" >&6; }
17649 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17650 # We already found the complete path
17651 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17653 $as_echo "pre-installed in $ac_dir" >&6; }
17654 elif test "x$target" = "x$host"; then
17655 # We can use an host tool
17656 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17658 $as_echo "host tool" >&6; }
17659 else
17660 # We need a cross tool
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17662 $as_echo "pre-installed" >&6; }
17663 fi
17664 fi
17665
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17667 $as_echo_n "checking where to find the target gccgo... " >&6; }
17668 if test "x${build}" != "x${host}" ; then
17669 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17670 # We already found the complete path
17671 ac_dir=`dirname $GOC_FOR_TARGET`
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17673 $as_echo "pre-installed in $ac_dir" >&6; }
17674 else
17675 # Canadian cross, just use what we found
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17677 $as_echo "pre-installed" >&6; }
17678 fi
17679 else
17680 ok=yes
17681 case " ${configdirs} " in
17682 *" gcc "*) ;;
17683 *) ok=no ;;
17684 esac
17685 case ,${enable_languages}, in
17686 *,go,*) ;;
17687 *) ok=no ;;
17688 esac
17689 if test $ok = yes; then
17690 # An in-tree tool is available and we can use it
17691 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17693 $as_echo "just compiled" >&6; }
17694 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17695 # We already found the complete path
17696 ac_dir=`dirname $GOC_FOR_TARGET`
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17698 $as_echo "pre-installed in $ac_dir" >&6; }
17699 elif test "x$target" = "x$host"; then
17700 # We can use an host tool
17701 GOC_FOR_TARGET='$(GOC)'
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17703 $as_echo "host tool" >&6; }
17704 else
17705 # We need a cross tool
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17707 $as_echo "pre-installed" >&6; }
17708 fi
17709 fi
17710
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17712 $as_echo_n "checking where to find the target gdc... " >&6; }
17713 if test "x${build}" != "x${host}" ; then
17714 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17715 # We already found the complete path
17716 ac_dir=`dirname $GDC_FOR_TARGET`
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17718 $as_echo "pre-installed in $ac_dir" >&6; }
17719 else
17720 # Canadian cross, just use what we found
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17722 $as_echo "pre-installed" >&6; }
17723 fi
17724 else
17725 ok=yes
17726 case " ${configdirs} " in
17727 *" gcc "*) ;;
17728 *) ok=no ;;
17729 esac
17730 case ,${enable_languages}, in
17731 *,d,*) ;;
17732 *) ok=no ;;
17733 esac
17734 if test $ok = yes; then
17735 # An in-tree tool is available and we can use it
17736 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17738 $as_echo "just compiled" >&6; }
17739 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17740 # We already found the complete path
17741 ac_dir=`dirname $GDC_FOR_TARGET`
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17743 $as_echo "pre-installed in $ac_dir" >&6; }
17744 elif test "x$target" = "x$host"; then
17745 # We can use an host tool
17746 GDC_FOR_TARGET='$(GDC)'
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17748 $as_echo "host tool" >&6; }
17749 else
17750 # We need a cross tool
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17752 $as_echo "pre-installed" >&6; }
17753 fi
17754 fi
17755
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17757 $as_echo_n "checking where to find the target ld... " >&6; }
17758 if test "x${build}" != "x${host}" ; then
17759 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17760 # We already found the complete path
17761 ac_dir=`dirname $LD_FOR_TARGET`
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17763 $as_echo "pre-installed in $ac_dir" >&6; }
17764 else
17765 # Canadian cross, just use what we found
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17767 $as_echo "pre-installed" >&6; }
17768 fi
17769 else
17770 ok=yes
17771 case " ${configdirs} " in
17772 *" ld "*) ;;
17773 *) ok=no ;;
17774 esac
17775
17776 if test $ok = yes; then
17777 # An in-tree tool is available and we can use it
17778 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17780 $as_echo "just compiled" >&6; }
17781 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17782 # We already found the complete path
17783 ac_dir=`dirname $LD_FOR_TARGET`
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17785 $as_echo "pre-installed in $ac_dir" >&6; }
17786 elif test "x$target" = "x$host"; then
17787 # We can use an host tool
17788 LD_FOR_TARGET='$(LD)'
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17790 $as_echo "host tool" >&6; }
17791 else
17792 # We need a cross tool
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17794 $as_echo "pre-installed" >&6; }
17795 fi
17796 fi
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17799 $as_echo_n "checking where to find the target lipo... " >&6; }
17800 if test "x${build}" != "x${host}" ; then
17801 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17802 # We already found the complete path
17803 ac_dir=`dirname $LIPO_FOR_TARGET`
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17805 $as_echo "pre-installed in $ac_dir" >&6; }
17806 else
17807 # Canadian cross, just use what we found
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17809 $as_echo "pre-installed" >&6; }
17810 fi
17811 else
17812 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17813 # We already found the complete path
17814 ac_dir=`dirname $LIPO_FOR_TARGET`
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17816 $as_echo "pre-installed in $ac_dir" >&6; }
17817 elif test "x$target" = "x$host"; then
17818 # We can use an host tool
17819 LIPO_FOR_TARGET='$(LIPO)'
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17821 $as_echo "host tool" >&6; }
17822 else
17823 # We need a cross tool
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17826 fi
17827 fi
17828
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17830 $as_echo_n "checking where to find the target nm... " >&6; }
17831 if test "x${build}" != "x${host}" ; then
17832 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17833 # We already found the complete path
17834 ac_dir=`dirname $NM_FOR_TARGET`
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17836 $as_echo "pre-installed in $ac_dir" >&6; }
17837 else
17838 # Canadian cross, just use what we found
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17840 $as_echo "pre-installed" >&6; }
17841 fi
17842 else
17843 ok=yes
17844 case " ${configdirs} " in
17845 *" binutils "*) ;;
17846 *) ok=no ;;
17847 esac
17848
17849 if test $ok = yes; then
17850 # An in-tree tool is available and we can use it
17851 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17853 $as_echo "just compiled" >&6; }
17854 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17855 # We already found the complete path
17856 ac_dir=`dirname $NM_FOR_TARGET`
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17858 $as_echo "pre-installed in $ac_dir" >&6; }
17859 elif test "x$target" = "x$host"; then
17860 # We can use an host tool
17861 NM_FOR_TARGET='$(NM)'
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17863 $as_echo "host tool" >&6; }
17864 else
17865 # We need a cross tool
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17868 fi
17869 fi
17870
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17872 $as_echo_n "checking where to find the target objcopy... " >&6; }
17873 if test "x${build}" != "x${host}" ; then
17874 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17875 # We already found the complete path
17876 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17878 $as_echo "pre-installed in $ac_dir" >&6; }
17879 else
17880 # Canadian cross, just use what we found
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17882 $as_echo "pre-installed" >&6; }
17883 fi
17884 else
17885 ok=yes
17886 case " ${configdirs} " in
17887 *" binutils "*) ;;
17888 *) ok=no ;;
17889 esac
17890
17891 if test $ok = yes; then
17892 # An in-tree tool is available and we can use it
17893 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17895 $as_echo "just compiled" >&6; }
17896 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17897 # We already found the complete path
17898 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17900 $as_echo "pre-installed in $ac_dir" >&6; }
17901 elif test "x$target" = "x$host"; then
17902 # We can use an host tool
17903 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17905 $as_echo "host tool" >&6; }
17906 else
17907 # We need a cross tool
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17910 fi
17911 fi
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17914 $as_echo_n "checking where to find the target objdump... " >&6; }
17915 if test "x${build}" != "x${host}" ; then
17916 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17920 $as_echo "pre-installed in $ac_dir" >&6; }
17921 else
17922 # Canadian cross, just use what we found
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17924 $as_echo "pre-installed" >&6; }
17925 fi
17926 else
17927 ok=yes
17928 case " ${configdirs} " in
17929 *" binutils "*) ;;
17930 *) ok=no ;;
17931 esac
17932
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937 $as_echo "just compiled" >&6; }
17938 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942 $as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947 $as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951 $as_echo "pre-installed" >&6; }
17952 fi
17953 fi
17954
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17956 $as_echo_n "checking where to find the target otool... " >&6; }
17957 if test "x${build}" != "x${host}" ; then
17958 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $OTOOL_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962 $as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17967 fi
17968 else
17969 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17970 # We already found the complete path
17971 ac_dir=`dirname $OTOOL_FOR_TARGET`
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17973 $as_echo "pre-installed in $ac_dir" >&6; }
17974 elif test "x$target" = "x$host"; then
17975 # We can use an host tool
17976 OTOOL_FOR_TARGET='$(OTOOL)'
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17978 $as_echo "host tool" >&6; }
17979 else
17980 # We need a cross tool
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982 $as_echo "pre-installed" >&6; }
17983 fi
17984 fi
17985
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17987 $as_echo_n "checking where to find the target ranlib... " >&6; }
17988 if test "x${build}" != "x${host}" ; then
17989 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17990 # We already found the complete path
17991 ac_dir=`dirname $RANLIB_FOR_TARGET`
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17993 $as_echo "pre-installed in $ac_dir" >&6; }
17994 else
17995 # Canadian cross, just use what we found
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17997 $as_echo "pre-installed" >&6; }
17998 fi
17999 else
18000 ok=yes
18001 case " ${configdirs} " in
18002 *" binutils "*) ;;
18003 *) ok=no ;;
18004 esac
18005
18006 if test $ok = yes; then
18007 # An in-tree tool is available and we can use it
18008 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18010 $as_echo "just compiled" >&6; }
18011 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18012 # We already found the complete path
18013 ac_dir=`dirname $RANLIB_FOR_TARGET`
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18015 $as_echo "pre-installed in $ac_dir" >&6; }
18016 elif test "x$target" = "x$host"; then
18017 # We can use an host tool
18018 RANLIB_FOR_TARGET='$(RANLIB)'
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18020 $as_echo "host tool" >&6; }
18021 else
18022 # We need a cross tool
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18024 $as_echo "pre-installed" >&6; }
18025 fi
18026 fi
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18029 $as_echo_n "checking where to find the target readelf... " >&6; }
18030 if test "x${build}" != "x${host}" ; then
18031 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18032 # We already found the complete path
18033 ac_dir=`dirname $READELF_FOR_TARGET`
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18035 $as_echo "pre-installed in $ac_dir" >&6; }
18036 else
18037 # Canadian cross, just use what we found
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18039 $as_echo "pre-installed" >&6; }
18040 fi
18041 else
18042 ok=yes
18043 case " ${configdirs} " in
18044 *" binutils "*) ;;
18045 *) ok=no ;;
18046 esac
18047
18048 if test $ok = yes; then
18049 # An in-tree tool is available and we can use it
18050 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18052 $as_echo "just compiled" >&6; }
18053 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18054 # We already found the complete path
18055 ac_dir=`dirname $READELF_FOR_TARGET`
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18057 $as_echo "pre-installed in $ac_dir" >&6; }
18058 elif test "x$target" = "x$host"; then
18059 # We can use an host tool
18060 READELF_FOR_TARGET='$(READELF)'
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18062 $as_echo "host tool" >&6; }
18063 else
18064 # We need a cross tool
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18066 $as_echo "pre-installed" >&6; }
18067 fi
18068 fi
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18071 $as_echo_n "checking where to find the target strip... " >&6; }
18072 if test "x${build}" != "x${host}" ; then
18073 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18074 # We already found the complete path
18075 ac_dir=`dirname $STRIP_FOR_TARGET`
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18077 $as_echo "pre-installed in $ac_dir" >&6; }
18078 else
18079 # Canadian cross, just use what we found
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18081 $as_echo "pre-installed" >&6; }
18082 fi
18083 else
18084 ok=yes
18085 case " ${configdirs} " in
18086 *" binutils "*) ;;
18087 *) ok=no ;;
18088 esac
18089
18090 if test $ok = yes; then
18091 # An in-tree tool is available and we can use it
18092 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18094 $as_echo "just compiled" >&6; }
18095 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18096 # We already found the complete path
18097 ac_dir=`dirname $STRIP_FOR_TARGET`
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18099 $as_echo "pre-installed in $ac_dir" >&6; }
18100 elif test "x$target" = "x$host"; then
18101 # We can use an host tool
18102 STRIP_FOR_TARGET='$(STRIP)'
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18104 $as_echo "host tool" >&6; }
18105 else
18106 # We need a cross tool
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18108 $as_echo "pre-installed" >&6; }
18109 fi
18110 fi
18111
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18113 $as_echo_n "checking where to find the target windres... " >&6; }
18114 if test "x${build}" != "x${host}" ; then
18115 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18116 # We already found the complete path
18117 ac_dir=`dirname $WINDRES_FOR_TARGET`
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18119 $as_echo "pre-installed in $ac_dir" >&6; }
18120 else
18121 # Canadian cross, just use what we found
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18123 $as_echo "pre-installed" >&6; }
18124 fi
18125 else
18126 ok=yes
18127 case " ${configdirs} " in
18128 *" binutils "*) ;;
18129 *) ok=no ;;
18130 esac
18131
18132 if test $ok = yes; then
18133 # An in-tree tool is available and we can use it
18134 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18136 $as_echo "just compiled" >&6; }
18137 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18138 # We already found the complete path
18139 ac_dir=`dirname $WINDRES_FOR_TARGET`
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18141 $as_echo "pre-installed in $ac_dir" >&6; }
18142 elif test "x$target" = "x$host"; then
18143 # We can use an host tool
18144 WINDRES_FOR_TARGET='$(WINDRES)'
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18146 $as_echo "host tool" >&6; }
18147 else
18148 # We need a cross tool
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18150 $as_echo "pre-installed" >&6; }
18151 fi
18152 fi
18153
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18155 $as_echo_n "checking where to find the target windmc... " >&6; }
18156 if test "x${build}" != "x${host}" ; then
18157 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18158 # We already found the complete path
18159 ac_dir=`dirname $WINDMC_FOR_TARGET`
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18161 $as_echo "pre-installed in $ac_dir" >&6; }
18162 else
18163 # Canadian cross, just use what we found
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18165 $as_echo "pre-installed" >&6; }
18166 fi
18167 else
18168 ok=yes
18169 case " ${configdirs} " in
18170 *" binutils "*) ;;
18171 *) ok=no ;;
18172 esac
18173
18174 if test $ok = yes; then
18175 # An in-tree tool is available and we can use it
18176 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18178 $as_echo "just compiled" >&6; }
18179 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18180 # We already found the complete path
18181 ac_dir=`dirname $WINDMC_FOR_TARGET`
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18183 $as_echo "pre-installed in $ac_dir" >&6; }
18184 elif test "x$target" = "x$host"; then
18185 # We can use an host tool
18186 WINDMC_FOR_TARGET='$(WINDMC)'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18188 $as_echo "host tool" >&6; }
18189 else
18190 # We need a cross tool
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18192 $as_echo "pre-installed" >&6; }
18193 fi
18194 fi
18195
18196
18197
18198
18199
18200 # Certain tools may need extra flags.
18201 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18202 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18203 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18204
18205 # When building target libraries, except in a Canadian cross, we use
18206 # the same toolchain as the compiler we just built.
18207 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18208 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18209 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18210 if test $host = $build; then
18211 case " $configdirs " in
18212 *" gcc "*)
18213 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18214 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18215 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18216 ;;
18217 esac
18218 fi
18219
18220
18221
18222
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18225 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18226 # Check whether --enable-maintainer-mode was given.
18227 if test "${enable_maintainer_mode+set}" = set; then :
18228 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18229 else
18230 USE_MAINTAINER_MODE=no
18231 fi
18232
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18234 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18235
18236
18237 if test "$USE_MAINTAINER_MODE" = yes; then
18238 MAINTAINER_MODE_TRUE=
18239 MAINTAINER_MODE_FALSE='#'
18240 else
18241 MAINTAINER_MODE_TRUE='#'
18242 MAINTAINER_MODE_FALSE=
18243 fi
18244 MAINT=$MAINTAINER_MODE_TRUE
18245
18246 # ---------------------
18247 # GCC bootstrap support
18248 # ---------------------
18249
18250 # Stage specific cflags for build.
18251 stage1_cflags="-g"
18252 case $build in
18253 vax-*-*)
18254 case ${GCC} in
18255 yes) stage1_cflags="-g -Wa,-J" ;;
18256 *) stage1_cflags="-g -J" ;;
18257 esac ;;
18258 esac
18259
18260
18261
18262 # Enable --enable-checking in stage1 of the compiler.
18263 # Check whether --enable-stage1-checking was given.
18264 if test "${enable_stage1_checking+set}" = set; then :
18265 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18266 else
18267 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18268 # For --disable-checking or implicit --enable-checking=release, avoid
18269 # setting --enable-checking=gc in the default stage1 checking for LTO
18270 # bootstraps. See PR62077.
18271 case $BUILD_CONFIG in
18272 *lto*)
18273 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18274 *)
18275 stage1_checking=--enable-checking=yes,types;;
18276 esac
18277 if test "x$enable_checking" = x && \
18278 test -d ${srcdir}/gcc && \
18279 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18280 stage1_checking=--enable-checking=yes,types,extra
18281 fi
18282 else
18283 stage1_checking=--enable-checking=$enable_checking,types
18284 fi
18285 fi
18286
18287
18288
18289 # Enable -Werror in bootstrap stage2 and later.
18290 # Check whether --enable-werror was given.
18291 if test "${enable_werror+set}" = set; then :
18292 enableval=$enable_werror;
18293 case ${enable_werror} in
18294 yes) stage2_werror_flag="--enable-werror-always" ;;
18295 *) stage2_werror_flag="" ;;
18296 esac
18297
18298 else
18299
18300 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18301 case $BUILD_CONFIG in
18302 bootstrap-debug)
18303 stage2_werror_flag="--enable-werror-always" ;;
18304 "")
18305 stage2_werror_flag="--enable-werror-always" ;;
18306 esac
18307 fi
18308
18309 fi
18310
18311
18312
18313
18314 # Specify what files to not compare during bootstrap.
18315
18316 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18317 case "$target" in
18318 hppa*64*-*-hpux*) ;;
18319 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18320 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18321 esac
18322
18323
18324 ac_config_files="$ac_config_files Makefile"
18325
18326 cat >confcache <<\_ACEOF
18327 # This file is a shell script that caches the results of configure
18328 # tests run on this system so they can be shared between configure
18329 # scripts and configure runs, see configure's option --config-cache.
18330 # It is not useful on other systems. If it contains results you don't
18331 # want to keep, you may remove or edit it.
18332 #
18333 # config.status only pays attention to the cache file if you give it
18334 # the --recheck option to rerun configure.
18335 #
18336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18338 # following values.
18339
18340 _ACEOF
18341
18342 # The following way of writing the cache mishandles newlines in values,
18343 # but we know of no workaround that is simple, portable, and efficient.
18344 # So, we kill variables containing newlines.
18345 # Ultrix sh set writes to stderr and can't be redirected directly,
18346 # and sets the high bit in the cache file unless we assign to the vars.
18347 (
18348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18349 eval ac_val=\$$ac_var
18350 case $ac_val in #(
18351 *${as_nl}*)
18352 case $ac_var in #(
18353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18354 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18355 esac
18356 case $ac_var in #(
18357 _ | IFS | as_nl) ;; #(
18358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18359 *) { eval $ac_var=; unset $ac_var;} ;;
18360 esac ;;
18361 esac
18362 done
18363
18364 (set) 2>&1 |
18365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18366 *${as_nl}ac_space=\ *)
18367 # `set' does not quote correctly, so add quotes: double-quote
18368 # substitution turns \\\\ into \\, and sed turns \\ into \.
18369 sed -n \
18370 "s/'/'\\\\''/g;
18371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18372 ;; #(
18373 *)
18374 # `set' quotes correctly as required by POSIX, so do not add quotes.
18375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18376 ;;
18377 esac |
18378 sort
18379 ) |
18380 sed '
18381 /^ac_cv_env_/b end
18382 t clear
18383 :clear
18384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18385 t end
18386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18387 :end' >>confcache
18388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18389 if test -w "$cache_file"; then
18390 if test "x$cache_file" != "x/dev/null"; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18392 $as_echo "$as_me: updating cache $cache_file" >&6;}
18393 if test ! -f "$cache_file" || test -h "$cache_file"; then
18394 cat confcache >"$cache_file"
18395 else
18396 case $cache_file in #(
18397 */* | ?:*)
18398 mv -f confcache "$cache_file"$$ &&
18399 mv -f "$cache_file"$$ "$cache_file" ;; #(
18400 *)
18401 mv -f confcache "$cache_file" ;;
18402 esac
18403 fi
18404 fi
18405 else
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18407 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18408 fi
18409 fi
18410 rm -f confcache
18411
18412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18413 # Let make expand exec_prefix.
18414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18415
18416 # Transform confdefs.h into DEFS.
18417 # Protect against shell expansion while executing Makefile rules.
18418 # Protect against Makefile macro expansion.
18419 #
18420 # If the first sed substitution is executed (which looks for macros that
18421 # take arguments), then branch to the quote section. Otherwise,
18422 # look for a macro that doesn't take arguments.
18423 ac_script='
18424 :mline
18425 /\\$/{
18426 N
18427 s,\\\n,,
18428 b mline
18429 }
18430 t clear
18431 :clear
18432 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18433 t quote
18434 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18435 t quote
18436 b any
18437 :quote
18438 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18439 s/\[/\\&/g
18440 s/\]/\\&/g
18441 s/\$/$$/g
18442 H
18443 :any
18444 ${
18445 g
18446 s/^\n//
18447 s/\n/ /g
18448 p
18449 }
18450 '
18451 DEFS=`sed -n "$ac_script" confdefs.h`
18452
18453
18454 ac_libobjs=
18455 ac_ltlibobjs=
18456 U=
18457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18458 # 1. Remove the extension, and $U if already installed.
18459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18462 # will be set to the directory where LIBOBJS objects are built.
18463 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18464 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18465 done
18466 LIBOBJS=$ac_libobjs
18467
18468 LTLIBOBJS=$ac_ltlibobjs
18469
18470
18471
18472 : "${CONFIG_STATUS=./config.status}"
18473 ac_write_fail=0
18474 ac_clean_files_save=$ac_clean_files
18475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18478 as_write_fail=0
18479 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18480 #! $SHELL
18481 # Generated by $as_me.
18482 # Run this file to recreate the current configuration.
18483 # Compiler output produced by configure, useful for debugging
18484 # configure, is in config.log if it exists.
18485
18486 debug=false
18487 ac_cs_recheck=false
18488 ac_cs_silent=false
18489
18490 SHELL=\${CONFIG_SHELL-$SHELL}
18491 export SHELL
18492 _ASEOF
18493 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18494 ## -------------------- ##
18495 ## M4sh Initialization. ##
18496 ## -------------------- ##
18497
18498 # Be more Bourne compatible
18499 DUALCASE=1; export DUALCASE # for MKS sh
18500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18501 emulate sh
18502 NULLCMD=:
18503 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18504 # is contrary to our usage. Disable this feature.
18505 alias -g '${1+"$@"}'='"$@"'
18506 setopt NO_GLOB_SUBST
18507 else
18508 case `(set -o) 2>/dev/null` in #(
18509 *posix*) :
18510 set -o posix ;; #(
18511 *) :
18512 ;;
18513 esac
18514 fi
18515
18516
18517 as_nl='
18518 '
18519 export as_nl
18520 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18521 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18524 # Prefer a ksh shell builtin over an external printf program on Solaris,
18525 # but without wasting forks for bash or zsh.
18526 if test -z "$BASH_VERSION$ZSH_VERSION" \
18527 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18528 as_echo='print -r --'
18529 as_echo_n='print -rn --'
18530 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18531 as_echo='printf %s\n'
18532 as_echo_n='printf %s'
18533 else
18534 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18535 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18536 as_echo_n='/usr/ucb/echo -n'
18537 else
18538 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18539 as_echo_n_body='eval
18540 arg=$1;
18541 case $arg in #(
18542 *"$as_nl"*)
18543 expr "X$arg" : "X\\(.*\\)$as_nl";
18544 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18545 esac;
18546 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18547 '
18548 export as_echo_n_body
18549 as_echo_n='sh -c $as_echo_n_body as_echo'
18550 fi
18551 export as_echo_body
18552 as_echo='sh -c $as_echo_body as_echo'
18553 fi
18554
18555 # The user is always right.
18556 if test "${PATH_SEPARATOR+set}" != set; then
18557 PATH_SEPARATOR=:
18558 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18559 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18560 PATH_SEPARATOR=';'
18561 }
18562 fi
18563
18564
18565 # IFS
18566 # We need space, tab and new line, in precisely that order. Quoting is
18567 # there to prevent editors from complaining about space-tab.
18568 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18569 # splitting by setting IFS to empty value.)
18570 IFS=" "" $as_nl"
18571
18572 # Find who we are. Look in the path if we contain no directory separator.
18573 as_myself=
18574 case $0 in #((
18575 *[\\/]* ) as_myself=$0 ;;
18576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18577 for as_dir in $PATH
18578 do
18579 IFS=$as_save_IFS
18580 test -z "$as_dir" && as_dir=.
18581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18582 done
18583 IFS=$as_save_IFS
18584
18585 ;;
18586 esac
18587 # We did not find ourselves, most probably we were run as `sh COMMAND'
18588 # in which case we are not to be found in the path.
18589 if test "x$as_myself" = x; then
18590 as_myself=$0
18591 fi
18592 if test ! -f "$as_myself"; then
18593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18594 exit 1
18595 fi
18596
18597 # Unset variables that we do not need and which cause bugs (e.g. in
18598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18599 # suppresses any "Segmentation fault" message there. '((' could
18600 # trigger a bug in pdksh 5.2.14.
18601 for as_var in BASH_ENV ENV MAIL MAILPATH
18602 do eval test x\${$as_var+set} = xset \
18603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18604 done
18605 PS1='$ '
18606 PS2='> '
18607 PS4='+ '
18608
18609 # NLS nuisances.
18610 LC_ALL=C
18611 export LC_ALL
18612 LANGUAGE=C
18613 export LANGUAGE
18614
18615 # CDPATH.
18616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18617
18618
18619 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18620 # ----------------------------------------
18621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18623 # script with STATUS, using 1 if that was 0.
18624 as_fn_error ()
18625 {
18626 as_status=$1; test $as_status -eq 0 && as_status=1
18627 if test "$4"; then
18628 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18630 fi
18631 $as_echo "$as_me: error: $2" >&2
18632 as_fn_exit $as_status
18633 } # as_fn_error
18634
18635
18636 # as_fn_set_status STATUS
18637 # -----------------------
18638 # Set $? to STATUS, without forking.
18639 as_fn_set_status ()
18640 {
18641 return $1
18642 } # as_fn_set_status
18643
18644 # as_fn_exit STATUS
18645 # -----------------
18646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18647 as_fn_exit ()
18648 {
18649 set +e
18650 as_fn_set_status $1
18651 exit $1
18652 } # as_fn_exit
18653
18654 # as_fn_unset VAR
18655 # ---------------
18656 # Portably unset VAR.
18657 as_fn_unset ()
18658 {
18659 { eval $1=; unset $1;}
18660 }
18661 as_unset=as_fn_unset
18662 # as_fn_append VAR VALUE
18663 # ----------------------
18664 # Append the text in VALUE to the end of the definition contained in VAR. Take
18665 # advantage of any shell optimizations that allow amortized linear growth over
18666 # repeated appends, instead of the typical quadratic growth present in naive
18667 # implementations.
18668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18669 eval 'as_fn_append ()
18670 {
18671 eval $1+=\$2
18672 }'
18673 else
18674 as_fn_append ()
18675 {
18676 eval $1=\$$1\$2
18677 }
18678 fi # as_fn_append
18679
18680 # as_fn_arith ARG...
18681 # ------------------
18682 # Perform arithmetic evaluation on the ARGs, and store the result in the
18683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18684 # must be portable across $(()) and expr.
18685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18686 eval 'as_fn_arith ()
18687 {
18688 as_val=$(( $* ))
18689 }'
18690 else
18691 as_fn_arith ()
18692 {
18693 as_val=`expr "$@" || test $? -eq 1`
18694 }
18695 fi # as_fn_arith
18696
18697
18698 if expr a : '\(a\)' >/dev/null 2>&1 &&
18699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18700 as_expr=expr
18701 else
18702 as_expr=false
18703 fi
18704
18705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18706 as_basename=basename
18707 else
18708 as_basename=false
18709 fi
18710
18711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18712 as_dirname=dirname
18713 else
18714 as_dirname=false
18715 fi
18716
18717 as_me=`$as_basename -- "$0" ||
18718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18719 X"$0" : 'X\(//\)$' \| \
18720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18721 $as_echo X/"$0" |
18722 sed '/^.*\/\([^/][^/]*\)\/*$/{
18723 s//\1/
18724 q
18725 }
18726 /^X\/\(\/\/\)$/{
18727 s//\1/
18728 q
18729 }
18730 /^X\/\(\/\).*/{
18731 s//\1/
18732 q
18733 }
18734 s/.*/./; q'`
18735
18736 # Avoid depending upon Character Ranges.
18737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18740 as_cr_digits='0123456789'
18741 as_cr_alnum=$as_cr_Letters$as_cr_digits
18742
18743 ECHO_C= ECHO_N= ECHO_T=
18744 case `echo -n x` in #(((((
18745 -n*)
18746 case `echo 'xy\c'` in
18747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18748 xy) ECHO_C='\c';;
18749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18750 ECHO_T=' ';;
18751 esac;;
18752 *)
18753 ECHO_N='-n';;
18754 esac
18755
18756 rm -f conf$$ conf$$.exe conf$$.file
18757 if test -d conf$$.dir; then
18758 rm -f conf$$.dir/conf$$.file
18759 else
18760 rm -f conf$$.dir
18761 mkdir conf$$.dir 2>/dev/null
18762 fi
18763 if (echo >conf$$.file) 2>/dev/null; then
18764 if ln -s conf$$.file conf$$ 2>/dev/null; then
18765 as_ln_s='ln -s'
18766 # ... but there are two gotchas:
18767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18769 # In both cases, we have to default to `cp -pR'.
18770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18771 as_ln_s='cp -pR'
18772 elif ln conf$$.file conf$$ 2>/dev/null; then
18773 as_ln_s=ln
18774 else
18775 as_ln_s='cp -pR'
18776 fi
18777 else
18778 as_ln_s='cp -pR'
18779 fi
18780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18781 rmdir conf$$.dir 2>/dev/null
18782
18783
18784 # as_fn_mkdir_p
18785 # -------------
18786 # Create "$as_dir" as a directory, including parents if necessary.
18787 as_fn_mkdir_p ()
18788 {
18789
18790 case $as_dir in #(
18791 -*) as_dir=./$as_dir;;
18792 esac
18793 test -d "$as_dir" || eval $as_mkdir_p || {
18794 as_dirs=
18795 while :; do
18796 case $as_dir in #(
18797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18798 *) as_qdir=$as_dir;;
18799 esac
18800 as_dirs="'$as_qdir' $as_dirs"
18801 as_dir=`$as_dirname -- "$as_dir" ||
18802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18803 X"$as_dir" : 'X\(//\)[^/]' \| \
18804 X"$as_dir" : 'X\(//\)$' \| \
18805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18806 $as_echo X"$as_dir" |
18807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18808 s//\1/
18809 q
18810 }
18811 /^X\(\/\/\)[^/].*/{
18812 s//\1/
18813 q
18814 }
18815 /^X\(\/\/\)$/{
18816 s//\1/
18817 q
18818 }
18819 /^X\(\/\).*/{
18820 s//\1/
18821 q
18822 }
18823 s/.*/./; q'`
18824 test -d "$as_dir" && break
18825 done
18826 test -z "$as_dirs" || eval "mkdir $as_dirs"
18827 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18828
18829
18830 } # as_fn_mkdir_p
18831 if mkdir -p . 2>/dev/null; then
18832 as_mkdir_p='mkdir -p "$as_dir"'
18833 else
18834 test -d ./-p && rmdir ./-p
18835 as_mkdir_p=false
18836 fi
18837
18838
18839 # as_fn_executable_p FILE
18840 # -----------------------
18841 # Test if FILE is an executable regular file.
18842 as_fn_executable_p ()
18843 {
18844 test -f "$1" && test -x "$1"
18845 } # as_fn_executable_p
18846 as_test_x='test -x'
18847 as_executable_p=as_fn_executable_p
18848
18849 # Sed expression to map a string onto a valid CPP name.
18850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18851
18852 # Sed expression to map a string onto a valid variable name.
18853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18854
18855
18856 exec 6>&1
18857 ## ----------------------------------- ##
18858 ## Main body of $CONFIG_STATUS script. ##
18859 ## ----------------------------------- ##
18860 _ASEOF
18861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18862
18863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18864 # Save the log message, to keep $0 and so on meaningful, and to
18865 # report actual input values of CONFIG_FILES etc. instead of their
18866 # values after options handling.
18867 ac_log="
18868 This file was extended by $as_me, which was
18869 generated by GNU Autoconf 2.69. Invocation command line was
18870
18871 CONFIG_FILES = $CONFIG_FILES
18872 CONFIG_HEADERS = $CONFIG_HEADERS
18873 CONFIG_LINKS = $CONFIG_LINKS
18874 CONFIG_COMMANDS = $CONFIG_COMMANDS
18875 $ $0 $@
18876
18877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18878 "
18879
18880 _ACEOF
18881
18882 case $ac_config_files in *"
18883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18884 esac
18885
18886
18887
18888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18889 # Files that config.status was made for.
18890 config_files="$ac_config_files"
18891
18892 _ACEOF
18893
18894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18895 ac_cs_usage="\
18896 \`$as_me' instantiates files and other configuration actions
18897 from templates according to the current configuration. Unless the files
18898 and actions are specified as TAGs, all are instantiated by default.
18899
18900 Usage: $0 [OPTION]... [TAG]...
18901
18902 -h, --help print this help, then exit
18903 -V, --version print version number and configuration settings, then exit
18904 --config print configuration, then exit
18905 -q, --quiet, --silent
18906 do not print progress messages
18907 -d, --debug don't remove temporary files
18908 --recheck update $as_me by reconfiguring in the same conditions
18909 --file=FILE[:TEMPLATE]
18910 instantiate the configuration file FILE
18911
18912 Configuration files:
18913 $config_files
18914
18915 Report bugs to the package provider."
18916
18917 _ACEOF
18918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18920 ac_cs_version="\\
18921 config.status
18922 configured by $0, generated by GNU Autoconf 2.69,
18923 with options \\"\$ac_cs_config\\"
18924
18925 Copyright (C) 2012 Free Software Foundation, Inc.
18926 This config.status script is free software; the Free Software Foundation
18927 gives unlimited permission to copy, distribute and modify it."
18928
18929 ac_pwd='$ac_pwd'
18930 srcdir='$srcdir'
18931 INSTALL='$INSTALL'
18932 AWK='$AWK'
18933 test -n "\$AWK" || AWK=awk
18934 _ACEOF
18935
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 # The default lists apply if the user does not specify any file.
18938 ac_need_defaults=:
18939 while test $# != 0
18940 do
18941 case $1 in
18942 --*=?*)
18943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18945 ac_shift=:
18946 ;;
18947 --*=)
18948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18949 ac_optarg=
18950 ac_shift=:
18951 ;;
18952 *)
18953 ac_option=$1
18954 ac_optarg=$2
18955 ac_shift=shift
18956 ;;
18957 esac
18958
18959 case $ac_option in
18960 # Handling of the options.
18961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18962 ac_cs_recheck=: ;;
18963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18964 $as_echo "$ac_cs_version"; exit ;;
18965 --config | --confi | --conf | --con | --co | --c )
18966 $as_echo "$ac_cs_config"; exit ;;
18967 --debug | --debu | --deb | --de | --d | -d )
18968 debug=: ;;
18969 --file | --fil | --fi | --f )
18970 $ac_shift
18971 case $ac_optarg in
18972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18973 '') as_fn_error $? "missing file argument" ;;
18974 esac
18975 as_fn_append CONFIG_FILES " '$ac_optarg'"
18976 ac_need_defaults=false;;
18977 --he | --h | --help | --hel | -h )
18978 $as_echo "$ac_cs_usage"; exit ;;
18979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18981 ac_cs_silent=: ;;
18982
18983 # This is an error.
18984 -*) as_fn_error $? "unrecognized option: \`$1'
18985 Try \`$0 --help' for more information." ;;
18986
18987 *) as_fn_append ac_config_targets " $1"
18988 ac_need_defaults=false ;;
18989
18990 esac
18991 shift
18992 done
18993
18994 ac_configure_extra_args=
18995
18996 if $ac_cs_silent; then
18997 exec 6>/dev/null
18998 ac_configure_extra_args="$ac_configure_extra_args --silent"
18999 fi
19000
19001 _ACEOF
19002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19003 if \$ac_cs_recheck; then
19004 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19005 shift
19006 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19007 CONFIG_SHELL='$SHELL'
19008 export CONFIG_SHELL
19009 exec "\$@"
19010 fi
19011
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 exec 5>>config.log
19015 {
19016 echo
19017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19018 ## Running $as_me. ##
19019 _ASBOX
19020 $as_echo "$ac_log"
19021 } >&5
19022
19023 _ACEOF
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 #
19026 # INIT-COMMANDS
19027 #
19028 extrasub_build="$extrasub_build"
19029 extrasub_host="$extrasub_host"
19030 extrasub_target="$extrasub_target"
19031
19032 _ACEOF
19033
19034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19035
19036 # Handling of arguments.
19037 for ac_config_target in $ac_config_targets
19038 do
19039 case $ac_config_target in
19040 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19041
19042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19043 esac
19044 done
19045
19046
19047 # If the user did not use the arguments to specify the items to instantiate,
19048 # then the envvar interface is used. Set only those that are not.
19049 # We use the long form for the default assignment because of an extremely
19050 # bizarre bug on SunOS 4.1.3.
19051 if $ac_need_defaults; then
19052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19053 fi
19054
19055 # Have a temporary directory for convenience. Make it in the build tree
19056 # simply because there is no reason against having it here, and in addition,
19057 # creating and moving files from /tmp can sometimes cause problems.
19058 # Hook for its removal unless debugging.
19059 # Note that there is a small window in which the directory will not be cleaned:
19060 # after its creation but before its name has been assigned to `$tmp'.
19061 $debug ||
19062 {
19063 tmp= ac_tmp=
19064 trap 'exit_status=$?
19065 : "${ac_tmp:=$tmp}"
19066 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19067 ' 0
19068 trap 'as_fn_exit 1' 1 2 13 15
19069 }
19070 # Create a (secure) tmp directory for tmp files.
19071
19072 {
19073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19074 test -d "$tmp"
19075 } ||
19076 {
19077 tmp=./conf$$-$RANDOM
19078 (umask 077 && mkdir "$tmp")
19079 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19080 ac_tmp=$tmp
19081
19082 # Set up the scripts for CONFIG_FILES section.
19083 # No need to generate them if there are no CONFIG_FILES.
19084 # This happens for instance with `./config.status config.h'.
19085 if test -n "$CONFIG_FILES"; then
19086
19087 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19088 ac_cs_awk_getline=:
19089 ac_cs_awk_pipe_init=
19090 ac_cs_awk_read_file='
19091 while ((getline aline < (F[key])) > 0)
19092 print(aline)
19093 close(F[key])'
19094 ac_cs_awk_pipe_fini=
19095 else
19096 ac_cs_awk_getline=false
19097 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19098 ac_cs_awk_read_file='
19099 print "|#_!!_#|"
19100 print "cat " F[key] " &&"
19101 '$ac_cs_awk_pipe_init
19102 # The final `:' finishes the AND list.
19103 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19104 fi
19105 ac_cr=`echo X | tr X '\015'`
19106 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19107 # But we know of no other shell where ac_cr would be empty at this
19108 # point, so we can use a bashism as a fallback.
19109 if test "x$ac_cr" = x; then
19110 eval ac_cr=\$\'\\r\'
19111 fi
19112 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19113 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19114 ac_cs_awk_cr='\\r'
19115 else
19116 ac_cs_awk_cr=$ac_cr
19117 fi
19118
19119 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19120 _ACEOF
19121
19122 # Create commands to substitute file output variables.
19123 {
19124 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19125 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19126 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19127 echo "_ACAWK" &&
19128 echo "_ACEOF"
19129 } >conf$$files.sh &&
19130 . ./conf$$files.sh ||
19131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19132 rm -f conf$$files.sh
19133
19134 {
19135 echo "cat >conf$$subs.awk <<_ACEOF" &&
19136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19137 echo "_ACEOF"
19138 } >conf$$subs.sh ||
19139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19141 ac_delim='%!_!# '
19142 for ac_last_try in false false false false false :; do
19143 . ./conf$$subs.sh ||
19144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19145
19146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19147 if test $ac_delim_n = $ac_delim_num; then
19148 break
19149 elif $ac_last_try; then
19150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19151 else
19152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19153 fi
19154 done
19155 rm -f conf$$subs.sh
19156
19157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19159 _ACEOF
19160 sed -n '
19161 h
19162 s/^/S["/; s/!.*/"]=/
19163 p
19164 g
19165 s/^[^!]*!//
19166 :repl
19167 t repl
19168 s/'"$ac_delim"'$//
19169 t delim
19170 :nl
19171 h
19172 s/\(.\{148\}\)..*/\1/
19173 t more1
19174 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19175 p
19176 n
19177 b repl
19178 :more1
19179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19180 p
19181 g
19182 s/.\{148\}//
19183 t nl
19184 :delim
19185 h
19186 s/\(.\{148\}\)..*/\1/
19187 t more2
19188 s/["\\]/\\&/g; s/^/"/; s/$/"/
19189 p
19190 b
19191 :more2
19192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19193 p
19194 g
19195 s/.\{148\}//
19196 t delim
19197 ' <conf$$subs.awk | sed '
19198 /^[^""]/{
19199 N
19200 s/\n//
19201 }
19202 ' >>$CONFIG_STATUS || ac_write_fail=1
19203 rm -f conf$$subs.awk
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 _ACAWK
19206 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19207 for (key in S) S_is_set[key] = 1
19208 FS = "\a"
19209 \$ac_cs_awk_pipe_init
19210 }
19211 {
19212 line = $ 0
19213 nfields = split(line, field, "@")
19214 substed = 0
19215 len = length(field[1])
19216 for (i = 2; i < nfields; i++) {
19217 key = field[i]
19218 keylen = length(key)
19219 if (S_is_set[key]) {
19220 value = S[key]
19221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19222 len += length(value) + length(field[++i])
19223 substed = 1
19224 } else
19225 len += 1 + keylen
19226 }
19227 if (nfields == 3 && !substed) {
19228 key = field[2]
19229 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19230 \$ac_cs_awk_read_file
19231 next
19232 }
19233 }
19234 print line
19235 }
19236 \$ac_cs_awk_pipe_fini
19237 _ACAWK
19238 _ACEOF
19239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19241 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19242 else
19243 cat
19244 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19245 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19246 _ACEOF
19247
19248 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19249 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19250 # trailing colons and then remove the whole line if VPATH becomes empty
19251 # (actually we leave an empty line to preserve line numbers).
19252 if test "x$srcdir" = x.; then
19253 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19254 h
19255 s///
19256 s/^/:/
19257 s/[ ]*$/:/
19258 s/:\$(srcdir):/:/g
19259 s/:\${srcdir}:/:/g
19260 s/:@srcdir@:/:/g
19261 s/^:*//
19262 s/:*$//
19263 x
19264 s/\(=[ ]*\).*/\1/
19265 G
19266 s/\n//
19267 s/^[^=]*=[ ]*$//
19268 }'
19269 fi
19270
19271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19272 fi # test -n "$CONFIG_FILES"
19273
19274
19275 eval set X " :F $CONFIG_FILES "
19276 shift
19277 for ac_tag
19278 do
19279 case $ac_tag in
19280 :[FHLC]) ac_mode=$ac_tag; continue;;
19281 esac
19282 case $ac_mode$ac_tag in
19283 :[FHL]*:*);;
19284 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19285 :[FH]-) ac_tag=-:-;;
19286 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19287 esac
19288 ac_save_IFS=$IFS
19289 IFS=:
19290 set x $ac_tag
19291 IFS=$ac_save_IFS
19292 shift
19293 ac_file=$1
19294 shift
19295
19296 case $ac_mode in
19297 :L) ac_source=$1;;
19298 :[FH])
19299 ac_file_inputs=
19300 for ac_f
19301 do
19302 case $ac_f in
19303 -) ac_f="$ac_tmp/stdin";;
19304 *) # Look for the file first in the build tree, then in the source tree
19305 # (if the path is not absolute). The absolute path cannot be DOS-style,
19306 # because $ac_f cannot contain `:'.
19307 test -f "$ac_f" ||
19308 case $ac_f in
19309 [\\/$]*) false;;
19310 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19311 esac ||
19312 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19313 esac
19314 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19315 as_fn_append ac_file_inputs " '$ac_f'"
19316 done
19317
19318 # Let's still pretend it is `configure' which instantiates (i.e., don't
19319 # use $as_me), people would be surprised to read:
19320 # /* config.h. Generated by config.status. */
19321 configure_input='Generated from '`
19322 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19323 `' by configure.'
19324 if test x"$ac_file" != x-; then
19325 configure_input="$ac_file. $configure_input"
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19327 $as_echo "$as_me: creating $ac_file" >&6;}
19328 fi
19329 # Neutralize special characters interpreted by sed in replacement strings.
19330 case $configure_input in #(
19331 *\&* | *\|* | *\\* )
19332 ac_sed_conf_input=`$as_echo "$configure_input" |
19333 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19334 *) ac_sed_conf_input=$configure_input;;
19335 esac
19336
19337 case $ac_tag in
19338 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19340 esac
19341 ;;
19342 esac
19343
19344 ac_dir=`$as_dirname -- "$ac_file" ||
19345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19346 X"$ac_file" : 'X\(//\)[^/]' \| \
19347 X"$ac_file" : 'X\(//\)$' \| \
19348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19349 $as_echo X"$ac_file" |
19350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19351 s//\1/
19352 q
19353 }
19354 /^X\(\/\/\)[^/].*/{
19355 s//\1/
19356 q
19357 }
19358 /^X\(\/\/\)$/{
19359 s//\1/
19360 q
19361 }
19362 /^X\(\/\).*/{
19363 s//\1/
19364 q
19365 }
19366 s/.*/./; q'`
19367 as_dir="$ac_dir"; as_fn_mkdir_p
19368 ac_builddir=.
19369
19370 case "$ac_dir" in
19371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19372 *)
19373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19374 # A ".." for each directory in $ac_dir_suffix.
19375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19376 case $ac_top_builddir_sub in
19377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19379 esac ;;
19380 esac
19381 ac_abs_top_builddir=$ac_pwd
19382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19383 # for backward compatibility:
19384 ac_top_builddir=$ac_top_build_prefix
19385
19386 case $srcdir in
19387 .) # We are building in place.
19388 ac_srcdir=.
19389 ac_top_srcdir=$ac_top_builddir_sub
19390 ac_abs_top_srcdir=$ac_pwd ;;
19391 [\\/]* | ?:[\\/]* ) # Absolute name.
19392 ac_srcdir=$srcdir$ac_dir_suffix;
19393 ac_top_srcdir=$srcdir
19394 ac_abs_top_srcdir=$srcdir ;;
19395 *) # Relative name.
19396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19397 ac_top_srcdir=$ac_top_build_prefix$srcdir
19398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19399 esac
19400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19401
19402
19403 case $ac_mode in
19404 :F)
19405 #
19406 # CONFIG_FILE
19407 #
19408
19409 case $INSTALL in
19410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19412 esac
19413 _ACEOF
19414
19415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19416 # If the template does not know about datarootdir, expand it.
19417 # FIXME: This hack should be removed a few years after 2.60.
19418 ac_datarootdir_hack=; ac_datarootdir_seen=
19419 ac_sed_dataroot='
19420 /datarootdir/ {
19421 p
19422 q
19423 }
19424 /@datadir@/p
19425 /@docdir@/p
19426 /@infodir@/p
19427 /@localedir@/p
19428 /@mandir@/p'
19429 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19430 *datarootdir*) ac_datarootdir_seen=yes;;
19431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19433 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19434 _ACEOF
19435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19436 ac_datarootdir_hack='
19437 s&@datadir@&$datadir&g
19438 s&@docdir@&$docdir&g
19439 s&@infodir@&$infodir&g
19440 s&@localedir@&$localedir&g
19441 s&@mandir@&$mandir&g
19442 s&\\\${datarootdir}&$datarootdir&g' ;;
19443 esac
19444 _ACEOF
19445
19446 # Neutralize VPATH when `$srcdir' = `.'.
19447 # Shell code in configure.ac might set extrasub.
19448 # FIXME: do we really want to maintain this feature?
19449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19450 ac_sed_extra="$ac_vpsub
19451 $extrasub
19452 _ACEOF
19453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19454 :t
19455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19456 s|@configure_input@|$ac_sed_conf_input|;t t
19457 s&@top_builddir@&$ac_top_builddir_sub&;t t
19458 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19459 s&@srcdir@&$ac_srcdir&;t t
19460 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19461 s&@top_srcdir@&$ac_top_srcdir&;t t
19462 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19463 s&@builddir@&$ac_builddir&;t t
19464 s&@abs_builddir@&$ac_abs_builddir&;t t
19465 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19466 s&@INSTALL@&$ac_INSTALL&;t t
19467 $ac_datarootdir_hack
19468 "
19469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19470 if $ac_cs_awk_getline; then
19471 $AWK -f "$ac_tmp/subs.awk"
19472 else
19473 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19474 fi \
19475 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19476
19477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19478 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19480 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19482 which seems to be undefined. Please make sure it is defined" >&5
19483 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19484 which seems to be undefined. Please make sure it is defined" >&2;}
19485
19486 rm -f "$ac_tmp/stdin"
19487 case $ac_file in
19488 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19489 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19490 esac \
19491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19492 ;;
19493
19494
19495
19496 esac
19497
19498
19499 case $ac_file$ac_mode in
19500 "Makefile":F) sed "$extrasub_build" Makefile |
19501 sed "$extrasub_host" |
19502 sed "$extrasub_target" > mf$$
19503 mv -f mf$$ Makefile ;;
19504
19505 esac
19506 done # for ac_tag
19507
19508
19509 as_fn_exit 0
19510 _ACEOF
19511 ac_clean_files=$ac_clean_files_save
19512
19513 test $ac_write_fail = 0 ||
19514 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19515
19516
19517 # configure is writing to config.log, and then calls config.status.
19518 # config.status does its own redirection, appending to config.log.
19519 # Unfortunately, on DOS this fails, as config.log is still kept open
19520 # by configure, so config.status won't be able to write to it; its
19521 # output is simply discarded. So we exec the FD to /dev/null,
19522 # effectively closing config.log, so it can be properly (re)opened and
19523 # appended to by config.status. When coming back to configure, we
19524 # need to make the FD available again.
19525 if test "$no_create" != yes; then
19526 ac_cs_success=:
19527 ac_config_status_args=
19528 test "$silent" = yes &&
19529 ac_config_status_args="$ac_config_status_args --quiet"
19530 exec 5>/dev/null
19531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19532 exec 5>>config.log
19533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19534 # would make configure fail if this is the last instruction.
19535 $ac_cs_success || as_fn_exit 1
19536 fi
19537 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19539 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19540 fi
19541