]> gcc.gnu.org Git - gcc.git/blob - configure
Merge branch 'devel/modula-2' of git+ssh://gcc.gnu.org/git/gcc into devel/modula-2
[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 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
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 CFLAGS_FOR_BUILD
660 CC_FOR_BUILD
661 AS_FOR_BUILD
662 AR_FOR_BUILD
663 target_configdirs
664 configdirs
665 build_configdirs
666 INSTALL_GDB_TK
667 GDB_TK
668 CONFIGURE_GDB_TK
669 build_tooldir
670 tooldir
671 GCC_SHLIB_SUBDIR
672 RPATH_ENVVAR
673 target_configargs
674 host_configargs
675 build_configargs
676 BUILD_CONFIG
677 LDFLAGS_FOR_TARGET
678 CXXFLAGS_FOR_TARGET
679 CFLAGS_FOR_TARGET
680 DEBUG_PREFIX_CFLAGS_FOR_TARGET
681 SYSROOT_CFLAGS_FOR_TARGET
682 get_gcc_base_ver
683 extra_host_zlib_configure_flags
684 extra_host_libiberty_configure_flags
685 stage1_languages
686 host_shared
687 extra_linker_plugin_flags
688 extra_linker_plugin_configure_flags
689 islinc
690 isllibs
691 poststage1_ldflags
692 poststage1_libs
693 stage1_ldflags
694 stage1_libs
695 extra_isl_gmp_configure_flags
696 extra_mpc_mpfr_configure_flags
697 extra_mpc_gmp_configure_flags
698 extra_mpfr_configure_flags
699 gmpinc
700 gmplibs
701 HAVE_CXX11_FOR_BUILD
702 HAVE_CXX11
703 do_compare
704 GNATMAKE
705 GNATBIND
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 extra_liboffloadmic_configure_flags
717 target_subdir
718 host_subdir
719 build_subdir
720 build_libsubdir
721 AWK
722 SED
723 LN_S
724 LN
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 target_noncanonical
737 host_noncanonical
738 build_noncanonical
739 build_os
740 build_vendor
741 build_cpu
742 build
743 TOPLEVEL_CONFIGURE_ARGUMENTS
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 runstatedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files='serialization_dependencies
784 host_makefile_frag
785 target_makefile_frag
786 alphaieee_frag
787 ospace_frag'
788 ac_user_opts='
789 enable_option_checking
790 with_build_libsubdir
791 with_system_zlib
792 enable_as_accelerator_for
793 enable_offload_targets
794 enable_offload_defaulted
795 enable_gold
796 enable_ld
797 enable_compressed_debug_sections
798 enable_libquadmath
799 enable_libquadmath_support
800 enable_libada
801 enable_libgm2
802 enable_libssp
803 enable_libstdcxx
804 enable_liboffloadmic
805 enable_bootstrap
806 with_mpc
807 with_mpc_include
808 with_mpc_lib
809 with_mpfr_dir
810 with_mpfr
811 with_mpfr_include
812 with_mpfr_lib
813 with_gmp_dir
814 with_gmp
815 with_gmp_include
816 with_gmp_lib
817 with_stage1_libs
818 with_static_standard_libraries
819 with_stage1_ldflags
820 with_boot_libs
821 with_boot_ldflags
822 with_isl
823 with_isl_include
824 with_isl_lib
825 enable_isl_version_check
826 enable_lto
827 enable_linker_plugin_configure_flags
828 enable_linker_plugin_flags
829 enable_host_shared
830 enable_stage1_languages
831 enable_objc_gc
832 with_target_bdw_gc
833 with_target_bdw_gc_include
834 with_target_bdw_gc_lib
835 with_gcc_major_version_only
836 with_build_sysroot
837 with_debug_prefix_map
838 with_build_config
839 enable_vtable_verify
840 enable_serial_configure
841 with_build_time_tools
842 enable_maintainer_mode
843 enable_stage1_checking
844 enable_werror
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CXX
855 CXXFLAGS
856 CCC
857 build_configargs
858 host_configargs
859 target_configargs
860 AR
861 AS
862 DLLTOOL
863 DSYMUTIL
864 LD
865 LIPO
866 NM
867 RANLIB
868 STRIP
869 WINDRES
870 WINDMC
871 OBJCOPY
872 OBJDUMP
873 OTOOL
874 READELF
875 CC_FOR_TARGET
876 CXX_FOR_TARGET
877 GCC_FOR_TARGET
878 GFORTRAN_FOR_TARGET
879 GOC_FOR_TARGET
880 GDC_FOR_TARGET
881 GM2_FOR_TARGET
882 AR_FOR_TARGET
883 AS_FOR_TARGET
884 DLLTOOL_FOR_TARGET
885 DSYMUTIL_FOR_TARGET
886 LD_FOR_TARGET
887 LIPO_FOR_TARGET
888 NM_FOR_TARGET
889 OBJCOPY_FOR_TARGET
890 OBJDUMP_FOR_TARGET
891 OTOOL_FOR_TARGET
892 RANLIB_FOR_TARGET
893 READELF_FOR_TARGET
894 STRIP_FOR_TARGET
895 WINDRES_FOR_TARGET
896 WINDMC_FOR_TARGET'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 runstatedir='${localstatedir}/run'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
963 esac
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
995
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1028
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1064
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1069
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1099
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1173
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -runstatedir | --runstatedir | --runstatedi | --runstated \
1189 | --runstate | --runstat | --runsta | --runst | --runs \
1190 | --run | --ru | --r)
1191 ac_prev=runstatedir ;;
1192 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1193 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1194 | --run=* | --ru=* | --r=*)
1195 runstatedir=$ac_optarg ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241
1242 -with-* | --with-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1291
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294 ;;
1295
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 esac
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 ;;
1313
1314 esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir runstatedir
1335 do
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
1408 srcdir=$ac_confdir
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 srcdir=..
1411 fi
1412 else
1413 ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 case $srcdir in
1434 *" "*)
1435 as_fn_error $? "path to source, $srcdir, contains spaces"
1436 ;;
1437 esac
1438 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1439
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures this package to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1509
1510 cat <<\_ACEOF
1511
1512 Program names:
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525
1526 cat <<\_ACEOF
1527
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-as-accelerator-for=ARG
1533 build as offload target compiler. Specify offload
1534 host triple by ARG
1535 --enable-offload-targets=LIST
1536 enable offloading to devices from comma-separated
1537 LIST of TARGET[=DIR]. Use optional path to find
1538 offload target compiler during the build
1539 --enable-offload-defaulted
1540 If enabled, configured but not installed offload compilers and
1541 libgomp plugins are silently ignored. Useful for distribution
1542 compilers where those are in separate optional packages.
1543
1544 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1545 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1546 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1547 Enable compressed debug sections for gas, gold or ld
1548 by default
1549 --disable-libquadmath do not build libquadmath directory
1550 --disable-libquadmath-support
1551 disable libquadmath support for Fortran
1552 --enable-libada build libada directory
1553 --enable-libgm2 build libgm2 directory
1554 --enable-libssp build libssp directory
1555 --disable-libstdcxx do not build libstdc++-v3 directory
1556 --enable-liboffloadmic=ARG
1557 build liboffloadmic [ARG={no,host,target}]
1558 --enable-bootstrap enable bootstrapping [yes if native build]
1559 --disable-isl-version-check
1560 disable check for isl version
1561 --enable-lto enable link time optimization support
1562 --enable-linker-plugin-configure-flags=FLAGS
1563 additional flags for configuring linker plugins
1564 [none]
1565 --enable-linker-plugin-flags=FLAGS
1566 additional flags for configuring and building linker
1567 plugins [none]
1568 --enable-host-shared build host code as shared libraries
1569 --enable-stage1-languages[=all]
1570 choose additional languages to build during stage1.
1571 Mostly useful for compiler development
1572 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1573 Objective-C runtime
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target,build}-]configure
1576 force sequential configuration of sub-packages for
1577 the host, target or build machine, or all
1578 sub-packages
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful (and
1581 sometimes confusing) to the casual installer
1582 --enable-stage1-checking[=all]
1583 choose additional checking for stage1 of the
1584 compiler
1585 --enable-werror enable -Werror in bootstrap stage2 and later
1586
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-build-libsubdir=DIR Directory where to find libraries for build system
1591 --with-system-zlib use installed libz
1592 --with-mpc=PATH specify prefix directory for installed MPC package.
1593 Equivalent to --with-mpc-include=PATH/include plus
1594 --with-mpc-lib=PATH/lib
1595 --with-mpc-include=PATH specify directory for installed MPC include files
1596 --with-mpc-lib=PATH specify directory for the installed MPC library
1597 --with-mpfr-dir=PATH this option has been REMOVED
1598 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1599 Equivalent to --with-mpfr-include=PATH/include plus
1600 --with-mpfr-lib=PATH/lib
1601 --with-mpfr-include=PATH
1602 specify directory for installed MPFR include files
1603 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1604 --with-gmp-dir=PATH this option has been REMOVED
1605 --with-gmp=PATH specify prefix directory for the installed GMP
1606 package. Equivalent to
1607 --with-gmp-include=PATH/include plus
1608 --with-gmp-lib=PATH/lib
1609 --with-gmp-include=PATH specify directory for installed GMP include files
1610 --with-gmp-lib=PATH specify directory for the installed GMP library
1611 --with-stage1-libs=LIBS libraries for stage1
1612 --with-static-standard-libraries
1613 use -static-libstdc++ and -static-libgcc
1614 (default=auto)
1615 --with-stage1-ldflags=FLAGS
1616 linker flags for stage1
1617 --with-boot-libs=LIBS libraries for stage2 and later
1618 --with-boot-ldflags=FLAGS
1619 linker flags for stage2 and later
1620 --with-isl=PATH Specify prefix directory for the installed isl
1621 package. Equivalent to
1622 --with-isl-include=PATH/include plus
1623 --with-isl-lib=PATH/lib
1624 --with-isl-include=PATH Specify directory for installed isl include files
1625 --with-isl-lib=PATH Specify the directory for the installed isl library
1626 --with-target-bdw-gc=PATHLIST
1627 specify prefix directory for installed bdw-gc
1628 package. Equivalent to
1629 --with-target-bdw-gc-include=PATH/include plus
1630 --with-target-bdw-gc-lib=PATH/lib
1631 --with-target-bdw-gc-include=PATHLIST
1632 specify directories for installed bdw-gc include
1633 files
1634 --with-target-bdw-gc-lib=PATHLIST
1635 specify directories for installed bdw-gc library
1636 --with-gcc-major-version-only
1637 use only GCC major number in filesystem paths
1638 --with-build-sysroot=SYSROOT
1639 use sysroot as the system root during the build
1640 --with-debug-prefix-map='A=B C=D ...'
1641 map A to B, C to D ... in debug information
1642 --with-build-config='NAME NAME2...'
1643 use config/NAME.mk build configuration
1644 --with-build-time-tools=PATH
1645 use given path to find target tools during the build
1646
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1657 build_configargs
1658 additional configure arguments for build directories
1659 host_configargs
1660 additional configure arguments for host directories
1661 target_configargs
1662 additional configure arguments for target directories
1663 AR AR for the host
1664 AS AS for the host
1665 DLLTOOL DLLTOOL for the host
1666 DSYMUTIL DSYMUTIL for the host
1667 LD LD for the host
1668 LIPO LIPO for the host
1669 NM NM for the host
1670 RANLIB RANLIB for the host
1671 STRIP STRIP for the host
1672 WINDRES WINDRES for the host
1673 WINDMC WINDMC for the host
1674 OBJCOPY OBJCOPY for the host
1675 OBJDUMP OBJDUMP for the host
1676 OTOOL OTOOL for the host
1677 READELF READELF for the host
1678 CC_FOR_TARGET
1679 CC for the target
1680 CXX_FOR_TARGET
1681 CXX for the target
1682 GCC_FOR_TARGET
1683 GCC for the target
1684 GFORTRAN_FOR_TARGET
1685 GFORTRAN for the target
1686 GOC_FOR_TARGET
1687 GOC for the target
1688 GDC_FOR_TARGET
1689 GDC for the target
1690 GM2_FOR_TARGET
1691 GM2 for the target
1692 AR_FOR_TARGET
1693 AR for the target
1694 AS_FOR_TARGET
1695 AS for the target
1696 DLLTOOL_FOR_TARGET
1697 DLLTOOL for the target
1698 DSYMUTIL_FOR_TARGET
1699 DSYMUTIL for the target
1700 LD_FOR_TARGET
1701 LD for the target
1702 LIPO_FOR_TARGET
1703 LIPO for the target
1704 NM_FOR_TARGET
1705 NM for the target
1706 OBJCOPY_FOR_TARGET
1707 OBJCOPY for the target
1708 OBJDUMP_FOR_TARGET
1709 OBJDUMP for the target
1710 OTOOL_FOR_TARGET
1711 OTOOL for the target
1712 RANLIB_FOR_TARGET
1713 RANLIB for the target
1714 READELF_FOR_TARGET
1715 READELF for the target
1716 STRIP_FOR_TARGET
1717 STRIP for the target
1718 WINDRES_FOR_TARGET
1719 WINDRES for the target
1720 WINDMC_FOR_TARGET
1721 WINDMC for the target
1722
1723 Use these variables to override the choices made by `configure' or to help
1724 it to find libraries and programs with nonstandard names/locations.
1725
1726 Report bugs to the package provider.
1727 _ACEOF
1728 ac_status=$?
1729 fi
1730
1731 if test "$ac_init_help" = "recursive"; then
1732 # If there are subdirs, report their specific --help.
1733 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1734 test -d "$ac_dir" ||
1735 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1736 continue
1737 ac_builddir=.
1738
1739 case "$ac_dir" in
1740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 *)
1742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1743 # A ".." for each directory in $ac_dir_suffix.
1744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1745 case $ac_top_builddir_sub in
1746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1748 esac ;;
1749 esac
1750 ac_abs_top_builddir=$ac_pwd
1751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1752 # for backward compatibility:
1753 ac_top_builddir=$ac_top_build_prefix
1754
1755 case $srcdir in
1756 .) # We are building in place.
1757 ac_srcdir=.
1758 ac_top_srcdir=$ac_top_builddir_sub
1759 ac_abs_top_srcdir=$ac_pwd ;;
1760 [\\/]* | ?:[\\/]* ) # Absolute name.
1761 ac_srcdir=$srcdir$ac_dir_suffix;
1762 ac_top_srcdir=$srcdir
1763 ac_abs_top_srcdir=$srcdir ;;
1764 *) # Relative name.
1765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1766 ac_top_srcdir=$ac_top_build_prefix$srcdir
1767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1768 esac
1769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770
1771 cd "$ac_dir" || { ac_status=$?; continue; }
1772 # Check for guested configure.
1773 if test -f "$ac_srcdir/configure.gnu"; then
1774 echo &&
1775 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1776 elif test -f "$ac_srcdir/configure"; then
1777 echo &&
1778 $SHELL "$ac_srcdir/configure" --help=recursive
1779 else
1780 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1781 fi || ac_status=$?
1782 cd "$ac_pwd" || { ac_status=$?; break; }
1783 done
1784 fi
1785
1786 test -n "$ac_init_help" && exit $ac_status
1787 if $ac_init_version; then
1788 cat <<\_ACEOF
1789 configure
1790 generated by GNU Autoconf 2.69
1791
1792 Copyright (C) 2012 Free Software Foundation, Inc.
1793 This configure script is free software; the Free Software Foundation
1794 gives unlimited permission to copy, distribute and modify it.
1795 _ACEOF
1796 exit
1797 fi
1798
1799 ## ------------------------ ##
1800 ## Autoconf initialization. ##
1801 ## ------------------------ ##
1802
1803 # ac_fn_c_try_compile LINENO
1804 # --------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_compile
1840
1841 # ac_fn_cxx_try_compile LINENO
1842 # ----------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_cxx_try_compile
1878
1879 # ac_fn_cxx_try_link LINENO
1880 # -------------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_cxx_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_cxx_try_link
1924
1925 # ac_fn_c_try_link LINENO
1926 # -----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_link ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960 fi
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1968
1969 } # ac_fn_c_try_link
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1973
1974 It was created by $as_me, which was
1975 generated by GNU Autoconf 2.69. Invocation command line was
1976
1977 $ $0 $@
1978
1979 _ACEOF
1980 exec 5>>config.log
1981 {
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1986
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004 _ASUNAME
2005
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2014
2015 } >&5
2016
2017 cat >&5 <<_ACEOF
2018
2019
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2023
2024 _ACEOF
2025
2026
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2037 do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2074
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090 (
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118 )
2119 echo
2120
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166 ' 0
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2171
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2174
2175 $as_echo "/* confdefs.h */" > confdefs.h
2176
2177 # Predefined preprocessor variables.
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2214 esac
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218 else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221 fi
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file" \
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2234 fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2243 case $cache_file in
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2246 esac
2247 fi
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251 >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2263 set,)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,set)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,);;
2272 *)
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2281 else
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 fi;;
2291 esac
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2294 case $ac_new_val in
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2297 esac
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301 esac
2302 fi
2303 done
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 fi
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323
2324
2325
2326
2327
2328 progname=$0
2329 # if PWD already has a value, it is probably wrong.
2330 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2331
2332 # Export original configure arguments for use by sub-configures.
2333 # Quote arguments with shell meta charatcers.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS=
2335 set -- "$progname" "$@"
2336 for ac_arg
2337 do
2338 case "$ac_arg" in
2339 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2340 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2341 # if the argument is of the form -foo=baz, quote the baz part only
2342 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2343 *) ;;
2344 esac
2345 # Add the quoted argument to the list.
2346 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2347 done
2348 if test "$silent" = yes; then
2349 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2350 fi
2351 # Remove the initial space we just introduced and, as these will be
2352 # expanded by make, quote '$'.
2353 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2354
2355
2356 # Find the build, host, and target systems.
2357 ac_aux_dir=
2358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359 if test -f "$ac_dir/install-sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install-sh -c"
2362 break
2363 elif test -f "$ac_dir/install.sh"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/install.sh -c"
2366 break
2367 elif test -f "$ac_dir/shtool"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/shtool install -c"
2370 break
2371 fi
2372 done
2373 if test -z "$ac_aux_dir"; then
2374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2375 fi
2376
2377 # These three variables are undocumented and unsupported,
2378 # and are intended to be withdrawn in a future Autoconf release.
2379 # They can cause serious problems if a builder's source tree is in a directory
2380 # whose full name contains unusual characters.
2381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384
2385
2386 # Make sure we can run config.sub.
2387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2389
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2391 $as_echo_n "checking build system type... " >&6; }
2392 if ${ac_cv_build+:} false; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 ac_build_alias=$build_alias
2396 test "x$ac_build_alias" = x &&
2397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2398 test "x$ac_build_alias" = x &&
2399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2405 $as_echo "$ac_cv_build" >&6; }
2406 case $ac_cv_build in
2407 *-*-*) ;;
2408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2409 esac
2410 build=$ac_cv_build
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_build
2413 shift
2414 build_cpu=$1
2415 build_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 build_os=$*
2420 IFS=$ac_save_IFS
2421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 case ${build_alias} in
2425 "") build_noncanonical=${build} ;;
2426 *) build_noncanonical=${build_alias} ;;
2427 esac
2428
2429
2430
2431 case ${host_alias} in
2432 "") host_noncanonical=${build_noncanonical} ;;
2433 *) host_noncanonical=${host_alias} ;;
2434 esac
2435
2436
2437
2438 case ${target_alias} in
2439 "") target_noncanonical=${host_noncanonical} ;;
2440 *) target_noncanonical=${target_alias} ;;
2441 esac
2442
2443
2444
2445
2446 test "$host_noncanonical" = "$target_noncanonical" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_transform_name=s,y,y,
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2452 $as_echo_n "checking host system type... " >&6; }
2453 if ${ac_cv_host+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test "x$host_alias" = x; then
2457 ac_cv_host=$ac_cv_build
2458 else
2459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2461 fi
2462
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2465 $as_echo "$ac_cv_host" >&6; }
2466 case $ac_cv_host in
2467 *-*-*) ;;
2468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2469 esac
2470 host=$ac_cv_host
2471 ac_save_IFS=$IFS; IFS='-'
2472 set x $ac_cv_host
2473 shift
2474 host_cpu=$1
2475 host_vendor=$2
2476 shift; shift
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2479 host_os=$*
2480 IFS=$ac_save_IFS
2481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2482
2483
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2485 $as_echo_n "checking target system type... " >&6; }
2486 if ${ac_cv_target+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test "x$target_alias" = x; then
2490 ac_cv_target=$ac_cv_host
2491 else
2492 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2494 fi
2495
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2498 $as_echo "$ac_cv_target" >&6; }
2499 case $ac_cv_target in
2500 *-*-*) ;;
2501 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2502 esac
2503 target=$ac_cv_target
2504 ac_save_IFS=$IFS; IFS='-'
2505 set x $ac_cv_target
2506 shift
2507 target_cpu=$1
2508 target_vendor=$2
2509 shift; shift
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2512 target_os=$*
2513 IFS=$ac_save_IFS
2514 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2515
2516
2517 # The aliases save the names the user supplied, while $host etc.
2518 # will get canonicalized.
2519 test -n "$target_alias" &&
2520 test "$program_prefix$program_suffix$program_transform_name" = \
2521 NONENONEs,x,x, &&
2522 program_prefix=${target_alias}-
2523
2524 test "$program_prefix" != NONE &&
2525 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526 # Use a double $ so make ignores it.
2527 test "$program_suffix" != NONE &&
2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529 # Double any \ or $.
2530 # By default was `s,x,x', remove it if useless.
2531 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534
2535
2536 # Get 'install' or 'install-sh' and its variants.
2537 # Find a good install program. We prefer a C program (faster),
2538 # so one script is as good as another. But avoid the broken or
2539 # incompatible versions:
2540 # SysV /etc/install, /usr/sbin/install
2541 # SunOS /usr/etc/install
2542 # IRIX /sbin/install
2543 # AIX /bin/install
2544 # AmigaOS /C/install, which installs bootblocks on floppy discs
2545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2548 # OS/2's system install, which has a completely different semantic
2549 # ./install, which can be erroneously created by make from ./install.sh.
2550 # Reject install programs that cannot install multiple files.
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2552 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2553 if test -z "$INSTALL"; then
2554 if ${ac_cv_path_install+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 # Account for people who put trailing slashes in PATH elements.
2563 case $as_dir/ in #((
2564 ./ | .// | /[cC]/* | \
2565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2566 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2567 /usr/ucb/* ) ;;
2568 *)
2569 # OSF1 and SCO ODT 3.0 have their own names for install.
2570 # Don't use installbsd from OSF since it installs stuff as root
2571 # by default.
2572 for ac_prog in ginstall scoinst install; do
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2575 if test $ac_prog = install &&
2576 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577 # AIX install. It has an incompatible calling convention.
2578 :
2579 elif test $ac_prog = install &&
2580 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2581 # program-specific install script used by HP pwplus--don't use.
2582 :
2583 else
2584 rm -rf conftest.one conftest.two conftest.dir
2585 echo one > conftest.one
2586 echo two > conftest.two
2587 mkdir conftest.dir
2588 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2589 test -s conftest.one && test -s conftest.two &&
2590 test -s conftest.dir/conftest.one &&
2591 test -s conftest.dir/conftest.two
2592 then
2593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594 break 3
2595 fi
2596 fi
2597 fi
2598 done
2599 done
2600 ;;
2601 esac
2602
2603 done
2604 IFS=$as_save_IFS
2605
2606 rm -rf conftest.one conftest.two conftest.dir
2607
2608 fi
2609 if test "${ac_cv_path_install+set}" = set; then
2610 INSTALL=$ac_cv_path_install
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for INSTALL within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 INSTALL=$ac_install_sh
2617 fi
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620 $as_echo "$INSTALL" >&6; }
2621
2622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623 # It thinks the first close brace ends the variable substitution.
2624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2631 $as_echo_n "checking whether ln works... " >&6; }
2632 if ${acx_cv_prog_LN+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 rm -f conftestdata_t
2636 echo >conftestdata_f
2637 if ln conftestdata_f conftestdata_t 2>/dev/null
2638 then
2639 acx_cv_prog_LN=ln
2640 else
2641 acx_cv_prog_LN=no
2642 fi
2643 rm -f conftestdata_f conftestdata_t
2644
2645 fi
2646 if test $acx_cv_prog_LN = no; then
2647 LN="cp"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2649 $as_echo "no, using $LN" >&6; }
2650 else
2651 LN="$acx_cv_prog_LN"
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 fi
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2657 $as_echo_n "checking whether ln -s works... " >&6; }
2658 LN_S=$as_ln_s
2659 if test "$LN_S" = "ln -s"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661 $as_echo "yes" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2664 $as_echo "no, using $LN_S" >&6; }
2665 fi
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2669 if ${ac_cv_path_SED+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2673 for ac_i in 1 2 3 4 5 6 7; do
2674 ac_script="$ac_script$as_nl$ac_script"
2675 done
2676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2677 { ac_script=; unset ac_script;}
2678 if test -z "$SED"; then
2679 ac_path_SED_found=false
2680 # Loop through the user's path and test for each of PROGNAME-LIST
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_prog in sed gsed; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2689 as_fn_executable_p "$ac_path_SED" || continue
2690 # Check for GNU ac_path_SED and select it if it is found.
2691 # Check for GNU $ac_path_SED
2692 case `"$ac_path_SED" --version 2>&1` in
2693 *GNU*)
2694 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2695 *)
2696 ac_count=0
2697 $as_echo_n 0123456789 >"conftest.in"
2698 while :
2699 do
2700 cat "conftest.in" "conftest.in" >"conftest.tmp"
2701 mv "conftest.tmp" "conftest.in"
2702 cp "conftest.in" "conftest.nl"
2703 $as_echo '' >> "conftest.nl"
2704 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2706 as_fn_arith $ac_count + 1 && ac_count=$as_val
2707 if test $ac_count -gt ${ac_path_SED_max-0}; then
2708 # Best one so far, save it but keep looking for a better one
2709 ac_cv_path_SED="$ac_path_SED"
2710 ac_path_SED_max=$ac_count
2711 fi
2712 # 10*(2^10) chars as input seems more than enough
2713 test $ac_count -gt 10 && break
2714 done
2715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2716 esac
2717
2718 $ac_path_SED_found && break 3
2719 done
2720 done
2721 done
2722 IFS=$as_save_IFS
2723 if test -z "$ac_cv_path_SED"; then
2724 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2725 fi
2726 else
2727 ac_cv_path_SED=$SED
2728 fi
2729
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2732 $as_echo "$ac_cv_path_SED" >&6; }
2733 SED="$ac_cv_path_SED"
2734 rm -f conftest.sed
2735
2736 for ac_prog in gawk mawk nawk awk
2737 do
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_AWK+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$AWK"; then
2746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_AWK="$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 AWK=$ac_cv_prog_AWK
2766 if test -n "$AWK"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768 $as_echo "$AWK" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 test -n "$AWK" && break
2776 done
2777
2778
2779 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2780
2781 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2782 # a relative path.
2783 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2784 INSTALL="${srcpwd}/install-sh -c"
2785 fi
2786
2787 # Set srcdir to "." if that's what it is.
2788 # This is important for multilib support.
2789 pwd=`${PWDCMD-pwd}`
2790 if test "${pwd}" = "${srcpwd}" ; then
2791 srcdir=.
2792 fi
2793
2794 topsrcdir=$srcpwd
2795
2796 extra_host_args=
2797
2798 ### To add a new directory to the tree, first choose whether it is a target
2799 ### or a host dependent tool. Then put it into the appropriate list
2800 ### (library or tools, host or target), doing a dependency sort.
2801
2802 # Subdirs will be configured in the order listed in build_configdirs,
2803 # configdirs, or target_configdirs; see the serialization section below.
2804
2805 # Dependency sorting is only needed when *configuration* must be done in
2806 # a particular order. In all cases a dependency should be specified in
2807 # the Makefile, whether or not it's implicitly specified here.
2808
2809 # Double entries in build_configdirs, configdirs, or target_configdirs may
2810 # cause circular dependencies and break everything horribly.
2811
2812 # these library is used by various programs built for the build
2813 # environment
2814 #
2815 build_libs="build-libiberty build-libcpp"
2816
2817 # these tools are built for the build environment
2818 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2819
2820 # these libraries are used by various programs built for the host environment
2821 #f
2822 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2823
2824 # these tools are built for the host environment
2825 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2826 # know that we are building the simulator.
2827 # binutils, gas and ld appear in that order because it makes sense to run
2828 # "make check" in that particular order.
2829 # If --enable-gold is used, "gold" may replace "ld".
2830 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 gm2tools gotools c++tools"
2831
2832 # these libraries are built for the target environment, and are built after
2833 # the host libraries and the host tools (which may be a cross compiler)
2834 # Note that libiberty is not a target library.
2835 target_libraries="target-libgcc \
2836 target-libbacktrace \
2837 target-libgloss \
2838 target-newlib \
2839 target-libgomp \
2840 target-liboffloadmic \
2841 target-libatomic \
2842 target-libitm \
2843 target-libstdc++-v3 \
2844 target-libsanitizer \
2845 target-libvtv \
2846 target-libssp \
2847 target-libquadmath \
2848 target-libgfortran \
2849 target-libffi \
2850 target-libobjc \
2851 target-libada \
2852 target-libgm2 \
2853 target-libgo \
2854 target-libphobos \
2855 target-zlib"
2856
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2859 #
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2862 #
2863 target_tools="target-rda"
2864
2865 ################################################################################
2866
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs=`echo ${host_libs} ${host_tools}`
2873 target_configdirs=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs=`echo ${build_libs} ${build_tools}`
2875
2876
2877
2878 ################################################################################
2879
2880 srcname="gnu development package"
2881
2882 # This gets set non-empty for some net releases of packages.
2883 appdirs=""
2884
2885 # Define is_cross_compiler to save on calls to 'test'.
2886 is_cross_compiler=
2887 if test x"${host}" = x"${target}" ; then
2888 is_cross_compiler=no
2889 else
2890 is_cross_compiler=yes
2891 fi
2892
2893 # Find the build and target subdir names.
2894
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2900 # finishes. So:
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2903
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir="build-${build_noncanonical}"
2906
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval=$with_build_libsubdir; build_libsubdir="$withval"
2910 else
2911 build_libsubdir="$build_subdir"
2912 fi
2913
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = . && test -d gcc ) \
2916 || test -d $srcdir/../host-${host_noncanonical}; then
2917 host_subdir="host-${host_noncanonical}"
2918 else
2919 host_subdir=.
2920 fi
2921 # No prefix.
2922 target_subdir=${target_noncanonical}
2923
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2926 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2928 fi
2929
2930 # Skipdirs are removed silently.
2931 skipdirs=
2932 # Noconfigdirs are removed loudly.
2933 noconfigdirs=""
2934
2935 use_gnu_ld=
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x$with_gnu_ld = xno ; then
2938 use_gnu_ld=no
2939 noconfigdirs="$noconfigdirs ld gold"
2940 fi
2941
2942 use_gnu_as=
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x$with_gnu_as = xno ; then
2945 use_gnu_as=no
2946 noconfigdirs="$noconfigdirs gas"
2947 fi
2948
2949 use_included_zlib=
2950
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval=$with_system_zlib;
2954 fi
2955
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x$with_system_zlib = xyes ; then
2958 use_included_zlib=no
2959 noconfigdirs="$noconfigdirs zlib"
2960 fi
2961
2962 # some tools are so dependent upon X11 that if we're not building with X,
2963 # it's not even worth trying to configure, much less build, that tool.
2964
2965 case ${with_x} in
2966 yes | "") ;; # the default value for this tree is that X11 is available
2967 no)
2968 skipdirs="${skipdirs} tk itcl libgui"
2969 # We won't be able to build gdbtk without X.
2970 enable_gdbtk=no
2971 ;;
2972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2973 esac
2974
2975 # Some are only suitable for cross toolchains.
2976 # Remove these if host=target.
2977 cross_only="target-libgloss target-newlib target-opcodes"
2978
2979 case $is_cross_compiler in
2980 no) skipdirs="${skipdirs} ${cross_only}" ;;
2981 esac
2982
2983 # If both --with-headers and --with-libs are specified, default to
2984 # --without-newlib.
2985 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2986 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2987 if test x"${with_newlib}" = x ; then
2988 with_newlib=no
2989 fi
2990 fi
2991
2992 # Recognize --with-newlib/--without-newlib.
2993 case ${with_newlib} in
2994 no) skipdirs="${skipdirs} target-newlib" ;;
2995 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2996 esac
2997
2998 # Check whether --enable-as-accelerator-for was given.
2999 if test "${enable_as_accelerator_for+set}" = set; then :
3000 enableval=$enable_as_accelerator_for;
3001 fi
3002
3003
3004 # Check whether --enable-offload-targets was given.
3005 if test "${enable_offload_targets+set}" = set; then :
3006 enableval=$enable_offload_targets;
3007 if test x"$enable_offload_targets" = x; then
3008 as_fn_error $? "no offload targets specified" "$LINENO" 5
3009 fi
3010
3011 else
3012 enable_offload_targets=
3013 fi
3014
3015
3016 # Check whether --enable-offload-defaulted was given.
3017 if test "${enable_offload_defaulted+set}" = set; then :
3018 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3019 else
3020 enable_offload_defaulted=
3021 fi
3022
3023
3024 # Handle --enable-gold, --enable-ld.
3025 # --disable-gold [--enable-ld]
3026 # Build only ld. Default option.
3027 # --enable-gold [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold", install ld
3029 # as "ld.bfd" and "ld".
3030 # --enable-gold=default [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3032 # install ld as "ld.bfd".
3033 # --enable-gold[=default] --disable-ld
3034 # Build only gold, which is then installed as both "ld.gold" and "ld".
3035 # --enable-gold --enable-ld=default
3036 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3037 # and ld.bfd).
3038 # In other words, ld is default
3039 # --enable-gold=default --enable-ld=default
3040 # Error.
3041
3042 default_ld=
3043 # Check whether --enable-gold was given.
3044 if test "${enable_gold+set}" = set; then :
3045 enableval=$enable_gold; ENABLE_GOLD=$enableval
3046 else
3047 ENABLE_GOLD=no
3048 fi
3049
3050 case "${ENABLE_GOLD}" in
3051 yes|default)
3052 # Check for ELF target.
3053 is_elf=no
3054 case "${target}" in
3055 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3056 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3057 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3058 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3059 case "${target}" in
3060 *-*-linux*aout* | *-*-linux*oldld*)
3061 ;;
3062 *)
3063 is_elf=yes
3064 ;;
3065 esac
3066 esac
3067
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
3070 case "${target}" in
3071 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3072 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3073 configdirs="$configdirs gold"
3074 if test x${ENABLE_GOLD} = xdefault; then
3075 default_ld=gold
3076 fi
3077 ENABLE_GOLD=yes
3078 ;;
3079 esac
3080 fi
3081 ;;
3082 no)
3083 ;;
3084 *)
3085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3086 ;;
3087 esac
3088
3089 # Check whether --enable-ld was given.
3090 if test "${enable_ld+set}" = set; then :
3091 enableval=$enable_ld; ENABLE_LD=$enableval
3092 else
3093 ENABLE_LD=yes
3094 fi
3095
3096
3097 case "${ENABLE_LD}" in
3098 default)
3099 if test x${default_ld} != x; then
3100 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3101 fi
3102 ;;
3103 yes)
3104 ;;
3105 no)
3106 if test x${ENABLE_GOLD} != xyes; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3109 fi
3110 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3111 ;;
3112 *)
3113 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3114 ;;
3115 esac
3116
3117 # PR gas/19109
3118 # Decide the default method for compressing debug sections.
3119 # Provide a configure time option to override our default.
3120 # Check whether --enable-compressed_debug_sections was given.
3121 if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval=$enable_compressed_debug_sections;
3123 if test x"$enable_compressed_debug_sections" = xyes; then
3124 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3125 fi
3126
3127 else
3128 enable_compressed_debug_sections=
3129 fi
3130
3131
3132 # Configure extra directories which are host specific
3133
3134 case "${host}" in
3135 *-cygwin*)
3136 configdirs="$configdirs libtermcap" ;;
3137 esac
3138
3139 # A target can indicate whether a language isn't supported for some reason.
3140 # Only spaces may be used in this macro; not newlines or tabs.
3141 unsupported_languages=
3142
3143 # Remove more programs from consideration, based on the host or
3144 # target this usually means that a port of the program doesn't
3145 # exist yet.
3146
3147 case "${host}" in
3148 i[3456789]86-*-msdosdjgpp*)
3149 noconfigdirs="$noconfigdirs tcl tk itcl"
3150 ;;
3151 esac
3152
3153
3154 # Check whether --enable-libquadmath was given.
3155 if test "${enable_libquadmath+set}" = set; then :
3156 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3157 else
3158 ENABLE_LIBQUADMATH=yes
3159 fi
3160
3161 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs="$noconfigdirs target-libquadmath"
3163 fi
3164
3165
3166 # Check whether --enable-libquadmath-support was given.
3167 if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3169 else
3170 ENABLE_LIBQUADMATH_SUPPORT=yes
3171 fi
3172
3173 enable_libquadmath_support=
3174 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support=no
3176 fi
3177
3178
3179 # Check whether --enable-libada was given.
3180 if test "${enable_libada+set}" = set; then :
3181 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3182 else
3183 ENABLE_LIBADA=yes
3184 fi
3185
3186 if test "${ENABLE_LIBADA}" != "yes" ; then
3187 noconfigdirs="$noconfigdirs gnattools"
3188 fi
3189
3190 # Check whether --enable-libgm2 was given.
3191 if test "${enable_libgm2+set}" = set; then :
3192 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3193 else
3194 ENABLE_LIBGM2=no
3195 fi
3196
3197 if test "${ENABLE_LIBGM2}" != "yes" ; then
3198 noconfigdirs="$noconfigdirs gm2tools"
3199 fi
3200
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3204 else
3205 ENABLE_LIBSSP=yes
3206 fi
3207
3208
3209 # Check whether --enable-libstdcxx was given.
3210 if test "${enable_libstdcxx+set}" = set; then :
3211 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3212 else
3213 ENABLE_LIBSTDCXX=default
3214 fi
3215
3216 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3217 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3218 fi
3219
3220 # If this is accelerator compiler and its target is intelmic we enable
3221 # target liboffloadmic by default. If this is compiler with offloading
3222 # for intelmic we enable host liboffloadmic by default. Otherwise
3223 # liboffloadmic is disabled by default.
3224 # Check whether --enable-liboffloadmic was given.
3225 if test "${enable_liboffloadmic+set}" = set; then :
3226 enableval=$enable_liboffloadmic; case "$enableval" in
3227 no | host | target)
3228 enable_liboffloadmic=$enableval ;;
3229 *)
3230 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3231 esac
3232 else
3233 if test x"$enable_as_accelerator_for" != x; then
3234 case "${target}" in
3235 *-intelmic-* | *-intelmicemul-*)
3236 enable_liboffloadmic=target
3237 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3238 ;;
3239 *)
3240 enable_liboffloadmic=no
3241 ;;
3242 esac
3243 else
3244 case "${enable_offload_targets}" in
3245 *-intelmic-* | *-intelmicemul-*)
3246 enable_liboffloadmic=host
3247 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3248 ;;
3249 *)
3250 enable_liboffloadmic=no
3251 ;;
3252 esac
3253 fi
3254 fi
3255
3256
3257
3258 # Enable libgomp by default on hosted POSIX systems, and a few others.
3259 if test x$enable_libgomp = x ; then
3260 case "${target}" in
3261 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3262 ;;
3263 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3264 ;;
3265 *-*-solaris2* | *-*-hpux11*)
3266 ;;
3267 *-*-darwin* | *-*-aix*)
3268 ;;
3269 nvptx*-*-* | amdgcn*-*-*)
3270 ;;
3271 *)
3272 noconfigdirs="$noconfigdirs target-libgomp"
3273 ;;
3274 esac
3275 fi
3276
3277 # Disable libatomic on unsupported systems.
3278 if test -d ${srcdir}/libatomic; then
3279 if test x$enable_libatomic = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3281 $as_echo_n "checking for libatomic support... " >&6; }
3282 if (srcdir=${srcdir}/libatomic; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libatomic"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292 fi
3293 fi
3294 fi
3295
3296 # Disable liboffloadmic on unsupported systems.
3297 if test -d ${srcdir}/liboffloadmic; then
3298 if test x$enable_liboffloadmic != xno; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3300 $as_echo_n "checking for liboffloadmic support... " >&6; }
3301 if (srcdir=${srcdir}/liboffloadmic; \
3302 . ${srcdir}/configure.tgt; \
3303 test -n "$UNSUPPORTED")
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-liboffloadmic"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311 fi
3312 fi
3313 fi
3314
3315 # Disable libitm on unsupported systems.
3316 if test -d ${srcdir}/libitm; then
3317 if test x$enable_libitm = x; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3319 $as_echo_n "checking for libitm support... " >&6; }
3320 if (srcdir=${srcdir}/libitm; \
3321 . ${srcdir}/configure.tgt; \
3322 test -n "$UNSUPPORTED")
3323 then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 noconfigdirs="$noconfigdirs target-libitm"
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 fi
3331 fi
3332 fi
3333
3334 # Disable libsanitizer on unsupported systems.
3335 if test -d ${srcdir}/libsanitizer; then
3336 if test x$enable_libsanitizer = x; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3338 $as_echo_n "checking for libsanitizer support... " >&6; }
3339 if (srcdir=${srcdir}/libsanitizer; \
3340 . ${srcdir}/configure.tgt; \
3341 test -n "$UNSUPPORTED")
3342 then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 noconfigdirs="$noconfigdirs target-libsanitizer"
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348 $as_echo "yes" >&6; }
3349 fi
3350 fi
3351 fi
3352
3353 # Disable libvtv on unsupported systems.
3354 if test -d ${srcdir}/libvtv; then
3355 if test x$enable_libvtv = x; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3357 $as_echo_n "checking for libvtv support... " >&6; }
3358 if (srcdir=${srcdir}/libvtv; \
3359 . ${srcdir}/configure.tgt; \
3360 test "$VTV_SUPPORTED" != "yes")
3361 then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 noconfigdirs="$noconfigdirs target-libvtv"
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368 fi
3369 fi
3370 fi
3371
3372 # Disable libquadmath for some systems.
3373 case "${target}" in
3374 avr-*-*)
3375 noconfigdirs="$noconfigdirs target-libquadmath"
3376 ;;
3377 # libquadmath is unused on AIX and libquadmath build process use of
3378 # LD_LIBRARY_PATH can break AIX bootstrap.
3379 powerpc-*-aix* | rs6000-*-aix*)
3380 noconfigdirs="$noconfigdirs target-libquadmath"
3381 ;;
3382 esac
3383
3384 # Disable libssp for some systems.
3385 case "${target}" in
3386 avr-*-*)
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3389 ;;
3390 bpf-*-*)
3391 noconfigdirs="$noconfigdirs target-libssp"
3392 ;;
3393 powerpc-*-aix* | rs6000-*-aix*)
3394 noconfigdirs="$noconfigdirs target-libssp"
3395 ;;
3396 pru-*-*)
3397 # No hosted I/O support.
3398 noconfigdirs="$noconfigdirs target-libssp"
3399 ;;
3400 rl78-*-*)
3401 # libssp uses a misaligned load to trigger a fault, but the RL78
3402 # doesn't fault for those - instead, it gives a build-time error
3403 # for explicit misaligned loads.
3404 noconfigdirs="$noconfigdirs target-libssp"
3405 ;;
3406 visium-*-*)
3407 # No hosted I/O support.
3408 noconfigdirs="$noconfigdirs target-libssp"
3409 ;;
3410 esac
3411
3412 # Disable libstdc++-v3 for some systems.
3413 # Allow user to override this if they pass --enable-libstdc++-v3
3414 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3415 case "${target}" in
3416 *-*-vxworks*)
3417 # VxWorks uses the Dinkumware C++ library.
3418 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3419 ;;
3420 amdgcn*-*-*)
3421 # Not ported/fails to build when using newlib.
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 ;;
3424 arm*-wince-pe*)
3425 # the C++ libraries don't build on top of CE's C libraries
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 ;;
3428 avr-*-*)
3429 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3430 ;;
3431 bpf-*-*)
3432 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3433 ;;
3434 ft32-*-*)
3435 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 ;;
3437 esac
3438 fi
3439
3440 # Disable C++ on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=c++.
3442 case ,${enable_languages}, in
3443 *,c++,*)
3444 ;;
3445 *)
3446 case "${target}" in
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages c++"
3449 ;;
3450 esac
3451 ;;
3452 esac
3453
3454 # Disable Objc on systems where it is known to not work.
3455 # For testing, you can override this with --enable-languages=objc.
3456 case ,${enable_languages}, in
3457 *,objc,*)
3458 ;;
3459 *)
3460 case "${target}" in
3461 bpf-*-*)
3462 unsupported_languages="$unsupported_languages objc"
3463 ;;
3464 esac
3465 ;;
3466 esac
3467
3468 # Disable D on systems where it is known to not work.
3469 # For testing, you can override this with --enable-languages=d.
3470 case ,${enable_languages}, in
3471 *,d,*)
3472 ;;
3473 *)
3474 case "${target}" in
3475 bpf-*-*)
3476 unsupported_languages="$unsupported_languages d"
3477 ;;
3478 esac
3479 ;;
3480 esac
3481
3482 # Disable libphobos on unsupported systems.
3483 # For testing, you can override this with --enable-libphobos.
3484 if test -d ${srcdir}/libphobos; then
3485 if test x$enable_libphobos = x; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3487 $as_echo_n "checking for libphobos support... " >&6; }
3488 if (srcdir=${srcdir}/libphobos; \
3489 . ${srcdir}/configure.tgt; \
3490 test "$LIBPHOBOS_SUPPORTED" != "yes")
3491 then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 noconfigdirs="$noconfigdirs target-libphobos"
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3498 fi
3499 fi
3500 fi
3501
3502 # Disable Fortran for some systems.
3503 case "${target}" in
3504 mmix-*-*)
3505 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3506 unsupported_languages="$unsupported_languages fortran"
3507 ;;
3508 bpf-*-*)
3509 unsupported_languages="$unsupported_languages fortran"
3510 ;;
3511 esac
3512
3513 # Disable libffi for some systems.
3514 case "${target}" in
3515 powerpc-*-darwin*)
3516 ;;
3517 i[3456789]86-*-darwin*)
3518 ;;
3519 x86_64-*-darwin[912]*)
3520 ;;
3521 *-*-darwin*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 *-*-netware*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 *-*-phoenix*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 *-*-rtems*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
3533 *-*-tpf*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3535 ;;
3536 *-*-uclinux*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3538 ;;
3539 *-*-vxworks*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3541 ;;
3542 aarch64*-*-freebsd*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 alpha*-*-*vms*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3547 ;;
3548 arm*-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 arm-wince-pe)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 arm*-*-symbianelf*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 bpf-*-*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 cris-*-* | crisv32-*-*)
3561 case "${target}" in
3562 *-*-linux*)
3563 ;;
3564 *) # See PR46792 regarding target-libffi.
3565 noconfigdirs="$noconfigdirs target-libffi";;
3566 esac
3567 ;;
3568 hppa*64*-*-hpux*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 hppa*-hp-hpux11*)
3572 ;;
3573 hppa*-*-hpux*)
3574 noconfigdirs="$noconfigdirs target-libffi"
3575 ;;
3576 ia64*-*-*vms*)
3577 noconfigdirs="$noconfigdirs target-libffi"
3578 ;;
3579 i[3456789]86-w64-mingw*)
3580 noconfigdirs="$noconfigdirs target-libffi"
3581 ;;
3582 i[3456789]86-*-mingw*)
3583 noconfigdirs="$noconfigdirs target-libffi"
3584 ;;
3585 x86_64-*-mingw*)
3586 noconfigdirs="$noconfigdirs target-libffi"
3587 ;;
3588 mmix-*-*)
3589 noconfigdirs="$noconfigdirs target-libffi"
3590 ;;
3591 powerpc-*-aix*)
3592 ;;
3593 rs6000-*-aix*)
3594 ;;
3595 ft32-*-*)
3596 noconfigdirs="$noconfigdirs target-libffi"
3597 ;;
3598 *-*-lynxos*)
3599 noconfigdirs="$noconfigdirs target-libffi"
3600 ;;
3601 esac
3602
3603 # Disable the go frontend on systems where it is known to not work. Please keep
3604 # this in sync with contrib/config-list.mk.
3605 case "${target}" in
3606 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3607 unsupported_languages="$unsupported_languages go"
3608 ;;
3609 esac
3610
3611 # Only allow gdbserver on some systems.
3612 if test -d ${srcdir}/gdbserver; then
3613 if test x$enable_gdbserver = x; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3615 $as_echo_n "checking for gdbserver support... " >&6; }
3616 if (srcdir=${srcdir}/gdbserver; \
3617 . ${srcdir}/configure.srv; \
3618 test -n "$UNSUPPORTED")
3619 then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 noconfigdirs="$noconfigdirs gdbserver"
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626 fi
3627 fi
3628 fi
3629
3630 # Disable libgo for some systems where it is known to not work.
3631 # For testing, you can easily override this with --enable-libgo.
3632 if test x$enable_libgo = x; then
3633 case "${target}" in
3634 *-*-darwin*)
3635 # PR 46986
3636 noconfigdirs="$noconfigdirs target-libgo"
3637 ;;
3638 *-*-cygwin* | *-*-mingw*)
3639 noconfigdirs="$noconfigdirs target-libgo"
3640 ;;
3641 bpf-*-*)
3642 noconfigdirs="$noconfigdirs target-libgo"
3643 ;;
3644 esac
3645 fi
3646
3647 # Default libgloss CPU subdirectory.
3648 libgloss_dir="$target_cpu"
3649
3650 case "${target}" in
3651 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3652 libgloss_dir=wince
3653 ;;
3654 aarch64*-*-* )
3655 libgloss_dir=aarch64
3656 ;;
3657 arm*-*-*)
3658 libgloss_dir=arm
3659 ;;
3660 cris-*-* | crisv32-*-*)
3661 libgloss_dir=cris
3662 ;;
3663 hppa*-*-*)
3664 libgloss_dir=pa
3665 ;;
3666 i[3456789]86-*-*)
3667 libgloss_dir=i386
3668 ;;
3669 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3670 libgloss_dir=m68hc11
3671 ;;
3672 m68*-*-* | fido-*-*)
3673 libgloss_dir=m68k
3674 ;;
3675 mips*-*-*)
3676 libgloss_dir=mips
3677 ;;
3678 powerpc*-*-*)
3679 libgloss_dir=rs6000
3680 ;;
3681 pru-*-*)
3682 libgloss_dir=pru
3683 ;;
3684 sparc*-*-*)
3685 libgloss_dir=sparc
3686 ;;
3687 esac
3688
3689 # Disable newlib and libgloss for various target OSes.
3690 case "${target}" in
3691 alpha*-dec-osf*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 i[3456789]86-*-linux*)
3695 # This section makes it possible to build newlib natively on linux.
3696 # If we are using a cross compiler then don't configure newlib.
3697 if test x${is_cross_compiler} != xno ; then
3698 noconfigdirs="$noconfigdirs target-newlib"
3699 fi
3700 noconfigdirs="$noconfigdirs target-libgloss"
3701 # If we are not using a cross compiler, do configure newlib.
3702 # Note however, that newlib will only be configured in this situation
3703 # if the --with-newlib option has been given, because otherwise
3704 # 'target-newlib' will appear in skipdirs.
3705 ;;
3706 i[3456789]86-*-rdos*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 sparc-*-sunos4*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 bpf-*-*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-aix*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-beos*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-chorusos)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-dragonfly*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 *-*-freebsd*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 ;;
3736 *-*-lynxos*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 ;;
3739 *-*-mingw*)
3740 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3741 ;;
3742 *-*-netbsd*)
3743 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3744 ;;
3745 *-*-netware*)
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3747 ;;
3748 *-*-tpf*)
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3750 ;;
3751 *-*-uclinux*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3753 ;;
3754 *-*-vxworks*)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 ;;
3757 esac
3758
3759 case "${target}" in
3760 *-*-chorusos)
3761 ;;
3762 aarch64-*-darwin*)
3763 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3764 noconfigdirs="$noconfigdirs sim target-rda"
3765 ;;
3766 amdgcn*-*-*)
3767 ;;
3768 arm-*-darwin*)
3769 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3770 noconfigdirs="$noconfigdirs sim target-rda"
3771 ;;
3772 powerpc-*-darwin*)
3773 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3774 noconfigdirs="$noconfigdirs sim target-rda"
3775 ;;
3776 i[3456789]86-*-darwin*)
3777 noconfigdirs="$noconfigdirs ld gprof"
3778 noconfigdirs="$noconfigdirs sim target-rda"
3779 ;;
3780 x86_64-*-darwin[912]*)
3781 noconfigdirs="$noconfigdirs ld gas gprof"
3782 noconfigdirs="$noconfigdirs sim target-rda"
3783 ;;
3784 *-*-darwin*)
3785 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3786 noconfigdirs="$noconfigdirs sim target-rda"
3787 ;;
3788 *-*-dragonfly*)
3789 ;;
3790 *-*-freebsd*)
3791 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3792 && ! test -d ${srcdir}/gmp \
3793 && test -f /usr/local/include/gmp.h; then
3794 with_gmp=/usr/local
3795 fi
3796 ;;
3797 *-*-kaos*)
3798 # Remove unsupported stuff on all kaOS configurations.
3799 noconfigdirs="$noconfigdirs target-libgloss"
3800 ;;
3801 *-*-netbsd*)
3802 ;;
3803 *-*-netware*)
3804 ;;
3805 *-*-phoenix*)
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 ;;
3808 *-*-rtems*)
3809 noconfigdirs="$noconfigdirs target-libgloss"
3810 ;;
3811 # The tpf target doesn't support gdb yet.
3812 *-*-tpf*)
3813 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3814 ;;
3815 *-*-uclinux*)
3816 noconfigdirs="$noconfigdirs target-rda"
3817 ;;
3818 *-*-vxworks*)
3819 ;;
3820 alpha*-dec-osf*)
3821 # ld works, but does not support shared libraries.
3822 # gas doesn't generate exception information.
3823 noconfigdirs="$noconfigdirs gas ld"
3824 ;;
3825 alpha*-*-*vms*)
3826 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3827 ;;
3828 alpha*-*-*)
3829 # newlib is not 64 bit ready
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 ;;
3832 bpf-*-*)
3833 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3834 ;;
3835 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3836 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3837 ;;
3838 arc*-*-*)
3839 noconfigdirs="$noconfigdirs sim"
3840 ;;
3841 arm-*-pe*)
3842 noconfigdirs="$noconfigdirs target-libgloss"
3843 ;;
3844 arm-*-riscix*)
3845 noconfigdirs="$noconfigdirs ld target-libgloss"
3846 ;;
3847 avr-*-*)
3848 if test x${with_avrlibc} != xno; then
3849 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3850 fi
3851 ;;
3852 c4x-*-* | tic4x-*-*)
3853 noconfigdirs="$noconfigdirs target-libgloss"
3854 ;;
3855 tic54x-*-*)
3856 noconfigdirs="$noconfigdirs target-libgloss gdb"
3857 ;;
3858 d10v-*-*)
3859 noconfigdirs="$noconfigdirs target-libgloss"
3860 ;;
3861 d30v-*-*)
3862 noconfigdirs="$noconfigdirs gdb"
3863 ;;
3864 fr30-*-elf*)
3865 noconfigdirs="$noconfigdirs gdb"
3866 ;;
3867 ft32-*-*)
3868 noconfigdirs="$noconfigdirs target-rda gprof"
3869 ;;
3870 moxie-*-*)
3871 noconfigdirs="$noconfigdirs"
3872 ;;
3873 h8300*-*-*)
3874 noconfigdirs="$noconfigdirs target-libgloss"
3875 ;;
3876 h8500-*-*)
3877 noconfigdirs="$noconfigdirs target-libgloss"
3878 ;;
3879 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3880 ;;
3881 hppa*64*-*-hpux*)
3882 noconfigdirs="$noconfigdirs gdb"
3883 ;;
3884 hppa*-*-hpux11*)
3885 noconfigdirs="$noconfigdirs gdb ld"
3886 ;;
3887 hppa*64*-*-linux*)
3888 ;;
3889 hppa*-*-linux*)
3890 ;;
3891 hppa*-*-*elf* | \
3892 hppa*-*-lites* | \
3893 hppa*-*-openbsd* | \
3894 hppa*64*-*-*)
3895 ;;
3896 hppa*-*-pro*)
3897 ;;
3898 hppa*-*-*)
3899 noconfigdirs="$noconfigdirs ld"
3900 ;;
3901 i960-*-*)
3902 noconfigdirs="$noconfigdirs gdb"
3903 ;;
3904 ia64*-*-elf*)
3905 # No gdb support yet.
3906 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3907 ;;
3908 ia64*-**-hpux*)
3909 # No ld support yet.
3910 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3911 ;;
3912 ia64*-*-*vms*)
3913 # No ld support yet.
3914 noconfigdirs="$noconfigdirs libgui itcl ld"
3915 ;;
3916 i[3456789]86-w64-mingw*)
3917 ;;
3918 i[3456789]86-*-mingw*)
3919 target_configdirs="$target_configdirs target-winsup"
3920 ;;
3921 *-*-cygwin*)
3922 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3923 noconfigdirs="$noconfigdirs target-libgloss"
3924 # always build newlib if winsup directory is present.
3925 if test -d "$srcdir/winsup/cygwin"; then
3926 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3927 elif test -d "$srcdir/newlib"; then
3928 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3929 fi
3930 ;;
3931 i[3456789]86-*-pe)
3932 noconfigdirs="$noconfigdirs target-libgloss"
3933 ;;
3934 i[3456789]86-*-sco3.2v5*)
3935 # The linker does not yet know about weak symbols in COFF,
3936 # and is not configured to handle mixed ELF and COFF.
3937 noconfigdirs="$noconfigdirs ld target-libgloss"
3938 ;;
3939 i[3456789]86-*-sco*)
3940 noconfigdirs="$noconfigdirs gprof target-libgloss"
3941 ;;
3942 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3943 noconfigdirs="$noconfigdirs target-libgloss"
3944 ;;
3945 i[3456789]86-*-sysv4*)
3946 noconfigdirs="$noconfigdirs target-libgloss"
3947 ;;
3948 i[3456789]86-*-beos*)
3949 noconfigdirs="$noconfigdirs gdb"
3950 ;;
3951 i[3456789]86-*-rdos*)
3952 noconfigdirs="$noconfigdirs gdb"
3953 ;;
3954 mmix-*-*)
3955 noconfigdirs="$noconfigdirs gdb"
3956 ;;
3957 mt-*-*)
3958 noconfigdirs="$noconfigdirs sim"
3959 ;;
3960 nfp-*-*)
3961 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3962 noconfigdirs="$noconfigdirs $target_libraries"
3963 ;;
3964 pdp11-*-*)
3965 noconfigdirs="$noconfigdirs gdb gprof"
3966 ;;
3967 powerpc-*-aix*)
3968 # copied from rs6000-*-* entry
3969 noconfigdirs="$noconfigdirs gprof"
3970 ;;
3971 powerpc*-*-winnt* | powerpc*-*-pe*)
3972 target_configdirs="$target_configdirs target-winsup"
3973 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3974 # always build newlib.
3975 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3976 ;;
3977 # This is temporary until we can link against shared libraries
3978 powerpcle-*-solaris*)
3979 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3980 ;;
3981 powerpc-*-beos*)
3982 noconfigdirs="$noconfigdirs gdb"
3983 ;;
3984 rs6000-*-lynxos*)
3985 noconfigdirs="$noconfigdirs gprof"
3986 ;;
3987 rs6000-*-aix*)
3988 noconfigdirs="$noconfigdirs gprof"
3989 ;;
3990 rs6000-*-*)
3991 noconfigdirs="$noconfigdirs gprof"
3992 ;;
3993 m68k-apollo-*)
3994 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3995 ;;
3996 microblaze*)
3997 noconfigdirs="$noconfigdirs gprof"
3998 ;;
3999 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4000 if test x$with_newlib = xyes; then
4001 noconfigdirs="$noconfigdirs gprof"
4002 fi
4003 ;;
4004 mips*-*-irix5*)
4005 noconfigdirs="$noconfigdirs gprof target-libgloss"
4006 ;;
4007 mips*-*-irix6*)
4008 noconfigdirs="$noconfigdirs gprof target-libgloss"
4009 ;;
4010 mips*-*-bsd*)
4011 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4012 ;;
4013 mips*-*-linux*)
4014 ;;
4015 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4016 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4017 noconfigdirs="$noconfigdirs ld gas gprof"
4018 ;;
4019 mips*-*-*)
4020 noconfigdirs="$noconfigdirs gprof"
4021 ;;
4022 nvptx*-*-*)
4023 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4024 ;;
4025 sh-*-*)
4026 case "${target}" in
4027 sh*-*-elf)
4028 ;;
4029 *)
4030 noconfigdirs="$noconfigdirs target-libgloss" ;;
4031 esac
4032 ;;
4033 sparc-*-sunos4*)
4034 if test x${is_cross_compiler} = xno ; then
4035 use_gnu_ld=no
4036 fi
4037 ;;
4038 tic6x-*-*)
4039 noconfigdirs="$noconfigdirs sim"
4040 ;;
4041 tilepro*-*-* | tilegx*-*-*)
4042 noconfigdirs="$noconfigdirs sim"
4043 ;;
4044 v810-*-*)
4045 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4046 ;;
4047 vax-*-*)
4048 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4049 ;;
4050 wasm32-*-*)
4051 noconfigdirs="$noconfigdirs ld"
4052 ;;
4053 esac
4054
4055 # If we aren't building newlib, then don't build libgloss, since libgloss
4056 # depends upon some newlib header files.
4057 case "${noconfigdirs}" in
4058 *target-libgloss*) ;;
4059 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4060 esac
4061
4062 # Work in distributions that contain no compiler tools, like Autoconf.
4063 host_makefile_frag=/dev/null
4064 if test -d ${srcdir}/config ; then
4065 case "${host}" in
4066 i[3456789]86-*-msdosdjgpp*)
4067 host_makefile_frag="config/mh-djgpp"
4068 ;;
4069 *-cygwin*)
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4072 $as_echo_n "checking to see if cat works as expected... " >&6; }
4073 echo a >cygwin-cat-check
4074 if test `cat cygwin-cat-check` = a ; then
4075 rm cygwin-cat-check
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079 rm cygwin-cat-check
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 as_fn_error $? "The cat command does not ignore carriage return characters.
4083 Please either mount the build directory in binary mode or run the following
4084 commands before running any configure script:
4085 set -o igncr
4086 export SHELLOPTS
4087 " "$LINENO" 5
4088 fi
4089
4090 host_makefile_frag="config/mh-cygwin"
4091 ;;
4092 *-mingw*)
4093 host_makefile_frag="config/mh-mingw"
4094 ;;
4095 alpha*-linux*)
4096 host_makefile_frag="config/mh-alpha-linux"
4097 ;;
4098 hppa*-hp-hpux10*)
4099 host_makefile_frag="config/mh-pa-hpux10"
4100 ;;
4101 hppa*-hp-hpux*)
4102 host_makefile_frag="config/mh-pa"
4103 ;;
4104 hppa*-*)
4105 host_makefile_frag="config/mh-pa"
4106 ;;
4107 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4108 host_makefile_frag="config/mh-darwin"
4109 ;;
4110 powerpc-*-aix*)
4111 host_makefile_frag="config/mh-ppc-aix"
4112 ;;
4113 rs6000-*-aix*)
4114 host_makefile_frag="config/mh-ppc-aix"
4115 ;;
4116 esac
4117 fi
4118
4119 if test "${build}" != "${host}" ; then
4120 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4121 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4122 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4123 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4124 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4125 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4126 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4127 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4128 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4129 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4130 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4131 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4132 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4133 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4134 else
4135 AR_FOR_BUILD="\$(AR)"
4136 AS_FOR_BUILD="\$(AS)"
4137 CC_FOR_BUILD="\$(CC)"
4138 CXX_FOR_BUILD="\$(CXX)"
4139 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4140 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4141 GOC_FOR_BUILD="\$(GOC)"
4142 GDC_FOR_BUILD="\$(GDC)"
4143 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4144 LD_FOR_BUILD="\$(LD)"
4145 NM_FOR_BUILD="\$(NM)"
4146 RANLIB_FOR_BUILD="\$(RANLIB)"
4147 WINDRES_FOR_BUILD="\$(WINDRES)"
4148 WINDMC_FOR_BUILD="\$(WINDMC)"
4149 fi
4150
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_CC+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193
4194 fi
4195 if test -z "$ac_cv_prog_CC"; then
4196 ac_ct_CC=$CC
4197 # Extract the first word of "gcc", so it can be a program name with args.
4198 set dummy gcc; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_CC="gcc"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 fi
4223 fi
4224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4225 if test -n "$ac_ct_CC"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4227 $as_echo "$ac_ct_CC" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233 if test "x$ac_ct_CC" = x; then
4234 CC=""
4235 else
4236 case $cross_compiling:$ac_tool_warned in
4237 yes:)
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned=yes ;;
4241 esac
4242 CC=$ac_ct_CC
4243 fi
4244 else
4245 CC="$ac_cv_prog_CC"
4246 fi
4247
4248 if test -z "$CC"; then
4249 if test -n "$ac_tool_prefix"; then
4250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4251 set dummy ${ac_tool_prefix}cc; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CC="${ac_tool_prefix}cc"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4270 fi
4271 done
4272 done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 CC=$ac_cv_prog_CC
4278 if test -n "$CC"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 $as_echo "$CC" >&6; }
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286
4287 fi
4288 fi
4289 if test -z "$CC"; then
4290 # Extract the first word of "cc", so it can be a program name with args.
4291 set dummy cc; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if ${ac_cv_prog_CC+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if test -n "$CC"; then
4298 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 else
4300 ac_prog_rejected=no
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4309 ac_prog_rejected=yes
4310 continue
4311 fi
4312 ac_cv_prog_CC="cc"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 if test $ac_prog_rejected = yes; then
4321 # We found a bogon in the path, so make sure we never use it.
4322 set dummy $ac_cv_prog_CC
4323 shift
4324 if test $# != 0; then
4325 # We chose a different compiler from the bogus one.
4326 # However, it has the same basename, so the bogon will be chosen
4327 # first if we set CC to just the basename; use the full file name.
4328 shift
4329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4330 fi
4331 fi
4332 fi
4333 fi
4334 CC=$ac_cv_prog_CC
4335 if test -n "$CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4337 $as_echo "$CC" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344 fi
4345 if test -z "$CC"; then
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog in cl.exe
4348 do
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_CC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$CC"; then
4357 ac_cv_prog_CC="$CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 CC=$ac_cv_prog_CC
4377 if test -n "$CC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4379 $as_echo "$CC" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386 test -n "$CC" && break
4387 done
4388 fi
4389 if test -z "$CC"; then
4390 ac_ct_CC=$CC
4391 for ac_prog in cl.exe
4392 do
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$ac_ct_CC"; then
4401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_CC="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4421 if test -n "$ac_ct_CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4423 $as_echo "$ac_ct_CC" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$ac_ct_CC" && break
4431 done
4432
4433 if test "x$ac_ct_CC" = x; then
4434 CC=""
4435 else
4436 case $cross_compiling:$ac_tool_warned in
4437 yes:)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4441 esac
4442 CC=$ac_ct_CC
4443 fi
4444 fi
4445
4446 fi
4447
4448
4449 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $? "no acceptable C compiler found in \$PATH
4452 See \`config.log' for more details" "$LINENO" 5; }
4453
4454 # Provide some information about the compiler.
4455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4456 set X $ac_compile
4457 ac_compiler=$2
4458 for ac_option in --version -v -V -qversion; do
4459 { { ac_try="$ac_compiler $ac_option >&5"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4467 ac_status=$?
4468 if test -s conftest.err; then
4469 sed '10a\
4470 ... rest of stderr output deleted ...
4471 10q' conftest.err >conftest.er1
4472 cat conftest.er1 >&5
4473 fi
4474 rm -f conftest.er1 conftest.err
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }
4477 done
4478
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481
4482 int
4483 main ()
4484 {
4485
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 ac_clean_files_save=$ac_clean_files
4491 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4492 # Try to create an executable without -o first, disregard a.out.
4493 # It will help us diagnose broken compilers, and finding out an intuition
4494 # of exeext.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4496 $as_echo_n "checking whether the C compiler works... " >&6; }
4497 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4498
4499 # The possible output files:
4500 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4501
4502 ac_rmfiles=
4503 for ac_file in $ac_files
4504 do
4505 case $ac_file in
4506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4507 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4508 esac
4509 done
4510 rm -f $ac_rmfiles
4511
4512 if { { ac_try="$ac_link_default"
4513 case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_link_default") 2>&5
4520 ac_status=$?
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; then :
4523 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4524 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4525 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4526 # so that the user can short-circuit this test for compilers unknown to
4527 # Autoconf.
4528 for ac_file in $ac_files ''
4529 do
4530 test -f "$ac_file" || continue
4531 case $ac_file in
4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4533 ;;
4534 [ab].out )
4535 # We found the default executable, but exeext='' is most
4536 # certainly right.
4537 break;;
4538 *.* )
4539 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4540 then :; else
4541 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 fi
4543 # We set ac_cv_exeext here because the later test for it is not
4544 # safe: cross compilers may not add the suffix if given an `-o'
4545 # argument, so we may need to know it at that point already.
4546 # Even if this section looks crufty: it has the advantage of
4547 # actually working.
4548 break;;
4549 * )
4550 break;;
4551 esac
4552 done
4553 test "$ac_cv_exeext" = no && ac_cv_exeext=
4554
4555 else
4556 ac_file=''
4557 fi
4558 if test -z "$ac_file"; then :
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error 77 "C compiler cannot create executables
4567 See \`config.log' for more details" "$LINENO" 5; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570 $as_echo "yes" >&6; }
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4573 $as_echo_n "checking for C compiler default output file name... " >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4575 $as_echo "$ac_file" >&6; }
4576 ac_exeext=$ac_cv_exeext
4577
4578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4579 ac_clean_files=$ac_clean_files_save
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4581 $as_echo_n "checking for suffix of executables... " >&6; }
4582 if { { ac_try="$ac_link"
4583 case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588 $as_echo "$ac_try_echo"; } >&5
4589 (eval "$ac_link") 2>&5
4590 ac_status=$?
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }; then :
4593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4594 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4595 # work properly (i.e., refer to `conftest.exe'), while it won't with
4596 # `rm'.
4597 for ac_file in conftest.exe conftest conftest.*; do
4598 test -f "$ac_file" || continue
4599 case $ac_file in
4600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4602 break;;
4603 * ) break;;
4604 esac
4605 done
4606 else
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 fi
4612 rm -f conftest conftest$ac_cv_exeext
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4614 $as_echo "$ac_cv_exeext" >&6; }
4615
4616 rm -f conftest.$ac_ext
4617 EXEEXT=$ac_cv_exeext
4618 ac_exeext=$EXEEXT
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <stdio.h>
4622 int
4623 main ()
4624 {
4625 FILE *f = fopen ("conftest.out", "w");
4626 return ferror (f) || fclose (f) != 0;
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 ac_clean_files="$ac_clean_files conftest.out"
4633 # Check that the compiler produces executables we can run. If not, either
4634 # the compiler is broken, or we cross compile.
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4636 $as_echo_n "checking whether we are cross compiling... " >&6; }
4637 if test "$cross_compiling" != yes; then
4638 { { ac_try="$ac_link"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644 $as_echo "$ac_try_echo"; } >&5
4645 (eval "$ac_link") 2>&5
4646 ac_status=$?
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; }
4649 if { ac_try='./conftest$ac_cv_exeext'
4650 { { case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655 $as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_try") 2>&5
4657 ac_status=$?
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }; }; then
4660 cross_compiling=no
4661 else
4662 if test "$cross_compiling" = maybe; then
4663 cross_compiling=yes
4664 else
4665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4667 as_fn_error $? "cannot run C compiled programs.
4668 If you meant to cross compile, use \`--host'.
4669 See \`config.log' for more details" "$LINENO" 5; }
4670 fi
4671 fi
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4674 $as_echo "$cross_compiling" >&6; }
4675
4676 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4677 ac_clean_files=$ac_clean_files_save
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4679 $as_echo_n "checking for suffix of object files... " >&6; }
4680 if ${ac_cv_objext+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685
4686 int
4687 main ()
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.o conftest.obj
4695 if { { ac_try="$ac_compile"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701 $as_echo "$ac_try_echo"; } >&5
4702 (eval "$ac_compile") 2>&5
4703 ac_status=$?
4704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4705 test $ac_status = 0; }; then :
4706 for ac_file in conftest.o conftest.obj conftest.*; do
4707 test -f "$ac_file" || continue;
4708 case $ac_file in
4709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4711 break;;
4712 esac
4713 done
4714 else
4715 $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4720 as_fn_error $? "cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details" "$LINENO" 5; }
4722 fi
4723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4726 $as_echo "$ac_cv_objext" >&6; }
4727 OBJEXT=$ac_cv_objext
4728 ac_objext=$OBJEXT
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4731 if ${ac_cv_c_compiler_gnu+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740 #ifndef __GNUC__
4741 choke me
4742 #endif
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_compiler_gnu=yes
4750 else
4751 ac_compiler_gnu=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4759 if test $ac_compiler_gnu = yes; then
4760 GCC=yes
4761 else
4762 GCC=
4763 fi
4764 ac_test_CFLAGS=${CFLAGS+set}
4765 ac_save_CFLAGS=$CFLAGS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4768 if ${ac_cv_prog_cc_g+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_save_c_werror_flag=$ac_c_werror_flag
4772 ac_c_werror_flag=yes
4773 ac_cv_prog_cc_g=no
4774 CFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_cv_prog_cc_g=yes
4788 else
4789 CFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802
4803 else
4804 ac_c_werror_flag=$ac_save_c_werror_flag
4805 CFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main ()
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 ac_cv_prog_cc_g=yes
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_c_werror_flag=$ac_save_c_werror_flag
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4828 $as_echo "$ac_cv_prog_cc_g" >&6; }
4829 if test "$ac_test_CFLAGS" = set; then
4830 CFLAGS=$ac_save_CFLAGS
4831 elif test $ac_cv_prog_cc_g = yes; then
4832 if test "$GCC" = yes; then
4833 CFLAGS="-g -O2"
4834 else
4835 CFLAGS="-g"
4836 fi
4837 else
4838 if test "$GCC" = yes; then
4839 CFLAGS="-O2"
4840 else
4841 CFLAGS=
4842 fi
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4846 if ${ac_cv_prog_cc_c89+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 ac_cv_prog_cc_c89=no
4850 ac_save_CC=$CC
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <stdarg.h>
4854 #include <stdio.h>
4855 struct stat;
4856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4857 struct buf { int x; };
4858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4859 static char *e (p, i)
4860 char **p;
4861 int i;
4862 {
4863 return p[i];
4864 }
4865 static char *f (char * (*g) (char **, int), char **p, ...)
4866 {
4867 char *s;
4868 va_list v;
4869 va_start (v,p);
4870 s = g (p, va_arg (v,int));
4871 va_end (v);
4872 return s;
4873 }
4874
4875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4876 function prototypes and stuff, but not '\xHH' hex character constants.
4877 These don't provoke an error unfortunately, instead are silently treated
4878 as 'x'. The following induces an error, until -std is added to get
4879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4880 array size at least. It's necessary to write '\x00'==0 to get something
4881 that's true only with -std. */
4882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4883
4884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4885 inside strings and character constants. */
4886 #define FOO(x) 'x'
4887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4888
4889 int test (int i, double x);
4890 struct s1 {int (*f) (int a);};
4891 struct s2 {int (*f) (double a);};
4892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4893 int argc;
4894 char **argv;
4895 int
4896 main ()
4897 {
4898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4899 ;
4900 return 0;
4901 }
4902 _ACEOF
4903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905 do
4906 CC="$ac_save_CC $ac_arg"
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_prog_cc_c89=$ac_arg
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext
4911 test "x$ac_cv_prog_cc_c89" != "xno" && break
4912 done
4913 rm -f conftest.$ac_ext
4914 CC=$ac_save_CC
4915
4916 fi
4917 # AC_CACHE_VAL
4918 case "x$ac_cv_prog_cc_c89" in
4919 x)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4921 $as_echo "none needed" >&6; } ;;
4922 xno)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4924 $as_echo "unsupported" >&6; } ;;
4925 *)
4926 CC="$CC $ac_cv_prog_cc_c89"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4929 esac
4930 if test "x$ac_cv_prog_cc_c89" != xno; then :
4931
4932 fi
4933
4934 ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4941 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4942 if ${ac_cv_prog_cc_c99+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 ac_cv_prog_cc_c99=no
4946 ac_save_CC=$CC
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #include <stdarg.h>
4950 #include <stdbool.h>
4951 #include <stdlib.h>
4952 #include <wchar.h>
4953 #include <stdio.h>
4954
4955 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4956 #define debug(...) fprintf (stderr, __VA_ARGS__)
4957 #define showlist(...) puts (#__VA_ARGS__)
4958 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4959 static void
4960 test_varargs_macros (void)
4961 {
4962 int x = 1234;
4963 int y = 5678;
4964 debug ("Flag");
4965 debug ("X = %d\n", x);
4966 showlist (The first, second, and third items.);
4967 report (x>y, "x is %d but y is %d", x, y);
4968 }
4969
4970 // Check long long types.
4971 #define BIG64 18446744073709551615ull
4972 #define BIG32 4294967295ul
4973 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4974 #if !BIG_OK
4975 your preprocessor is broken;
4976 #endif
4977 #if BIG_OK
4978 #else
4979 your preprocessor is broken;
4980 #endif
4981 static long long int bignum = -9223372036854775807LL;
4982 static unsigned long long int ubignum = BIG64;
4983
4984 struct incomplete_array
4985 {
4986 int datasize;
4987 double data[];
4988 };
4989
4990 struct named_init {
4991 int number;
4992 const wchar_t *name;
4993 double average;
4994 };
4995
4996 typedef const char *ccp;
4997
4998 static inline int
4999 test_restrict (ccp restrict text)
5000 {
5001 // See if C++-style comments work.
5002 // Iterate through items via the restricted pointer.
5003 // Also check for declarations in for loops.
5004 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5005 continue;
5006 return 0;
5007 }
5008
5009 // Check varargs and va_copy.
5010 static void
5011 test_varargs (const char *format, ...)
5012 {
5013 va_list args;
5014 va_start (args, format);
5015 va_list args_copy;
5016 va_copy (args_copy, args);
5017
5018 const char *str;
5019 int number;
5020 float fnumber;
5021
5022 while (*format)
5023 {
5024 switch (*format++)
5025 {
5026 case 's': // string
5027 str = va_arg (args_copy, const char *);
5028 break;
5029 case 'd': // int
5030 number = va_arg (args_copy, int);
5031 break;
5032 case 'f': // float
5033 fnumber = va_arg (args_copy, double);
5034 break;
5035 default:
5036 break;
5037 }
5038 }
5039 va_end (args_copy);
5040 va_end (args);
5041 }
5042
5043 int
5044 main ()
5045 {
5046
5047 // Check bool.
5048 _Bool success = false;
5049
5050 // Check restrict.
5051 if (test_restrict ("String literal") == 0)
5052 success = true;
5053 char *restrict newvar = "Another string";
5054
5055 // Check varargs.
5056 test_varargs ("s, d' f .", "string", 65, 34.234);
5057 test_varargs_macros ();
5058
5059 // Check flexible array members.
5060 struct incomplete_array *ia =
5061 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5062 ia->datasize = 10;
5063 for (int i = 0; i < ia->datasize; ++i)
5064 ia->data[i] = i * 1.234;
5065
5066 // Check named initializers.
5067 struct named_init ni = {
5068 .number = 34,
5069 .name = L"Test wide string",
5070 .average = 543.34343,
5071 };
5072
5073 ni.number = 58;
5074
5075 int dynamic_array[ni.number];
5076 dynamic_array[ni.number - 1] = 543;
5077
5078 // work around unused variable warnings
5079 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5080 || dynamic_array[ni.number - 1] != 543);
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5087 do
5088 CC="$ac_save_CC $ac_arg"
5089 if ac_fn_c_try_compile "$LINENO"; then :
5090 ac_cv_prog_cc_c99=$ac_arg
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext
5093 test "x$ac_cv_prog_cc_c99" != "xno" && break
5094 done
5095 rm -f conftest.$ac_ext
5096 CC=$ac_save_CC
5097
5098 fi
5099 # AC_CACHE_VAL
5100 case "x$ac_cv_prog_cc_c99" in
5101 x)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5103 $as_echo "none needed" >&6; } ;;
5104 xno)
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5106 $as_echo "unsupported" >&6; } ;;
5107 *)
5108 CC="$CC $ac_cv_prog_cc_c99"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5110 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5111 esac
5112 if test "x$ac_cv_prog_cc_c99" != xno; then :
5113
5114 fi
5115
5116
5117 ac_ext=cpp
5118 ac_cpp='$CXXCPP $CPPFLAGS'
5119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5122 if test -z "$CXX"; then
5123 if test -n "$CCC"; then
5124 CXX=$CCC
5125 else
5126 if test -n "$ac_tool_prefix"; then
5127 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5128 do
5129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_CXX+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$CXX"; then
5137 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 CXX=$ac_cv_prog_CXX
5157 if test -n "$CXX"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5159 $as_echo "$CXX" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 test -n "$CXX" && break
5167 done
5168 fi
5169 if test -z "$CXX"; then
5170 ac_ct_CXX=$CXX
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5172 do
5173 # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$ac_ct_CXX"; then
5181 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_CXX="$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5201 if test -n "$ac_ct_CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5203 $as_echo "$ac_ct_CXX" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210 test -n "$ac_ct_CXX" && break
5211 done
5212
5213 if test "x$ac_ct_CXX" = x; then
5214 CXX="g++"
5215 else
5216 case $cross_compiling:$ac_tool_warned in
5217 yes:)
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5220 ac_tool_warned=yes ;;
5221 esac
5222 CXX=$ac_ct_CXX
5223 fi
5224 fi
5225
5226 fi
5227 fi
5228 # Provide some information about the compiler.
5229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5230 set X $ac_compile
5231 ac_compiler=$2
5232 for ac_option in --version -v -V -qversion; do
5233 { { ac_try="$ac_compiler $ac_option >&5"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5239 $as_echo "$ac_try_echo"; } >&5
5240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5241 ac_status=$?
5242 if test -s conftest.err; then
5243 sed '10a\
5244 ... rest of stderr output deleted ...
5245 10q' conftest.err >conftest.er1
5246 cat conftest.er1 >&5
5247 fi
5248 rm -f conftest.er1 conftest.err
5249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5250 test $ac_status = 0; }
5251 done
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5254 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5255 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260
5261 int
5262 main ()
5263 {
5264 #ifndef __GNUC__
5265 choke me
5266 #endif
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_cxx_try_compile "$LINENO"; then :
5273 ac_compiler_gnu=yes
5274 else
5275 ac_compiler_gnu=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5279
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5282 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5283 if test $ac_compiler_gnu = yes; then
5284 GXX=yes
5285 else
5286 GXX=
5287 fi
5288 ac_test_CXXFLAGS=${CXXFLAGS+set}
5289 ac_save_CXXFLAGS=$CXXFLAGS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5291 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5292 if ${ac_cv_prog_cxx_g+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5296 ac_cxx_werror_flag=yes
5297 ac_cv_prog_cxx_g=no
5298 CXXFLAGS="-g"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301
5302 int
5303 main ()
5304 {
5305
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 if ac_fn_cxx_try_compile "$LINENO"; then :
5311 ac_cv_prog_cxx_g=yes
5312 else
5313 CXXFLAGS=""
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316
5317 int
5318 main ()
5319 {
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_cxx_try_compile "$LINENO"; then :
5326
5327 else
5328 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5329 CXXFLAGS="-g"
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332
5333 int
5334 main ()
5335 {
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_cxx_try_compile "$LINENO"; then :
5342 ac_cv_prog_cxx_g=yes
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5352 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5353 if test "$ac_test_CXXFLAGS" = set; then
5354 CXXFLAGS=$ac_save_CXXFLAGS
5355 elif test $ac_cv_prog_cxx_g = yes; then
5356 if test "$GXX" = yes; then
5357 CXXFLAGS="-g -O2"
5358 else
5359 CXXFLAGS="-g"
5360 fi
5361 else
5362 if test "$GXX" = yes; then
5363 CXXFLAGS="-O2"
5364 else
5365 CXXFLAGS=
5366 fi
5367 fi
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374
5375 # We must set the default linker to the linker used by gcc for the correct
5376 # operation of libtool. If LD is not defined and we are using gcc, try to
5377 # set the LD default to the ld used by gcc.
5378 if test -z "$LD"; then
5379 if test "$GCC" = yes; then
5380 case $build in
5381 *-*-mingw*)
5382 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5383 *)
5384 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5385 esac
5386 case $gcc_prog_ld in
5387 # Accept absolute paths.
5388 [\\/]* | [A-Za-z]:[\\/]*)
5389 LD="$gcc_prog_ld" ;;
5390 esac
5391 fi
5392 fi
5393
5394 # Check whether -static-libstdc++ -static-libgcc is supported.
5395 have_static_libs=no
5396 if test "$GCC" = yes; then
5397 saved_LDFLAGS="$LDFLAGS"
5398
5399 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5401 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5402 ac_ext=cpp
5403 ac_cpp='$CXXCPP $CPPFLAGS'
5404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407
5408
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411
5412 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5413 #error -static-libstdc++ not implemented
5414 #endif
5415 int main() {}
5416 _ACEOF
5417 if ac_fn_cxx_try_link "$LINENO"; then :
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }; have_static_libs=yes
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext \
5425 conftest$ac_exeext conftest.$ac_ext
5426 ac_ext=c
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
5432
5433 LDFLAGS="$saved_LDFLAGS"
5434 fi
5435
5436
5437
5438
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_GNATBIND+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -n "$GNATBIND"; then
5448 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461 done
5462 done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 GNATBIND=$ac_cv_prog_GNATBIND
5468 if test -n "$GNATBIND"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5470 $as_echo "$GNATBIND" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477 fi
5478 if test -z "$ac_cv_prog_GNATBIND"; then
5479 ac_ct_GNATBIND=$GNATBIND
5480 # Extract the first word of "gnatbind", so it can be a program name with args.
5481 set dummy gnatbind; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$ac_ct_GNATBIND"; then
5488 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501 done
5502 done
5503 IFS=$as_save_IFS
5504
5505 fi
5506 fi
5507 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5508 if test -n "$ac_ct_GNATBIND"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5510 $as_echo "$ac_ct_GNATBIND" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516 if test "x$ac_ct_GNATBIND" = x; then
5517 GNATBIND="no"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525 GNATBIND=$ac_ct_GNATBIND
5526 fi
5527 else
5528 GNATBIND="$ac_cv_prog_GNATBIND"
5529 fi
5530
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_GNATMAKE+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$GNATMAKE"; then
5540 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 GNATMAKE=$ac_cv_prog_GNATMAKE
5560 if test -n "$GNATMAKE"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5562 $as_echo "$GNATMAKE" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569 fi
5570 if test -z "$ac_cv_prog_GNATMAKE"; then
5571 ac_ct_GNATMAKE=$GNATMAKE
5572 # Extract the first word of "gnatmake", so it can be a program name with args.
5573 set dummy gnatmake; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$ac_ct_GNATMAKE"; then
5580 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5600 if test -n "$ac_ct_GNATMAKE"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5602 $as_echo "$ac_ct_GNATMAKE" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608 if test "x$ac_ct_GNATMAKE" = x; then
5609 GNATMAKE="no"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5616 esac
5617 GNATMAKE=$ac_ct_GNATMAKE
5618 fi
5619 else
5620 GNATMAKE="$ac_cv_prog_GNATMAKE"
5621 fi
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5624 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5625 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat >conftest.adb <<EOF
5629 procedure conftest is begin null; end conftest;
5630 EOF
5631 acx_cv_cc_gcc_supports_ada=no
5632 # There is a bug in old released versions of GCC which causes the
5633 # driver to exit successfully when the appropriate language module
5634 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5635 # Therefore we must check for the error message as well as an
5636 # unsuccessful exit.
5637 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5638 # given a .adb file, but produce no object file. So we must check
5639 # if an object file was really produced to guard against this.
5640 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5641 if test x"$errors" = x && test -f conftest.$ac_objext; then
5642 acx_cv_cc_gcc_supports_ada=yes
5643 fi
5644 rm -f conftest.*
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5647 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5648
5649 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5650 have_gnat=yes
5651 else
5652 have_gnat=no
5653 fi
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5656 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5657 if ${gcc_cv_prog_cmp_skip+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 echo abfoo >t1
5661 echo cdfoo >t2
5662 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5663 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5664 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5665 :
5666 else
5667 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5668 fi
5669 fi
5670 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5671 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5672 :
5673 else
5674 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5675 fi
5676 fi
5677 rm t1 t2
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5681 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5682 do_compare="$gcc_cv_prog_cmp_skip"
5683
5684
5685
5686 # Check whether --enable-bootstrap was given.
5687 if test "${enable_bootstrap+set}" = set; then :
5688 enableval=$enable_bootstrap;
5689 else
5690 enable_bootstrap=default
5691 fi
5692
5693
5694 # Issue errors and warnings for invalid/strange bootstrap combinations.
5695 if test -r $srcdir/gcc/configure; then
5696 have_compiler=yes
5697 else
5698 have_compiler=no
5699 fi
5700
5701 case "$have_compiler:$host:$target:$enable_bootstrap" in
5702 *:*:*:no) ;;
5703
5704 # Default behavior. Enable bootstrap if we have a compiler
5705 # and we are in a native configuration.
5706 yes:$build:$build:default)
5707 enable_bootstrap=yes ;;
5708
5709 *:*:*:default)
5710 enable_bootstrap=no ;;
5711
5712 # We have a compiler and we are in a native configuration, bootstrap is ok
5713 yes:$build:$build:yes)
5714 ;;
5715
5716 # Other configurations, but we have a compiler. Assume the user knows
5717 # what he's doing.
5718 yes:*:*:yes)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5720 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5721 ;;
5722
5723 # No compiler: if they passed --enable-bootstrap explicitly, fail
5724 no:*:*:yes)
5725 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5726
5727 # Fail if wrong command line
5728 *)
5729 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5730 ;;
5731 esac
5732
5733 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5734 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5735 # require C++11 (or higher).
5736 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5737 CXX="$CXX -std=c++11"
5738 elif test "$have_compiler" = yes; then
5739 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5740 ac_ext=cpp
5741 ac_cpp='$CXXCPP $CPPFLAGS'
5742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5745 ac_success=no
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5748 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5749 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754
5755
5756 // If the compiler admits that it is not ready for C++11, why torture it?
5757 // Hopefully, this will speed up the test.
5758
5759 #ifndef __cplusplus
5760
5761 #error "This is not a C++ compiler"
5762
5763 #elif __cplusplus < 201103L
5764
5765 #error "This is not a C++11 compiler"
5766
5767 #else
5768
5769 namespace cxx11
5770 {
5771
5772 namespace test_static_assert
5773 {
5774
5775 template <typename T>
5776 struct check
5777 {
5778 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5779 };
5780
5781 }
5782
5783 namespace test_final_override
5784 {
5785
5786 struct Base
5787 {
5788 virtual ~Base() {}
5789 virtual void f() {}
5790 };
5791
5792 struct Derived : public Base
5793 {
5794 virtual ~Derived() override {}
5795 virtual void f() override {}
5796 };
5797
5798 }
5799
5800 namespace test_double_right_angle_brackets
5801 {
5802
5803 template < typename T >
5804 struct check {};
5805
5806 typedef check<void> single_type;
5807 typedef check<check<void>> double_type;
5808 typedef check<check<check<void>>> triple_type;
5809 typedef check<check<check<check<void>>>> quadruple_type;
5810
5811 }
5812
5813 namespace test_decltype
5814 {
5815
5816 int
5817 f()
5818 {
5819 int a = 1;
5820 decltype(a) b = 2;
5821 return a + b;
5822 }
5823
5824 }
5825
5826 namespace test_type_deduction
5827 {
5828
5829 template < typename T1, typename T2 >
5830 struct is_same
5831 {
5832 static const bool value = false;
5833 };
5834
5835 template < typename T >
5836 struct is_same<T, T>
5837 {
5838 static const bool value = true;
5839 };
5840
5841 template < typename T1, typename T2 >
5842 auto
5843 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5844 {
5845 return a1 + a2;
5846 }
5847
5848 int
5849 test(const int c, volatile int v)
5850 {
5851 static_assert(is_same<int, decltype(0)>::value == true, "");
5852 static_assert(is_same<int, decltype(c)>::value == false, "");
5853 static_assert(is_same<int, decltype(v)>::value == false, "");
5854 auto ac = c;
5855 auto av = v;
5856 auto sumi = ac + av + 'x';
5857 auto sumf = ac + av + 1.0;
5858 static_assert(is_same<int, decltype(ac)>::value == true, "");
5859 static_assert(is_same<int, decltype(av)>::value == true, "");
5860 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5861 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5862 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5863 return (sumf > 0.0) ? sumi : add(c, v);
5864 }
5865
5866 }
5867
5868 namespace test_noexcept
5869 {
5870
5871 int f() { return 0; }
5872 int g() noexcept { return 0; }
5873
5874 static_assert(noexcept(f()) == false, "");
5875 static_assert(noexcept(g()) == true, "");
5876
5877 }
5878
5879 namespace test_constexpr
5880 {
5881
5882 template < typename CharT >
5883 unsigned long constexpr
5884 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5885 {
5886 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5887 }
5888
5889 template < typename CharT >
5890 unsigned long constexpr
5891 strlen_c(const CharT *const s) noexcept
5892 {
5893 return strlen_c_r(s, 0UL);
5894 }
5895
5896 static_assert(strlen_c("") == 0UL, "");
5897 static_assert(strlen_c("1") == 1UL, "");
5898 static_assert(strlen_c("example") == 7UL, "");
5899 static_assert(strlen_c("another\0example") == 7UL, "");
5900
5901 }
5902
5903 namespace test_rvalue_references
5904 {
5905
5906 template < int N >
5907 struct answer
5908 {
5909 static constexpr int value = N;
5910 };
5911
5912 answer<1> f(int&) { return answer<1>(); }
5913 answer<2> f(const int&) { return answer<2>(); }
5914 answer<3> f(int&&) { return answer<3>(); }
5915
5916 void
5917 test()
5918 {
5919 int i = 0;
5920 const int c = 0;
5921 static_assert(decltype(f(i))::value == 1, "");
5922 static_assert(decltype(f(c))::value == 2, "");
5923 static_assert(decltype(f(0))::value == 3, "");
5924 }
5925
5926 }
5927
5928 namespace test_uniform_initialization
5929 {
5930
5931 struct test
5932 {
5933 static const int zero {};
5934 static const int one {1};
5935 };
5936
5937 static_assert(test::zero == 0, "");
5938 static_assert(test::one == 1, "");
5939
5940 }
5941
5942 namespace test_lambdas
5943 {
5944
5945 void
5946 test1()
5947 {
5948 auto lambda1 = [](){};
5949 auto lambda2 = lambda1;
5950 lambda1();
5951 lambda2();
5952 }
5953
5954 int
5955 test2()
5956 {
5957 auto a = [](int i, int j){ return i + j; }(1, 2);
5958 auto b = []() -> int { return '0'; }();
5959 auto c = [=](){ return a + b; }();
5960 auto d = [&](){ return c; }();
5961 auto e = [a, &b](int x) mutable {
5962 const auto identity = [](int y){ return y; };
5963 for (auto i = 0; i < a; ++i)
5964 a += b--;
5965 return x + identity(a + b);
5966 }(0);
5967 return a + b + c + d + e;
5968 }
5969
5970 int
5971 test3()
5972 {
5973 const auto nullary = [](){ return 0; };
5974 const auto unary = [](int x){ return x; };
5975 using nullary_t = decltype(nullary);
5976 using unary_t = decltype(unary);
5977 const auto higher1st = [](nullary_t f){ return f(); };
5978 const auto higher2nd = [unary](nullary_t f1){
5979 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5980 };
5981 return higher1st(nullary) + higher2nd(nullary)(unary);
5982 }
5983
5984 }
5985
5986 namespace test_variadic_templates
5987 {
5988
5989 template <int...>
5990 struct sum;
5991
5992 template <int N0, int... N1toN>
5993 struct sum<N0, N1toN...>
5994 {
5995 static constexpr auto value = N0 + sum<N1toN...>::value;
5996 };
5997
5998 template <>
5999 struct sum<>
6000 {
6001 static constexpr auto value = 0;
6002 };
6003
6004 static_assert(sum<>::value == 0, "");
6005 static_assert(sum<1>::value == 1, "");
6006 static_assert(sum<23>::value == 23, "");
6007 static_assert(sum<1, 2>::value == 3, "");
6008 static_assert(sum<5, 5, 11>::value == 21, "");
6009 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6010
6011 }
6012
6013 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6014 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6015 // because of this.
6016 namespace test_template_alias_sfinae
6017 {
6018
6019 struct foo {};
6020
6021 template<typename T>
6022 using member = typename T::member_type;
6023
6024 template<typename T>
6025 void func(...) {}
6026
6027 template<typename T>
6028 void func(member<T>*) {}
6029
6030 void test();
6031
6032 void test() { func<foo>(0); }
6033
6034 }
6035
6036 } // namespace cxx11
6037
6038 #endif // __cplusplus >= 201103L
6039
6040
6041
6042 _ACEOF
6043 if ac_fn_cxx_try_compile "$LINENO"; then :
6044 ax_cv_cxx_compile_cxx11=yes
6045 else
6046 ax_cv_cxx_compile_cxx11=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6051 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6052 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6053 ac_success=yes
6054 fi
6055
6056 if test x$ac_success = xno; then
6057 for alternative in ${ax_cxx_compile_alternatives}; do
6058 switch="-std=gnu++${alternative}"
6059 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6061 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6062 if eval \${$cachevar+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 ac_save_CXX="$CXX"
6066 CXX="$CXX $switch"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069
6070
6071 // If the compiler admits that it is not ready for C++11, why torture it?
6072 // Hopefully, this will speed up the test.
6073
6074 #ifndef __cplusplus
6075
6076 #error "This is not a C++ compiler"
6077
6078 #elif __cplusplus < 201103L
6079
6080 #error "This is not a C++11 compiler"
6081
6082 #else
6083
6084 namespace cxx11
6085 {
6086
6087 namespace test_static_assert
6088 {
6089
6090 template <typename T>
6091 struct check
6092 {
6093 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6094 };
6095
6096 }
6097
6098 namespace test_final_override
6099 {
6100
6101 struct Base
6102 {
6103 virtual ~Base() {}
6104 virtual void f() {}
6105 };
6106
6107 struct Derived : public Base
6108 {
6109 virtual ~Derived() override {}
6110 virtual void f() override {}
6111 };
6112
6113 }
6114
6115 namespace test_double_right_angle_brackets
6116 {
6117
6118 template < typename T >
6119 struct check {};
6120
6121 typedef check<void> single_type;
6122 typedef check<check<void>> double_type;
6123 typedef check<check<check<void>>> triple_type;
6124 typedef check<check<check<check<void>>>> quadruple_type;
6125
6126 }
6127
6128 namespace test_decltype
6129 {
6130
6131 int
6132 f()
6133 {
6134 int a = 1;
6135 decltype(a) b = 2;
6136 return a + b;
6137 }
6138
6139 }
6140
6141 namespace test_type_deduction
6142 {
6143
6144 template < typename T1, typename T2 >
6145 struct is_same
6146 {
6147 static const bool value = false;
6148 };
6149
6150 template < typename T >
6151 struct is_same<T, T>
6152 {
6153 static const bool value = true;
6154 };
6155
6156 template < typename T1, typename T2 >
6157 auto
6158 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6159 {
6160 return a1 + a2;
6161 }
6162
6163 int
6164 test(const int c, volatile int v)
6165 {
6166 static_assert(is_same<int, decltype(0)>::value == true, "");
6167 static_assert(is_same<int, decltype(c)>::value == false, "");
6168 static_assert(is_same<int, decltype(v)>::value == false, "");
6169 auto ac = c;
6170 auto av = v;
6171 auto sumi = ac + av + 'x';
6172 auto sumf = ac + av + 1.0;
6173 static_assert(is_same<int, decltype(ac)>::value == true, "");
6174 static_assert(is_same<int, decltype(av)>::value == true, "");
6175 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6176 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6177 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6178 return (sumf > 0.0) ? sumi : add(c, v);
6179 }
6180
6181 }
6182
6183 namespace test_noexcept
6184 {
6185
6186 int f() { return 0; }
6187 int g() noexcept { return 0; }
6188
6189 static_assert(noexcept(f()) == false, "");
6190 static_assert(noexcept(g()) == true, "");
6191
6192 }
6193
6194 namespace test_constexpr
6195 {
6196
6197 template < typename CharT >
6198 unsigned long constexpr
6199 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6200 {
6201 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6202 }
6203
6204 template < typename CharT >
6205 unsigned long constexpr
6206 strlen_c(const CharT *const s) noexcept
6207 {
6208 return strlen_c_r(s, 0UL);
6209 }
6210
6211 static_assert(strlen_c("") == 0UL, "");
6212 static_assert(strlen_c("1") == 1UL, "");
6213 static_assert(strlen_c("example") == 7UL, "");
6214 static_assert(strlen_c("another\0example") == 7UL, "");
6215
6216 }
6217
6218 namespace test_rvalue_references
6219 {
6220
6221 template < int N >
6222 struct answer
6223 {
6224 static constexpr int value = N;
6225 };
6226
6227 answer<1> f(int&) { return answer<1>(); }
6228 answer<2> f(const int&) { return answer<2>(); }
6229 answer<3> f(int&&) { return answer<3>(); }
6230
6231 void
6232 test()
6233 {
6234 int i = 0;
6235 const int c = 0;
6236 static_assert(decltype(f(i))::value == 1, "");
6237 static_assert(decltype(f(c))::value == 2, "");
6238 static_assert(decltype(f(0))::value == 3, "");
6239 }
6240
6241 }
6242
6243 namespace test_uniform_initialization
6244 {
6245
6246 struct test
6247 {
6248 static const int zero {};
6249 static const int one {1};
6250 };
6251
6252 static_assert(test::zero == 0, "");
6253 static_assert(test::one == 1, "");
6254
6255 }
6256
6257 namespace test_lambdas
6258 {
6259
6260 void
6261 test1()
6262 {
6263 auto lambda1 = [](){};
6264 auto lambda2 = lambda1;
6265 lambda1();
6266 lambda2();
6267 }
6268
6269 int
6270 test2()
6271 {
6272 auto a = [](int i, int j){ return i + j; }(1, 2);
6273 auto b = []() -> int { return '0'; }();
6274 auto c = [=](){ return a + b; }();
6275 auto d = [&](){ return c; }();
6276 auto e = [a, &b](int x) mutable {
6277 const auto identity = [](int y){ return y; };
6278 for (auto i = 0; i < a; ++i)
6279 a += b--;
6280 return x + identity(a + b);
6281 }(0);
6282 return a + b + c + d + e;
6283 }
6284
6285 int
6286 test3()
6287 {
6288 const auto nullary = [](){ return 0; };
6289 const auto unary = [](int x){ return x; };
6290 using nullary_t = decltype(nullary);
6291 using unary_t = decltype(unary);
6292 const auto higher1st = [](nullary_t f){ return f(); };
6293 const auto higher2nd = [unary](nullary_t f1){
6294 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6295 };
6296 return higher1st(nullary) + higher2nd(nullary)(unary);
6297 }
6298
6299 }
6300
6301 namespace test_variadic_templates
6302 {
6303
6304 template <int...>
6305 struct sum;
6306
6307 template <int N0, int... N1toN>
6308 struct sum<N0, N1toN...>
6309 {
6310 static constexpr auto value = N0 + sum<N1toN...>::value;
6311 };
6312
6313 template <>
6314 struct sum<>
6315 {
6316 static constexpr auto value = 0;
6317 };
6318
6319 static_assert(sum<>::value == 0, "");
6320 static_assert(sum<1>::value == 1, "");
6321 static_assert(sum<23>::value == 23, "");
6322 static_assert(sum<1, 2>::value == 3, "");
6323 static_assert(sum<5, 5, 11>::value == 21, "");
6324 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6325
6326 }
6327
6328 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6329 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6330 // because of this.
6331 namespace test_template_alias_sfinae
6332 {
6333
6334 struct foo {};
6335
6336 template<typename T>
6337 using member = typename T::member_type;
6338
6339 template<typename T>
6340 void func(...) {}
6341
6342 template<typename T>
6343 void func(member<T>*) {}
6344
6345 void test();
6346
6347 void test() { func<foo>(0); }
6348
6349 }
6350
6351 } // namespace cxx11
6352
6353 #endif // __cplusplus >= 201103L
6354
6355
6356
6357 _ACEOF
6358 if ac_fn_cxx_try_compile "$LINENO"; then :
6359 eval $cachevar=yes
6360 else
6361 eval $cachevar=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 CXX="$ac_save_CXX"
6365 fi
6366 eval ac_res=\$$cachevar
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6368 $as_echo "$ac_res" >&6; }
6369 if eval test x\$$cachevar = xyes; then
6370 CXX="$CXX $switch"
6371 if test -n "$CXXCPP" ; then
6372 CXXCPP="$CXXCPP $switch"
6373 fi
6374 ac_success=yes
6375 break
6376 fi
6377 done
6378 fi
6379
6380 if test x$ac_success = xno; then
6381 for alternative in ${ax_cxx_compile_alternatives}; do
6382 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6383 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6385 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6386 if eval \${$cachevar+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 ac_save_CXX="$CXX"
6390 CXX="$CXX $switch"
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393
6394
6395 // If the compiler admits that it is not ready for C++11, why torture it?
6396 // Hopefully, this will speed up the test.
6397
6398 #ifndef __cplusplus
6399
6400 #error "This is not a C++ compiler"
6401
6402 #elif __cplusplus < 201103L
6403
6404 #error "This is not a C++11 compiler"
6405
6406 #else
6407
6408 namespace cxx11
6409 {
6410
6411 namespace test_static_assert
6412 {
6413
6414 template <typename T>
6415 struct check
6416 {
6417 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6418 };
6419
6420 }
6421
6422 namespace test_final_override
6423 {
6424
6425 struct Base
6426 {
6427 virtual ~Base() {}
6428 virtual void f() {}
6429 };
6430
6431 struct Derived : public Base
6432 {
6433 virtual ~Derived() override {}
6434 virtual void f() override {}
6435 };
6436
6437 }
6438
6439 namespace test_double_right_angle_brackets
6440 {
6441
6442 template < typename T >
6443 struct check {};
6444
6445 typedef check<void> single_type;
6446 typedef check<check<void>> double_type;
6447 typedef check<check<check<void>>> triple_type;
6448 typedef check<check<check<check<void>>>> quadruple_type;
6449
6450 }
6451
6452 namespace test_decltype
6453 {
6454
6455 int
6456 f()
6457 {
6458 int a = 1;
6459 decltype(a) b = 2;
6460 return a + b;
6461 }
6462
6463 }
6464
6465 namespace test_type_deduction
6466 {
6467
6468 template < typename T1, typename T2 >
6469 struct is_same
6470 {
6471 static const bool value = false;
6472 };
6473
6474 template < typename T >
6475 struct is_same<T, T>
6476 {
6477 static const bool value = true;
6478 };
6479
6480 template < typename T1, typename T2 >
6481 auto
6482 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6483 {
6484 return a1 + a2;
6485 }
6486
6487 int
6488 test(const int c, volatile int v)
6489 {
6490 static_assert(is_same<int, decltype(0)>::value == true, "");
6491 static_assert(is_same<int, decltype(c)>::value == false, "");
6492 static_assert(is_same<int, decltype(v)>::value == false, "");
6493 auto ac = c;
6494 auto av = v;
6495 auto sumi = ac + av + 'x';
6496 auto sumf = ac + av + 1.0;
6497 static_assert(is_same<int, decltype(ac)>::value == true, "");
6498 static_assert(is_same<int, decltype(av)>::value == true, "");
6499 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6500 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6501 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6502 return (sumf > 0.0) ? sumi : add(c, v);
6503 }
6504
6505 }
6506
6507 namespace test_noexcept
6508 {
6509
6510 int f() { return 0; }
6511 int g() noexcept { return 0; }
6512
6513 static_assert(noexcept(f()) == false, "");
6514 static_assert(noexcept(g()) == true, "");
6515
6516 }
6517
6518 namespace test_constexpr
6519 {
6520
6521 template < typename CharT >
6522 unsigned long constexpr
6523 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6524 {
6525 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6526 }
6527
6528 template < typename CharT >
6529 unsigned long constexpr
6530 strlen_c(const CharT *const s) noexcept
6531 {
6532 return strlen_c_r(s, 0UL);
6533 }
6534
6535 static_assert(strlen_c("") == 0UL, "");
6536 static_assert(strlen_c("1") == 1UL, "");
6537 static_assert(strlen_c("example") == 7UL, "");
6538 static_assert(strlen_c("another\0example") == 7UL, "");
6539
6540 }
6541
6542 namespace test_rvalue_references
6543 {
6544
6545 template < int N >
6546 struct answer
6547 {
6548 static constexpr int value = N;
6549 };
6550
6551 answer<1> f(int&) { return answer<1>(); }
6552 answer<2> f(const int&) { return answer<2>(); }
6553 answer<3> f(int&&) { return answer<3>(); }
6554
6555 void
6556 test()
6557 {
6558 int i = 0;
6559 const int c = 0;
6560 static_assert(decltype(f(i))::value == 1, "");
6561 static_assert(decltype(f(c))::value == 2, "");
6562 static_assert(decltype(f(0))::value == 3, "");
6563 }
6564
6565 }
6566
6567 namespace test_uniform_initialization
6568 {
6569
6570 struct test
6571 {
6572 static const int zero {};
6573 static const int one {1};
6574 };
6575
6576 static_assert(test::zero == 0, "");
6577 static_assert(test::one == 1, "");
6578
6579 }
6580
6581 namespace test_lambdas
6582 {
6583
6584 void
6585 test1()
6586 {
6587 auto lambda1 = [](){};
6588 auto lambda2 = lambda1;
6589 lambda1();
6590 lambda2();
6591 }
6592
6593 int
6594 test2()
6595 {
6596 auto a = [](int i, int j){ return i + j; }(1, 2);
6597 auto b = []() -> int { return '0'; }();
6598 auto c = [=](){ return a + b; }();
6599 auto d = [&](){ return c; }();
6600 auto e = [a, &b](int x) mutable {
6601 const auto identity = [](int y){ return y; };
6602 for (auto i = 0; i < a; ++i)
6603 a += b--;
6604 return x + identity(a + b);
6605 }(0);
6606 return a + b + c + d + e;
6607 }
6608
6609 int
6610 test3()
6611 {
6612 const auto nullary = [](){ return 0; };
6613 const auto unary = [](int x){ return x; };
6614 using nullary_t = decltype(nullary);
6615 using unary_t = decltype(unary);
6616 const auto higher1st = [](nullary_t f){ return f(); };
6617 const auto higher2nd = [unary](nullary_t f1){
6618 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6619 };
6620 return higher1st(nullary) + higher2nd(nullary)(unary);
6621 }
6622
6623 }
6624
6625 namespace test_variadic_templates
6626 {
6627
6628 template <int...>
6629 struct sum;
6630
6631 template <int N0, int... N1toN>
6632 struct sum<N0, N1toN...>
6633 {
6634 static constexpr auto value = N0 + sum<N1toN...>::value;
6635 };
6636
6637 template <>
6638 struct sum<>
6639 {
6640 static constexpr auto value = 0;
6641 };
6642
6643 static_assert(sum<>::value == 0, "");
6644 static_assert(sum<1>::value == 1, "");
6645 static_assert(sum<23>::value == 23, "");
6646 static_assert(sum<1, 2>::value == 3, "");
6647 static_assert(sum<5, 5, 11>::value == 21, "");
6648 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6649
6650 }
6651
6652 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6653 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6654 // because of this.
6655 namespace test_template_alias_sfinae
6656 {
6657
6658 struct foo {};
6659
6660 template<typename T>
6661 using member = typename T::member_type;
6662
6663 template<typename T>
6664 void func(...) {}
6665
6666 template<typename T>
6667 void func(member<T>*) {}
6668
6669 void test();
6670
6671 void test() { func<foo>(0); }
6672
6673 }
6674
6675 } // namespace cxx11
6676
6677 #endif // __cplusplus >= 201103L
6678
6679
6680
6681 _ACEOF
6682 if ac_fn_cxx_try_compile "$LINENO"; then :
6683 eval $cachevar=yes
6684 else
6685 eval $cachevar=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 CXX="$ac_save_CXX"
6689 fi
6690 eval ac_res=\$$cachevar
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6692 $as_echo "$ac_res" >&6; }
6693 if eval test x\$$cachevar = xyes; then
6694 CXX="$CXX $switch"
6695 if test -n "$CXXCPP" ; then
6696 CXXCPP="$CXXCPP $switch"
6697 fi
6698 ac_success=yes
6699 break
6700 fi
6701 done
6702 if test x$ac_success = xyes; then
6703 break
6704 fi
6705 done
6706 fi
6707
6708 ac_ext=c
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713
6714 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6715 if test x$ac_success = xno; then
6716 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6717 fi
6718 fi
6719 if test x$ac_success = xno; then
6720 HAVE_CXX11=0
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6722 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6723 else
6724 HAVE_CXX11=1
6725
6726 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6727
6728 fi
6729
6730
6731
6732 if test "${build}" != "${host}"; then
6733 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6734 ac_ext=cpp
6735 ac_cpp='$CXXCPP $CPPFLAGS'
6736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6739 ac_success=no
6740 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6741 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6742 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6743 CXX="$CXX_FOR_BUILD"
6744 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6745 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6747 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6748 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753
6754
6755 // If the compiler admits that it is not ready for C++11, why torture it?
6756 // Hopefully, this will speed up the test.
6757
6758 #ifndef __cplusplus
6759
6760 #error "This is not a C++ compiler"
6761
6762 #elif __cplusplus < 201103L
6763
6764 #error "This is not a C++11 compiler"
6765
6766 #else
6767
6768 namespace cxx11
6769 {
6770
6771 namespace test_static_assert
6772 {
6773
6774 template <typename T>
6775 struct check
6776 {
6777 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6778 };
6779
6780 }
6781
6782 namespace test_final_override
6783 {
6784
6785 struct Base
6786 {
6787 virtual ~Base() {}
6788 virtual void f() {}
6789 };
6790
6791 struct Derived : public Base
6792 {
6793 virtual ~Derived() override {}
6794 virtual void f() override {}
6795 };
6796
6797 }
6798
6799 namespace test_double_right_angle_brackets
6800 {
6801
6802 template < typename T >
6803 struct check {};
6804
6805 typedef check<void> single_type;
6806 typedef check<check<void>> double_type;
6807 typedef check<check<check<void>>> triple_type;
6808 typedef check<check<check<check<void>>>> quadruple_type;
6809
6810 }
6811
6812 namespace test_decltype
6813 {
6814
6815 int
6816 f()
6817 {
6818 int a = 1;
6819 decltype(a) b = 2;
6820 return a + b;
6821 }
6822
6823 }
6824
6825 namespace test_type_deduction
6826 {
6827
6828 template < typename T1, typename T2 >
6829 struct is_same
6830 {
6831 static const bool value = false;
6832 };
6833
6834 template < typename T >
6835 struct is_same<T, T>
6836 {
6837 static const bool value = true;
6838 };
6839
6840 template < typename T1, typename T2 >
6841 auto
6842 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6843 {
6844 return a1 + a2;
6845 }
6846
6847 int
6848 test(const int c, volatile int v)
6849 {
6850 static_assert(is_same<int, decltype(0)>::value == true, "");
6851 static_assert(is_same<int, decltype(c)>::value == false, "");
6852 static_assert(is_same<int, decltype(v)>::value == false, "");
6853 auto ac = c;
6854 auto av = v;
6855 auto sumi = ac + av + 'x';
6856 auto sumf = ac + av + 1.0;
6857 static_assert(is_same<int, decltype(ac)>::value == true, "");
6858 static_assert(is_same<int, decltype(av)>::value == true, "");
6859 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6860 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6861 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6862 return (sumf > 0.0) ? sumi : add(c, v);
6863 }
6864
6865 }
6866
6867 namespace test_noexcept
6868 {
6869
6870 int f() { return 0; }
6871 int g() noexcept { return 0; }
6872
6873 static_assert(noexcept(f()) == false, "");
6874 static_assert(noexcept(g()) == true, "");
6875
6876 }
6877
6878 namespace test_constexpr
6879 {
6880
6881 template < typename CharT >
6882 unsigned long constexpr
6883 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6884 {
6885 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6886 }
6887
6888 template < typename CharT >
6889 unsigned long constexpr
6890 strlen_c(const CharT *const s) noexcept
6891 {
6892 return strlen_c_r(s, 0UL);
6893 }
6894
6895 static_assert(strlen_c("") == 0UL, "");
6896 static_assert(strlen_c("1") == 1UL, "");
6897 static_assert(strlen_c("example") == 7UL, "");
6898 static_assert(strlen_c("another\0example") == 7UL, "");
6899
6900 }
6901
6902 namespace test_rvalue_references
6903 {
6904
6905 template < int N >
6906 struct answer
6907 {
6908 static constexpr int value = N;
6909 };
6910
6911 answer<1> f(int&) { return answer<1>(); }
6912 answer<2> f(const int&) { return answer<2>(); }
6913 answer<3> f(int&&) { return answer<3>(); }
6914
6915 void
6916 test()
6917 {
6918 int i = 0;
6919 const int c = 0;
6920 static_assert(decltype(f(i))::value == 1, "");
6921 static_assert(decltype(f(c))::value == 2, "");
6922 static_assert(decltype(f(0))::value == 3, "");
6923 }
6924
6925 }
6926
6927 namespace test_uniform_initialization
6928 {
6929
6930 struct test
6931 {
6932 static const int zero {};
6933 static const int one {1};
6934 };
6935
6936 static_assert(test::zero == 0, "");
6937 static_assert(test::one == 1, "");
6938
6939 }
6940
6941 namespace test_lambdas
6942 {
6943
6944 void
6945 test1()
6946 {
6947 auto lambda1 = [](){};
6948 auto lambda2 = lambda1;
6949 lambda1();
6950 lambda2();
6951 }
6952
6953 int
6954 test2()
6955 {
6956 auto a = [](int i, int j){ return i + j; }(1, 2);
6957 auto b = []() -> int { return '0'; }();
6958 auto c = [=](){ return a + b; }();
6959 auto d = [&](){ return c; }();
6960 auto e = [a, &b](int x) mutable {
6961 const auto identity = [](int y){ return y; };
6962 for (auto i = 0; i < a; ++i)
6963 a += b--;
6964 return x + identity(a + b);
6965 }(0);
6966 return a + b + c + d + e;
6967 }
6968
6969 int
6970 test3()
6971 {
6972 const auto nullary = [](){ return 0; };
6973 const auto unary = [](int x){ return x; };
6974 using nullary_t = decltype(nullary);
6975 using unary_t = decltype(unary);
6976 const auto higher1st = [](nullary_t f){ return f(); };
6977 const auto higher2nd = [unary](nullary_t f1){
6978 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6979 };
6980 return higher1st(nullary) + higher2nd(nullary)(unary);
6981 }
6982
6983 }
6984
6985 namespace test_variadic_templates
6986 {
6987
6988 template <int...>
6989 struct sum;
6990
6991 template <int N0, int... N1toN>
6992 struct sum<N0, N1toN...>
6993 {
6994 static constexpr auto value = N0 + sum<N1toN...>::value;
6995 };
6996
6997 template <>
6998 struct sum<>
6999 {
7000 static constexpr auto value = 0;
7001 };
7002
7003 static_assert(sum<>::value == 0, "");
7004 static_assert(sum<1>::value == 1, "");
7005 static_assert(sum<23>::value == 23, "");
7006 static_assert(sum<1, 2>::value == 3, "");
7007 static_assert(sum<5, 5, 11>::value == 21, "");
7008 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7009
7010 }
7011
7012 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7013 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7014 // because of this.
7015 namespace test_template_alias_sfinae
7016 {
7017
7018 struct foo {};
7019
7020 template<typename T>
7021 using member = typename T::member_type;
7022
7023 template<typename T>
7024 void func(...) {}
7025
7026 template<typename T>
7027 void func(member<T>*) {}
7028
7029 void test();
7030
7031 void test() { func<foo>(0); }
7032
7033 }
7034
7035 } // namespace cxx11
7036
7037 #endif // __cplusplus >= 201103L
7038
7039
7040
7041 _ACEOF
7042 if ac_fn_cxx_try_compile "$LINENO"; then :
7043 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7044 else
7045 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7050 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7051 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7052 ac_success=yes
7053 fi
7054
7055 if test x$ac_success = xno; then
7056 for alternative in ${ax_cxx_compile_alternatives}; do
7057 switch="-std=gnu++${alternative}"
7058 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7060 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7061 if eval \${$cachevar+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 ac_save_CXX="$CXX"
7065 CXX="$CXX $switch"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068
7069
7070 // If the compiler admits that it is not ready for C++11, why torture it?
7071 // Hopefully, this will speed up the test.
7072
7073 #ifndef __cplusplus
7074
7075 #error "This is not a C++ compiler"
7076
7077 #elif __cplusplus < 201103L
7078
7079 #error "This is not a C++11 compiler"
7080
7081 #else
7082
7083 namespace cxx11
7084 {
7085
7086 namespace test_static_assert
7087 {
7088
7089 template <typename T>
7090 struct check
7091 {
7092 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7093 };
7094
7095 }
7096
7097 namespace test_final_override
7098 {
7099
7100 struct Base
7101 {
7102 virtual ~Base() {}
7103 virtual void f() {}
7104 };
7105
7106 struct Derived : public Base
7107 {
7108 virtual ~Derived() override {}
7109 virtual void f() override {}
7110 };
7111
7112 }
7113
7114 namespace test_double_right_angle_brackets
7115 {
7116
7117 template < typename T >
7118 struct check {};
7119
7120 typedef check<void> single_type;
7121 typedef check<check<void>> double_type;
7122 typedef check<check<check<void>>> triple_type;
7123 typedef check<check<check<check<void>>>> quadruple_type;
7124
7125 }
7126
7127 namespace test_decltype
7128 {
7129
7130 int
7131 f()
7132 {
7133 int a = 1;
7134 decltype(a) b = 2;
7135 return a + b;
7136 }
7137
7138 }
7139
7140 namespace test_type_deduction
7141 {
7142
7143 template < typename T1, typename T2 >
7144 struct is_same
7145 {
7146 static const bool value = false;
7147 };
7148
7149 template < typename T >
7150 struct is_same<T, T>
7151 {
7152 static const bool value = true;
7153 };
7154
7155 template < typename T1, typename T2 >
7156 auto
7157 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7158 {
7159 return a1 + a2;
7160 }
7161
7162 int
7163 test(const int c, volatile int v)
7164 {
7165 static_assert(is_same<int, decltype(0)>::value == true, "");
7166 static_assert(is_same<int, decltype(c)>::value == false, "");
7167 static_assert(is_same<int, decltype(v)>::value == false, "");
7168 auto ac = c;
7169 auto av = v;
7170 auto sumi = ac + av + 'x';
7171 auto sumf = ac + av + 1.0;
7172 static_assert(is_same<int, decltype(ac)>::value == true, "");
7173 static_assert(is_same<int, decltype(av)>::value == true, "");
7174 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7175 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7176 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7177 return (sumf > 0.0) ? sumi : add(c, v);
7178 }
7179
7180 }
7181
7182 namespace test_noexcept
7183 {
7184
7185 int f() { return 0; }
7186 int g() noexcept { return 0; }
7187
7188 static_assert(noexcept(f()) == false, "");
7189 static_assert(noexcept(g()) == true, "");
7190
7191 }
7192
7193 namespace test_constexpr
7194 {
7195
7196 template < typename CharT >
7197 unsigned long constexpr
7198 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7199 {
7200 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7201 }
7202
7203 template < typename CharT >
7204 unsigned long constexpr
7205 strlen_c(const CharT *const s) noexcept
7206 {
7207 return strlen_c_r(s, 0UL);
7208 }
7209
7210 static_assert(strlen_c("") == 0UL, "");
7211 static_assert(strlen_c("1") == 1UL, "");
7212 static_assert(strlen_c("example") == 7UL, "");
7213 static_assert(strlen_c("another\0example") == 7UL, "");
7214
7215 }
7216
7217 namespace test_rvalue_references
7218 {
7219
7220 template < int N >
7221 struct answer
7222 {
7223 static constexpr int value = N;
7224 };
7225
7226 answer<1> f(int&) { return answer<1>(); }
7227 answer<2> f(const int&) { return answer<2>(); }
7228 answer<3> f(int&&) { return answer<3>(); }
7229
7230 void
7231 test()
7232 {
7233 int i = 0;
7234 const int c = 0;
7235 static_assert(decltype(f(i))::value == 1, "");
7236 static_assert(decltype(f(c))::value == 2, "");
7237 static_assert(decltype(f(0))::value == 3, "");
7238 }
7239
7240 }
7241
7242 namespace test_uniform_initialization
7243 {
7244
7245 struct test
7246 {
7247 static const int zero {};
7248 static const int one {1};
7249 };
7250
7251 static_assert(test::zero == 0, "");
7252 static_assert(test::one == 1, "");
7253
7254 }
7255
7256 namespace test_lambdas
7257 {
7258
7259 void
7260 test1()
7261 {
7262 auto lambda1 = [](){};
7263 auto lambda2 = lambda1;
7264 lambda1();
7265 lambda2();
7266 }
7267
7268 int
7269 test2()
7270 {
7271 auto a = [](int i, int j){ return i + j; }(1, 2);
7272 auto b = []() -> int { return '0'; }();
7273 auto c = [=](){ return a + b; }();
7274 auto d = [&](){ return c; }();
7275 auto e = [a, &b](int x) mutable {
7276 const auto identity = [](int y){ return y; };
7277 for (auto i = 0; i < a; ++i)
7278 a += b--;
7279 return x + identity(a + b);
7280 }(0);
7281 return a + b + c + d + e;
7282 }
7283
7284 int
7285 test3()
7286 {
7287 const auto nullary = [](){ return 0; };
7288 const auto unary = [](int x){ return x; };
7289 using nullary_t = decltype(nullary);
7290 using unary_t = decltype(unary);
7291 const auto higher1st = [](nullary_t f){ return f(); };
7292 const auto higher2nd = [unary](nullary_t f1){
7293 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7294 };
7295 return higher1st(nullary) + higher2nd(nullary)(unary);
7296 }
7297
7298 }
7299
7300 namespace test_variadic_templates
7301 {
7302
7303 template <int...>
7304 struct sum;
7305
7306 template <int N0, int... N1toN>
7307 struct sum<N0, N1toN...>
7308 {
7309 static constexpr auto value = N0 + sum<N1toN...>::value;
7310 };
7311
7312 template <>
7313 struct sum<>
7314 {
7315 static constexpr auto value = 0;
7316 };
7317
7318 static_assert(sum<>::value == 0, "");
7319 static_assert(sum<1>::value == 1, "");
7320 static_assert(sum<23>::value == 23, "");
7321 static_assert(sum<1, 2>::value == 3, "");
7322 static_assert(sum<5, 5, 11>::value == 21, "");
7323 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7324
7325 }
7326
7327 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7328 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7329 // because of this.
7330 namespace test_template_alias_sfinae
7331 {
7332
7333 struct foo {};
7334
7335 template<typename T>
7336 using member = typename T::member_type;
7337
7338 template<typename T>
7339 void func(...) {}
7340
7341 template<typename T>
7342 void func(member<T>*) {}
7343
7344 void test();
7345
7346 void test() { func<foo>(0); }
7347
7348 }
7349
7350 } // namespace cxx11
7351
7352 #endif // __cplusplus >= 201103L
7353
7354
7355
7356 _ACEOF
7357 if ac_fn_cxx_try_compile "$LINENO"; then :
7358 eval $cachevar=yes
7359 else
7360 eval $cachevar=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 CXX="$ac_save_CXX"
7364 fi
7365 eval ac_res=\$$cachevar
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7368 if eval test x\$$cachevar = xyes; then
7369 CXX="$CXX $switch"
7370 if test -n "$CXXCPP" ; then
7371 CXXCPP="$CXXCPP $switch"
7372 fi
7373 ac_success=yes
7374 break
7375 fi
7376 done
7377 fi
7378
7379 if test x$ac_success = xno; then
7380 for alternative in ${ax_cxx_compile_alternatives}; do
7381 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7382 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7384 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7385 if eval \${$cachevar+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 ac_save_CXX="$CXX"
7389 CXX="$CXX $switch"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392
7393
7394 // If the compiler admits that it is not ready for C++11, why torture it?
7395 // Hopefully, this will speed up the test.
7396
7397 #ifndef __cplusplus
7398
7399 #error "This is not a C++ compiler"
7400
7401 #elif __cplusplus < 201103L
7402
7403 #error "This is not a C++11 compiler"
7404
7405 #else
7406
7407 namespace cxx11
7408 {
7409
7410 namespace test_static_assert
7411 {
7412
7413 template <typename T>
7414 struct check
7415 {
7416 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7417 };
7418
7419 }
7420
7421 namespace test_final_override
7422 {
7423
7424 struct Base
7425 {
7426 virtual ~Base() {}
7427 virtual void f() {}
7428 };
7429
7430 struct Derived : public Base
7431 {
7432 virtual ~Derived() override {}
7433 virtual void f() override {}
7434 };
7435
7436 }
7437
7438 namespace test_double_right_angle_brackets
7439 {
7440
7441 template < typename T >
7442 struct check {};
7443
7444 typedef check<void> single_type;
7445 typedef check<check<void>> double_type;
7446 typedef check<check<check<void>>> triple_type;
7447 typedef check<check<check<check<void>>>> quadruple_type;
7448
7449 }
7450
7451 namespace test_decltype
7452 {
7453
7454 int
7455 f()
7456 {
7457 int a = 1;
7458 decltype(a) b = 2;
7459 return a + b;
7460 }
7461
7462 }
7463
7464 namespace test_type_deduction
7465 {
7466
7467 template < typename T1, typename T2 >
7468 struct is_same
7469 {
7470 static const bool value = false;
7471 };
7472
7473 template < typename T >
7474 struct is_same<T, T>
7475 {
7476 static const bool value = true;
7477 };
7478
7479 template < typename T1, typename T2 >
7480 auto
7481 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7482 {
7483 return a1 + a2;
7484 }
7485
7486 int
7487 test(const int c, volatile int v)
7488 {
7489 static_assert(is_same<int, decltype(0)>::value == true, "");
7490 static_assert(is_same<int, decltype(c)>::value == false, "");
7491 static_assert(is_same<int, decltype(v)>::value == false, "");
7492 auto ac = c;
7493 auto av = v;
7494 auto sumi = ac + av + 'x';
7495 auto sumf = ac + av + 1.0;
7496 static_assert(is_same<int, decltype(ac)>::value == true, "");
7497 static_assert(is_same<int, decltype(av)>::value == true, "");
7498 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7499 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7500 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7501 return (sumf > 0.0) ? sumi : add(c, v);
7502 }
7503
7504 }
7505
7506 namespace test_noexcept
7507 {
7508
7509 int f() { return 0; }
7510 int g() noexcept { return 0; }
7511
7512 static_assert(noexcept(f()) == false, "");
7513 static_assert(noexcept(g()) == true, "");
7514
7515 }
7516
7517 namespace test_constexpr
7518 {
7519
7520 template < typename CharT >
7521 unsigned long constexpr
7522 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7523 {
7524 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7525 }
7526
7527 template < typename CharT >
7528 unsigned long constexpr
7529 strlen_c(const CharT *const s) noexcept
7530 {
7531 return strlen_c_r(s, 0UL);
7532 }
7533
7534 static_assert(strlen_c("") == 0UL, "");
7535 static_assert(strlen_c("1") == 1UL, "");
7536 static_assert(strlen_c("example") == 7UL, "");
7537 static_assert(strlen_c("another\0example") == 7UL, "");
7538
7539 }
7540
7541 namespace test_rvalue_references
7542 {
7543
7544 template < int N >
7545 struct answer
7546 {
7547 static constexpr int value = N;
7548 };
7549
7550 answer<1> f(int&) { return answer<1>(); }
7551 answer<2> f(const int&) { return answer<2>(); }
7552 answer<3> f(int&&) { return answer<3>(); }
7553
7554 void
7555 test()
7556 {
7557 int i = 0;
7558 const int c = 0;
7559 static_assert(decltype(f(i))::value == 1, "");
7560 static_assert(decltype(f(c))::value == 2, "");
7561 static_assert(decltype(f(0))::value == 3, "");
7562 }
7563
7564 }
7565
7566 namespace test_uniform_initialization
7567 {
7568
7569 struct test
7570 {
7571 static const int zero {};
7572 static const int one {1};
7573 };
7574
7575 static_assert(test::zero == 0, "");
7576 static_assert(test::one == 1, "");
7577
7578 }
7579
7580 namespace test_lambdas
7581 {
7582
7583 void
7584 test1()
7585 {
7586 auto lambda1 = [](){};
7587 auto lambda2 = lambda1;
7588 lambda1();
7589 lambda2();
7590 }
7591
7592 int
7593 test2()
7594 {
7595 auto a = [](int i, int j){ return i + j; }(1, 2);
7596 auto b = []() -> int { return '0'; }();
7597 auto c = [=](){ return a + b; }();
7598 auto d = [&](){ return c; }();
7599 auto e = [a, &b](int x) mutable {
7600 const auto identity = [](int y){ return y; };
7601 for (auto i = 0; i < a; ++i)
7602 a += b--;
7603 return x + identity(a + b);
7604 }(0);
7605 return a + b + c + d + e;
7606 }
7607
7608 int
7609 test3()
7610 {
7611 const auto nullary = [](){ return 0; };
7612 const auto unary = [](int x){ return x; };
7613 using nullary_t = decltype(nullary);
7614 using unary_t = decltype(unary);
7615 const auto higher1st = [](nullary_t f){ return f(); };
7616 const auto higher2nd = [unary](nullary_t f1){
7617 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7618 };
7619 return higher1st(nullary) + higher2nd(nullary)(unary);
7620 }
7621
7622 }
7623
7624 namespace test_variadic_templates
7625 {
7626
7627 template <int...>
7628 struct sum;
7629
7630 template <int N0, int... N1toN>
7631 struct sum<N0, N1toN...>
7632 {
7633 static constexpr auto value = N0 + sum<N1toN...>::value;
7634 };
7635
7636 template <>
7637 struct sum<>
7638 {
7639 static constexpr auto value = 0;
7640 };
7641
7642 static_assert(sum<>::value == 0, "");
7643 static_assert(sum<1>::value == 1, "");
7644 static_assert(sum<23>::value == 23, "");
7645 static_assert(sum<1, 2>::value == 3, "");
7646 static_assert(sum<5, 5, 11>::value == 21, "");
7647 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7648
7649 }
7650
7651 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7652 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7653 // because of this.
7654 namespace test_template_alias_sfinae
7655 {
7656
7657 struct foo {};
7658
7659 template<typename T>
7660 using member = typename T::member_type;
7661
7662 template<typename T>
7663 void func(...) {}
7664
7665 template<typename T>
7666 void func(member<T>*) {}
7667
7668 void test();
7669
7670 void test() { func<foo>(0); }
7671
7672 }
7673
7674 } // namespace cxx11
7675
7676 #endif // __cplusplus >= 201103L
7677
7678
7679
7680 _ACEOF
7681 if ac_fn_cxx_try_compile "$LINENO"; then :
7682 eval $cachevar=yes
7683 else
7684 eval $cachevar=no
7685 fi
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 CXX="$ac_save_CXX"
7688 fi
7689 eval ac_res=\$$cachevar
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7691 $as_echo "$ac_res" >&6; }
7692 if eval test x\$$cachevar = xyes; then
7693 CXX="$CXX $switch"
7694 if test -n "$CXXCPP" ; then
7695 CXXCPP="$CXXCPP $switch"
7696 fi
7697 ac_success=yes
7698 break
7699 fi
7700 done
7701 if test x$ac_success = xyes; then
7702 break
7703 fi
7704 done
7705 fi
7706 CXX_FOR_BUILD="$CXX"
7707 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7708 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7709 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7710 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7711 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7712 ac_ext=c
7713 ac_cpp='$CPP $CPPFLAGS'
7714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717
7718 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7719 if test x$ac_success = xno; then
7720 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7721 fi
7722 fi
7723 if test x$ac_success = xno; then
7724 HAVE_CXX11_FOR_BUILD=0
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7726 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7727 else
7728 HAVE_CXX11_FOR_BUILD=1
7729
7730 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7731
7732 fi
7733
7734
7735 fi
7736 fi
7737
7738 # Used for setting $lt_cv_objdir
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7740 $as_echo_n "checking for objdir... " >&6; }
7741 if ${lt_cv_objdir+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 rm -f .libs 2>/dev/null
7745 mkdir .libs 2>/dev/null
7746 if test -d .libs; then
7747 lt_cv_objdir=.libs
7748 else
7749 # MS-DOS does not allow filenames that begin with a dot.
7750 lt_cv_objdir=_libs
7751 fi
7752 rmdir .libs 2>/dev/null
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7755 $as_echo "$lt_cv_objdir" >&6; }
7756 objdir=$lt_cv_objdir
7757
7758
7759
7760
7761
7762 cat >>confdefs.h <<_ACEOF
7763 #define LT_OBJDIR "$lt_cv_objdir/"
7764 _ACEOF
7765
7766
7767
7768 # Check for GMP, MPFR and MPC
7769 gmplibs="-lmpc -lmpfr -lgmp"
7770 gmpinc=
7771 have_gmp=no
7772
7773 # Specify a location for mpc
7774 # check for this first so it ends up on the link line before mpfr.
7775
7776 # Check whether --with-mpc was given.
7777 if test "${with_mpc+set}" = set; then :
7778 withval=$with_mpc;
7779 fi
7780
7781
7782 # Check whether --with-mpc-include was given.
7783 if test "${with_mpc_include+set}" = set; then :
7784 withval=$with_mpc_include;
7785 fi
7786
7787
7788 # Check whether --with-mpc-lib was given.
7789 if test "${with_mpc_lib+set}" = set; then :
7790 withval=$with_mpc_lib;
7791 fi
7792
7793
7794 if test "x$with_mpc" != x; then
7795 gmplibs="-L$with_mpc/lib $gmplibs"
7796 gmpinc="-I$with_mpc/include $gmpinc"
7797 fi
7798 if test "x$with_mpc_include" != x; then
7799 gmpinc="-I$with_mpc_include $gmpinc"
7800 fi
7801 if test "x$with_mpc_lib" != x; then
7802 gmplibs="-L$with_mpc_lib $gmplibs"
7803 fi
7804 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7805 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7806 gmpinc='-I$$s/mpc/src '"$gmpinc"
7807 # Do not test the mpc version. Assume that it is sufficient, since
7808 # it is in the source tree, and the library has not been built yet
7809 # but it would be included on the link line in the version check below
7810 # hence making the test fail.
7811 have_gmp=yes
7812 fi
7813
7814 # Specify a location for mpfr
7815 # check for this first so it ends up on the link line before gmp.
7816
7817 # Check whether --with-mpfr-dir was given.
7818 if test "${with_mpfr_dir+set}" = set; then :
7819 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7820 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7821 fi
7822
7823
7824
7825 # Check whether --with-mpfr was given.
7826 if test "${with_mpfr+set}" = set; then :
7827 withval=$with_mpfr;
7828 fi
7829
7830
7831 # Check whether --with-mpfr-include was given.
7832 if test "${with_mpfr_include+set}" = set; then :
7833 withval=$with_mpfr_include;
7834 fi
7835
7836
7837 # Check whether --with-mpfr-lib was given.
7838 if test "${with_mpfr_lib+set}" = set; then :
7839 withval=$with_mpfr_lib;
7840 fi
7841
7842
7843 if test "x$with_mpfr" != x; then
7844 gmplibs="-L$with_mpfr/lib $gmplibs"
7845 gmpinc="-I$with_mpfr/include $gmpinc"
7846 fi
7847 if test "x$with_mpfr_include" != x; then
7848 gmpinc="-I$with_mpfr_include $gmpinc"
7849 fi
7850 if test "x$with_mpfr_lib" != x; then
7851 gmplibs="-L$with_mpfr_lib $gmplibs"
7852 fi
7853 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7854 # MPFR v3.1.0 moved the sources into a src sub-directory.
7855 if ! test -d ${srcdir}/mpfr/src; then
7856 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7857 fi
7858 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7859 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7860 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7861 # Do not test the mpfr version. Assume that it is sufficient, since
7862 # it is in the source tree, and the library has not been built yet
7863 # but it would be included on the link line in the version check below
7864 # hence making the test fail.
7865 have_gmp=yes
7866 fi
7867
7868 # Specify a location for gmp
7869
7870 # Check whether --with-gmp-dir was given.
7871 if test "${with_gmp_dir+set}" = set; then :
7872 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7873 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7874 fi
7875
7876
7877
7878 # Check whether --with-gmp was given.
7879 if test "${with_gmp+set}" = set; then :
7880 withval=$with_gmp;
7881 fi
7882
7883
7884 # Check whether --with-gmp-include was given.
7885 if test "${with_gmp_include+set}" = set; then :
7886 withval=$with_gmp_include;
7887 fi
7888
7889
7890 # Check whether --with-gmp-lib was given.
7891 if test "${with_gmp_lib+set}" = set; then :
7892 withval=$with_gmp_lib;
7893 fi
7894
7895
7896
7897 if test "x$with_gmp" != x; then
7898 gmplibs="-L$with_gmp/lib $gmplibs"
7899 gmpinc="-I$with_gmp/include $gmpinc"
7900 fi
7901 if test "x$with_gmp_include" != x; then
7902 gmpinc="-I$with_gmp_include $gmpinc"
7903 fi
7904 if test "x$with_gmp_lib" != x; then
7905 gmplibs="-L$with_gmp_lib $gmplibs"
7906 fi
7907 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7908 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7909 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7910 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7911 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7912 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7913 # Do not test the gmp version. Assume that it is sufficient, since
7914 # it is in the source tree, and the library has not been built yet
7915 # but it would be included on the link line in the version check below
7916 # hence making the test fail.
7917 have_gmp=yes
7918 fi
7919
7920 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7921 have_gmp=yes
7922 saved_CFLAGS="$CFLAGS"
7923 CFLAGS="$CFLAGS $gmpinc"
7924 # Check for the recommended and required versions of GMP.
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7926 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7927
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 #include "gmp.h"
7931 int
7932 main ()
7933 {
7934
7935 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7936 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7937 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7938 choke me
7939 #endif
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 #include <gmp.h>
7949 int
7950 main ()
7951 {
7952
7953 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7954 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7955 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7956 choke me
7957 #endif
7958
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965 $as_echo "yes" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7968 $as_echo "buggy but acceptable" >&6; }
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }; have_gmp=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976
7977 # If we have GMP, check the MPFR version.
7978 if test x"$have_gmp" = xyes; then
7979 # Check for the recommended and required versions of MPFR.
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7981 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 #include <gmp.h>
7985 #include <mpfr.h>
7986 int
7987 main ()
7988 {
7989
7990 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7991 choke me
7992 #endif
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <gmp.h>
8002 #include <mpfr.h>
8003 int
8004 main ()
8005 {
8006
8007 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8008 choke me
8009 #endif
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8017 $as_echo "yes" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8020 $as_echo "buggy but acceptable" >&6; }
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }; have_gmp=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029
8030 # Check for the MPC header version.
8031 if test x"$have_gmp" = xyes ; then
8032 # Check for the recommended and required versions of MPC.
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8034 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <mpc.h>
8038 int
8039 main ()
8040 {
8041
8042 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8043 choke me
8044 #endif
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 #include <mpc.h>
8054 int
8055 main ()
8056 {
8057
8058 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8059 choke me
8060 #endif
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068 $as_echo "yes" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8071 $as_echo "buggy but acceptable" >&6; }
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }; have_gmp=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080
8081 # Now check the MPFR library.
8082 if test x"$have_gmp" = xyes; then
8083 saved_LIBS="$LIBS"
8084 LIBS="$LIBS $gmplibs"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8086 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 #include <mpc.h>
8090 int
8091 main ()
8092 {
8093
8094 mpfr_t n;
8095 mpfr_t x;
8096 mpc_t c;
8097 int t;
8098 mpfr_init (n);
8099 mpfr_init (x);
8100 mpfr_atan2 (n, n, x, MPFR_RNDN);
8101 mpfr_erfc (n, x, MPFR_RNDN);
8102 mpfr_subnormalize (x, t, MPFR_RNDN);
8103 mpfr_clear(n);
8104 mpfr_clear(x);
8105 mpc_init2 (c, 53);
8106 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8107 mpc_cosh (c, c, MPC_RNDNN);
8108 mpc_pow (c, c, c, MPC_RNDNN);
8109 mpc_acosh (c, c, MPC_RNDNN);
8110 mpc_clear (c);
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8118 $as_echo "yes" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }; have_gmp=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 LIBS="$saved_LIBS"
8126 fi
8127
8128 CFLAGS="$saved_CFLAGS"
8129
8130 # The library versions listed in the error message below should match
8131 # the HARD-minimums enforced above.
8132 if test x$have_gmp != xyes; then
8133 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8134 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8135 their locations. Source code for these libraries can be found at
8136 their respective hosting sites as well as at
8137 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8138 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8139 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8140 make sure that you have installed both the libraries and the header
8141 files. They may be located in separate packages." "$LINENO" 5
8142 fi
8143 fi
8144
8145 # Flags needed for both GMP, MPFR and/or MPC.
8146
8147
8148
8149
8150
8151
8152
8153 # Libraries to use for stage1 or when not bootstrapping.
8154
8155 # Check whether --with-stage1-libs was given.
8156 if test "${with_stage1_libs+set}" = set; then :
8157 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8158 stage1_libs=
8159 else
8160 stage1_libs=$withval
8161 fi
8162 else
8163 stage1_libs=
8164 fi
8165
8166
8167
8168 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8169 # default is yes if gcc is being built; no otherwise. The reason for
8170 # this default is that gdb is sometimes linked against GNU Source
8171 # Highlight, which is a shared library that uses C++ exceptions. In
8172 # this case, -static-libstdc++ will cause crashes.
8173
8174 # Check whether --with-static-standard-libraries was given.
8175 if test "${with_static_standard_libraries+set}" = set; then :
8176 withval=$with_static_standard_libraries;
8177 else
8178 with_static_standard_libraries=auto
8179 fi
8180
8181 if test "$with_static_standard_libraries" = auto; then
8182 with_static_standard_libraries=$have_compiler
8183 fi
8184
8185 # Linker flags to use for stage1 or when not bootstrapping.
8186
8187 # Check whether --with-stage1-ldflags was given.
8188 if test "${with_stage1_ldflags+set}" = set; then :
8189 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8190 stage1_ldflags=
8191 else
8192 stage1_ldflags=$withval
8193 fi
8194 else
8195 stage1_ldflags=
8196 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8197 # if supported. But if the user explicitly specified the libraries to use,
8198 # trust that they are doing what they want.
8199 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8200 -a "$have_static_libs" = yes; then
8201 stage1_ldflags="-static-libstdc++ -static-libgcc"
8202 fi
8203 fi
8204
8205
8206
8207 # Libraries to use for stage2 and later builds.
8208
8209 # Check whether --with-boot-libs was given.
8210 if test "${with_boot_libs+set}" = set; then :
8211 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8212 poststage1_libs=
8213 else
8214 poststage1_libs=$withval
8215 fi
8216 else
8217 poststage1_libs=
8218 fi
8219
8220
8221
8222 # Linker flags to use for stage2 and later builds.
8223
8224 # Check whether --with-boot-ldflags was given.
8225 if test "${with_boot_ldflags+set}" = set; then :
8226 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8227 poststage1_ldflags=
8228 else
8229 poststage1_ldflags=$withval
8230 fi
8231 else
8232 poststage1_ldflags=
8233 # In stages 2 and 3, default to linking libstdc++ and libgcc
8234 # statically. But if the user explicitly specified the libraries to
8235 # use, trust that they are doing what they want.
8236 if test "$poststage1_libs" = ""; then
8237 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8238 fi
8239 fi
8240
8241
8242
8243 # GCC GRAPHITE dependency isl.
8244 # Basic setup is inlined here, actual checks are in config/isl.m4
8245
8246
8247 # Check whether --with-isl was given.
8248 if test "${with_isl+set}" = set; then :
8249 withval=$with_isl;
8250 fi
8251
8252
8253 # Treat --without-isl as a request to disable
8254 # GRAPHITE support and skip all following checks.
8255 if test "x$with_isl" != "xno"; then
8256 # Check for isl
8257
8258
8259 # Check whether --with-isl-include was given.
8260 if test "${with_isl_include+set}" = set; then :
8261 withval=$with_isl_include;
8262 fi
8263
8264
8265 # Check whether --with-isl-lib was given.
8266 if test "${with_isl_lib+set}" = set; then :
8267 withval=$with_isl_lib;
8268 fi
8269
8270
8271 # Check whether --enable-isl-version-check was given.
8272 if test "${enable_isl_version_check+set}" = set; then :
8273 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8274 else
8275 ENABLE_ISL_CHECK=yes
8276 fi
8277
8278
8279 # Initialize isllibs and islinc.
8280 case $with_isl in
8281 no)
8282 isllibs=
8283 islinc=
8284 ;;
8285 "" | yes)
8286 ;;
8287 *)
8288 isllibs="-L$with_isl/lib"
8289 islinc="-I$with_isl/include"
8290 ;;
8291 esac
8292 if test "x${with_isl_include}" != x ; then
8293 islinc="-I$with_isl_include"
8294 fi
8295 if test "x${with_isl_lib}" != x; then
8296 isllibs="-L$with_isl_lib"
8297 fi
8298 if test "x${islinc}" = x && test "x${isllibs}" = x \
8299 && test -d ${srcdir}/isl; then
8300 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8301 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8302 ENABLE_ISL_CHECK=no
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8304 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8305 fi
8306
8307 isllibs="${isllibs} -lisl"
8308
8309
8310
8311 if test "${ENABLE_ISL_CHECK}" = yes ; then
8312 _isl_saved_CFLAGS=$CFLAGS
8313 _isl_saved_LDFLAGS=$LDFLAGS
8314 _isl_saved_LIBS=$LIBS
8315
8316 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8317 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8318 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8321 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <isl/schedule.h>
8325 int
8326 main ()
8327 {
8328 isl_options_set_schedule_serialize_sccs (NULL, 0);
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334 gcc_cv_isl=yes
8335 else
8336 gcc_cv_isl=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8341 $as_echo "$gcc_cv_isl" >&6; }
8342
8343 if test "${gcc_cv_isl}" = no ; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8345 $as_echo "required isl version is 0.15 or later" >&6; }
8346 fi
8347
8348 CFLAGS=$_isl_saved_CFLAGS
8349 LDFLAGS=$_isl_saved_LDFLAGS
8350 LIBS=$_isl_saved_LIBS
8351 fi
8352
8353
8354
8355
8356
8357
8358 if test "x${with_isl}" = xno; then
8359 graphite_requested=no
8360 elif test "x${with_isl}" != x \
8361 || test "x${with_isl_include}" != x \
8362 || test "x${with_isl_lib}" != x ; then
8363 graphite_requested=yes
8364 else
8365 graphite_requested=no
8366 fi
8367
8368
8369
8370 if test "${gcc_cv_isl}" = no ; then
8371 isllibs=
8372 islinc=
8373 fi
8374
8375 if test "${graphite_requested}" = yes \
8376 && test "x${isllibs}" = x \
8377 && test "x${islinc}" = x ; then
8378
8379 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8380 fi
8381
8382
8383 fi
8384
8385 # If the isl check failed, disable builds of in-tree variant of isl
8386 if test "x$with_isl" = xno ||
8387 test "x$gcc_cv_isl" = xno; then
8388 noconfigdirs="$noconfigdirs isl"
8389 islinc=
8390 fi
8391
8392
8393
8394
8395 # Check for LTO support.
8396 # Check whether --enable-lto was given.
8397 if test "${enable_lto+set}" = set; then :
8398 enableval=$enable_lto; enable_lto=$enableval
8399 else
8400 enable_lto=yes; default_enable_lto=yes
8401 fi
8402
8403
8404
8405
8406
8407 target_elf=no
8408 case $target in
8409 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8410 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8411 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8412 nvptx-*-none)
8413 target_elf=no
8414 ;;
8415 *)
8416 target_elf=yes
8417 ;;
8418 esac
8419
8420 if test $target_elf = yes; then :
8421 # ELF platforms build the lto-plugin always.
8422 build_lto_plugin=yes
8423
8424 else
8425 if test x"$default_enable_lto" = x"yes" ; then
8426 case $target in
8427 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8428 # On other non-ELF platforms, LTO has yet to be validated.
8429 *) enable_lto=no ;;
8430 esac
8431 else
8432 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8433 # It would also be nice to check the binutils support, but we don't
8434 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8435 # warn during gcc/ subconfigure; unless you're bootstrapping with
8436 # -flto it won't be needed until after installation anyway.
8437 case $target in
8438 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8439 *) if test x"$enable_lto" = x"yes"; then
8440 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8441 fi
8442 ;;
8443 esac
8444 fi
8445 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8446 # Build it unless LTO was explicitly disabled.
8447 case $target in
8448 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8449 *) ;;
8450 esac
8451
8452 fi
8453
8454
8455 # Check whether --enable-linker-plugin-configure-flags was given.
8456 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8457 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8458 else
8459 extra_linker_plugin_configure_flags=
8460 fi
8461
8462
8463 # Check whether --enable-linker-plugin-flags was given.
8464 if test "${enable_linker_plugin_flags+set}" = set; then :
8465 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8466 else
8467 extra_linker_plugin_flags=
8468 fi
8469
8470
8471
8472 # Enable --enable-host-shared.
8473 # Checked early to determine whether jit is an 'all' language
8474 # Check whether --enable-host-shared was given.
8475 if test "${enable_host_shared+set}" = set; then :
8476 enableval=$enable_host_shared; host_shared=$enableval
8477 else
8478 host_shared=no
8479 fi
8480
8481
8482
8483 # By default, C and C++ are the only stage 1 languages.
8484 stage1_languages=,c,
8485
8486 # Target libraries that we bootstrap.
8487 bootstrap_target_libs=,target-libgcc,
8488
8489 # Figure out what language subdirectories are present.
8490 # Look if the user specified --enable-languages="..."; if not, use
8491 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8492 # go away some day.
8493 # NB: embedded tabs in this IF block -- do not untabify
8494 if test -d ${srcdir}/gcc; then
8495 if test x"${enable_languages+set}" != xset; then
8496 if test x"${LANGUAGES+set}" = xset; then
8497 enable_languages="${LANGUAGES}"
8498 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8499 else
8500 enable_languages=default
8501 fi
8502 else
8503 if test x"${enable_languages}" = x ||
8504 test x"${enable_languages}" = xyes;
8505 then
8506 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8507 exit 1
8508 fi
8509 fi
8510 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8511
8512 # 'f95' is the old name for the 'fortran' language. We issue a warning
8513 # and make the substitution.
8514 case ,${enable_languages}, in
8515 *,f95,*)
8516 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8517 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8518 ;;
8519 esac
8520
8521 # If bootstrapping, C++ must be enabled.
8522 case ",$enable_languages,:$enable_bootstrap" in
8523 *,c++,*:*) ;;
8524 *:yes)
8525 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8526 enable_languages="${enable_languages},c++"
8527 else
8528 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8529 fi
8530 ;;
8531 esac
8532
8533 # First scan to see if an enabled language requires some other language.
8534 # We assume that a given config-lang.in will list all the language
8535 # front ends it requires, even if some are required indirectly.
8536 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8537 case ${lang_frag} in
8538 ..) ;;
8539 # The odd quoting in the next line works around
8540 # an apparent bug in bash 1.12 on linux.
8541 ${srcdir}/gcc/[*]/config-lang.in) ;;
8542 *)
8543 # From the config-lang.in, get $language, $lang_requires, and
8544 # $lang_requires_boot_languages.
8545 language=
8546 lang_requires=
8547 lang_requires_boot_languages=
8548 # set srcdir during sourcing lang_frag to the gcc dir.
8549 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8550 # polutes this shell
8551 saved_srcdir=${srcdir}
8552 srcdir=${srcdir}/gcc . ${lang_frag}
8553 srcdir=${saved_srcdir}
8554 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8555 case ,${enable_languages}, in
8556 *,$other,*) ;;
8557 *,default,*) ;;
8558 *,all,*) ;;
8559 *,$language,*)
8560 echo " \`$other' language required by \`$language'; enabling" 1>&2
8561 enable_languages="${enable_languages},${other}"
8562 ;;
8563 esac
8564 done
8565 for other in ${lang_requires_boot_languages} ; do
8566 if test "$other" != "c"; then
8567 case ,${enable_stage1_languages}, in
8568 *,$other,*) ;;
8569 *,default,*) ;;
8570 *,all,*) ;;
8571 *)
8572 case ,${enable_languages}, in
8573 *,$language,*)
8574 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8575 enable_stage1_languages="$enable_stage1_languages,${other}"
8576 ;;
8577 esac
8578 ;;
8579 esac
8580 fi
8581 done
8582 ;;
8583 esac
8584 done
8585
8586 new_enable_languages=,c,
8587
8588 # If LTO is enabled, add the LTO front end.
8589 if test "$enable_lto" = "yes" ; then
8590 case ,${enable_languages}, in
8591 *,lto,*) ;;
8592 *) enable_languages="${enable_languages},lto" ;;
8593 esac
8594 if test "${build_lto_plugin}" = "yes" ; then
8595 configdirs="$configdirs lto-plugin"
8596 fi
8597 fi
8598
8599 # If we're building an offloading compiler, add the LTO front end.
8600 if test x"$enable_as_accelerator_for" != x ; then
8601 case ,${enable_languages}, in
8602 *,lto,*) ;;
8603 *) enable_languages="${enable_languages},lto" ;;
8604 esac
8605 fi
8606
8607 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8608 potential_languages=,c,
8609
8610 enabled_target_libs=
8611 disabled_target_libs=
8612
8613 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8614 case ${lang_frag} in
8615 ..) ;;
8616 # The odd quoting in the next line works around
8617 # an apparent bug in bash 1.12 on linux.
8618 ${srcdir}/gcc/[*]/config-lang.in) ;;
8619 *)
8620 # From the config-lang.in, get $language, $target_libs,
8621 # $lang_dirs, $boot_language, and $build_by_default
8622 language=
8623 target_libs=
8624 lang_dirs=
8625 subdir_requires=
8626 boot_language=no
8627 build_by_default=yes
8628 # set srcdir during sourcing. See above about save & restore
8629 saved_srcdir=${srcdir}
8630 srcdir=${srcdir}/gcc . ${lang_frag}
8631 srcdir=${saved_srcdir}
8632 if test x${language} = x; then
8633 echo "${lang_frag} doesn't set \$language." 1>&2
8634 exit 1
8635 fi
8636
8637 if test "$language" = "c++"; then
8638 boot_language=yes
8639 fi
8640
8641 add_this_lang=no
8642 # C is always enabled, so no need to add it again
8643 if test "$language" != "c"; then
8644 case ,${enable_languages}, in
8645 *,${language},*)
8646 # Language was explicitly selected; include it
8647 add_this_lang=yes
8648 ;;
8649 *,all,*)
8650 # All languages are enabled
8651 add_this_lang=all
8652 ;;
8653 *,default,*)
8654 # 'default' was selected, select it if it is a default language
8655 add_this_lang=${build_by_default}
8656 ;;
8657 esac
8658 fi
8659
8660 # Disable languages that need other directories if these aren't available.
8661 for i in $subdir_requires; do
8662 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8663 case ${add_this_lang} in
8664 yes)
8665 # Specifically requested language; tell them.
8666 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8667 ;;
8668 all)
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8670 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8671 add_this_lang=unsupported
8672 ;;
8673 *)
8674 # Silently disable.
8675 add_this_lang=unsupported
8676 ;;
8677 esac
8678 done
8679
8680 # Disable Ada if no preexisting GNAT is available.
8681 case ${add_this_lang}:${language}:${have_gnat} in
8682 yes:ada:no)
8683 # Specifically requested language; tell them.
8684 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8685 ;;
8686 all:ada:no)
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8688 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8689 add_this_lang=unsupported
8690 ;;
8691 *:ada:no)
8692 # Silently disable.
8693 add_this_lang=unsupported
8694 ;;
8695 esac
8696
8697 # Disable jit if -enable-host-shared not specified
8698 # but not if building for Mingw. All code in Windows
8699 # is position independent code (PIC).
8700 case $target in
8701 *mingw*) ;;
8702 *)
8703 case ${add_this_lang}:${language}:${host_shared} in
8704 yes:jit:no)
8705 # PR jit/64780: explicitly specify --enable-host-shared
8706 as_fn_error $? "
8707 Enabling language \"jit\" requires --enable-host-shared.
8708
8709 --enable-host-shared typically slows the rest of the compiler down by
8710 a few %, so you must explicitly enable it.
8711
8712 If you want to build both the jit and the regular compiler, it is often
8713 best to do this via two separate configure/builds, in separate
8714 directories, to avoid imposing the performance cost of
8715 --enable-host-shared on the regular compiler." "$LINENO" 5
8716 ;;
8717 all:jit:no)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8719 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8720 add_this_lang=unsupported
8721 ;;
8722 *:jit:no)
8723 # Silently disable.
8724 add_this_lang=unsupported
8725 ;;
8726 esac
8727 ;;
8728 esac
8729
8730 # Disable a language that is unsupported by the target.
8731 case "${add_this_lang}: $unsupported_languages " in
8732 no:*) ;;
8733 unsupported:*) ;;
8734 *:*" $language "*)
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8736 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8737 add_this_lang=unsupported
8738 ;;
8739 esac
8740
8741 case $add_this_lang in
8742 unsupported)
8743 # Remove language-dependent dirs.
8744 disabled_target_libs="$disabled_target_libs $target_libs"
8745 noconfigdirs="$noconfigdirs $lang_dirs"
8746 ;;
8747 no)
8748 # Remove language-dependent dirs; still show language as supported.
8749 disabled_target_libs="$disabled_target_libs $target_libs"
8750 noconfigdirs="$noconfigdirs $lang_dirs"
8751 potential_languages="${potential_languages}${language},"
8752 ;;
8753 all|yes)
8754 new_enable_languages="${new_enable_languages}${language},"
8755 potential_languages="${potential_languages}${language},"
8756 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8757 enabled_target_libs="$enabled_target_libs $target_libs"
8758 case "${boot_language}:,$enable_stage1_languages," in
8759 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8760 # Add to (comma-separated) list of stage 1 languages.
8761 case ",$stage1_languages," in
8762 *,$language,* | ,yes, | ,all,) ;;
8763 *) stage1_languages="${stage1_languages}${language}," ;;
8764 esac
8765 # We need to bootstrap any supporting libraries.
8766 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8767 ;;
8768 esac
8769 ;;
8770 esac
8771 ;;
8772 esac
8773 done
8774
8775 # Add target libraries which are only needed for disabled languages
8776 # to noconfigdirs.
8777 if test -n "$disabled_target_libs"; then
8778 for dir in $disabled_target_libs; do
8779 case " $enabled_target_libs " in
8780 *" ${dir} "*) ;;
8781 *) noconfigdirs="$noconfigdirs $dir" ;;
8782 esac
8783 done
8784 fi
8785
8786 # Check whether --enable-stage1-languages was given.
8787 if test "${enable_stage1_languages+set}" = set; then :
8788 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8789 ,no,|,,)
8790 # Set it to something that will have no effect in the loop below
8791 enable_stage1_languages=c ;;
8792 ,yes,)
8793 enable_stage1_languages=`echo $new_enable_languages | \
8794 sed -e "s/^,//" -e "s/,$//" ` ;;
8795 *,all,*)
8796 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8797 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8798 esac
8799
8800 # Add "good" languages from enable_stage1_languages to stage1_languages,
8801 # while "bad" languages go in missing_languages. Leave no duplicates.
8802 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8803 case $potential_languages in
8804 *,$i,*)
8805 case $stage1_languages in
8806 *,$i,*) ;;
8807 *) stage1_languages="$stage1_languages$i," ;;
8808 esac ;;
8809 *)
8810 case $missing_languages in
8811 *,$i,*) ;;
8812 *) missing_languages="$missing_languages$i," ;;
8813 esac ;;
8814 esac
8815 done
8816 fi
8817
8818
8819 # Remove leading/trailing commas that were added for simplicity
8820 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8821 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8822 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8823 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8824
8825 if test "x$missing_languages" != x; then
8826 as_fn_error $? "
8827 The following requested languages could not be built: ${missing_languages}
8828 Supported languages are: ${potential_languages}" "$LINENO" 5
8829 fi
8830 if test "x$new_enable_languages" != "x$enable_languages"; then
8831 echo The following languages will be built: ${new_enable_languages}
8832 enable_languages="$new_enable_languages"
8833 fi
8834
8835
8836 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8837 fi
8838
8839 # Handle --disable-<component> generically.
8840 for dir in $configdirs $build_configdirs $target_configdirs ; do
8841 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8842 varname=`echo $dirname | sed -e s/+/_/g`
8843 if eval test x\${enable_${varname}} "=" xno ; then
8844 noconfigdirs="$noconfigdirs $dir"
8845 fi
8846 done
8847
8848 # Check for Boehm's garbage collector
8849 # Check whether --enable-objc-gc was given.
8850 if test "${enable_objc_gc+set}" = set; then :
8851 enableval=$enable_objc_gc;
8852 fi
8853
8854
8855 # Check whether --with-target-bdw-gc was given.
8856 if test "${with_target_bdw_gc+set}" = set; then :
8857 withval=$with_target_bdw_gc;
8858 fi
8859
8860
8861 # Check whether --with-target-bdw-gc-include was given.
8862 if test "${with_target_bdw_gc_include+set}" = set; then :
8863 withval=$with_target_bdw_gc_include;
8864 fi
8865
8866
8867 # Check whether --with-target-bdw-gc-lib was given.
8868 if test "${with_target_bdw_gc_lib+set}" = set; then :
8869 withval=$with_target_bdw_gc_lib;
8870 fi
8871
8872
8873 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8875 $as_echo_n "checking for bdw garbage collector... " >&6; }
8876 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8878 $as_echo "using bdw-gc in default locations" >&6; }
8879 else
8880 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8881 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8882 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8883 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8886 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8887 fi
8888 fi
8889 esac
8890
8891 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8892 case ,${enable_languages}, in
8893 *,c++,*)
8894 # Disable libitm, libsanitizer if we're not building libstdc++
8895 case "${noconfigdirs}" in
8896 *target-libstdc++-v3*)
8897 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8898 ;;
8899 *) ;;
8900 esac
8901 ;;
8902 *)
8903 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8904 ;;
8905 esac
8906
8907 # If gcc/ is not in the source tree then we'll not be building a
8908 # target compiler, assume in that case we don't want to build any
8909 # target libraries or tools.
8910 #
8911 # This was added primarily for the benefit for binutils-gdb who reuse
8912 # this configure script, but don't always have target tools available.
8913 if test ! -d ${srcdir}/gcc; then
8914 skipdirs="${skipdirs} ${target_configdirs}"
8915 fi
8916
8917 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8918 # $build_configdirs and $target_configdirs.
8919 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8920
8921 notsupp=""
8922 for dir in . $skipdirs $noconfigdirs ; do
8923 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8924 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8925 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8926 if test -r $srcdir/$dirname/configure ; then
8927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8928 true
8929 else
8930 notsupp="$notsupp $dir"
8931 fi
8932 fi
8933 fi
8934 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8935 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8936 if test -r $srcdir/$dirname/configure ; then
8937 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8938 true
8939 else
8940 notsupp="$notsupp $dir"
8941 fi
8942 fi
8943 fi
8944 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8945 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8946 if test -r $srcdir/$dirname/configure ; then
8947 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8948 true
8949 else
8950 notsupp="$notsupp $dir"
8951 fi
8952 fi
8953 fi
8954 done
8955
8956 # Quietly strip out all directories which aren't configurable in this tree.
8957 # This relies on all configurable subdirectories being autoconfiscated, which
8958 # is now the case.
8959 build_configdirs_all="$build_configdirs"
8960 build_configdirs=
8961 for i in ${build_configdirs_all} ; do
8962 j=`echo $i | sed -e s/build-//g`
8963 if test -f ${srcdir}/$j/configure ; then
8964 build_configdirs="${build_configdirs} $i"
8965 fi
8966 done
8967
8968 configdirs_all="$configdirs"
8969 configdirs=
8970 for i in ${configdirs_all} ; do
8971 if test -f ${srcdir}/$i/configure ; then
8972 configdirs="${configdirs} $i"
8973 fi
8974 done
8975
8976 target_configdirs_all="$target_configdirs"
8977 target_configdirs=
8978 for i in ${target_configdirs_all} ; do
8979 j=`echo $i | sed -e s/target-//g`
8980 if test -f ${srcdir}/$j/configure ; then
8981 target_configdirs="${target_configdirs} $i"
8982 fi
8983 done
8984
8985 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8986 # so we have to add it after the preceding checks.
8987 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8988 then
8989 case " $configdirs " in
8990 *" libiberty "*)
8991 # If we can build libiberty, we can also build libiberty-linker-plugin.
8992 configdirs="$configdirs libiberty-linker-plugin"
8993 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8994 --with-libiberty=../libiberty-linker-plugin";;
8995 *)
8996 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8997 esac
8998 fi
8999
9000 # Sometimes we have special requirements for the host libiberty.
9001 extra_host_libiberty_configure_flags=
9002 extra_host_zlib_configure_flags=
9003 case " $configdirs " in
9004 *" lto-plugin "* | *" libcc1 "*)
9005 # When these are to be built as shared libraries, the same applies to
9006 # libiberty.
9007 extra_host_libiberty_configure_flags=--enable-shared
9008 ;;
9009 *" bfd "*)
9010 # When bfd is to be built as a shared library, the same applies to
9011 # zlib.
9012 if test "$enable_shared" = "yes"; then
9013 extra_host_zlib_configure_flags=--enable-host-shared
9014 fi
9015 ;;
9016 esac
9017
9018
9019
9020 # Produce a warning message for the subdirs we can't configure.
9021 # This isn't especially interesting in the Cygnus tree, but in the individual
9022 # FSF releases, it's important to let people know when their machine isn't
9023 # supported by the one or two programs in a package.
9024
9025 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9026 # If $appdirs is non-empty, at least one of those directories must still
9027 # be configured, or we error out. (E.g., if the gas release supports a
9028 # specified target in some subdirs but not the gas subdir, we shouldn't
9029 # pretend that all is well.)
9030 if test -n "$appdirs" ; then
9031 for dir in $appdirs ; do
9032 if test -r $dir/Makefile.in ; then
9033 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9034 appdirs=""
9035 break
9036 fi
9037 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9038 appdirs=""
9039 break
9040 fi
9041 fi
9042 done
9043 if test -n "$appdirs" ; then
9044 echo "*** This configuration is not supported by this package." 1>&2
9045 exit 1
9046 fi
9047 fi
9048 # Okay, some application will build, or we don't care to check. Still
9049 # notify of subdirs not getting built.
9050 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9051 echo " ${notsupp}" 1>&2
9052 echo " (Any other directories should still work fine.)" 1>&2
9053 fi
9054
9055 case "$host" in
9056 *msdosdjgpp*)
9057 enable_gdbtk=no ;;
9058 esac
9059
9060 # To find our prefix, in gcc_cv_tool_prefix.
9061
9062 # The user is always right.
9063 if test "${PATH_SEPARATOR+set}" != set; then
9064 echo "#! /bin/sh" >conf$$.sh
9065 echo "exit 0" >>conf$$.sh
9066 chmod +x conf$$.sh
9067 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9068 PATH_SEPARATOR=';'
9069 else
9070 PATH_SEPARATOR=:
9071 fi
9072 rm -f conf$$.sh
9073 fi
9074
9075
9076 get_gcc_base_ver="cat"
9077
9078 # Check whether --with-gcc-major-version-only was given.
9079 if test "${with_gcc_major_version_only+set}" = set; then :
9080 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9081 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9082 fi
9083
9084 fi
9085
9086
9087
9088
9089
9090
9091 if test "x$exec_prefix" = xNONE; then
9092 if test "x$prefix" = xNONE; then
9093 gcc_cv_tool_prefix=$ac_default_prefix
9094 else
9095 gcc_cv_tool_prefix=$prefix
9096 fi
9097 else
9098 gcc_cv_tool_prefix=$exec_prefix
9099 fi
9100
9101 # If there is no compiler in the tree, use the PATH only. In any
9102 # case, if there is no compiler in the tree nobody should use
9103 # AS_FOR_TARGET and LD_FOR_TARGET.
9104 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9105 if test x$with_gcc_major_version_only = xyes ; then
9106 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9107 else
9108 gcc_version=`cat $srcdir/gcc/BASE-VER`
9109 fi
9110 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9111 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9113 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9114 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9115 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9116 else
9117 gcc_cv_tool_dirs=
9118 fi
9119
9120 if test x$build = x$target && test -n "$md_exec_prefix"; then
9121 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9122 fi
9123
9124
9125
9126 copy_dirs=
9127
9128
9129 # Check whether --with-build-sysroot was given.
9130 if test "${with_build_sysroot+set}" = set; then :
9131 withval=$with_build_sysroot; if test x"$withval" != x ; then
9132 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9133 fi
9134 else
9135 SYSROOT_CFLAGS_FOR_TARGET=
9136 fi
9137
9138
9139
9140
9141 # Check whether --with-debug-prefix-map was given.
9142 if test "${with_debug_prefix_map+set}" = set; then :
9143 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9144 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9145 for debug_map in $withval; do
9146 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9147 done
9148 fi
9149 else
9150 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9151 fi
9152
9153
9154
9155 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9156 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9157 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9158 # We want to ensure that TARGET libraries (which we know are built with
9159 # gcc) are built with "-O2 -g", so include those options when setting
9160 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9161 if test "x$CFLAGS_FOR_TARGET" = x; then
9162 if test "x${is_cross_compiler}" = xyes; then
9163 CFLAGS_FOR_TARGET="-g -O2"
9164 else
9165 CFLAGS_FOR_TARGET=$CFLAGS
9166 case " $CFLAGS " in
9167 *" -O2 "*) ;;
9168 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9169 esac
9170 case " $CFLAGS " in
9171 *" -g "* | *" -g3 "*) ;;
9172 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9173 esac
9174 fi
9175 fi
9176
9177
9178 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9179 if test "x${is_cross_compiler}" = xyes; then
9180 CXXFLAGS_FOR_TARGET="-g -O2"
9181 else
9182 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9183 case " $CXXFLAGS " in
9184 *" -O2 "*) ;;
9185 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9186 esac
9187 case " $CXXFLAGS " in
9188 *" -g "* | *" -g3 "*) ;;
9189 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9190 esac
9191 fi
9192 fi
9193
9194
9195
9196
9197 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9198 # the named directory are copied to $(tooldir)/sys-include.
9199 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9200 if test x${is_cross_compiler} = xno ; then
9201 echo 1>&2 '***' --with-headers is only supported when cross compiling
9202 exit 1
9203 fi
9204 if test x"${with_headers}" != xyes ; then
9205 x=${gcc_cv_tool_prefix}
9206 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9207 fi
9208 fi
9209
9210 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9211 # the name directories are copied to $(tooldir)/lib. Multiple directories
9212 # are permitted.
9213 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9214 if test x${is_cross_compiler} = xno ; then
9215 echo 1>&2 '***' --with-libs is only supported when cross compiling
9216 exit 1
9217 fi
9218 if test x"${with_libs}" != xyes ; then
9219 # Copy the libraries in reverse order, so that files in the first named
9220 # library override files in subsequent libraries.
9221 x=${gcc_cv_tool_prefix}
9222 for l in ${with_libs}; do
9223 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9224 done
9225 fi
9226 fi
9227
9228 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9229 #
9230 # This is done by determining whether or not the appropriate directory
9231 # is available, and by checking whether or not specific configurations
9232 # have requested that this magic not happen.
9233 #
9234 # The command line options always override the explicit settings in
9235 # configure.ac, and the settings in configure.ac override this magic.
9236 #
9237 # If the default for a toolchain is to use GNU as and ld, and you don't
9238 # want to do that, then you should use the --without-gnu-as and
9239 # --without-gnu-ld options for the configure script. Similarly, if
9240 # the default is to use the included zlib and you don't want to do that,
9241 # you should use the --with-system-zlib option for the configure script.
9242
9243 if test x${use_gnu_as} = x &&
9244 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9245 with_gnu_as=yes
9246 extra_host_args="$extra_host_args --with-gnu-as"
9247 fi
9248
9249 if test x${use_gnu_ld} = x &&
9250 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9251 with_gnu_ld=yes
9252 extra_host_args="$extra_host_args --with-gnu-ld"
9253 fi
9254
9255 if test x${use_included_zlib} = x &&
9256 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9257 :
9258 else
9259 with_system_zlib=yes
9260 extra_host_args="$extra_host_args --with-system-zlib"
9261 fi
9262
9263 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9264 # can detect this case.
9265
9266 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9267 with_newlib=yes
9268 extra_host_args="$extra_host_args --with-newlib"
9269 fi
9270
9271 # Handle ${copy_dirs}
9272 set fnord ${copy_dirs}
9273 shift
9274 while test $# != 0 ; do
9275 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9276 :
9277 else
9278 echo Copying $1 to $2
9279
9280 # Use the install script to create the directory and all required
9281 # parent directories.
9282 if test -d $2 ; then
9283 :
9284 else
9285 echo >config.temp
9286 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9287 fi
9288
9289 # Copy the directory, assuming we have tar.
9290 # FIXME: Should we use B in the second tar? Not all systems support it.
9291 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9292
9293 # It is the responsibility of the user to correctly adjust all
9294 # symlinks. If somebody can figure out how to handle them correctly
9295 # here, feel free to add the code.
9296
9297 echo $1 > $2/COPIED
9298 fi
9299 shift; shift
9300 done
9301
9302 # Determine a target-dependent exec_prefix that the installed
9303 # gcc will search in. Keep this list sorted by triplet, with
9304 # the *-*-osname triplets last.
9305 md_exec_prefix=
9306 case "${target}" in
9307 i[34567]86-pc-msdosdjgpp*)
9308 md_exec_prefix=/dev/env/DJDIR/bin
9309 ;;
9310 *-*-hpux* | \
9311 *-*-nto-qnx* | \
9312 *-*-solaris2*)
9313 md_exec_prefix=/usr/ccs/bin
9314 ;;
9315 esac
9316
9317 extra_arflags_for_target=
9318 extra_nmflags_for_target=
9319 extra_ranlibflags_for_target=
9320 target_makefile_frag=/dev/null
9321 case "${target}" in
9322 spu-*-*)
9323 target_makefile_frag="config/mt-spu"
9324 ;;
9325 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9326 target_makefile_frag="config/mt-sde"
9327 ;;
9328 mipsisa*-*-elfoabi*)
9329 target_makefile_frag="config/mt-mips-elfoabi"
9330 ;;
9331 mips*-*-*linux* | mips*-*-gnu*)
9332 target_makefile_frag="config/mt-mips-gnu"
9333 ;;
9334 nios2-*-elf*)
9335 target_makefile_frag="config/mt-nios2-elf"
9336 ;;
9337 *-*-linux-android*)
9338 target_makefile_frag="config/mt-android"
9339 ;;
9340 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9341 target_makefile_frag="config/mt-gnu"
9342 ;;
9343 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9344 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9345 # commands to handle both 32-bit and 64-bit objects. These flags are
9346 # harmless if we're using GNU nm or ar.
9347 extra_arflags_for_target=" -X32_64"
9348 extra_nmflags_for_target=" -B -X32_64"
9349 ;;
9350 esac
9351
9352 alphaieee_frag=/dev/null
9353 case $target in
9354 alpha*-*-*)
9355 # This just makes sure to use the -mieee option to build target libs.
9356 # This should probably be set individually by each library.
9357 alphaieee_frag="config/mt-alphaieee"
9358 ;;
9359 esac
9360
9361 # If --enable-target-optspace always use -Os instead of -O2 to build
9362 # the target libraries, similarly if it is not specified, use -Os
9363 # on selected platforms.
9364 ospace_frag=/dev/null
9365 case "${enable_target_optspace}:${target}" in
9366 yes:*)
9367 ospace_frag="config/mt-ospace"
9368 ;;
9369 :d30v-*)
9370 ospace_frag="config/mt-d30v"
9371 ;;
9372 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9373 ospace_frag="config/mt-ospace"
9374 ;;
9375 no:* | :*)
9376 ;;
9377 *)
9378 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9379 ;;
9380 esac
9381
9382 # Some systems (e.g., one of the i386-aix systems the gas testers are
9383 # using) don't handle "\$" correctly, so don't use it here.
9384 tooldir='${exec_prefix}'/${target_noncanonical}
9385 build_tooldir=${tooldir}
9386
9387 # Create a .gdbinit file which runs the one in srcdir
9388 # and tells GDB to look there for source files.
9389
9390 if test -r ${srcdir}/.gdbinit ; then
9391 case ${srcdir} in
9392 .) ;;
9393 *) cat > ./.gdbinit <<EOF
9394 # ${NO_EDIT}
9395 dir ${srcdir}
9396 dir .
9397 source ${srcdir}/.gdbinit
9398 EOF
9399 ;;
9400 esac
9401 fi
9402
9403 # Make sure that the compiler is able to generate an executable. If it
9404 # can't, we are probably in trouble. We don't care whether we can run the
9405 # executable--we might be using a cross compiler--we only care whether it
9406 # can be created. At this point the main configure script has set CC.
9407 we_are_ok=no
9408 echo "int main () { return 0; }" > conftest.c
9409 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9410 if test $? = 0 ; then
9411 if test -s conftest || test -s conftest.exe ; then
9412 we_are_ok=yes
9413 fi
9414 fi
9415 case $we_are_ok in
9416 no)
9417 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9418 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9419 rm -f conftest*
9420 exit 1
9421 ;;
9422 esac
9423 rm -f conftest*
9424
9425 # Decide which environment variable is used to find dynamic libraries.
9426 case "${host}" in
9427 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9428 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9429 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9430 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9431 esac
9432
9433 # On systems where the dynamic library environment variable is PATH,
9434 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9435 # built executables to PATH.
9436 if test "$RPATH_ENVVAR" = PATH; then
9437 GCC_SHLIB_SUBDIR=/shlib
9438 else
9439 GCC_SHLIB_SUBDIR=
9440 fi
9441
9442 # Adjust the toplevel makefile according to whether bootstrap was selected.
9443 case $enable_bootstrap in
9444 yes)
9445 bootstrap_suffix=bootstrap
9446 BUILD_CONFIG=bootstrap-debug
9447 ;;
9448 no)
9449 bootstrap_suffix=no-bootstrap
9450 BUILD_CONFIG=
9451 ;;
9452 esac
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9455 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9456
9457
9458 # Check whether --with-build-config was given.
9459 if test "${with_build_config+set}" = set; then :
9460 withval=$with_build_config; case $with_build_config in
9461 yes) with_build_config= ;;
9462 no) with_build_config= BUILD_CONFIG= ;;
9463 esac
9464 fi
9465
9466
9467 if test "x${with_build_config}" != x; then
9468 BUILD_CONFIG=$with_build_config
9469 else
9470 case $BUILD_CONFIG in
9471 bootstrap-debug)
9472 if echo "int f (void) { return 0; }" > conftest.c &&
9473 ${CC} -c conftest.c &&
9474 mv conftest.o conftest.o.g0 &&
9475 ${CC} -c -g conftest.c &&
9476 mv conftest.o conftest.o.g &&
9477 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9478 :
9479 else
9480 BUILD_CONFIG=
9481 fi
9482 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9483 ;;
9484 esac
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9487 $as_echo "$BUILD_CONFIG" >&6; }
9488
9489
9490 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9492 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9493 # Check whether --enable-vtable-verify was given.
9494 if test "${enable_vtable_verify+set}" = set; then :
9495 enableval=$enable_vtable_verify; case "$enableval" in
9496 yes) enable_vtable_verify=yes ;;
9497 no) enable_vtable_verify=no ;;
9498 *) enable_vtable_verify=no;;
9499 esac
9500 else
9501 enable_vtable_verify=no
9502 fi
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9505 $as_echo "$enable_vtable_verify" >&6; }
9506
9507 # Record target_configdirs and the configure arguments for target and
9508 # build configuration in Makefile.
9509 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9510 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9511 bootstrap_fixincludes=no
9512
9513 # If we are building libgomp, bootstrap it.
9514 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9515 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9516 fi
9517
9518 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9519 # or bootstrap-ubsan, bootstrap it.
9520 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9521 case "$BUILD_CONFIG" in
9522 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9523 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9524 bootstrap_fixincludes=yes
9525 ;;
9526 esac
9527 fi
9528
9529 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9530 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9531 test "$enable_vtable_verify" != no; then
9532 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9533 fi
9534
9535 # Determine whether gdb needs tk/tcl or not.
9536 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9537 # and in that case we want gdb to be built without tk. Ugh!
9538 # In fact I believe gdb is the *only* package directly dependent on tk,
9539 # so we should be able to put the 'maybe's in unconditionally and
9540 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9541 # 100% sure that that's safe though.
9542
9543 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9544 case "$enable_gdbtk" in
9545 no)
9546 GDB_TK="" ;;
9547 yes)
9548 GDB_TK="${gdb_tk}" ;;
9549 *)
9550 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9551 # distro. Eventually someone will fix this and move Insight, nee
9552 # gdbtk to a separate directory.
9553 if test -d ${srcdir}/gdb/gdbtk ; then
9554 GDB_TK="${gdb_tk}"
9555 else
9556 GDB_TK=""
9557 fi
9558 ;;
9559 esac
9560 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9561 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9562
9563 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9564 # else does, only include them if one of these is built. The Makefile
9565 # provides the ordering, so it's enough here to add to the list.
9566 case " ${configdirs} " in
9567 *\ gdb\ *)
9568 configdirs="${configdirs} gnulib gdbsupport"
9569 ;;
9570 *\ gdbserver\ *)
9571 configdirs="${configdirs} gnulib gdbsupport"
9572 ;;
9573 *\ sim\ *)
9574 configdirs="${configdirs} gnulib"
9575 ;;
9576 esac
9577
9578 # Strip out unwanted targets.
9579
9580 # While at that, we remove Makefiles if we were started for recursive
9581 # configuration, so that the top-level Makefile reconfigures them,
9582 # like we used to do when configure itself was recursive.
9583
9584 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9585 # but now we're fixing up the Makefile ourselves with the additional
9586 # commands passed to AC_CONFIG_FILES. Use separate variables
9587 # extrasub-{build,host,target} not because there is any reason to split
9588 # the substitutions up that way, but only to remain below the limit of
9589 # 99 commands in a script, for HP-UX sed.
9590
9591 # Do not nest @if/@endif or @unless/@endunless pairs, because
9592 # configure will not warn you at all.
9593
9594 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9595 yes:yes:*\ gold\ *:*,c++,*) ;;
9596 yes:yes:*\ gold\ *:*)
9597 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9598 ;;
9599 esac
9600
9601 extrasub_build=
9602 for module in ${build_configdirs} ; do
9603 if test -z "${no_recursion}" \
9604 && test -f ${build_subdir}/${module}/Makefile; then
9605 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9606 rm -f ${build_subdir}/${module}/Makefile
9607 fi
9608 extrasub_build="$extrasub_build
9609 /^@if build-$module\$/d
9610 /^@endif build-$module\$/d
9611 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9612 /^@if build-$module-$bootstrap_suffix\$/d
9613 /^@endif build-$module-$bootstrap_suffix\$/d
9614 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9615 done
9616 extrasub_host=
9617 for module in ${configdirs} ; do
9618 if test -z "${no_recursion}"; then
9619 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9620 if test -f ${file}; then
9621 echo 1>&2 "*** removing ${file} to force reconfigure"
9622 rm -f ${file}
9623 fi
9624 done
9625 fi
9626 case ${module},${bootstrap_fixincludes} in
9627 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9628 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9629 esac
9630 extrasub_host="$extrasub_host
9631 /^@if $module\$/d
9632 /^@endif $module\$/d
9633 /^@unless $module\$/,/^@endunless $module\$/d
9634 /^@if $module-$host_bootstrap_suffix\$/d
9635 /^@endif $module-$host_bootstrap_suffix\$/d
9636 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9637 done
9638 extrasub_target=
9639 for module in ${target_configdirs} ; do
9640 if test -z "${no_recursion}" \
9641 && test -f ${target_subdir}/${module}/Makefile; then
9642 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9643 rm -f ${target_subdir}/${module}/Makefile
9644 fi
9645
9646 # We only bootstrap target libraries listed in bootstrap_target_libs.
9647 case $bootstrap_target_libs in
9648 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9649 *) target_bootstrap_suffix=no-bootstrap ;;
9650 esac
9651
9652 extrasub_target="$extrasub_target
9653 /^@if target-$module\$/d
9654 /^@endif target-$module\$/d
9655 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9656 /^@if target-$module-$target_bootstrap_suffix\$/d
9657 /^@endif target-$module-$target_bootstrap_suffix\$/d
9658 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9659 done
9660
9661 # Do the final fixup along with target modules.
9662 extrasub_target="$extrasub_target
9663 /^@if /,/^@endif /d
9664 /^@unless /d
9665 /^@endunless /d"
9666
9667 # Create the serialization dependencies. This uses a temporary file.
9668
9669 # Check whether --enable-serial-configure was given.
9670 if test "${enable_serial_configure+set}" = set; then :
9671 enableval=$enable_serial_configure;
9672 fi
9673
9674
9675 case ${enable_serial_configure} in
9676 yes)
9677 enable_serial_build_configure=yes
9678 enable_serial_host_configure=yes
9679 enable_serial_target_configure=yes
9680 ;;
9681 esac
9682
9683 # These force 'configure's to be done one at a time, to avoid problems
9684 # with contention over a shared config.cache.
9685 rm -f serdep.tmp
9686 echo '# serdep.tmp' > serdep.tmp
9687 olditem=
9688 test "x${enable_serial_build_configure}" = xyes &&
9689 for item in ${build_configdirs} ; do
9690 case ${olditem} in
9691 "") ;;
9692 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9693 esac
9694 olditem=${item}
9695 done
9696 olditem=
9697 test "x${enable_serial_host_configure}" = xyes &&
9698 for item in ${configdirs} ; do
9699 case ${olditem} in
9700 "") ;;
9701 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9702 esac
9703 olditem=${item}
9704 done
9705 olditem=
9706 test "x${enable_serial_target_configure}" = xyes &&
9707 for item in ${target_configdirs} ; do
9708 case ${olditem} in
9709 "") ;;
9710 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9711 esac
9712 olditem=${item}
9713 done
9714 serialization_dependencies=serdep.tmp
9715
9716
9717 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9718 # target, nonopt, and variable assignments. These are the ones we
9719 # might not want to pass down to subconfigures. The exception being
9720 # --cache-file=/dev/null, which is used to turn off the use of cache
9721 # files altogether, and which should be passed on to subconfigures.
9722 # Also strip program-prefix, program-suffix, and program-transform-name,
9723 # so that we can pass down a consistent program-transform-name.
9724 baseargs=
9725 tbaseargs=
9726 keep_next=no
9727 skip_next=no
9728 eval "set -- $ac_configure_args"
9729 for ac_arg
9730 do
9731 if test X"$skip_next" = X"yes"; then
9732 skip_next=no
9733 continue
9734 fi
9735 if test X"$keep_next" = X"yes"; then
9736 case $ac_arg in
9737 *\'*)
9738 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9739 esac
9740 baseargs="$baseargs '$ac_arg'"
9741 tbaseargs="$tbaseargs '$ac_arg'"
9742 keep_next=no
9743 continue
9744 fi
9745
9746 # Handle separated arguments. Based on the logic generated by
9747 # autoconf 2.59.
9748 case $ac_arg in
9749 *=* | --config-cache | -C | -disable-* | --disable-* \
9750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9752 | -with-* | --with-* | -without-* | --without-* | --x)
9753 separate_arg=no
9754 ;;
9755 -*)
9756 separate_arg=yes
9757 ;;
9758 *)
9759 separate_arg=no
9760 ;;
9761 esac
9762
9763 skip_targ=no
9764 case $ac_arg in
9765
9766 --with-* | --without-*)
9767 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9768
9769 case $libopt in
9770 *[-_]include)
9771 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9772 ;;
9773 *[-_]lib)
9774 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9775 ;;
9776 *)
9777 lib=$libopt
9778 ;;
9779 esac
9780
9781
9782 case $lib in
9783 mpc | mpfr | gmp | isl)
9784 # If we're processing --with-$lib, --with-$lib-include or
9785 # --with-$lib-lib, for one of the libs above, and target is
9786 # different from host, don't pass the current argument to any
9787 # target library's configure.
9788 if test x$is_cross_compiler = xyes; then
9789 skip_targ=yes
9790 fi
9791 ;;
9792 esac
9793 ;;
9794 esac
9795
9796 case "$ac_arg" in
9797 --cache-file=/dev/null | \
9798 -cache-file=/dev/null )
9799 # Handled here to avoid the test to skip args below.
9800 baseargs="$baseargs '$ac_arg'"
9801 tbaseargs="$tbaseargs '$ac_arg'"
9802 # Assert: $separate_arg should always be no.
9803 keep_next=$separate_arg
9804 ;;
9805 --no*)
9806 continue
9807 ;;
9808 --c* | \
9809 --sr* | \
9810 --ho* | \
9811 --bu* | \
9812 --t* | \
9813 --program-* | \
9814 -cache_file* | \
9815 -srcdir* | \
9816 -host* | \
9817 -build* | \
9818 -target* | \
9819 -program-prefix* | \
9820 -program-suffix* | \
9821 -program-transform-name* )
9822 skip_next=$separate_arg
9823 continue
9824 ;;
9825 -*)
9826 # An option. Add it.
9827 case $ac_arg in
9828 *\'*)
9829 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9830 esac
9831 baseargs="$baseargs '$ac_arg'"
9832 if test X"$skip_targ" = Xno; then
9833 tbaseargs="$tbaseargs '$ac_arg'"
9834 fi
9835 keep_next=$separate_arg
9836 ;;
9837 *)
9838 # Either a variable assignment, or a nonopt (triplet). Don't
9839 # pass it down; let the Makefile handle this.
9840 continue
9841 ;;
9842 esac
9843 done
9844 # Remove the initial space we just introduced and, as these will be
9845 # expanded by make, quote '$'.
9846 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9847
9848 # Add in --program-transform-name, after --program-prefix and
9849 # --program-suffix have been applied to it. Autoconf has already
9850 # doubled dollar signs and backslashes in program_transform_name; we want
9851 # the backslashes un-doubled, and then the entire thing wrapped in single
9852 # quotes, because this will be expanded first by make and then by the shell.
9853 # Also, because we want to override the logic in subdir configure scripts to
9854 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9855 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9856 ${program_transform_name}
9857 EOF_SED
9858 gcc_transform_name=`cat conftestsed.out`
9859 rm -f conftestsed.out
9860 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9861 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9862 if test "$silent" = yes; then
9863 baseargs="$baseargs --silent"
9864 tbaseargs="$tbaseargs --silent"
9865 fi
9866 baseargs="$baseargs --disable-option-checking"
9867 tbaseargs="$tbaseargs --disable-option-checking"
9868
9869 # Record and document user additions to sub configure arguments.
9870
9871
9872
9873
9874 # For the build-side libraries, we just need to pretend we're native,
9875 # and not use the same cache file. Multilibs are neither needed nor
9876 # desired. We can't even use the same cache file for all build-side
9877 # libraries, as they're compiled differently; some with C, some with
9878 # C++ or with different feature-enabling options.
9879 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9880
9881 # For host modules, accept cache file option, or specification as blank.
9882 case "${cache_file}" in
9883 "") # empty
9884 cache_file_option="" ;;
9885 /* | [A-Za-z]:[\\/]* ) # absolute path
9886 cache_file_option="--cache-file=${cache_file}" ;;
9887 *) # relative path
9888 cache_file_option="--cache-file=../${cache_file}" ;;
9889 esac
9890
9891 # Host dirs don't like to share a cache file either, horribly enough.
9892 # This seems to be due to autoconf 2.5x stupidity.
9893 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9894
9895 target_configargs="$target_configargs ${tbaseargs}"
9896
9897 # Passing a --with-cross-host argument lets the target libraries know
9898 # whether they are being built with a cross-compiler or being built
9899 # native. However, it would be better to use other mechanisms to make the
9900 # sorts of decisions they want to make on this basis. Please consider
9901 # this option to be deprecated. FIXME.
9902 if test x${is_cross_compiler} = xyes ; then
9903 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9904 fi
9905
9906 # Special user-friendly check for native x86_64-linux build, if
9907 # multilib is not explicitly enabled.
9908 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9909 x86_64-*linux*:yes:$build:$build:)
9910 # Make sure we have a development environment that handles 32-bit
9911 dev64=no
9912 echo "int main () { return 0; }" > conftest.c
9913 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9914 if test $? = 0 ; then
9915 if test -s conftest || test -s conftest.exe ; then
9916 dev64=yes
9917 fi
9918 fi
9919 rm -f conftest*
9920 if test x${dev64} != xyes ; then
9921 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
9922 fi
9923 ;;
9924 esac
9925
9926 # Default to --enable-multilib.
9927 if test x${enable_multilib} = x ; then
9928 target_configargs="--enable-multilib ${target_configargs}"
9929 fi
9930
9931 # Pass --with-newlib if appropriate. Note that target_configdirs has
9932 # changed from the earlier setting of with_newlib.
9933 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9934 target_configargs="--with-newlib ${target_configargs}"
9935 fi
9936
9937 # Different target subdirs use different values of certain variables
9938 # (notably CXX). Worse, multilibs use *lots* of different values.
9939 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9940 # it doesn't automatically accept command-line overrides of them.
9941 # This means it's not safe for target subdirs to share a cache file,
9942 # which is disgusting, but there you have it. Hopefully this can be
9943 # fixed in future. It's still worthwhile to use a cache file for each
9944 # directory. I think.
9945
9946 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9947 # We need to pass --target, as newer autoconf's requires consistency
9948 # for target_alias and gcc doesn't manage it consistently.
9949 target_configargs="--cache-file=./config.cache ${target_configargs}"
9950
9951 FLAGS_FOR_TARGET=
9952 case " $target_configdirs " in
9953 *" newlib "*)
9954 case " $target_configargs " in
9955 *" --with-newlib "*)
9956 case "$target" in
9957 *-cygwin*)
9958 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9959 ;;
9960 esac
9961
9962 # If we're not building GCC, don't discard standard headers.
9963 if test -d ${srcdir}/gcc; then
9964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9965
9966 if test "${build}" != "${host}"; then
9967 # On Canadian crosses, CC_FOR_TARGET will have already been set
9968 # by `configure', so we won't have an opportunity to add -Bgcc/
9969 # to it. This is right: we don't want to search that directory
9970 # for binaries, but we want the header files in there, so add
9971 # them explicitly.
9972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9973
9974 # Someone might think of using the pre-installed headers on
9975 # Canadian crosses, in case the installed compiler is not fully
9976 # compatible with the compiler being built. In this case, it
9977 # would be better to flag an error than risking having
9978 # incompatible object files being constructed. We can't
9979 # guarantee that an error will be flagged, but let's hope the
9980 # compiler will do it, when presented with incompatible header
9981 # files.
9982 fi
9983 fi
9984
9985 case "${target}-${is_cross_compiler}" in
9986 i[3456789]86-*-linux*-no)
9987 # Here host == target, so we don't need to build gcc,
9988 # so we don't want to discard standard headers.
9989 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9990 ;;
9991 *)
9992 # If we're building newlib, use its generic headers last, but search
9993 # for any libc-related directories first (so make it the last -B
9994 # switch).
9995 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9996
9997 # If we're building libgloss, find the startup file, simulator library
9998 # and linker script.
9999 case " $target_configdirs " in
10000 *" libgloss "*)
10001 # Look for startup file, simulator library and maybe linker script.
10002 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10003 # Look for libnosys.a in case the target needs it.
10004 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10005 # Most targets have the linker script in the source directory.
10006 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10007 ;;
10008 esac
10009 ;;
10010 esac
10011 ;;
10012 esac
10013 ;;
10014 esac
10015
10016 case "$target" in
10017 x86_64-*mingw* | *-w64-mingw*)
10018 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10019 # however, use a symlink named 'mingw' in ${prefix} .
10020 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10021 ;;
10022 *-mingw*)
10023 # MinGW can't be handled as Cygwin above since it does not use newlib.
10024 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'
10025 ;;
10026 esac
10027
10028 # Allow the user to override the flags for
10029 # our build compiler if desired.
10030 if test x"${build}" = x"${host}" ; then
10031 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10032 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10033 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10034 fi
10035
10036 # On Canadian crosses, we'll be searching the right directories for
10037 # the previously-installed cross compiler, so don't bother to add
10038 # flags for directories within the install tree of the compiler
10039 # being built; programs in there won't even run.
10040 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10041 # Search for pre-installed headers if nothing else fits.
10042 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10043 fi
10044
10045 if test "x${use_gnu_ld}" = x &&
10046 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10047 # Arrange for us to find uninstalled linker scripts.
10048 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10049 fi
10050
10051 # Search for other target-specific linker scripts and such.
10052 case "${target}" in
10053 mep*)
10054 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10055 ;;
10056 esac
10057
10058 # Makefile fragments.
10059 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10060 do
10061 eval fragval=\$$frag
10062 if test $fragval != /dev/null; then
10063 eval $frag=${srcdir}/$fragval
10064 fi
10065 done
10066
10067
10068
10069
10070
10071 # Miscellanea: directories, flags, etc.
10072
10073
10074
10075
10076
10077
10078
10079
10080 # Build module lists & subconfigure args.
10081
10082
10083
10084 # Host module lists & subconfigure args.
10085
10086
10087
10088
10089 # Target module lists & subconfigure args.
10090
10091
10092
10093 # Build tools.
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 # Generate default definitions for YACC, M4, LEX and other programs that run
10113 # on the build machine. These are used if the Makefile can't locate these
10114 # programs in objdir.
10115 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10116
10117 for ac_prog in 'bison -y' byacc yacc
10118 do
10119 # Extract the first word of "$ac_prog", so it can be a program name with args.
10120 set dummy $ac_prog; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_prog_YACC+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 if test -n "$YACC"; then
10127 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_YACC="$ac_prog"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140 done
10141 done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 YACC=$ac_cv_prog_YACC
10147 if test -n "$YACC"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10149 $as_echo "$YACC" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155
10156 test -n "$YACC" && break
10157 done
10158 test -n "$YACC" || YACC="$MISSING bison -y"
10159
10160 case " $build_configdirs " in
10161 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10162 esac
10163
10164 for ac_prog in bison
10165 do
10166 # Extract the first word of "$ac_prog", so it can be a program name with args.
10167 set dummy $ac_prog; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_prog_BISON+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 if test -n "$BISON"; then
10174 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10175 else
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10178 do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_BISON="$ac_prog"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187 done
10188 done
10189 IFS=$as_save_IFS
10190
10191 fi
10192 fi
10193 BISON=$ac_cv_prog_BISON
10194 if test -n "$BISON"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10196 $as_echo "$BISON" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10200 fi
10201
10202
10203 test -n "$BISON" && break
10204 done
10205 test -n "$BISON" || BISON="$MISSING bison"
10206
10207 case " $build_configdirs " in
10208 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10209 esac
10210
10211 for ac_prog in gm4 gnum4 m4
10212 do
10213 # Extract the first word of "$ac_prog", so it can be a program name with args.
10214 set dummy $ac_prog; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_prog_M4+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 if test -n "$M4"; then
10221 ac_cv_prog_M4="$M4" # Let the user override the test.
10222 else
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10225 do
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_prog_M4="$ac_prog"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10233 fi
10234 done
10235 done
10236 IFS=$as_save_IFS
10237
10238 fi
10239 fi
10240 M4=$ac_cv_prog_M4
10241 if test -n "$M4"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10243 $as_echo "$M4" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10247 fi
10248
10249
10250 test -n "$M4" && break
10251 done
10252 test -n "$M4" || M4="$MISSING m4"
10253
10254 case " $build_configdirs " in
10255 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10256 esac
10257
10258 for ac_prog in flex lex
10259 do
10260 # Extract the first word of "$ac_prog", so it can be a program name with args.
10261 set dummy $ac_prog; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_LEX+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 if test -n "$LEX"; then
10268 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10269 else
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10272 do
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_prog_LEX="$ac_prog"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10280 fi
10281 done
10282 done
10283 IFS=$as_save_IFS
10284
10285 fi
10286 fi
10287 LEX=$ac_cv_prog_LEX
10288 if test -n "$LEX"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10290 $as_echo "$LEX" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296
10297 test -n "$LEX" && break
10298 done
10299 test -n "$LEX" || LEX="$MISSING flex"
10300
10301 case " $build_configdirs " in
10302 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10303 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10304 esac
10305
10306 for ac_prog in flex
10307 do
10308 # Extract the first word of "$ac_prog", so it can be a program name with args.
10309 set dummy $ac_prog; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_prog_FLEX+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 if test -n "$FLEX"; then
10316 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10317 else
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_FLEX="$ac_prog"
10326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10328 fi
10329 done
10330 done
10331 IFS=$as_save_IFS
10332
10333 fi
10334 fi
10335 FLEX=$ac_cv_prog_FLEX
10336 if test -n "$FLEX"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10338 $as_echo "$FLEX" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342 fi
10343
10344
10345 test -n "$FLEX" && break
10346 done
10347 test -n "$FLEX" || FLEX="$MISSING flex"
10348
10349 case " $build_configdirs " in
10350 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10351 esac
10352
10353 for ac_prog in makeinfo
10354 do
10355 # Extract the first word of "$ac_prog", so it can be a program name with args.
10356 set dummy $ac_prog; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_prog_MAKEINFO+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 if test -n "$MAKEINFO"; then
10363 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_MAKEINFO="$ac_prog"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376 done
10377 done
10378 IFS=$as_save_IFS
10379
10380 fi
10381 fi
10382 MAKEINFO=$ac_cv_prog_MAKEINFO
10383 if test -n "$MAKEINFO"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10385 $as_echo "$MAKEINFO" >&6; }
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10389 fi
10390
10391
10392 test -n "$MAKEINFO" && break
10393 done
10394 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10395
10396 case " $build_configdirs " in
10397 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10398 *)
10399
10400 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10401 # higher, else we use the "missing" dummy.
10402 if ${MAKEINFO} --version \
10403 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10404 :
10405 else
10406 MAKEINFO="$MISSING makeinfo"
10407 fi
10408 ;;
10409
10410 esac
10411
10412 # FIXME: expect and dejagnu may become build tools?
10413
10414 for ac_prog in expect
10415 do
10416 # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_prog_EXPECT+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 if test -n "$EXPECT"; then
10424 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10425 else
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10428 do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_prog_EXPECT="$ac_prog"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 break 2
10436 fi
10437 done
10438 done
10439 IFS=$as_save_IFS
10440
10441 fi
10442 fi
10443 EXPECT=$ac_cv_prog_EXPECT
10444 if test -n "$EXPECT"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10446 $as_echo "$EXPECT" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451
10452
10453 test -n "$EXPECT" && break
10454 done
10455 test -n "$EXPECT" || EXPECT="expect"
10456
10457 case " $configdirs " in
10458 *" expect "*)
10459 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10460 ;;
10461 esac
10462
10463 for ac_prog in runtest
10464 do
10465 # Extract the first word of "$ac_prog", so it can be a program name with args.
10466 set dummy $ac_prog; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_prog_RUNTEST+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 if test -n "$RUNTEST"; then
10473 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10474 else
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_RUNTEST="$ac_prog"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486 done
10487 done
10488 IFS=$as_save_IFS
10489
10490 fi
10491 fi
10492 RUNTEST=$ac_cv_prog_RUNTEST
10493 if test -n "$RUNTEST"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10495 $as_echo "$RUNTEST" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500
10501
10502 test -n "$RUNTEST" && break
10503 done
10504 test -n "$RUNTEST" || RUNTEST="runtest"
10505
10506 case " $configdirs " in
10507 *" dejagnu "*)
10508 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10509 ;;
10510 esac
10511
10512
10513 # Host tools.
10514 ncn_tool_prefix=
10515 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10516 ncn_target_tool_prefix=
10517 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10518
10519
10520
10521 if test -n "$AR"; then
10522 ac_cv_prog_AR=$AR
10523 elif test -n "$ac_cv_prog_AR"; then
10524 AR=$ac_cv_prog_AR
10525 fi
10526
10527 if test -n "$ac_cv_prog_AR"; then
10528 for ncn_progname in ar; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_AR+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 if test -n "$AR"; then
10537 ac_cv_prog_AR="$AR" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_AR="${ncn_progname}"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550 done
10551 done
10552 IFS=$as_save_IFS
10553
10554 fi
10555 fi
10556 AR=$ac_cv_prog_AR
10557 if test -n "$AR"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10559 $as_echo "$AR" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564
10565
10566 done
10567 fi
10568
10569 for ncn_progname in ar; do
10570 if test -n "$ncn_tool_prefix"; then
10571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_prog_AR+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 if test -n "$AR"; then
10579 ac_cv_prog_AR="$AR" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592 done
10593 done
10594 IFS=$as_save_IFS
10595
10596 fi
10597 fi
10598 AR=$ac_cv_prog_AR
10599 if test -n "$AR"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10601 $as_echo "$AR" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 fi
10606
10607
10608 fi
10609 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10611 set dummy ${ncn_progname}; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if ${ac_cv_prog_AR+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 if test -n "$AR"; then
10618 ac_cv_prog_AR="$AR" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_AR="${ncn_progname}"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631 done
10632 done
10633 IFS=$as_save_IFS
10634
10635 fi
10636 fi
10637 AR=$ac_cv_prog_AR
10638 if test -n "$AR"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10640 $as_echo "$AR" >&6; }
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10644 fi
10645
10646
10647 fi
10648 test -n "$ac_cv_prog_AR" && break
10649 done
10650
10651 if test -z "$ac_cv_prog_AR" ; then
10652 set dummy ar
10653 if test $build = $host ; then
10654 AR="$2"
10655 else
10656 AR="${ncn_tool_prefix}$2"
10657 fi
10658 fi
10659
10660
10661
10662 if test -n "$AS"; then
10663 ac_cv_prog_AS=$AS
10664 elif test -n "$ac_cv_prog_AS"; then
10665 AS=$ac_cv_prog_AS
10666 fi
10667
10668 if test -n "$ac_cv_prog_AS"; then
10669 for ncn_progname in as; do
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10671 set dummy ${ncn_progname}; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if ${ac_cv_prog_AS+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 if test -n "$AS"; then
10678 ac_cv_prog_AS="$AS" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_AS="${ncn_progname}"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691 done
10692 done
10693 IFS=$as_save_IFS
10694
10695 fi
10696 fi
10697 AS=$ac_cv_prog_AS
10698 if test -n "$AS"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10700 $as_echo "$AS" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 fi
10705
10706
10707 done
10708 fi
10709
10710 for ncn_progname in as; do
10711 if test -n "$ncn_tool_prefix"; then
10712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_prog_AS+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$AS"; then
10720 ac_cv_prog_AS="$AS" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733 done
10734 done
10735 IFS=$as_save_IFS
10736
10737 fi
10738 fi
10739 AS=$ac_cv_prog_AS
10740 if test -n "$AS"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10742 $as_echo "$AS" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 fi
10747
10748
10749 fi
10750 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if ${ac_cv_prog_AS+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test -n "$AS"; then
10759 ac_cv_prog_AS="$AS" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10763 do
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_prog_AS="${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10771 fi
10772 done
10773 done
10774 IFS=$as_save_IFS
10775
10776 fi
10777 fi
10778 AS=$ac_cv_prog_AS
10779 if test -n "$AS"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10781 $as_echo "$AS" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10785 fi
10786
10787
10788 fi
10789 test -n "$ac_cv_prog_AS" && break
10790 done
10791
10792 if test -z "$ac_cv_prog_AS" ; then
10793 set dummy as
10794 if test $build = $host ; then
10795 AS="$2"
10796 else
10797 AS="${ncn_tool_prefix}$2"
10798 fi
10799 fi
10800
10801
10802
10803 if test -n "$DLLTOOL"; then
10804 ac_cv_prog_DLLTOOL=$DLLTOOL
10805 elif test -n "$ac_cv_prog_DLLTOOL"; then
10806 DLLTOOL=$ac_cv_prog_DLLTOOL
10807 fi
10808
10809 if test -n "$ac_cv_prog_DLLTOOL"; then
10810 for ncn_progname in dlltool; do
10811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10812 set dummy ${ncn_progname}; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_prog_DLLTOOL+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 if test -n "$DLLTOOL"; then
10819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10820 else
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_prog_DLLTOOL="${ncn_progname}"
10829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832 done
10833 done
10834 IFS=$as_save_IFS
10835
10836 fi
10837 fi
10838 DLLTOOL=$ac_cv_prog_DLLTOOL
10839 if test -n "$DLLTOOL"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10841 $as_echo "$DLLTOOL" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 fi
10846
10847
10848 done
10849 fi
10850
10851 for ncn_progname in dlltool; do
10852 if test -n "$ncn_tool_prefix"; then
10853 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if ${ac_cv_prog_DLLTOOL+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$DLLTOOL"; then
10861 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876 IFS=$as_save_IFS
10877
10878 fi
10879 fi
10880 DLLTOOL=$ac_cv_prog_DLLTOOL
10881 if test -n "$DLLTOOL"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10883 $as_echo "$DLLTOOL" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10887 fi
10888
10889
10890 fi
10891 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893 set dummy ${ncn_progname}; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if ${ac_cv_prog_DLLTOOL+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test -n "$DLLTOOL"; then
10900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10901 else
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10904 do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_DLLTOOL="${ncn_progname}"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913 done
10914 done
10915 IFS=$as_save_IFS
10916
10917 fi
10918 fi
10919 DLLTOOL=$ac_cv_prog_DLLTOOL
10920 if test -n "$DLLTOOL"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10922 $as_echo "$DLLTOOL" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10926 fi
10927
10928
10929 fi
10930 test -n "$ac_cv_prog_DLLTOOL" && break
10931 done
10932
10933 if test -z "$ac_cv_prog_DLLTOOL" ; then
10934 set dummy dlltool
10935 if test $build = $host ; then
10936 DLLTOOL="$2"
10937 else
10938 DLLTOOL="${ncn_tool_prefix}$2"
10939 fi
10940 fi
10941
10942
10943
10944 if test -n "$DSYMUTIL"; then
10945 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10946 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10947 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10948 fi
10949
10950 if test -n "$ac_cv_prog_DSYMUTIL"; then
10951 for ncn_progname in dsymutil; do
10952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10953 set dummy ${ncn_progname}; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 if test -n "$DSYMUTIL"; then
10960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10961 else
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10964 do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10969 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971 break 2
10972 fi
10973 done
10974 done
10975 IFS=$as_save_IFS
10976
10977 fi
10978 fi
10979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10980 if test -n "$DSYMUTIL"; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10982 $as_echo "$DSYMUTIL" >&6; }
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 fi
10987
10988
10989 done
10990 fi
10991
10992 for ncn_progname in dsymutil; do
10993 if test -n "$ncn_tool_prefix"; then
10994 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10995 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10997 $as_echo_n "checking for $ac_word... " >&6; }
10998 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 if test -n "$DSYMUTIL"; then
11002 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11003 else
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11014 fi
11015 done
11016 done
11017 IFS=$as_save_IFS
11018
11019 fi
11020 fi
11021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11022 if test -n "$DSYMUTIL"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11024 $as_echo "$DSYMUTIL" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11028 fi
11029
11030
11031 fi
11032 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$DSYMUTIL"; then
11041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11050 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11061 if test -n "$DSYMUTIL"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11063 $as_echo "$DSYMUTIL" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 fi
11071 test -n "$ac_cv_prog_DSYMUTIL" && break
11072 done
11073
11074 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11075 set dummy dsymutil
11076 if test $build = $host ; then
11077 DSYMUTIL="$2"
11078 else
11079 DSYMUTIL="${ncn_tool_prefix}$2"
11080 fi
11081 fi
11082
11083
11084
11085 if test -n "$LD"; then
11086 ac_cv_prog_LD=$LD
11087 elif test -n "$ac_cv_prog_LD"; then
11088 LD=$ac_cv_prog_LD
11089 fi
11090
11091 if test -n "$ac_cv_prog_LD"; then
11092 for ncn_progname in ld; do
11093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11094 set dummy ${ncn_progname}; ac_word=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11096 $as_echo_n "checking for $ac_word... " >&6; }
11097 if ${ac_cv_prog_LD+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 if test -n "$LD"; then
11101 ac_cv_prog_LD="$LD" # Let the user override the test.
11102 else
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11105 do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11110 ac_cv_prog_LD="${ncn_progname}"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118 fi
11119 fi
11120 LD=$ac_cv_prog_LD
11121 if test -n "$LD"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11123 $as_echo "$LD" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127 fi
11128
11129
11130 done
11131 fi
11132
11133 for ncn_progname in ld; do
11134 if test -n "$ncn_tool_prefix"; then
11135 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11136 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_prog_LD+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test -n "$LD"; then
11143 ac_cv_prog_LD="$LD" # Let the user override the test.
11144 else
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156 done
11157 done
11158 IFS=$as_save_IFS
11159
11160 fi
11161 fi
11162 LD=$ac_cv_prog_LD
11163 if test -n "$LD"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11165 $as_echo "$LD" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 fi
11170
11171
11172 fi
11173 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11175 set dummy ${ncn_progname}; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_prog_LD+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$LD"; then
11182 ac_cv_prog_LD="$LD" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_prog_LD="${ncn_progname}"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11194 fi
11195 done
11196 done
11197 IFS=$as_save_IFS
11198
11199 fi
11200 fi
11201 LD=$ac_cv_prog_LD
11202 if test -n "$LD"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11204 $as_echo "$LD" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11208 fi
11209
11210
11211 fi
11212 test -n "$ac_cv_prog_LD" && break
11213 done
11214
11215 if test -z "$ac_cv_prog_LD" ; then
11216 set dummy ld
11217 if test $build = $host ; then
11218 LD="$2"
11219 else
11220 LD="${ncn_tool_prefix}$2"
11221 fi
11222 fi
11223
11224
11225
11226 if test -n "$LIPO"; then
11227 ac_cv_prog_LIPO=$LIPO
11228 elif test -n "$ac_cv_prog_LIPO"; then
11229 LIPO=$ac_cv_prog_LIPO
11230 fi
11231
11232 if test -n "$ac_cv_prog_LIPO"; then
11233 for ncn_progname in lipo; do
11234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11235 set dummy ${ncn_progname}; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if ${ac_cv_prog_LIPO+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 if test -n "$LIPO"; then
11242 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11243 else
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_LIPO="${ncn_progname}"
11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255 done
11256 done
11257 IFS=$as_save_IFS
11258
11259 fi
11260 fi
11261 LIPO=$ac_cv_prog_LIPO
11262 if test -n "$LIPO"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11264 $as_echo "$LIPO" >&6; }
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 fi
11269
11270
11271 done
11272 fi
11273
11274 for ncn_progname in lipo; do
11275 if test -n "$ncn_tool_prefix"; then
11276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if ${ac_cv_prog_LIPO+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 if test -n "$LIPO"; then
11284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11288 do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11296 fi
11297 done
11298 done
11299 IFS=$as_save_IFS
11300
11301 fi
11302 fi
11303 LIPO=$ac_cv_prog_LIPO
11304 if test -n "$LIPO"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11306 $as_echo "$LIPO" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311
11312
11313 fi
11314 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316 set dummy ${ncn_progname}; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if ${ac_cv_prog_LIPO+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 if test -n "$LIPO"; then
11323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332 ac_cv_prog_LIPO="${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11335 fi
11336 done
11337 done
11338 IFS=$as_save_IFS
11339
11340 fi
11341 fi
11342 LIPO=$ac_cv_prog_LIPO
11343 if test -n "$LIPO"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11345 $as_echo "$LIPO" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350
11351
11352 fi
11353 test -n "$ac_cv_prog_LIPO" && break
11354 done
11355
11356 if test -z "$ac_cv_prog_LIPO" ; then
11357 set dummy lipo
11358 if test $build = $host ; then
11359 LIPO="$2"
11360 else
11361 LIPO="${ncn_tool_prefix}$2"
11362 fi
11363 fi
11364
11365
11366
11367 if test -n "$NM"; then
11368 ac_cv_prog_NM=$NM
11369 elif test -n "$ac_cv_prog_NM"; then
11370 NM=$ac_cv_prog_NM
11371 fi
11372
11373 if test -n "$ac_cv_prog_NM"; then
11374 for ncn_progname in nm; do
11375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11376 set dummy ${ncn_progname}; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_prog_NM+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 if test -n "$NM"; then
11383 ac_cv_prog_NM="$NM" # Let the user override the test.
11384 else
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_NM="${ncn_progname}"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396 done
11397 done
11398 IFS=$as_save_IFS
11399
11400 fi
11401 fi
11402 NM=$ac_cv_prog_NM
11403 if test -n "$NM"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11405 $as_echo "$NM" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 fi
11410
11411
11412 done
11413 fi
11414
11415 for ncn_progname in nm; do
11416 if test -n "$ncn_tool_prefix"; then
11417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if ${ac_cv_prog_NM+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 if test -n "$NM"; then
11425 ac_cv_prog_NM="$NM" # Let the user override the test.
11426 else
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11429 do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438 done
11439 done
11440 IFS=$as_save_IFS
11441
11442 fi
11443 fi
11444 NM=$ac_cv_prog_NM
11445 if test -n "$NM"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11447 $as_echo "$NM" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 fi
11452
11453
11454 fi
11455 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11457 set dummy ${ncn_progname}; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_prog_NM+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 if test -n "$NM"; then
11464 ac_cv_prog_NM="$NM" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473 ac_cv_prog_NM="${ncn_progname}"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 fi
11482 fi
11483 NM=$ac_cv_prog_NM
11484 if test -n "$NM"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11486 $as_echo "$NM" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491
11492
11493 fi
11494 test -n "$ac_cv_prog_NM" && break
11495 done
11496
11497 if test -z "$ac_cv_prog_NM" ; then
11498 set dummy nm
11499 if test $build = $host ; then
11500 NM="$2"
11501 else
11502 NM="${ncn_tool_prefix}$2"
11503 fi
11504 fi
11505
11506
11507
11508 if test -n "$RANLIB"; then
11509 ac_cv_prog_RANLIB=$RANLIB
11510 elif test -n "$ac_cv_prog_RANLIB"; then
11511 RANLIB=$ac_cv_prog_RANLIB
11512 fi
11513
11514 if test -n "$ac_cv_prog_RANLIB"; then
11515 for ncn_progname in ranlib; do
11516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11517 set dummy ${ncn_progname}; ac_word=$2
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519 $as_echo_n "checking for $ac_word... " >&6; }
11520 if ${ac_cv_prog_RANLIB+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 if test -n "$RANLIB"; then
11524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11525 else
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11528 do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533 ac_cv_prog_RANLIB="${ncn_progname}"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11536 fi
11537 done
11538 done
11539 IFS=$as_save_IFS
11540
11541 fi
11542 fi
11543 RANLIB=$ac_cv_prog_RANLIB
11544 if test -n "$RANLIB"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11546 $as_echo "$RANLIB" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 fi
11551
11552
11553 done
11554 fi
11555
11556 for ncn_progname in ranlib; do
11557 if test -n "$ncn_tool_prefix"; then
11558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11559 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561 $as_echo_n "checking for $ac_word... " >&6; }
11562 if ${ac_cv_prog_RANLIB+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 if test -n "$RANLIB"; then
11566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11567 else
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11578 fi
11579 done
11580 done
11581 IFS=$as_save_IFS
11582
11583 fi
11584 fi
11585 RANLIB=$ac_cv_prog_RANLIB
11586 if test -n "$RANLIB"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11588 $as_echo "$RANLIB" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11592 fi
11593
11594
11595 fi
11596 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11598 set dummy ${ncn_progname}; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 $as_echo_n "checking for $ac_word... " >&6; }
11601 if ${ac_cv_prog_RANLIB+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 if test -n "$RANLIB"; then
11605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11606 else
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11609 do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_RANLIB="${ncn_progname}"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11617 fi
11618 done
11619 done
11620 IFS=$as_save_IFS
11621
11622 fi
11623 fi
11624 RANLIB=$ac_cv_prog_RANLIB
11625 if test -n "$RANLIB"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11627 $as_echo "$RANLIB" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11631 fi
11632
11633
11634 fi
11635 test -n "$ac_cv_prog_RANLIB" && break
11636 done
11637
11638 if test -z "$ac_cv_prog_RANLIB" ; then
11639 RANLIB="true"
11640 fi
11641
11642
11643
11644 if test -n "$STRIP"; then
11645 ac_cv_prog_STRIP=$STRIP
11646 elif test -n "$ac_cv_prog_STRIP"; then
11647 STRIP=$ac_cv_prog_STRIP
11648 fi
11649
11650 if test -n "$ac_cv_prog_STRIP"; then
11651 for ncn_progname in strip; do
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653 set dummy ${ncn_progname}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_prog_STRIP+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test -n "$STRIP"; then
11660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_STRIP="${ncn_progname}"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673 done
11674 done
11675 IFS=$as_save_IFS
11676
11677 fi
11678 fi
11679 STRIP=$ac_cv_prog_STRIP
11680 if test -n "$STRIP"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11682 $as_echo "$STRIP" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689 done
11690 fi
11691
11692 for ncn_progname in strip; do
11693 if test -n "$ncn_tool_prefix"; then
11694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_STRIP+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$STRIP"; then
11702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11714 fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719 fi
11720 fi
11721 STRIP=$ac_cv_prog_STRIP
11722 if test -n "$STRIP"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11724 $as_echo "$STRIP" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731 fi
11732 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11734 set dummy ${ncn_progname}; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_STRIP+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 if test -n "$STRIP"; then
11741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11745 do
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_STRIP="${ncn_progname}"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 break 2
11753 fi
11754 done
11755 done
11756 IFS=$as_save_IFS
11757
11758 fi
11759 fi
11760 STRIP=$ac_cv_prog_STRIP
11761 if test -n "$STRIP"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11763 $as_echo "$STRIP" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 fi
11768
11769
11770 fi
11771 test -n "$ac_cv_prog_STRIP" && break
11772 done
11773
11774 if test -z "$ac_cv_prog_STRIP" ; then
11775 STRIP="true"
11776 fi
11777
11778
11779
11780 if test -n "$WINDRES"; then
11781 ac_cv_prog_WINDRES=$WINDRES
11782 elif test -n "$ac_cv_prog_WINDRES"; then
11783 WINDRES=$ac_cv_prog_WINDRES
11784 fi
11785
11786 if test -n "$ac_cv_prog_WINDRES"; then
11787 for ncn_progname in windres; do
11788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11789 set dummy ${ncn_progname}; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_prog_WINDRES+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 if test -n "$WINDRES"; then
11796 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11797 else
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11800 do
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_prog_WINDRES="${ncn_progname}"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11808 fi
11809 done
11810 done
11811 IFS=$as_save_IFS
11812
11813 fi
11814 fi
11815 WINDRES=$ac_cv_prog_WINDRES
11816 if test -n "$WINDRES"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11818 $as_echo "$WINDRES" >&6; }
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11822 fi
11823
11824
11825 done
11826 fi
11827
11828 for ncn_progname in windres; do
11829 if test -n "$ncn_tool_prefix"; then
11830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_prog_WINDRES+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 if test -n "$WINDRES"; then
11838 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11839 else
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11842 do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 break 2
11850 fi
11851 done
11852 done
11853 IFS=$as_save_IFS
11854
11855 fi
11856 fi
11857 WINDRES=$ac_cv_prog_WINDRES
11858 if test -n "$WINDRES"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11860 $as_echo "$WINDRES" >&6; }
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865
11866
11867 fi
11868 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870 set dummy ${ncn_progname}; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_prog_WINDRES+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 if test -n "$WINDRES"; then
11877 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_WINDRES="${ncn_progname}"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890 done
11891 done
11892 IFS=$as_save_IFS
11893
11894 fi
11895 fi
11896 WINDRES=$ac_cv_prog_WINDRES
11897 if test -n "$WINDRES"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11899 $as_echo "$WINDRES" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906 fi
11907 test -n "$ac_cv_prog_WINDRES" && break
11908 done
11909
11910 if test -z "$ac_cv_prog_WINDRES" ; then
11911 set dummy windres
11912 if test $build = $host ; then
11913 WINDRES="$2"
11914 else
11915 WINDRES="${ncn_tool_prefix}$2"
11916 fi
11917 fi
11918
11919
11920
11921 if test -n "$WINDMC"; then
11922 ac_cv_prog_WINDMC=$WINDMC
11923 elif test -n "$ac_cv_prog_WINDMC"; then
11924 WINDMC=$ac_cv_prog_WINDMC
11925 fi
11926
11927 if test -n "$ac_cv_prog_WINDMC"; then
11928 for ncn_progname in windmc; do
11929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11930 set dummy ${ncn_progname}; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if ${ac_cv_prog_WINDMC+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 if test -n "$WINDMC"; then
11937 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_prog_WINDMC="${ncn_progname}"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11949 fi
11950 done
11951 done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 WINDMC=$ac_cv_prog_WINDMC
11957 if test -n "$WINDMC"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11959 $as_echo "$WINDMC" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965
11966 done
11967 fi
11968
11969 for ncn_progname in windmc; do
11970 if test -n "$ncn_tool_prefix"; then
11971 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11972 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_prog_WINDMC+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 if test -n "$WINDMC"; then
11979 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11980 else
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11988 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 break 2
11991 fi
11992 done
11993 done
11994 IFS=$as_save_IFS
11995
11996 fi
11997 fi
11998 WINDMC=$ac_cv_prog_WINDMC
11999 if test -n "$WINDMC"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12001 $as_echo "$WINDMC" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006
12007
12008 fi
12009 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_prog_WINDMC+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$WINDMC"; then
12018 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027 ac_cv_prog_WINDMC="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12030 fi
12031 done
12032 done
12033 IFS=$as_save_IFS
12034
12035 fi
12036 fi
12037 WINDMC=$ac_cv_prog_WINDMC
12038 if test -n "$WINDMC"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12040 $as_echo "$WINDMC" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045
12046
12047 fi
12048 test -n "$ac_cv_prog_WINDMC" && break
12049 done
12050
12051 if test -z "$ac_cv_prog_WINDMC" ; then
12052 set dummy windmc
12053 if test $build = $host ; then
12054 WINDMC="$2"
12055 else
12056 WINDMC="${ncn_tool_prefix}$2"
12057 fi
12058 fi
12059
12060
12061
12062 if test -n "$OBJCOPY"; then
12063 ac_cv_prog_OBJCOPY=$OBJCOPY
12064 elif test -n "$ac_cv_prog_OBJCOPY"; then
12065 OBJCOPY=$ac_cv_prog_OBJCOPY
12066 fi
12067
12068 if test -n "$ac_cv_prog_OBJCOPY"; then
12069 for ncn_progname in objcopy; do
12070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12071 set dummy ${ncn_progname}; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_OBJCOPY+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 if test -n "$OBJCOPY"; then
12078 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_OBJCOPY="${ncn_progname}"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091 done
12092 done
12093 IFS=$as_save_IFS
12094
12095 fi
12096 fi
12097 OBJCOPY=$ac_cv_prog_OBJCOPY
12098 if test -n "$OBJCOPY"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12100 $as_echo "$OBJCOPY" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105
12106
12107 done
12108 fi
12109
12110 for ncn_progname in objcopy; do
12111 if test -n "$ncn_tool_prefix"; then
12112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if ${ac_cv_prog_OBJCOPY+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 if test -n "$OBJCOPY"; then
12120 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12121 else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12132 fi
12133 done
12134 done
12135 IFS=$as_save_IFS
12136
12137 fi
12138 fi
12139 OBJCOPY=$ac_cv_prog_OBJCOPY
12140 if test -n "$OBJCOPY"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12142 $as_echo "$OBJCOPY" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 fi
12150 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12152 set dummy ${ncn_progname}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_OBJCOPY+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$OBJCOPY"; then
12159 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_OBJCOPY="${ncn_progname}"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12171 fi
12172 done
12173 done
12174 IFS=$as_save_IFS
12175
12176 fi
12177 fi
12178 OBJCOPY=$ac_cv_prog_OBJCOPY
12179 if test -n "$OBJCOPY"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12181 $as_echo "$OBJCOPY" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186
12187
12188 fi
12189 test -n "$ac_cv_prog_OBJCOPY" && break
12190 done
12191
12192 if test -z "$ac_cv_prog_OBJCOPY" ; then
12193 set dummy objcopy
12194 if test $build = $host ; then
12195 OBJCOPY="$2"
12196 else
12197 OBJCOPY="${ncn_tool_prefix}$2"
12198 fi
12199 fi
12200
12201
12202
12203 if test -n "$OBJDUMP"; then
12204 ac_cv_prog_OBJDUMP=$OBJDUMP
12205 elif test -n "$ac_cv_prog_OBJDUMP"; then
12206 OBJDUMP=$ac_cv_prog_OBJDUMP
12207 fi
12208
12209 if test -n "$ac_cv_prog_OBJDUMP"; then
12210 for ncn_progname in objdump; do
12211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12212 set dummy ${ncn_progname}; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if ${ac_cv_prog_OBJDUMP+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 if test -n "$OBJDUMP"; then
12219 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12220 else
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12223 do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_OBJDUMP="${ncn_progname}"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232 done
12233 done
12234 IFS=$as_save_IFS
12235
12236 fi
12237 fi
12238 OBJDUMP=$ac_cv_prog_OBJDUMP
12239 if test -n "$OBJDUMP"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12241 $as_echo "$OBJDUMP" >&6; }
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246
12247
12248 done
12249 fi
12250
12251 for ncn_progname in objdump; do
12252 if test -n "$ncn_tool_prefix"; then
12253 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12254 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_OBJDUMP+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 if test -n "$OBJDUMP"; then
12261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12262 else
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12273 fi
12274 done
12275 done
12276 IFS=$as_save_IFS
12277
12278 fi
12279 fi
12280 OBJDUMP=$ac_cv_prog_OBJDUMP
12281 if test -n "$OBJDUMP"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12283 $as_echo "$OBJDUMP" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290 fi
12291 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293 set dummy ${ncn_progname}; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_prog_OBJDUMP+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test -n "$OBJDUMP"; then
12300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_OBJDUMP="${ncn_progname}"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12312 fi
12313 done
12314 done
12315 IFS=$as_save_IFS
12316
12317 fi
12318 fi
12319 OBJDUMP=$ac_cv_prog_OBJDUMP
12320 if test -n "$OBJDUMP"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12322 $as_echo "$OBJDUMP" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327
12328
12329 fi
12330 test -n "$ac_cv_prog_OBJDUMP" && break
12331 done
12332
12333 if test -z "$ac_cv_prog_OBJDUMP" ; then
12334 set dummy objdump
12335 if test $build = $host ; then
12336 OBJDUMP="$2"
12337 else
12338 OBJDUMP="${ncn_tool_prefix}$2"
12339 fi
12340 fi
12341
12342
12343
12344 if test -n "$OTOOL"; then
12345 ac_cv_prog_OTOOL=$OTOOL
12346 elif test -n "$ac_cv_prog_OTOOL"; then
12347 OTOOL=$ac_cv_prog_OTOOL
12348 fi
12349
12350 if test -n "$ac_cv_prog_OTOOL"; then
12351 for ncn_progname in otool; do
12352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12353 set dummy ${ncn_progname}; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_prog_OTOOL+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test -n "$OTOOL"; then
12360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12361 else
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_OTOOL="${ncn_progname}"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12376
12377 fi
12378 fi
12379 OTOOL=$ac_cv_prog_OTOOL
12380 if test -n "$OTOOL"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12382 $as_echo "$OTOOL" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12386 fi
12387
12388
12389 done
12390 fi
12391
12392 for ncn_progname in otool; do
12393 if test -n "$ncn_tool_prefix"; then
12394 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_prog_OTOOL+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$OTOOL"; then
12402 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12406 do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12414 fi
12415 done
12416 done
12417 IFS=$as_save_IFS
12418
12419 fi
12420 fi
12421 OTOOL=$ac_cv_prog_OTOOL
12422 if test -n "$OTOOL"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12424 $as_echo "$OTOOL" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429
12430
12431 fi
12432 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12434 set dummy ${ncn_progname}; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_prog_OTOOL+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 if test -n "$OTOOL"; then
12441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12442 else
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12445 do
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_OTOOL="${ncn_progname}"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12453 fi
12454 done
12455 done
12456 IFS=$as_save_IFS
12457
12458 fi
12459 fi
12460 OTOOL=$ac_cv_prog_OTOOL
12461 if test -n "$OTOOL"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12463 $as_echo "$OTOOL" >&6; }
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467 fi
12468
12469
12470 fi
12471 test -n "$ac_cv_prog_OTOOL" && break
12472 done
12473
12474 if test -z "$ac_cv_prog_OTOOL" ; then
12475 set dummy otool
12476 if test $build = $host ; then
12477 OTOOL="$2"
12478 else
12479 OTOOL="${ncn_tool_prefix}$2"
12480 fi
12481 fi
12482
12483
12484
12485 if test -n "$READELF"; then
12486 ac_cv_prog_READELF=$READELF
12487 elif test -n "$ac_cv_prog_READELF"; then
12488 READELF=$ac_cv_prog_READELF
12489 fi
12490
12491 if test -n "$ac_cv_prog_READELF"; then
12492 for ncn_progname in readelf; do
12493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12494 set dummy ${ncn_progname}; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_prog_READELF+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 if test -n "$READELF"; then
12501 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12502 else
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_prog_READELF="${ncn_progname}"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12513 fi
12514 done
12515 done
12516 IFS=$as_save_IFS
12517
12518 fi
12519 fi
12520 READELF=$ac_cv_prog_READELF
12521 if test -n "$READELF"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12523 $as_echo "$READELF" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529
12530 done
12531 fi
12532
12533 for ncn_progname in readelf; do
12534 if test -n "$ncn_tool_prefix"; then
12535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12536 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538 $as_echo_n "checking for $ac_word... " >&6; }
12539 if ${ac_cv_prog_READELF+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 if test -n "$READELF"; then
12543 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12544 else
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12547 do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556 done
12557 done
12558 IFS=$as_save_IFS
12559
12560 fi
12561 fi
12562 READELF=$ac_cv_prog_READELF
12563 if test -n "$READELF"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12565 $as_echo "$READELF" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569 fi
12570
12571
12572 fi
12573 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575 set dummy ${ncn_progname}; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_prog_READELF+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 if test -n "$READELF"; then
12582 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12583 else
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12586 do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12591 ac_cv_prog_READELF="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595 done
12596 done
12597 IFS=$as_save_IFS
12598
12599 fi
12600 fi
12601 READELF=$ac_cv_prog_READELF
12602 if test -n "$READELF"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12604 $as_echo "$READELF" >&6; }
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12608 fi
12609
12610
12611 fi
12612 test -n "$ac_cv_prog_READELF" && break
12613 done
12614
12615 if test -z "$ac_cv_prog_READELF" ; then
12616 set dummy readelf
12617 if test $build = $host ; then
12618 READELF="$2"
12619 else
12620 READELF="${ncn_tool_prefix}$2"
12621 fi
12622 fi
12623
12624
12625
12626
12627
12628
12629 # Target tools.
12630
12631 # Check whether --with-build-time-tools was given.
12632 if test "${with_build_time_tools+set}" = set; then :
12633 withval=$with_build_time_tools; case x"$withval" in
12634 x/*) ;;
12635 *)
12636 with_build_time_tools=
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12638 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12639 ;;
12640 esac
12641 else
12642 with_build_time_tools=
12643 fi
12644
12645
12646
12647
12648 if test -n "$CC_FOR_TARGET"; then
12649 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12650 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12651 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12652 fi
12653
12654 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12655 for ncn_progname in cc gcc; do
12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test -n "$CC_FOR_TARGET"; then
12664 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677 done
12678 done
12679 IFS=$as_save_IFS
12680
12681 fi
12682 fi
12683 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12684 if test -n "$CC_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12686 $as_echo "$CC_FOR_TARGET" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692
12693 done
12694 fi
12695
12696 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12697 for ncn_progname in cc gcc; do
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12700 if test -x $with_build_time_tools/${ncn_progname}; then
12701 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 $as_echo "yes" >&6; }
12704 break
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709 done
12710 fi
12711
12712 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12713 for ncn_progname in cc gcc; do
12714 if test -n "$ncn_target_tool_prefix"; then
12715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$CC_FOR_TARGET"; then
12723 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740 fi
12741 fi
12742 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12743 if test -n "$CC_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12745 $as_echo "$CC_FOR_TARGET" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751
12752 fi
12753 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12755 set dummy ${ncn_progname}; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 if test -n "$CC_FOR_TARGET"; then
12762 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12774 fi
12775 done
12776 done
12777 IFS=$as_save_IFS
12778
12779 fi
12780 fi
12781 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12782 if test -n "$CC_FOR_TARGET"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12784 $as_echo "$CC_FOR_TARGET" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791 fi
12792 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12793 done
12794 fi
12795
12796 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12797 set dummy cc gcc
12798 if test $build = $target ; then
12799 CC_FOR_TARGET="$2"
12800 else
12801 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12802 fi
12803 else
12804 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12805 fi
12806
12807
12808
12809 if test -n "$CXX_FOR_TARGET"; then
12810 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12811 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12812 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12813 fi
12814
12815 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12816 for ncn_progname in c++ g++ cxx gxx; do
12817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818 set dummy ${ncn_progname}; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 if test -n "$CXX_FOR_TARGET"; then
12825 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12837 fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12845 if test -n "$CXX_FOR_TARGET"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12847 $as_echo "$CXX_FOR_TARGET" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 done
12855 fi
12856
12857 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12858 for ncn_progname in c++ g++ cxx gxx; do
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12860 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12861 if test -x $with_build_time_tools/${ncn_progname}; then
12862 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12865 break
12866 else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869 fi
12870 done
12871 fi
12872
12873 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12874 for ncn_progname in c++ g++ cxx gxx; do
12875 if test -n "$ncn_target_tool_prefix"; then
12876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 if test -n "$CXX_FOR_TARGET"; then
12884 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12885 else
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12888 do
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 break 2
12896 fi
12897 done
12898 done
12899 IFS=$as_save_IFS
12900
12901 fi
12902 fi
12903 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12904 if test -n "$CXX_FOR_TARGET"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12906 $as_echo "$CXX_FOR_TARGET" >&6; }
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12910 fi
12911
12912
12913 fi
12914 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12916 set dummy ${ncn_progname}; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 if test -n "$CXX_FOR_TARGET"; then
12923 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12924 else
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12927 do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12935 fi
12936 done
12937 done
12938 IFS=$as_save_IFS
12939
12940 fi
12941 fi
12942 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12943 if test -n "$CXX_FOR_TARGET"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12945 $as_echo "$CXX_FOR_TARGET" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12949 fi
12950
12951
12952 fi
12953 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12954 done
12955 fi
12956
12957 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12958 set dummy c++ g++ cxx gxx
12959 if test $build = $target ; then
12960 CXX_FOR_TARGET="$2"
12961 else
12962 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12963 fi
12964 else
12965 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12966 fi
12967
12968
12969
12970 if test -n "$GCC_FOR_TARGET"; then
12971 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12972 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12973 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12974 fi
12975
12976 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12977 for ncn_progname in gcc; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 if test -n "$GCC_FOR_TARGET"; then
12986 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999 done
13000 done
13001 IFS=$as_save_IFS
13002
13003 fi
13004 fi
13005 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13006 if test -n "$GCC_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13008 $as_echo "$GCC_FOR_TARGET" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013
13014
13015 done
13016 fi
13017
13018 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in gcc; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025 $as_echo "yes" >&6; }
13026 break
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031 done
13032 fi
13033
13034 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13035 for ncn_progname in gcc; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$GCC_FOR_TARGET"; then
13045 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13065 if test -n "$GCC_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13067 $as_echo "$GCC_FOR_TARGET" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -n "$GCC_FOR_TARGET"; then
13084 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 fi
13102 fi
13103 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13104 if test -n "$GCC_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13106 $as_echo "$GCC_FOR_TARGET" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111
13112
13113 fi
13114 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13115 done
13116 fi
13117
13118 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13119 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13120 else
13121 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13122 fi
13123
13124
13125
13126 if test -n "$GFORTRAN_FOR_TARGET"; then
13127 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13128 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13129 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13130 fi
13131
13132 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13133 for ncn_progname in gfortran; do
13134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13135 set dummy ${ncn_progname}; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$GFORTRAN_FOR_TARGET"; then
13142 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13154 fi
13155 done
13156 done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13162 if test -n "$GFORTRAN_FOR_TARGET"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13164 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171 done
13172 fi
13173
13174 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13175 for ncn_progname in gfortran; do
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13177 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13178 if test -x $with_build_time_tools/${ncn_progname}; then
13179 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13181 $as_echo "yes" >&6; }
13182 break
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13186 fi
13187 done
13188 fi
13189
13190 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13191 for ncn_progname in gfortran; do
13192 if test -n "$ncn_target_tool_prefix"; then
13193 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_target_tool_prefix}${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_GFORTRAN_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -n "$GFORTRAN_FOR_TARGET"; then
13201 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13221 if test -n "$GFORTRAN_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13223 $as_echo "$GFORTRAN_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 fi
13231 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$GFORTRAN_FOR_TARGET"; then
13240 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13244 do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253 done
13254 done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13260 if test -n "$GFORTRAN_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13262 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 fi
13267
13268
13269 fi
13270 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13271 done
13272 fi
13273
13274 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13275 set dummy gfortran
13276 if test $build = $target ; then
13277 GFORTRAN_FOR_TARGET="$2"
13278 else
13279 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13280 fi
13281 else
13282 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13283 fi
13284
13285
13286
13287 if test -n "$GOC_FOR_TARGET"; then
13288 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13289 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13290 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13291 fi
13292
13293 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13294 for ncn_progname in gccgo; do
13295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13296 set dummy ${ncn_progname}; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 if test -n "$GOC_FOR_TARGET"; then
13303 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13304 else
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13307 do
13308 IFS=$as_save_IFS
13309 test -z "$as_dir" && as_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13312 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314 break 2
13315 fi
13316 done
13317 done
13318 IFS=$as_save_IFS
13319
13320 fi
13321 fi
13322 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13323 if test -n "$GOC_FOR_TARGET"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13325 $as_echo "$GOC_FOR_TARGET" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13329 fi
13330
13331
13332 done
13333 fi
13334
13335 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13336 for ncn_progname in gccgo; do
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13339 if test -x $with_build_time_tools/${ncn_progname}; then
13340 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342 $as_echo "yes" >&6; }
13343 break
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348 done
13349 fi
13350
13351 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13352 for ncn_progname in gccgo; do
13353 if test -n "$ncn_target_tool_prefix"; then
13354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$GOC_FOR_TARGET"; then
13362 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13382 if test -n "$GOC_FOR_TARGET"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13384 $as_echo "$GOC_FOR_TARGET" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13394 set dummy ${ncn_progname}; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$GOC_FOR_TARGET"; then
13401 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13421 if test -n "$GOC_FOR_TARGET"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13423 $as_echo "$GOC_FOR_TARGET" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13432 done
13433 fi
13434
13435 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13436 set dummy gccgo
13437 if test $build = $target ; then
13438 GOC_FOR_TARGET="$2"
13439 else
13440 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13441 fi
13442 else
13443 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13444 fi
13445
13446
13447
13448 if test -n "$GDC_FOR_TARGET"; then
13449 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13450 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13451 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13452 fi
13453
13454 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13455 for ncn_progname in gdc; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13457 set dummy ${ncn_progname}; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 if test -n "$GDC_FOR_TARGET"; then
13464 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13465 else
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13468 do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475 break 2
13476 fi
13477 done
13478 done
13479 IFS=$as_save_IFS
13480
13481 fi
13482 fi
13483 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13484 if test -n "$GDC_FOR_TARGET"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13486 $as_echo "$GDC_FOR_TARGET" >&6; }
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491
13492
13493 done
13494 fi
13495
13496 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13497 for ncn_progname in gdc; do
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13499 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13504 break
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509 done
13510 fi
13511
13512 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13513 for ncn_progname in gdc; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$GDC_FOR_TARGET"; then
13523 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13543 if test -n "$GDC_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13545 $as_echo "$GDC_FOR_TARGET" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552 fi
13553 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13555 set dummy ${ncn_progname}; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test -n "$GDC_FOR_TARGET"; then
13562 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13582 if test -n "$GDC_FOR_TARGET"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13584 $as_echo "$GDC_FOR_TARGET" >&6; }
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588 fi
13589
13590
13591 fi
13592 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13593 done
13594 fi
13595
13596 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13597 set dummy gdc
13598 if test $build = $target ; then
13599 GDC_FOR_TARGET="$2"
13600 else
13601 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13602 fi
13603 else
13604 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13605 fi
13606
13607
13608
13609 if test -n "$GM2_FOR_TARGET"; then
13610 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13611 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13612 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13613 fi
13614
13615 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13616 for ncn_progname in gm2; do
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$GM2_FOR_TARGET"; then
13625 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13645 if test -n "$GM2_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13647 $as_echo "$GM2_FOR_TARGET" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654 done
13655 fi
13656
13657 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13658 for ncn_progname in gm2; do
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13660 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13661 if test -x $with_build_time_tools/${ncn_progname}; then
13662 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664 $as_echo "yes" >&6; }
13665 break
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670 done
13671 fi
13672
13673 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13674 for ncn_progname in gm2; do
13675 if test -n "$ncn_target_tool_prefix"; then
13676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679 $as_echo_n "checking for $ac_word... " >&6; }
13680 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 if test -n "$GM2_FOR_TARGET"; then
13684 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13685 else
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13688 do
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13693 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13696 fi
13697 done
13698 done
13699 IFS=$as_save_IFS
13700
13701 fi
13702 fi
13703 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13704 if test -n "$GM2_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13706 $as_echo "$GM2_FOR_TARGET" >&6; }
13707 else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13710 fi
13711
13712
13713 fi
13714 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13716 set dummy ${ncn_progname}; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$GM2_FOR_TARGET"; then
13723 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13743 if test -n "$GM2_FOR_TARGET"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13745 $as_echo "$GM2_FOR_TARGET" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
13754 done
13755 fi
13756
13757 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
13758 set dummy gm2
13759 if test $build = $target ; then
13760 GM2_FOR_TARGET="$2"
13761 else
13762 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
13763 fi
13764 else
13765 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
13766 fi
13767
13768
13769
13770 cat > conftest.c << \EOF
13771 #ifdef __GNUC__
13772 gcc_yay;
13773 #endif
13774 EOF
13775 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13776 have_gcc_for_target=yes
13777 else
13778 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13779 have_gcc_for_target=no
13780 fi
13781 rm conftest.c
13782
13783
13784
13785
13786 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13787 if test -n "$with_build_time_tools"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13789 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13790 if test -x $with_build_time_tools/ar; then
13791 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13792 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13794 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799 elif test $build != $host && test $have_gcc_for_target = yes; then
13800 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13801 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13802 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13803 fi
13804 fi
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13806 # Extract the first word of "ar", so it can be a program name with args.
13807 set dummy ar; ac_word=$2
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13809 $as_echo_n "checking for $ac_word... " >&6; }
13810 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13811 $as_echo_n "(cached) " >&6
13812 else
13813 case $AR_FOR_TARGET in
13814 [\\/]* | ?:[\\/]*)
13815 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13816 ;;
13817 *)
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $gcc_cv_tool_dirs
13820 do
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13828 fi
13829 done
13830 done
13831 IFS=$as_save_IFS
13832
13833 ;;
13834 esac
13835 fi
13836 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13837 if test -n "$AR_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13839 $as_echo "$AR_FOR_TARGET" >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843 fi
13844
13845
13846 fi
13847 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13848
13849
13850 if test -n "$AR_FOR_TARGET"; then
13851 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13852 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13853 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13854 fi
13855
13856 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13857 for ncn_progname in ar; do
13858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 if test -n "$AR_FOR_TARGET"; then
13866 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13870 do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13878 fi
13879 done
13880 done
13881 IFS=$as_save_IFS
13882
13883 fi
13884 fi
13885 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13886 if test -n "$AR_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13888 $as_echo "$AR_FOR_TARGET" >&6; }
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13892 fi
13893
13894
13895 done
13896 fi
13897
13898 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13899 for ncn_progname in ar; do
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13901 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13902 if test -x $with_build_time_tools/${ncn_progname}; then
13903 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13905 $as_echo "yes" >&6; }
13906 break
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911 done
13912 fi
13913
13914 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13915 for ncn_progname in ar; do
13916 if test -n "$ncn_target_tool_prefix"; then
13917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$AR_FOR_TARGET"; then
13925 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13937 fi
13938 done
13939 done
13940 IFS=$as_save_IFS
13941
13942 fi
13943 fi
13944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13945 if test -n "$AR_FOR_TARGET"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13947 $as_echo "$AR_FOR_TARGET" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13951 fi
13952
13953
13954 fi
13955 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13957 set dummy ${ncn_progname}; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 if test -n "$AR_FOR_TARGET"; then
13964 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13976 fi
13977 done
13978 done
13979 IFS=$as_save_IFS
13980
13981 fi
13982 fi
13983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13984 if test -n "$AR_FOR_TARGET"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13986 $as_echo "$AR_FOR_TARGET" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13990 fi
13991
13992
13993 fi
13994 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13995 done
13996 fi
13997
13998 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13999 set dummy ar
14000 if test $build = $target ; then
14001 AR_FOR_TARGET="$2"
14002 else
14003 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14004 fi
14005 else
14006 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14007 fi
14008
14009 else
14010 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14011 fi
14012
14013
14014
14015
14016 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14017 if test -n "$with_build_time_tools"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14019 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14020 if test -x $with_build_time_tools/as; then
14021 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14022 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14024 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14028 fi
14029 elif test $build != $host && test $have_gcc_for_target = yes; then
14030 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14031 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14032 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14033 fi
14034 fi
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14036 # Extract the first word of "as", so it can be a program name with args.
14037 set dummy as; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 case $AS_FOR_TARGET in
14044 [\\/]* | ?:[\\/]*)
14045 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14046 ;;
14047 *)
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $gcc_cv_tool_dirs
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059 done
14060 done
14061 IFS=$as_save_IFS
14062
14063 ;;
14064 esac
14065 fi
14066 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14067 if test -n "$AS_FOR_TARGET"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14069 $as_echo "$AS_FOR_TARGET" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074
14075
14076 fi
14077 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14078
14079
14080 if test -n "$AS_FOR_TARGET"; then
14081 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14082 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14083 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14084 fi
14085
14086 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14087 for ncn_progname in as; do
14088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14089 set dummy ${ncn_progname}; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$AS_FOR_TARGET"; then
14096 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14100 do
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14108 fi
14109 done
14110 done
14111 IFS=$as_save_IFS
14112
14113 fi
14114 fi
14115 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14116 if test -n "$AS_FOR_TARGET"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14118 $as_echo "$AS_FOR_TARGET" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14122 fi
14123
14124
14125 done
14126 fi
14127
14128 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14129 for ncn_progname in as; do
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14131 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14132 if test -x $with_build_time_tools/${ncn_progname}; then
14133 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14135 $as_echo "yes" >&6; }
14136 break
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14140 fi
14141 done
14142 fi
14143
14144 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14145 for ncn_progname in as; do
14146 if test -n "$ncn_target_tool_prefix"; then
14147 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14148 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if test -n "$AS_FOR_TARGET"; then
14155 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14159 do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14164 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14167 fi
14168 done
14169 done
14170 IFS=$as_save_IFS
14171
14172 fi
14173 fi
14174 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14175 if test -n "$AS_FOR_TARGET"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14177 $as_echo "$AS_FOR_TARGET" >&6; }
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14181 fi
14182
14183
14184 fi
14185 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14187 set dummy ${ncn_progname}; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189 $as_echo_n "checking for $ac_word... " >&6; }
14190 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 if test -n "$AS_FOR_TARGET"; then
14194 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14195 else
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14198 do
14199 IFS=$as_save_IFS
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14205 break 2
14206 fi
14207 done
14208 done
14209 IFS=$as_save_IFS
14210
14211 fi
14212 fi
14213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14214 if test -n "$AS_FOR_TARGET"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14216 $as_echo "$AS_FOR_TARGET" >&6; }
14217 else
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 $as_echo "no" >&6; }
14220 fi
14221
14222
14223 fi
14224 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14225 done
14226 fi
14227
14228 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14229 set dummy as
14230 if test $build = $target ; then
14231 AS_FOR_TARGET="$2"
14232 else
14233 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14234 fi
14235 else
14236 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14237 fi
14238
14239 else
14240 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14241 fi
14242
14243
14244
14245
14246 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14247 if test -n "$with_build_time_tools"; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14249 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14250 if test -x $with_build_time_tools/dlltool; then
14251 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14252 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14254 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259 elif test $build != $host && test $have_gcc_for_target = yes; then
14260 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14261 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14262 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14263 fi
14264 fi
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14266 # Extract the first word of "dlltool", so it can be a program name with args.
14267 set dummy dlltool; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 case $DLLTOOL_FOR_TARGET in
14274 [\\/]* | ?:[\\/]*)
14275 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14276 ;;
14277 *)
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $gcc_cv_tool_dirs
14280 do
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14288 fi
14289 done
14290 done
14291 IFS=$as_save_IFS
14292
14293 ;;
14294 esac
14295 fi
14296 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14297 if test -n "$DLLTOOL_FOR_TARGET"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14299 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14303 fi
14304
14305
14306 fi
14307 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14308
14309
14310 if test -n "$DLLTOOL_FOR_TARGET"; then
14311 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14312 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14313 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14314 fi
14315
14316 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14317 for ncn_progname in dlltool; do
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy ${ncn_progname}; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 if test -n "$DLLTOOL_FOR_TARGET"; then
14326 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331 IFS=$as_save_IFS
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337 break 2
14338 fi
14339 done
14340 done
14341 IFS=$as_save_IFS
14342
14343 fi
14344 fi
14345 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14346 if test -n "$DLLTOOL_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14348 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355 done
14356 fi
14357
14358 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14359 for ncn_progname in dlltool; do
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14361 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14362 if test -x $with_build_time_tools/${ncn_progname}; then
14363 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14365 $as_echo "yes" >&6; }
14366 break
14367 else
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 fi
14371 done
14372 fi
14373
14374 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14375 for ncn_progname in dlltool; do
14376 if test -n "$ncn_target_tool_prefix"; then
14377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14378 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 if test -n "$DLLTOOL_FOR_TARGET"; then
14385 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390 IFS=$as_save_IFS
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14394 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14396 break 2
14397 fi
14398 done
14399 done
14400 IFS=$as_save_IFS
14401
14402 fi
14403 fi
14404 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14405 if test -n "$DLLTOOL_FOR_TARGET"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14407 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14411 fi
14412
14413
14414 fi
14415 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14417 set dummy ${ncn_progname}; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 if test -n "$DLLTOOL_FOR_TARGET"; then
14424 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14425 else
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14428 do
14429 IFS=$as_save_IFS
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 break 2
14436 fi
14437 done
14438 done
14439 IFS=$as_save_IFS
14440
14441 fi
14442 fi
14443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14444 if test -n "$DLLTOOL_FOR_TARGET"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14446 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14450 fi
14451
14452
14453 fi
14454 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14455 done
14456 fi
14457
14458 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14459 set dummy dlltool
14460 if test $build = $target ; then
14461 DLLTOOL_FOR_TARGET="$2"
14462 else
14463 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14464 fi
14465 else
14466 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14467 fi
14468
14469 else
14470 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14471 fi
14472
14473
14474
14475
14476 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14477 if test -n "$with_build_time_tools"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14479 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14480 if test -x $with_build_time_tools/dsymutil; then
14481 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14482 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14484 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14488 fi
14489 elif test $build != $host && test $have_gcc_for_target = yes; then
14490 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14491 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14492 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14493 fi
14494 fi
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14496 # Extract the first word of "dsymutil", so it can be a program name with args.
14497 set dummy dsymutil; ac_word=$2
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499 $as_echo_n "checking for $ac_word... " >&6; }
14500 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 case $DSYMUTIL_FOR_TARGET in
14504 [\\/]* | ?:[\\/]*)
14505 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14506 ;;
14507 *)
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $gcc_cv_tool_dirs
14510 do
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 for ac_exec_ext in '' $ac_executable_extensions; do
14514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14515 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14517 break 2
14518 fi
14519 done
14520 done
14521 IFS=$as_save_IFS
14522
14523 ;;
14524 esac
14525 fi
14526 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14527 if test -n "$DSYMUTIL_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14529 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14533 fi
14534
14535
14536 fi
14537 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14538
14539
14540 if test -n "$DSYMUTIL_FOR_TARGET"; then
14541 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14542 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14543 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14544 fi
14545
14546 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14547 for ncn_progname in dsymutil; do
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy ${ncn_progname}; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$DSYMUTIL_FOR_TARGET"; then
14556 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14560 do
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14568 fi
14569 done
14570 done
14571 IFS=$as_save_IFS
14572
14573 fi
14574 fi
14575 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14576 if test -n "$DSYMUTIL_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14578 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14582 fi
14583
14584
14585 done
14586 fi
14587
14588 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14589 for ncn_progname in dsymutil; do
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14591 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14592 if test -x $with_build_time_tools/${ncn_progname}; then
14593 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14595 $as_echo "yes" >&6; }
14596 break
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14600 fi
14601 done
14602 fi
14603
14604 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14605 for ncn_progname in dsymutil; do
14606 if test -n "$ncn_target_tool_prefix"; then
14607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14608 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14610 $as_echo_n "checking for $ac_word... " >&6; }
14611 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 if test -n "$DSYMUTIL_FOR_TARGET"; then
14615 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14616 else
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618 for as_dir in $PATH
14619 do
14620 IFS=$as_save_IFS
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14624 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14626 break 2
14627 fi
14628 done
14629 done
14630 IFS=$as_save_IFS
14631
14632 fi
14633 fi
14634 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14635 if test -n "$DSYMUTIL_FOR_TARGET"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14637 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14638 else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14641 fi
14642
14643
14644 fi
14645 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14647 set dummy ${ncn_progname}; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14649 $as_echo_n "checking for $ac_word... " >&6; }
14650 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 if test -n "$DSYMUTIL_FOR_TARGET"; then
14654 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14655 else
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14658 do
14659 IFS=$as_save_IFS
14660 test -z "$as_dir" && as_dir=.
14661 for ac_exec_ext in '' $ac_executable_extensions; do
14662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14663 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14665 break 2
14666 fi
14667 done
14668 done
14669 IFS=$as_save_IFS
14670
14671 fi
14672 fi
14673 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14674 if test -n "$DSYMUTIL_FOR_TARGET"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14676 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14677 else
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14680 fi
14681
14682
14683 fi
14684 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14685 done
14686 fi
14687
14688 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14689 set dummy dsymutil
14690 if test $build = $target ; then
14691 DSYMUTIL_FOR_TARGET="$2"
14692 else
14693 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14694 fi
14695 else
14696 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14697 fi
14698
14699 else
14700 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14701 fi
14702
14703
14704
14705
14706 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14707 if test -n "$with_build_time_tools"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14709 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14710 if test -x $with_build_time_tools/ld; then
14711 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14712 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14714 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14715 else
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14717 $as_echo "no" >&6; }
14718 fi
14719 elif test $build != $host && test $have_gcc_for_target = yes; then
14720 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14721 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14722 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14723 fi
14724 fi
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14726 # Extract the first word of "ld", so it can be a program name with args.
14727 set dummy ld; ac_word=$2
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14729 $as_echo_n "checking for $ac_word... " >&6; }
14730 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 case $LD_FOR_TARGET in
14734 [\\/]* | ?:[\\/]*)
14735 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14736 ;;
14737 *)
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $gcc_cv_tool_dirs
14740 do
14741 IFS=$as_save_IFS
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14747 break 2
14748 fi
14749 done
14750 done
14751 IFS=$as_save_IFS
14752
14753 ;;
14754 esac
14755 fi
14756 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14757 if test -n "$LD_FOR_TARGET"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14759 $as_echo "$LD_FOR_TARGET" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14763 fi
14764
14765
14766 fi
14767 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14768
14769
14770 if test -n "$LD_FOR_TARGET"; then
14771 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14772 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14773 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14774 fi
14775
14776 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14777 for ncn_progname in ld; do
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy ${ncn_progname}; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if test -n "$LD_FOR_TARGET"; then
14786 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14787 else
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14790 do
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14798 fi
14799 done
14800 done
14801 IFS=$as_save_IFS
14802
14803 fi
14804 fi
14805 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14806 if test -n "$LD_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14808 $as_echo "$LD_FOR_TARGET" >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14812 fi
14813
14814
14815 done
14816 fi
14817
14818 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14819 for ncn_progname in ld; do
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14821 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14822 if test -x $with_build_time_tools/${ncn_progname}; then
14823 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825 $as_echo "yes" >&6; }
14826 break
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14830 fi
14831 done
14832 fi
14833
14834 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14835 for ncn_progname in ld; do
14836 if test -n "$ncn_target_tool_prefix"; then
14837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14838 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14840 $as_echo_n "checking for $ac_word... " >&6; }
14841 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 if test -n "$LD_FOR_TARGET"; then
14845 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14846 else
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14849 do
14850 IFS=$as_save_IFS
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856 break 2
14857 fi
14858 done
14859 done
14860 IFS=$as_save_IFS
14861
14862 fi
14863 fi
14864 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14865 if test -n "$LD_FOR_TARGET"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14867 $as_echo "$LD_FOR_TARGET" >&6; }
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14871 fi
14872
14873
14874 fi
14875 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14877 set dummy ${ncn_progname}; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14879 $as_echo_n "checking for $ac_word... " >&6; }
14880 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 if test -n "$LD_FOR_TARGET"; then
14884 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14885 else
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14888 do
14889 IFS=$as_save_IFS
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14895 break 2
14896 fi
14897 done
14898 done
14899 IFS=$as_save_IFS
14900
14901 fi
14902 fi
14903 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14904 if test -n "$LD_FOR_TARGET"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14906 $as_echo "$LD_FOR_TARGET" >&6; }
14907 else
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14910 fi
14911
14912
14913 fi
14914 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14915 done
14916 fi
14917
14918 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14919 set dummy ld
14920 if test $build = $target ; then
14921 LD_FOR_TARGET="$2"
14922 else
14923 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14924 fi
14925 else
14926 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14927 fi
14928
14929 else
14930 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14931 fi
14932
14933
14934
14935
14936 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14937 if test -n "$with_build_time_tools"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14939 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14940 if test -x $with_build_time_tools/lipo; then
14941 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14942 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14944 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14945 else
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14947 $as_echo "no" >&6; }
14948 fi
14949 elif test $build != $host && test $have_gcc_for_target = yes; then
14950 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14951 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14952 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14953 fi
14954 fi
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14956 # Extract the first word of "lipo", so it can be a program name with args.
14957 set dummy lipo; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14959 $as_echo_n "checking for $ac_word... " >&6; }
14960 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 case $LIPO_FOR_TARGET in
14964 [\\/]* | ?:[\\/]*)
14965 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14966 ;;
14967 *)
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $gcc_cv_tool_dirs
14970 do
14971 IFS=$as_save_IFS
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14977 break 2
14978 fi
14979 done
14980 done
14981 IFS=$as_save_IFS
14982
14983 ;;
14984 esac
14985 fi
14986 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14987 if test -n "$LIPO_FOR_TARGET"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14989 $as_echo "$LIPO_FOR_TARGET" >&6; }
14990 else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14993 fi
14994
14995
14996 fi
14997 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14998
14999
15000 if test -n "$LIPO_FOR_TARGET"; then
15001 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15002 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15003 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15004 fi
15005
15006 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15007 for ncn_progname in lipo; do
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy ${ncn_progname}; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$LIPO_FOR_TARGET"; then
15016 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15020 do
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15028 fi
15029 done
15030 done
15031 IFS=$as_save_IFS
15032
15033 fi
15034 fi
15035 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15036 if test -n "$LIPO_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15038 $as_echo "$LIPO_FOR_TARGET" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15042 fi
15043
15044
15045 done
15046 fi
15047
15048 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15049 for ncn_progname in lipo; do
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15051 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15052 if test -x $with_build_time_tools/${ncn_progname}; then
15053 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15055 $as_echo "yes" >&6; }
15056 break
15057 else
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 $as_echo "no" >&6; }
15060 fi
15061 done
15062 fi
15063
15064 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15065 for ncn_progname in lipo; do
15066 if test -n "$ncn_target_tool_prefix"; then
15067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15068 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15070 $as_echo_n "checking for $ac_word... " >&6; }
15071 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15072 $as_echo_n "(cached) " >&6
15073 else
15074 if test -n "$LIPO_FOR_TARGET"; then
15075 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15076 else
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080 IFS=$as_save_IFS
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15086 break 2
15087 fi
15088 done
15089 done
15090 IFS=$as_save_IFS
15091
15092 fi
15093 fi
15094 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15095 if test -n "$LIPO_FOR_TARGET"; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15097 $as_echo "$LIPO_FOR_TARGET" >&6; }
15098 else
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15100 $as_echo "no" >&6; }
15101 fi
15102
15103
15104 fi
15105 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15107 set dummy ${ncn_progname}; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15109 $as_echo_n "checking for $ac_word... " >&6; }
15110 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112 else
15113 if test -n "$LIPO_FOR_TARGET"; then
15114 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15115 else
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15118 do
15119 IFS=$as_save_IFS
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15125 break 2
15126 fi
15127 done
15128 done
15129 IFS=$as_save_IFS
15130
15131 fi
15132 fi
15133 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15134 if test -n "$LIPO_FOR_TARGET"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15136 $as_echo "$LIPO_FOR_TARGET" >&6; }
15137 else
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139 $as_echo "no" >&6; }
15140 fi
15141
15142
15143 fi
15144 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15145 done
15146 fi
15147
15148 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15149 set dummy lipo
15150 if test $build = $target ; then
15151 LIPO_FOR_TARGET="$2"
15152 else
15153 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15154 fi
15155 else
15156 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15157 fi
15158
15159 else
15160 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15161 fi
15162
15163
15164
15165
15166 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15167 if test -n "$with_build_time_tools"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15169 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15170 if test -x $with_build_time_tools/nm; then
15171 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15172 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15174 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15175 else
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 $as_echo "no" >&6; }
15178 fi
15179 elif test $build != $host && test $have_gcc_for_target = yes; then
15180 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15181 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15182 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15183 fi
15184 fi
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15186 # Extract the first word of "nm", so it can be a program name with args.
15187 set dummy nm; ac_word=$2
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15189 $as_echo_n "checking for $ac_word... " >&6; }
15190 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 case $NM_FOR_TARGET in
15194 [\\/]* | ?:[\\/]*)
15195 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15196 ;;
15197 *)
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $gcc_cv_tool_dirs
15200 do
15201 IFS=$as_save_IFS
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15207 break 2
15208 fi
15209 done
15210 done
15211 IFS=$as_save_IFS
15212
15213 ;;
15214 esac
15215 fi
15216 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15217 if test -n "$NM_FOR_TARGET"; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15219 $as_echo "$NM_FOR_TARGET" >&6; }
15220 else
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15223 fi
15224
15225
15226 fi
15227 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15228
15229
15230 if test -n "$NM_FOR_TARGET"; then
15231 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15232 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15233 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15234 fi
15235
15236 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15237 for ncn_progname in nm; do
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy ${ncn_progname}; ac_word=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 $as_echo_n "checking for $ac_word... " >&6; }
15242 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 if test -n "$NM_FOR_TARGET"; then
15246 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15247 else
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15250 do
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 break 2
15258 fi
15259 done
15260 done
15261 IFS=$as_save_IFS
15262
15263 fi
15264 fi
15265 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15266 if test -n "$NM_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15268 $as_echo "$NM_FOR_TARGET" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15272 fi
15273
15274
15275 done
15276 fi
15277
15278 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15279 for ncn_progname in nm; do
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15281 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15282 if test -x $with_build_time_tools/${ncn_progname}; then
15283 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285 $as_echo "yes" >&6; }
15286 break
15287 else
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289 $as_echo "no" >&6; }
15290 fi
15291 done
15292 fi
15293
15294 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15295 for ncn_progname in nm; do
15296 if test -n "$ncn_target_tool_prefix"; then
15297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15298 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15300 $as_echo_n "checking for $ac_word... " >&6; }
15301 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 if test -n "$NM_FOR_TARGET"; then
15305 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15306 else
15307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15308 for as_dir in $PATH
15309 do
15310 IFS=$as_save_IFS
15311 test -z "$as_dir" && as_dir=.
15312 for ac_exec_ext in '' $ac_executable_extensions; do
15313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15314 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15316 break 2
15317 fi
15318 done
15319 done
15320 IFS=$as_save_IFS
15321
15322 fi
15323 fi
15324 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15325 if test -n "$NM_FOR_TARGET"; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15327 $as_echo "$NM_FOR_TARGET" >&6; }
15328 else
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15330 $as_echo "no" >&6; }
15331 fi
15332
15333
15334 fi
15335 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15337 set dummy ${ncn_progname}; ac_word=$2
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15339 $as_echo_n "checking for $ac_word... " >&6; }
15340 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 if test -n "$NM_FOR_TARGET"; then
15344 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15345 else
15346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347 for as_dir in $PATH
15348 do
15349 IFS=$as_save_IFS
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15355 break 2
15356 fi
15357 done
15358 done
15359 IFS=$as_save_IFS
15360
15361 fi
15362 fi
15363 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15364 if test -n "$NM_FOR_TARGET"; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15366 $as_echo "$NM_FOR_TARGET" >&6; }
15367 else
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15369 $as_echo "no" >&6; }
15370 fi
15371
15372
15373 fi
15374 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15375 done
15376 fi
15377
15378 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15379 set dummy nm
15380 if test $build = $target ; then
15381 NM_FOR_TARGET="$2"
15382 else
15383 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15384 fi
15385 else
15386 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15387 fi
15388
15389 else
15390 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15391 fi
15392
15393
15394
15395
15396 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15397 if test -n "$with_build_time_tools"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15399 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15400 if test -x $with_build_time_tools/objcopy; then
15401 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15402 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15404 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15405 else
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15407 $as_echo "no" >&6; }
15408 fi
15409 elif test $build != $host && test $have_gcc_for_target = yes; then
15410 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15411 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15412 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15413 fi
15414 fi
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15416 # Extract the first word of "objcopy", so it can be a program name with args.
15417 set dummy objcopy; ac_word=$2
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15419 $as_echo_n "checking for $ac_word... " >&6; }
15420 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 case $OBJCOPY_FOR_TARGET in
15424 [\\/]* | ?:[\\/]*)
15425 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15426 ;;
15427 *)
15428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $gcc_cv_tool_dirs
15430 do
15431 IFS=$as_save_IFS
15432 test -z "$as_dir" && as_dir=.
15433 for ac_exec_ext in '' $ac_executable_extensions; do
15434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15435 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15437 break 2
15438 fi
15439 done
15440 done
15441 IFS=$as_save_IFS
15442
15443 ;;
15444 esac
15445 fi
15446 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15447 if test -n "$OBJCOPY_FOR_TARGET"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15449 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15450 else
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15453 fi
15454
15455
15456 fi
15457 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15458
15459
15460 if test -n "$OBJCOPY_FOR_TARGET"; then
15461 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15462 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15463 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15464 fi
15465
15466 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15467 for ncn_progname in objcopy; do
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy ${ncn_progname}; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15471 $as_echo_n "checking for $ac_word... " >&6; }
15472 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 if test -n "$OBJCOPY_FOR_TARGET"; then
15476 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15477 else
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15480 do
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15488 fi
15489 done
15490 done
15491 IFS=$as_save_IFS
15492
15493 fi
15494 fi
15495 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15496 if test -n "$OBJCOPY_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15498 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15499 else
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501 $as_echo "no" >&6; }
15502 fi
15503
15504
15505 done
15506 fi
15507
15508 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15509 for ncn_progname in objcopy; do
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15511 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15512 if test -x $with_build_time_tools/${ncn_progname}; then
15513 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15515 $as_echo "yes" >&6; }
15516 break
15517 else
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519 $as_echo "no" >&6; }
15520 fi
15521 done
15522 fi
15523
15524 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15525 for ncn_progname in objcopy; do
15526 if test -n "$ncn_target_tool_prefix"; then
15527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15530 $as_echo_n "checking for $ac_word... " >&6; }
15531 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 if test -n "$OBJCOPY_FOR_TARGET"; then
15535 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15536 else
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15539 do
15540 IFS=$as_save_IFS
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15546 break 2
15547 fi
15548 done
15549 done
15550 IFS=$as_save_IFS
15551
15552 fi
15553 fi
15554 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15555 if test -n "$OBJCOPY_FOR_TARGET"; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15557 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15558 else
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15561 fi
15562
15563
15564 fi
15565 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15567 set dummy ${ncn_progname}; ac_word=$2
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15569 $as_echo_n "checking for $ac_word... " >&6; }
15570 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15571 $as_echo_n "(cached) " >&6
15572 else
15573 if test -n "$OBJCOPY_FOR_TARGET"; then
15574 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15575 else
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15578 do
15579 IFS=$as_save_IFS
15580 test -z "$as_dir" && as_dir=.
15581 for ac_exec_ext in '' $ac_executable_extensions; do
15582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15583 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15585 break 2
15586 fi
15587 done
15588 done
15589 IFS=$as_save_IFS
15590
15591 fi
15592 fi
15593 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15594 if test -n "$OBJCOPY_FOR_TARGET"; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15596 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15597 else
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15599 $as_echo "no" >&6; }
15600 fi
15601
15602
15603 fi
15604 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15605 done
15606 fi
15607
15608 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15609 set dummy objcopy
15610 if test $build = $target ; then
15611 OBJCOPY_FOR_TARGET="$2"
15612 else
15613 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15614 fi
15615 else
15616 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15617 fi
15618
15619 else
15620 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15621 fi
15622
15623
15624
15625
15626 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15627 if test -n "$with_build_time_tools"; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15629 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15630 if test -x $with_build_time_tools/objdump; then
15631 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15634 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15635 else
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15638 fi
15639 elif test $build != $host && test $have_gcc_for_target = yes; then
15640 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15641 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15642 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15643 fi
15644 fi
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15646 # Extract the first word of "objdump", so it can be a program name with args.
15647 set dummy objdump; ac_word=$2
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15649 $as_echo_n "checking for $ac_word... " >&6; }
15650 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 case $OBJDUMP_FOR_TARGET in
15654 [\\/]* | ?:[\\/]*)
15655 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15656 ;;
15657 *)
15658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659 for as_dir in $gcc_cv_tool_dirs
15660 do
15661 IFS=$as_save_IFS
15662 test -z "$as_dir" && as_dir=.
15663 for ac_exec_ext in '' $ac_executable_extensions; do
15664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15665 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15667 break 2
15668 fi
15669 done
15670 done
15671 IFS=$as_save_IFS
15672
15673 ;;
15674 esac
15675 fi
15676 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15677 if test -n "$OBJDUMP_FOR_TARGET"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15679 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15683 fi
15684
15685
15686 fi
15687 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15688
15689
15690 if test -n "$OBJDUMP_FOR_TARGET"; then
15691 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15692 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15693 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15694 fi
15695
15696 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15697 for ncn_progname in objdump; do
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy ${ncn_progname}; ac_word=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15701 $as_echo_n "checking for $ac_word... " >&6; }
15702 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 if test -n "$OBJDUMP_FOR_TARGET"; then
15706 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15707 else
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $PATH
15710 do
15711 IFS=$as_save_IFS
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15717 break 2
15718 fi
15719 done
15720 done
15721 IFS=$as_save_IFS
15722
15723 fi
15724 fi
15725 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15726 if test -n "$OBJDUMP_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15728 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15729 else
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15732 fi
15733
15734
15735 done
15736 fi
15737
15738 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15739 for ncn_progname in objdump; do
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15741 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15742 if test -x $with_build_time_tools/${ncn_progname}; then
15743 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15745 $as_echo "yes" >&6; }
15746 break
15747 else
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749 $as_echo "no" >&6; }
15750 fi
15751 done
15752 fi
15753
15754 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15755 for ncn_progname in objdump; do
15756 if test -n "$ncn_target_tool_prefix"; then
15757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15758 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15760 $as_echo_n "checking for $ac_word... " >&6; }
15761 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15762 $as_echo_n "(cached) " >&6
15763 else
15764 if test -n "$OBJDUMP_FOR_TARGET"; then
15765 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15766 else
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15769 do
15770 IFS=$as_save_IFS
15771 test -z "$as_dir" && as_dir=.
15772 for ac_exec_ext in '' $ac_executable_extensions; do
15773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15774 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15776 break 2
15777 fi
15778 done
15779 done
15780 IFS=$as_save_IFS
15781
15782 fi
15783 fi
15784 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15785 if test -n "$OBJDUMP_FOR_TARGET"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15787 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15788 else
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15790 $as_echo "no" >&6; }
15791 fi
15792
15793
15794 fi
15795 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15797 set dummy ${ncn_progname}; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799 $as_echo_n "checking for $ac_word... " >&6; }
15800 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15801 $as_echo_n "(cached) " >&6
15802 else
15803 if test -n "$OBJDUMP_FOR_TARGET"; then
15804 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15805 else
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15808 do
15809 IFS=$as_save_IFS
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15815 break 2
15816 fi
15817 done
15818 done
15819 IFS=$as_save_IFS
15820
15821 fi
15822 fi
15823 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15824 if test -n "$OBJDUMP_FOR_TARGET"; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15826 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15827 else
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830 fi
15831
15832
15833 fi
15834 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15835 done
15836 fi
15837
15838 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15839 set dummy objdump
15840 if test $build = $target ; then
15841 OBJDUMP_FOR_TARGET="$2"
15842 else
15843 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15844 fi
15845 else
15846 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15847 fi
15848
15849 else
15850 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15851 fi
15852
15853
15854
15855
15856 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15857 if test -n "$with_build_time_tools"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15859 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15860 if test -x $with_build_time_tools/otool; then
15861 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15862 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15864 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15865 else
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867 $as_echo "no" >&6; }
15868 fi
15869 elif test $build != $host && test $have_gcc_for_target = yes; then
15870 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15871 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15872 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15873 fi
15874 fi
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15876 # Extract the first word of "otool", so it can be a program name with args.
15877 set dummy otool; ac_word=$2
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15879 $as_echo_n "checking for $ac_word... " >&6; }
15880 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 case $OTOOL_FOR_TARGET in
15884 [\\/]* | ?:[\\/]*)
15885 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15886 ;;
15887 *)
15888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $gcc_cv_tool_dirs
15890 do
15891 IFS=$as_save_IFS
15892 test -z "$as_dir" && as_dir=.
15893 for ac_exec_ext in '' $ac_executable_extensions; do
15894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15895 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15897 break 2
15898 fi
15899 done
15900 done
15901 IFS=$as_save_IFS
15902
15903 ;;
15904 esac
15905 fi
15906 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15907 if test -n "$OTOOL_FOR_TARGET"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15909 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913 fi
15914
15915
15916 fi
15917 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15918
15919
15920 if test -n "$OTOOL_FOR_TARGET"; then
15921 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15922 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15923 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15924 fi
15925
15926 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15927 for ncn_progname in otool; do
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy ${ncn_progname}; ac_word=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 if test -n "$OTOOL_FOR_TARGET"; then
15936 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15937 else
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15940 do
15941 IFS=$as_save_IFS
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15947 break 2
15948 fi
15949 done
15950 done
15951 IFS=$as_save_IFS
15952
15953 fi
15954 fi
15955 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15956 if test -n "$OTOOL_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15958 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15959 else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15962 fi
15963
15964
15965 done
15966 fi
15967
15968 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15969 for ncn_progname in otool; do
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15971 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15972 if test -x $with_build_time_tools/${ncn_progname}; then
15973 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15975 $as_echo "yes" >&6; }
15976 break
15977 else
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15979 $as_echo "no" >&6; }
15980 fi
15981 done
15982 fi
15983
15984 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15985 for ncn_progname in otool; do
15986 if test -n "$ncn_target_tool_prefix"; then
15987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15990 $as_echo_n "checking for $ac_word... " >&6; }
15991 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 if test -n "$OTOOL_FOR_TARGET"; then
15995 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15996 else
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
15999 do
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16007 fi
16008 done
16009 done
16010 IFS=$as_save_IFS
16011
16012 fi
16013 fi
16014 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16015 if test -n "$OTOOL_FOR_TARGET"; then
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16017 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16018 else
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021 fi
16022
16023
16024 fi
16025 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16027 set dummy ${ncn_progname}; ac_word=$2
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16029 $as_echo_n "checking for $ac_word... " >&6; }
16030 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16033 if test -n "$OTOOL_FOR_TARGET"; then
16034 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16035 else
16036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16037 for as_dir in $PATH
16038 do
16039 IFS=$as_save_IFS
16040 test -z "$as_dir" && as_dir=.
16041 for ac_exec_ext in '' $ac_executable_extensions; do
16042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16043 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16045 break 2
16046 fi
16047 done
16048 done
16049 IFS=$as_save_IFS
16050
16051 fi
16052 fi
16053 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16054 if test -n "$OTOOL_FOR_TARGET"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16056 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16057 else
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16060 fi
16061
16062
16063 fi
16064 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16065 done
16066 fi
16067
16068 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16069 set dummy otool
16070 if test $build = $target ; then
16071 OTOOL_FOR_TARGET="$2"
16072 else
16073 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16074 fi
16075 else
16076 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16077 fi
16078
16079 else
16080 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16081 fi
16082
16083
16084
16085
16086 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16087 if test -n "$with_build_time_tools"; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16089 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16090 if test -x $with_build_time_tools/ranlib; then
16091 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16092 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16094 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16095 else
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16098 fi
16099 elif test $build != $host && test $have_gcc_for_target = yes; then
16100 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16101 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16102 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16103 fi
16104 fi
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16106 # Extract the first word of "ranlib", so it can be a program name with args.
16107 set dummy ranlib; ac_word=$2
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16109 $as_echo_n "checking for $ac_word... " >&6; }
16110 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 case $RANLIB_FOR_TARGET in
16114 [\\/]* | ?:[\\/]*)
16115 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16116 ;;
16117 *)
16118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $gcc_cv_tool_dirs
16120 do
16121 IFS=$as_save_IFS
16122 test -z "$as_dir" && as_dir=.
16123 for ac_exec_ext in '' $ac_executable_extensions; do
16124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16125 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16127 break 2
16128 fi
16129 done
16130 done
16131 IFS=$as_save_IFS
16132
16133 ;;
16134 esac
16135 fi
16136 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16137 if test -n "$RANLIB_FOR_TARGET"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16139 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16140 else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 $as_echo "no" >&6; }
16143 fi
16144
16145
16146 fi
16147 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16148
16149
16150 if test -n "$RANLIB_FOR_TARGET"; then
16151 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16152 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16153 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16154 fi
16155
16156 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16157 for ncn_progname in ranlib; do
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy ${ncn_progname}; ac_word=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16161 $as_echo_n "checking for $ac_word... " >&6; }
16162 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 if test -n "$RANLIB_FOR_TARGET"; then
16166 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16167 else
16168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16170 do
16171 IFS=$as_save_IFS
16172 test -z "$as_dir" && as_dir=.
16173 for ac_exec_ext in '' $ac_executable_extensions; do
16174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16177 break 2
16178 fi
16179 done
16180 done
16181 IFS=$as_save_IFS
16182
16183 fi
16184 fi
16185 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16186 if test -n "$RANLIB_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16188 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16189 else
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192 fi
16193
16194
16195 done
16196 fi
16197
16198 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16199 for ncn_progname in ranlib; do
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16201 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16202 if test -x $with_build_time_tools/${ncn_progname}; then
16203 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16205 $as_echo "yes" >&6; }
16206 break
16207 else
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209 $as_echo "no" >&6; }
16210 fi
16211 done
16212 fi
16213
16214 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16215 for ncn_progname in ranlib; do
16216 if test -n "$ncn_target_tool_prefix"; then
16217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220 $as_echo_n "checking for $ac_word... " >&6; }
16221 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16222 $as_echo_n "(cached) " >&6
16223 else
16224 if test -n "$RANLIB_FOR_TARGET"; then
16225 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16226 else
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16229 do
16230 IFS=$as_save_IFS
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16236 break 2
16237 fi
16238 done
16239 done
16240 IFS=$as_save_IFS
16241
16242 fi
16243 fi
16244 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16245 if test -n "$RANLIB_FOR_TARGET"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16247 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16248 else
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16251 fi
16252
16253
16254 fi
16255 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16257 set dummy ${ncn_progname}; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16259 $as_echo_n "checking for $ac_word... " >&6; }
16260 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 if test -n "$RANLIB_FOR_TARGET"; then
16264 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16265 else
16266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267 for as_dir in $PATH
16268 do
16269 IFS=$as_save_IFS
16270 test -z "$as_dir" && as_dir=.
16271 for ac_exec_ext in '' $ac_executable_extensions; do
16272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16273 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16275 break 2
16276 fi
16277 done
16278 done
16279 IFS=$as_save_IFS
16280
16281 fi
16282 fi
16283 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16284 if test -n "$RANLIB_FOR_TARGET"; then
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16286 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16287 else
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16289 $as_echo "no" >&6; }
16290 fi
16291
16292
16293 fi
16294 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16295 done
16296 fi
16297
16298 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16299 set dummy ranlib
16300 if test $build = $target ; then
16301 RANLIB_FOR_TARGET="$2"
16302 else
16303 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16304 fi
16305 else
16306 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16307 fi
16308
16309 else
16310 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16311 fi
16312
16313
16314
16315
16316 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16317 if test -n "$with_build_time_tools"; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16319 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16320 if test -x $with_build_time_tools/readelf; then
16321 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16322 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16324 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16325 else
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327 $as_echo "no" >&6; }
16328 fi
16329 elif test $build != $host && test $have_gcc_for_target = yes; then
16330 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16331 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16332 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16333 fi
16334 fi
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16336 # Extract the first word of "readelf", so it can be a program name with args.
16337 set dummy readelf; ac_word=$2
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16339 $as_echo_n "checking for $ac_word... " >&6; }
16340 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16341 $as_echo_n "(cached) " >&6
16342 else
16343 case $READELF_FOR_TARGET in
16344 [\\/]* | ?:[\\/]*)
16345 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16346 ;;
16347 *)
16348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16349 for as_dir in $gcc_cv_tool_dirs
16350 do
16351 IFS=$as_save_IFS
16352 test -z "$as_dir" && as_dir=.
16353 for ac_exec_ext in '' $ac_executable_extensions; do
16354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16355 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16357 break 2
16358 fi
16359 done
16360 done
16361 IFS=$as_save_IFS
16362
16363 ;;
16364 esac
16365 fi
16366 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16367 if test -n "$READELF_FOR_TARGET"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16369 $as_echo "$READELF_FOR_TARGET" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16373 fi
16374
16375
16376 fi
16377 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16378
16379
16380 if test -n "$READELF_FOR_TARGET"; then
16381 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16382 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16383 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16384 fi
16385
16386 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16387 for ncn_progname in readelf; do
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy ${ncn_progname}; ac_word=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16391 $as_echo_n "checking for $ac_word... " >&6; }
16392 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 if test -n "$READELF_FOR_TARGET"; then
16396 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16397 else
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16400 do
16401 IFS=$as_save_IFS
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16407 break 2
16408 fi
16409 done
16410 done
16411 IFS=$as_save_IFS
16412
16413 fi
16414 fi
16415 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16416 if test -n "$READELF_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16418 $as_echo "$READELF_FOR_TARGET" >&6; }
16419 else
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16422 fi
16423
16424
16425 done
16426 fi
16427
16428 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16429 for ncn_progname in readelf; do
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16431 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16432 if test -x $with_build_time_tools/${ncn_progname}; then
16433 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16435 $as_echo "yes" >&6; }
16436 break
16437 else
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16440 fi
16441 done
16442 fi
16443
16444 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16445 for ncn_progname in readelf; do
16446 if test -n "$ncn_target_tool_prefix"; then
16447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16450 $as_echo_n "checking for $ac_word... " >&6; }
16451 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 if test -n "$READELF_FOR_TARGET"; then
16455 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16456 else
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16459 do
16460 IFS=$as_save_IFS
16461 test -z "$as_dir" && as_dir=.
16462 for ac_exec_ext in '' $ac_executable_extensions; do
16463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16464 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16466 break 2
16467 fi
16468 done
16469 done
16470 IFS=$as_save_IFS
16471
16472 fi
16473 fi
16474 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16475 if test -n "$READELF_FOR_TARGET"; then
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16477 $as_echo "$READELF_FOR_TARGET" >&6; }
16478 else
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480 $as_echo "no" >&6; }
16481 fi
16482
16483
16484 fi
16485 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16487 set dummy ${ncn_progname}; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489 $as_echo_n "checking for $ac_word... " >&6; }
16490 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 if test -n "$READELF_FOR_TARGET"; then
16494 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16495 else
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16498 do
16499 IFS=$as_save_IFS
16500 test -z "$as_dir" && as_dir=.
16501 for ac_exec_ext in '' $ac_executable_extensions; do
16502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16505 break 2
16506 fi
16507 done
16508 done
16509 IFS=$as_save_IFS
16510
16511 fi
16512 fi
16513 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16514 if test -n "$READELF_FOR_TARGET"; then
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16516 $as_echo "$READELF_FOR_TARGET" >&6; }
16517 else
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16519 $as_echo "no" >&6; }
16520 fi
16521
16522
16523 fi
16524 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16525 done
16526 fi
16527
16528 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16529 set dummy readelf
16530 if test $build = $target ; then
16531 READELF_FOR_TARGET="$2"
16532 else
16533 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16534 fi
16535 else
16536 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16537 fi
16538
16539 else
16540 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16541 fi
16542
16543
16544
16545
16546 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16547 if test -n "$with_build_time_tools"; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16549 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16550 if test -x $with_build_time_tools/strip; then
16551 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16552 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16554 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16555 else
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557 $as_echo "no" >&6; }
16558 fi
16559 elif test $build != $host && test $have_gcc_for_target = yes; then
16560 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16561 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16562 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16563 fi
16564 fi
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16566 # Extract the first word of "strip", so it can be a program name with args.
16567 set dummy strip; ac_word=$2
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16569 $as_echo_n "checking for $ac_word... " >&6; }
16570 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 case $STRIP_FOR_TARGET in
16574 [\\/]* | ?:[\\/]*)
16575 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16576 ;;
16577 *)
16578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16579 for as_dir in $gcc_cv_tool_dirs
16580 do
16581 IFS=$as_save_IFS
16582 test -z "$as_dir" && as_dir=.
16583 for ac_exec_ext in '' $ac_executable_extensions; do
16584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16585 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16587 break 2
16588 fi
16589 done
16590 done
16591 IFS=$as_save_IFS
16592
16593 ;;
16594 esac
16595 fi
16596 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16597 if test -n "$STRIP_FOR_TARGET"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16599 $as_echo "$STRIP_FOR_TARGET" >&6; }
16600 else
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602 $as_echo "no" >&6; }
16603 fi
16604
16605
16606 fi
16607 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16608
16609
16610 if test -n "$STRIP_FOR_TARGET"; then
16611 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16612 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16613 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16614 fi
16615
16616 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16617 for ncn_progname in strip; do
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy ${ncn_progname}; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621 $as_echo_n "checking for $ac_word... " >&6; }
16622 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 if test -n "$STRIP_FOR_TARGET"; then
16626 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16627 else
16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629 for as_dir in $PATH
16630 do
16631 IFS=$as_save_IFS
16632 test -z "$as_dir" && as_dir=.
16633 for ac_exec_ext in '' $ac_executable_extensions; do
16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16637 break 2
16638 fi
16639 done
16640 done
16641 IFS=$as_save_IFS
16642
16643 fi
16644 fi
16645 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16646 if test -n "$STRIP_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16648 $as_echo "$STRIP_FOR_TARGET" >&6; }
16649 else
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16652 fi
16653
16654
16655 done
16656 fi
16657
16658 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16659 for ncn_progname in strip; do
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16661 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16662 if test -x $with_build_time_tools/${ncn_progname}; then
16663 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16665 $as_echo "yes" >&6; }
16666 break
16667 else
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669 $as_echo "no" >&6; }
16670 fi
16671 done
16672 fi
16673
16674 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16675 for ncn_progname in strip; do
16676 if test -n "$ncn_target_tool_prefix"; then
16677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16680 $as_echo_n "checking for $ac_word... " >&6; }
16681 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 if test -n "$STRIP_FOR_TARGET"; then
16685 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16686 else
16687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688 for as_dir in $PATH
16689 do
16690 IFS=$as_save_IFS
16691 test -z "$as_dir" && as_dir=.
16692 for ac_exec_ext in '' $ac_executable_extensions; do
16693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16694 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16696 break 2
16697 fi
16698 done
16699 done
16700 IFS=$as_save_IFS
16701
16702 fi
16703 fi
16704 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16705 if test -n "$STRIP_FOR_TARGET"; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16707 $as_echo "$STRIP_FOR_TARGET" >&6; }
16708 else
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710 $as_echo "no" >&6; }
16711 fi
16712
16713
16714 fi
16715 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16717 set dummy ${ncn_progname}; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 if test -n "$STRIP_FOR_TARGET"; then
16724 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16728 do
16729 IFS=$as_save_IFS
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16733 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 break 2
16736 fi
16737 done
16738 done
16739 IFS=$as_save_IFS
16740
16741 fi
16742 fi
16743 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16744 if test -n "$STRIP_FOR_TARGET"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16746 $as_echo "$STRIP_FOR_TARGET" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16750 fi
16751
16752
16753 fi
16754 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16755 done
16756 fi
16757
16758 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16759 set dummy strip
16760 if test $build = $target ; then
16761 STRIP_FOR_TARGET="$2"
16762 else
16763 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16764 fi
16765 else
16766 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16767 fi
16768
16769 else
16770 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16771 fi
16772
16773
16774
16775
16776 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16777 if test -n "$with_build_time_tools"; then
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16779 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16780 if test -x $with_build_time_tools/windres; then
16781 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16782 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16784 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16785 else
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787 $as_echo "no" >&6; }
16788 fi
16789 elif test $build != $host && test $have_gcc_for_target = yes; then
16790 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16791 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16792 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16793 fi
16794 fi
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16796 # Extract the first word of "windres", so it can be a program name with args.
16797 set dummy windres; ac_word=$2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799 $as_echo_n "checking for $ac_word... " >&6; }
16800 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 case $WINDRES_FOR_TARGET in
16804 [\\/]* | ?:[\\/]*)
16805 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16806 ;;
16807 *)
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $gcc_cv_tool_dirs
16810 do
16811 IFS=$as_save_IFS
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817 break 2
16818 fi
16819 done
16820 done
16821 IFS=$as_save_IFS
16822
16823 ;;
16824 esac
16825 fi
16826 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16827 if test -n "$WINDRES_FOR_TARGET"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16829 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16830 else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834
16835
16836 fi
16837 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16838
16839
16840 if test -n "$WINDRES_FOR_TARGET"; then
16841 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16842 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16843 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16844 fi
16845
16846 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16847 for ncn_progname in windres; do
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy ${ncn_progname}; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16851 $as_echo_n "checking for $ac_word... " >&6; }
16852 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 if test -n "$WINDRES_FOR_TARGET"; then
16856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16857 else
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16860 do
16861 IFS=$as_save_IFS
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 break 2
16868 fi
16869 done
16870 done
16871 IFS=$as_save_IFS
16872
16873 fi
16874 fi
16875 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16876 if test -n "$WINDRES_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16878 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16879 else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882 fi
16883
16884
16885 done
16886 fi
16887
16888 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16889 for ncn_progname in windres; do
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16891 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16892 if test -x $with_build_time_tools/${ncn_progname}; then
16893 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16895 $as_echo "yes" >&6; }
16896 break
16897 else
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16900 fi
16901 done
16902 fi
16903
16904 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16905 for ncn_progname in windres; do
16906 if test -n "$ncn_target_tool_prefix"; then
16907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16908 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16910 $as_echo_n "checking for $ac_word... " >&6; }
16911 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914 if test -n "$WINDRES_FOR_TARGET"; then
16915 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16916 else
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918 for as_dir in $PATH
16919 do
16920 IFS=$as_save_IFS
16921 test -z "$as_dir" && as_dir=.
16922 for ac_exec_ext in '' $ac_executable_extensions; do
16923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16924 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16926 break 2
16927 fi
16928 done
16929 done
16930 IFS=$as_save_IFS
16931
16932 fi
16933 fi
16934 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16935 if test -n "$WINDRES_FOR_TARGET"; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16937 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16938 else
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941 fi
16942
16943
16944 fi
16945 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16947 set dummy ${ncn_progname}; ac_word=$2
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16949 $as_echo_n "checking for $ac_word... " >&6; }
16950 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 if test -n "$WINDRES_FOR_TARGET"; then
16954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16955 else
16956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16957 for as_dir in $PATH
16958 do
16959 IFS=$as_save_IFS
16960 test -z "$as_dir" && as_dir=.
16961 for ac_exec_ext in '' $ac_executable_extensions; do
16962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16965 break 2
16966 fi
16967 done
16968 done
16969 IFS=$as_save_IFS
16970
16971 fi
16972 fi
16973 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16974 if test -n "$WINDRES_FOR_TARGET"; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16976 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16977 else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16979 $as_echo "no" >&6; }
16980 fi
16981
16982
16983 fi
16984 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16985 done
16986 fi
16987
16988 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16989 set dummy windres
16990 if test $build = $target ; then
16991 WINDRES_FOR_TARGET="$2"
16992 else
16993 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16994 fi
16995 else
16996 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16997 fi
16998
16999 else
17000 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17001 fi
17002
17003
17004
17005
17006 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17007 if test -n "$with_build_time_tools"; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17009 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17010 if test -x $with_build_time_tools/windmc; then
17011 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17012 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17014 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17015 else
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017 $as_echo "no" >&6; }
17018 fi
17019 elif test $build != $host && test $have_gcc_for_target = yes; then
17020 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17021 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17022 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17023 fi
17024 fi
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17026 # Extract the first word of "windmc", so it can be a program name with args.
17027 set dummy windmc; ac_word=$2
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17029 $as_echo_n "checking for $ac_word... " >&6; }
17030 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17031 $as_echo_n "(cached) " >&6
17032 else
17033 case $WINDMC_FOR_TARGET in
17034 [\\/]* | ?:[\\/]*)
17035 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17036 ;;
17037 *)
17038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17039 for as_dir in $gcc_cv_tool_dirs
17040 do
17041 IFS=$as_save_IFS
17042 test -z "$as_dir" && as_dir=.
17043 for ac_exec_ext in '' $ac_executable_extensions; do
17044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17045 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17047 break 2
17048 fi
17049 done
17050 done
17051 IFS=$as_save_IFS
17052
17053 ;;
17054 esac
17055 fi
17056 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17057 if test -n "$WINDMC_FOR_TARGET"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17059 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17060 else
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062 $as_echo "no" >&6; }
17063 fi
17064
17065
17066 fi
17067 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17068
17069
17070 if test -n "$WINDMC_FOR_TARGET"; then
17071 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17072 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17073 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17074 fi
17075
17076 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17077 for ncn_progname in windmc; do
17078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17079 set dummy ${ncn_progname}; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17081 $as_echo_n "checking for $ac_word... " >&6; }
17082 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 if test -n "$WINDMC_FOR_TARGET"; then
17086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17087 else
17088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17090 do
17091 IFS=$as_save_IFS
17092 test -z "$as_dir" && as_dir=.
17093 for ac_exec_ext in '' $ac_executable_extensions; do
17094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17097 break 2
17098 fi
17099 done
17100 done
17101 IFS=$as_save_IFS
17102
17103 fi
17104 fi
17105 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17106 if test -n "$WINDMC_FOR_TARGET"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17108 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17109 else
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 $as_echo "no" >&6; }
17112 fi
17113
17114
17115 done
17116 fi
17117
17118 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17119 for ncn_progname in windmc; do
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17121 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17122 if test -x $with_build_time_tools/${ncn_progname}; then
17123 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17125 $as_echo "yes" >&6; }
17126 break
17127 else
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 $as_echo "no" >&6; }
17130 fi
17131 done
17132 fi
17133
17134 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17135 for ncn_progname in windmc; do
17136 if test -n "$ncn_target_tool_prefix"; then
17137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17140 $as_echo_n "checking for $ac_word... " >&6; }
17141 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17142 $as_echo_n "(cached) " >&6
17143 else
17144 if test -n "$WINDMC_FOR_TARGET"; then
17145 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17146 else
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH
17149 do
17150 IFS=$as_save_IFS
17151 test -z "$as_dir" && as_dir=.
17152 for ac_exec_ext in '' $ac_executable_extensions; do
17153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17154 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17156 break 2
17157 fi
17158 done
17159 done
17160 IFS=$as_save_IFS
17161
17162 fi
17163 fi
17164 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17165 if test -n "$WINDMC_FOR_TARGET"; then
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17167 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17168 else
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17170 $as_echo "no" >&6; }
17171 fi
17172
17173
17174 fi
17175 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17177 set dummy ${ncn_progname}; ac_word=$2
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17179 $as_echo_n "checking for $ac_word... " >&6; }
17180 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182 else
17183 if test -n "$WINDMC_FOR_TARGET"; then
17184 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17185 else
17186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17187 for as_dir in $PATH
17188 do
17189 IFS=$as_save_IFS
17190 test -z "$as_dir" && as_dir=.
17191 for ac_exec_ext in '' $ac_executable_extensions; do
17192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17193 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17195 break 2
17196 fi
17197 done
17198 done
17199 IFS=$as_save_IFS
17200
17201 fi
17202 fi
17203 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17204 if test -n "$WINDMC_FOR_TARGET"; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17206 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17207 else
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17209 $as_echo "no" >&6; }
17210 fi
17211
17212
17213 fi
17214 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17215 done
17216 fi
17217
17218 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17219 set dummy windmc
17220 if test $build = $target ; then
17221 WINDMC_FOR_TARGET="$2"
17222 else
17223 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17224 fi
17225 else
17226 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17227 fi
17228
17229 else
17230 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17231 fi
17232
17233
17234 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17235
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17237 $as_echo_n "checking where to find the target ar... " >&6; }
17238 if test "x${build}" != "x${host}" ; then
17239 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17240 # We already found the complete path
17241 ac_dir=`dirname $AR_FOR_TARGET`
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17243 $as_echo "pre-installed in $ac_dir" >&6; }
17244 else
17245 # Canadian cross, just use what we found
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247 $as_echo "pre-installed" >&6; }
17248 fi
17249 else
17250 ok=yes
17251 case " ${configdirs} " in
17252 *" binutils "*) ;;
17253 *) ok=no ;;
17254 esac
17255
17256 if test $ok = yes; then
17257 # An in-tree tool is available and we can use it
17258 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17260 $as_echo "just compiled" >&6; }
17261 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17262 # We already found the complete path
17263 ac_dir=`dirname $AR_FOR_TARGET`
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17265 $as_echo "pre-installed in $ac_dir" >&6; }
17266 elif test "x$target" = "x$host"; then
17267 # We can use an host tool
17268 AR_FOR_TARGET='$(AR)'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17270 $as_echo "host tool" >&6; }
17271 else
17272 # We need a cross tool
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17274 $as_echo "pre-installed" >&6; }
17275 fi
17276 fi
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17279 $as_echo_n "checking where to find the target as... " >&6; }
17280 if test "x${build}" != "x${host}" ; then
17281 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17282 # We already found the complete path
17283 ac_dir=`dirname $AS_FOR_TARGET`
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17285 $as_echo "pre-installed in $ac_dir" >&6; }
17286 else
17287 # Canadian cross, just use what we found
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289 $as_echo "pre-installed" >&6; }
17290 fi
17291 else
17292 ok=yes
17293 case " ${configdirs} " in
17294 *" gas "*) ;;
17295 *) ok=no ;;
17296 esac
17297
17298 if test $ok = yes; then
17299 # An in-tree tool is available and we can use it
17300 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17302 $as_echo "just compiled" >&6; }
17303 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17304 # We already found the complete path
17305 ac_dir=`dirname $AS_FOR_TARGET`
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307 $as_echo "pre-installed in $ac_dir" >&6; }
17308 elif test "x$target" = "x$host"; then
17309 # We can use an host tool
17310 AS_FOR_TARGET='$(AS)'
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17312 $as_echo "host tool" >&6; }
17313 else
17314 # We need a cross tool
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17316 $as_echo "pre-installed" >&6; }
17317 fi
17318 fi
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17321 $as_echo_n "checking where to find the target cc... " >&6; }
17322 if test "x${build}" != "x${host}" ; then
17323 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17324 # We already found the complete path
17325 ac_dir=`dirname $CC_FOR_TARGET`
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17327 $as_echo "pre-installed in $ac_dir" >&6; }
17328 else
17329 # Canadian cross, just use what we found
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17331 $as_echo "pre-installed" >&6; }
17332 fi
17333 else
17334 ok=yes
17335 case " ${configdirs} " in
17336 *" gcc "*) ;;
17337 *) ok=no ;;
17338 esac
17339
17340 if test $ok = yes; then
17341 # An in-tree tool is available and we can use it
17342 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17344 $as_echo "just compiled" >&6; }
17345 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17346 # We already found the complete path
17347 ac_dir=`dirname $CC_FOR_TARGET`
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17349 $as_echo "pre-installed in $ac_dir" >&6; }
17350 elif test "x$target" = "x$host"; then
17351 # We can use an host tool
17352 CC_FOR_TARGET='$(CC)'
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17354 $as_echo "host tool" >&6; }
17355 else
17356 # We need a cross tool
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17358 $as_echo "pre-installed" >&6; }
17359 fi
17360 fi
17361
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17363 $as_echo_n "checking where to find the target c++... " >&6; }
17364 if test "x${build}" != "x${host}" ; then
17365 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17366 # We already found the complete path
17367 ac_dir=`dirname $CXX_FOR_TARGET`
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17369 $as_echo "pre-installed in $ac_dir" >&6; }
17370 else
17371 # Canadian cross, just use what we found
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17373 $as_echo "pre-installed" >&6; }
17374 fi
17375 else
17376 ok=yes
17377 case " ${configdirs} " in
17378 *" gcc "*) ;;
17379 *) ok=no ;;
17380 esac
17381 case ,${enable_languages}, in
17382 *,c++,*) ;;
17383 *) ok=no ;;
17384 esac
17385 if test $ok = yes; then
17386 # An in-tree tool is available and we can use it
17387 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'
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17389 $as_echo "just compiled" >&6; }
17390 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17391 # We already found the complete path
17392 ac_dir=`dirname $CXX_FOR_TARGET`
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17394 $as_echo "pre-installed in $ac_dir" >&6; }
17395 elif test "x$target" = "x$host"; then
17396 # We can use an host tool
17397 CXX_FOR_TARGET='$(CXX)'
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17399 $as_echo "host tool" >&6; }
17400 else
17401 # We need a cross tool
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17403 $as_echo "pre-installed" >&6; }
17404 fi
17405 fi
17406
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17408 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17409 if test "x${build}" != "x${host}" ; then
17410 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17411 # We already found the complete path
17412 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17414 $as_echo "pre-installed in $ac_dir" >&6; }
17415 else
17416 # Canadian cross, just use what we found
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17418 $as_echo "pre-installed" >&6; }
17419 fi
17420 else
17421 ok=yes
17422 case " ${configdirs} " in
17423 *" gcc "*) ;;
17424 *) ok=no ;;
17425 esac
17426 case ,${enable_languages}, in
17427 *,c++,*) ;;
17428 *) ok=no ;;
17429 esac
17430 if test $ok = yes; then
17431 # An in-tree tool is available and we can use it
17432 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'
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17434 $as_echo "just compiled" >&6; }
17435 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17436 # We already found the complete path
17437 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17439 $as_echo "pre-installed in $ac_dir" >&6; }
17440 elif test "x$target" = "x$host"; then
17441 # We can use an host tool
17442 RAW_CXX_FOR_TARGET='$(CXX)'
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17444 $as_echo "host tool" >&6; }
17445 else
17446 # We need a cross tool
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17448 $as_echo "pre-installed" >&6; }
17449 fi
17450 fi
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17453 $as_echo_n "checking where to find the target dlltool... " >&6; }
17454 if test "x${build}" != "x${host}" ; then
17455 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17456 # We already found the complete path
17457 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17459 $as_echo "pre-installed in $ac_dir" >&6; }
17460 else
17461 # Canadian cross, just use what we found
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17463 $as_echo "pre-installed" >&6; }
17464 fi
17465 else
17466 ok=yes
17467 case " ${configdirs} " in
17468 *" binutils "*) ;;
17469 *) ok=no ;;
17470 esac
17471
17472 if test $ok = yes; then
17473 # An in-tree tool is available and we can use it
17474 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17476 $as_echo "just compiled" >&6; }
17477 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17478 # We already found the complete path
17479 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17481 $as_echo "pre-installed in $ac_dir" >&6; }
17482 elif test "x$target" = "x$host"; then
17483 # We can use an host tool
17484 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17486 $as_echo "host tool" >&6; }
17487 else
17488 # We need a cross tool
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17490 $as_echo "pre-installed" >&6; }
17491 fi
17492 fi
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17495 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17496 if test "x${build}" != "x${host}" ; then
17497 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17498 # We already found the complete path
17499 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17501 $as_echo "pre-installed in $ac_dir" >&6; }
17502 else
17503 # Canadian cross, just use what we found
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17505 $as_echo "pre-installed" >&6; }
17506 fi
17507 else
17508 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517 $as_echo "host tool" >&6; }
17518 else
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521 $as_echo "pre-installed" >&6; }
17522 fi
17523 fi
17524
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17526 $as_echo_n "checking where to find the target gcc... " >&6; }
17527 if test "x${build}" != "x${host}" ; then
17528 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $GCC_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533 else
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536 $as_echo "pre-installed" >&6; }
17537 fi
17538 else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" gcc "*) ;;
17542 *) ok=no ;;
17543 esac
17544
17545 if test $ok = yes; then
17546 # An in-tree tool is available and we can use it
17547 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17549 $as_echo "just compiled" >&6; }
17550 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17551 # We already found the complete path
17552 ac_dir=`dirname $GCC_FOR_TARGET`
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17554 $as_echo "pre-installed in $ac_dir" >&6; }
17555 elif test "x$target" = "x$host"; then
17556 # We can use an host tool
17557 GCC_FOR_TARGET='$()'
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17559 $as_echo "host tool" >&6; }
17560 else
17561 # We need a cross tool
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17563 $as_echo "pre-installed" >&6; }
17564 fi
17565 fi
17566
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17568 $as_echo_n "checking where to find the target gfortran... " >&6; }
17569 if test "x${build}" != "x${host}" ; then
17570 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17571 # We already found the complete path
17572 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17574 $as_echo "pre-installed in $ac_dir" >&6; }
17575 else
17576 # Canadian cross, just use what we found
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17578 $as_echo "pre-installed" >&6; }
17579 fi
17580 else
17581 ok=yes
17582 case " ${configdirs} " in
17583 *" gcc "*) ;;
17584 *) ok=no ;;
17585 esac
17586 case ,${enable_languages}, in
17587 *,fortran,*) ;;
17588 *) ok=no ;;
17589 esac
17590 if test $ok = yes; then
17591 # An in-tree tool is available and we can use it
17592 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17594 $as_echo "just compiled" >&6; }
17595 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17596 # We already found the complete path
17597 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17599 $as_echo "pre-installed in $ac_dir" >&6; }
17600 elif test "x$target" = "x$host"; then
17601 # We can use an host tool
17602 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17604 $as_echo "host tool" >&6; }
17605 else
17606 # We need a cross tool
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17608 $as_echo "pre-installed" >&6; }
17609 fi
17610 fi
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17613 $as_echo_n "checking where to find the target gccgo... " >&6; }
17614 if test "x${build}" != "x${host}" ; then
17615 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17616 # We already found the complete path
17617 ac_dir=`dirname $GOC_FOR_TARGET`
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17619 $as_echo "pre-installed in $ac_dir" >&6; }
17620 else
17621 # Canadian cross, just use what we found
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17623 $as_echo "pre-installed" >&6; }
17624 fi
17625 else
17626 ok=yes
17627 case " ${configdirs} " in
17628 *" gcc "*) ;;
17629 *) ok=no ;;
17630 esac
17631 case ,${enable_languages}, in
17632 *,go,*) ;;
17633 *) ok=no ;;
17634 esac
17635 if test $ok = yes; then
17636 # An in-tree tool is available and we can use it
17637 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17639 $as_echo "just compiled" >&6; }
17640 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17641 # We already found the complete path
17642 ac_dir=`dirname $GOC_FOR_TARGET`
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17644 $as_echo "pre-installed in $ac_dir" >&6; }
17645 elif test "x$target" = "x$host"; then
17646 # We can use an host tool
17647 GOC_FOR_TARGET='$(GOC)'
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17649 $as_echo "host tool" >&6; }
17650 else
17651 # We need a cross tool
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17653 $as_echo "pre-installed" >&6; }
17654 fi
17655 fi
17656
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17658 $as_echo_n "checking where to find the target gdc... " >&6; }
17659 if test "x${build}" != "x${host}" ; then
17660 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17661 # We already found the complete path
17662 ac_dir=`dirname $GDC_FOR_TARGET`
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17664 $as_echo "pre-installed in $ac_dir" >&6; }
17665 else
17666 # Canadian cross, just use what we found
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17668 $as_echo "pre-installed" >&6; }
17669 fi
17670 else
17671 ok=yes
17672 case " ${configdirs} " in
17673 *" gcc "*) ;;
17674 *) ok=no ;;
17675 esac
17676 case ,${enable_languages}, in
17677 *,d,*) ;;
17678 *) ok=no ;;
17679 esac
17680 if test $ok = yes; then
17681 # An in-tree tool is available and we can use it
17682 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17684 $as_echo "just compiled" >&6; }
17685 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $GDC_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689 $as_echo "pre-installed in $ac_dir" >&6; }
17690 elif test "x$target" = "x$host"; then
17691 # We can use an host tool
17692 GDC_FOR_TARGET='$(GDC)'
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17694 $as_echo "host tool" >&6; }
17695 else
17696 # We need a cross tool
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17698 $as_echo "pre-installed" >&6; }
17699 fi
17700 fi
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17703 $as_echo_n "checking where to find the target gm2... " >&6; }
17704 if test "x${build}" != "x${host}" ; then
17705 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17706 # We already found the complete path
17707 ac_dir=`dirname $GM2_FOR_TARGET`
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17709 $as_echo "pre-installed in $ac_dir" >&6; }
17710 else
17711 # Canadian cross, just use what we found
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17713 $as_echo "pre-installed" >&6; }
17714 fi
17715 else
17716 ok=yes
17717 case " ${configdirs} " in
17718 *" gcc "*) ;;
17719 *) ok=no ;;
17720 esac
17721 case ,${enable_languages}, in
17722 *,m2,*) ;;
17723 *) ok=no ;;
17724 esac
17725 if test $ok = yes; then
17726 # An in-tree tool is available and we can use it
17727 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17729 $as_echo "just compiled" >&6; }
17730 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17731 # We already found the complete path
17732 ac_dir=`dirname $GM2_FOR_TARGET`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17734 $as_echo "pre-installed in $ac_dir" >&6; }
17735 elif test "x$target" = "x$host"; then
17736 # We can use an host tool
17737 GM2_FOR_TARGET='$(GM2)'
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17739 $as_echo "host tool" >&6; }
17740 else
17741 # We need a cross tool
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17743 $as_echo "pre-installed" >&6; }
17744 fi
17745 fi
17746
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17748 $as_echo_n "checking where to find the target ld... " >&6; }
17749 if test "x${build}" != "x${host}" ; then
17750 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17751 # We already found the complete path
17752 ac_dir=`dirname $LD_FOR_TARGET`
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17754 $as_echo "pre-installed in $ac_dir" >&6; }
17755 else
17756 # Canadian cross, just use what we found
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17758 $as_echo "pre-installed" >&6; }
17759 fi
17760 else
17761 ok=yes
17762 case " ${configdirs} " in
17763 *" ld "*) ;;
17764 *) ok=no ;;
17765 esac
17766
17767 if test $ok = yes; then
17768 # An in-tree tool is available and we can use it
17769 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17771 $as_echo "just compiled" >&6; }
17772 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $LD_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17776 $as_echo "pre-installed in $ac_dir" >&6; }
17777 elif test "x$target" = "x$host"; then
17778 # We can use an host tool
17779 LD_FOR_TARGET='$(LD)'
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17781 $as_echo "host tool" >&6; }
17782 else
17783 # We need a cross tool
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17785 $as_echo "pre-installed" >&6; }
17786 fi
17787 fi
17788
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17790 $as_echo_n "checking where to find the target lipo... " >&6; }
17791 if test "x${build}" != "x${host}" ; then
17792 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17793 # We already found the complete path
17794 ac_dir=`dirname $LIPO_FOR_TARGET`
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17796 $as_echo "pre-installed in $ac_dir" >&6; }
17797 else
17798 # Canadian cross, just use what we found
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17800 $as_echo "pre-installed" >&6; }
17801 fi
17802 else
17803 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17804 # We already found the complete path
17805 ac_dir=`dirname $LIPO_FOR_TARGET`
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17807 $as_echo "pre-installed in $ac_dir" >&6; }
17808 elif test "x$target" = "x$host"; then
17809 # We can use an host tool
17810 LIPO_FOR_TARGET='$(LIPO)'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17812 $as_echo "host tool" >&6; }
17813 else
17814 # We need a cross tool
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17816 $as_echo "pre-installed" >&6; }
17817 fi
17818 fi
17819
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17821 $as_echo_n "checking where to find the target nm... " >&6; }
17822 if test "x${build}" != "x${host}" ; then
17823 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17824 # We already found the complete path
17825 ac_dir=`dirname $NM_FOR_TARGET`
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17827 $as_echo "pre-installed in $ac_dir" >&6; }
17828 else
17829 # Canadian cross, just use what we found
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17831 $as_echo "pre-installed" >&6; }
17832 fi
17833 else
17834 ok=yes
17835 case " ${configdirs} " in
17836 *" binutils "*) ;;
17837 *) ok=no ;;
17838 esac
17839
17840 if test $ok = yes; then
17841 # An in-tree tool is available and we can use it
17842 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17844 $as_echo "just compiled" >&6; }
17845 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17846 # We already found the complete path
17847 ac_dir=`dirname $NM_FOR_TARGET`
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17849 $as_echo "pre-installed in $ac_dir" >&6; }
17850 elif test "x$target" = "x$host"; then
17851 # We can use an host tool
17852 NM_FOR_TARGET='$(NM)'
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17854 $as_echo "host tool" >&6; }
17855 else
17856 # We need a cross tool
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17858 $as_echo "pre-installed" >&6; }
17859 fi
17860 fi
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17863 $as_echo_n "checking where to find the target objcopy... " >&6; }
17864 if test "x${build}" != "x${host}" ; then
17865 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17866 # We already found the complete path
17867 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17869 $as_echo "pre-installed in $ac_dir" >&6; }
17870 else
17871 # Canadian cross, just use what we found
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17873 $as_echo "pre-installed" >&6; }
17874 fi
17875 else
17876 ok=yes
17877 case " ${configdirs} " in
17878 *" binutils "*) ;;
17879 *) ok=no ;;
17880 esac
17881
17882 if test $ok = yes; then
17883 # An in-tree tool is available and we can use it
17884 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17886 $as_echo "just compiled" >&6; }
17887 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17888 # We already found the complete path
17889 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17891 $as_echo "pre-installed in $ac_dir" >&6; }
17892 elif test "x$target" = "x$host"; then
17893 # We can use an host tool
17894 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17896 $as_echo "host tool" >&6; }
17897 else
17898 # We need a cross tool
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17900 $as_echo "pre-installed" >&6; }
17901 fi
17902 fi
17903
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17905 $as_echo_n "checking where to find the target objdump... " >&6; }
17906 if test "x${build}" != "x${host}" ; then
17907 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17908 # We already found the complete path
17909 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17911 $as_echo "pre-installed in $ac_dir" >&6; }
17912 else
17913 # Canadian cross, just use what we found
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17915 $as_echo "pre-installed" >&6; }
17916 fi
17917 else
17918 ok=yes
17919 case " ${configdirs} " in
17920 *" binutils "*) ;;
17921 *) ok=no ;;
17922 esac
17923
17924 if test $ok = yes; then
17925 # An in-tree tool is available and we can use it
17926 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17928 $as_echo "just compiled" >&6; }
17929 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17930 # We already found the complete path
17931 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17933 $as_echo "pre-installed in $ac_dir" >&6; }
17934 elif test "x$target" = "x$host"; then
17935 # We can use an host tool
17936 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17938 $as_echo "host tool" >&6; }
17939 else
17940 # We need a cross tool
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17942 $as_echo "pre-installed" >&6; }
17943 fi
17944 fi
17945
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17947 $as_echo_n "checking where to find the target otool... " >&6; }
17948 if test "x${build}" != "x${host}" ; then
17949 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17950 # We already found the complete path
17951 ac_dir=`dirname $OTOOL_FOR_TARGET`
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17953 $as_echo "pre-installed in $ac_dir" >&6; }
17954 else
17955 # Canadian cross, just use what we found
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17957 $as_echo "pre-installed" >&6; }
17958 fi
17959 else
17960 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17961 # We already found the complete path
17962 ac_dir=`dirname $OTOOL_FOR_TARGET`
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17964 $as_echo "pre-installed in $ac_dir" >&6; }
17965 elif test "x$target" = "x$host"; then
17966 # We can use an host tool
17967 OTOOL_FOR_TARGET='$(OTOOL)'
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17969 $as_echo "host tool" >&6; }
17970 else
17971 # We need a cross tool
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17973 $as_echo "pre-installed" >&6; }
17974 fi
17975 fi
17976
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17978 $as_echo_n "checking where to find the target ranlib... " >&6; }
17979 if test "x${build}" != "x${host}" ; then
17980 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17981 # We already found the complete path
17982 ac_dir=`dirname $RANLIB_FOR_TARGET`
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17984 $as_echo "pre-installed in $ac_dir" >&6; }
17985 else
17986 # Canadian cross, just use what we found
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17988 $as_echo "pre-installed" >&6; }
17989 fi
17990 else
17991 ok=yes
17992 case " ${configdirs} " in
17993 *" binutils "*) ;;
17994 *) ok=no ;;
17995 esac
17996
17997 if test $ok = yes; then
17998 # An in-tree tool is available and we can use it
17999 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18001 $as_echo "just compiled" >&6; }
18002 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18003 # We already found the complete path
18004 ac_dir=`dirname $RANLIB_FOR_TARGET`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18006 $as_echo "pre-installed in $ac_dir" >&6; }
18007 elif test "x$target" = "x$host"; then
18008 # We can use an host tool
18009 RANLIB_FOR_TARGET='$(RANLIB)'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18011 $as_echo "host tool" >&6; }
18012 else
18013 # We need a cross tool
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18015 $as_echo "pre-installed" >&6; }
18016 fi
18017 fi
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18020 $as_echo_n "checking where to find the target readelf... " >&6; }
18021 if test "x${build}" != "x${host}" ; then
18022 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $READELF_FOR_TARGET`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18026 $as_echo "pre-installed in $ac_dir" >&6; }
18027 else
18028 # Canadian cross, just use what we found
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18030 $as_echo "pre-installed" >&6; }
18031 fi
18032 else
18033 ok=yes
18034 case " ${configdirs} " in
18035 *" binutils "*) ;;
18036 *) ok=no ;;
18037 esac
18038
18039 if test $ok = yes; then
18040 # An in-tree tool is available and we can use it
18041 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18043 $as_echo "just compiled" >&6; }
18044 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18045 # We already found the complete path
18046 ac_dir=`dirname $READELF_FOR_TARGET`
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18048 $as_echo "pre-installed in $ac_dir" >&6; }
18049 elif test "x$target" = "x$host"; then
18050 # We can use an host tool
18051 READELF_FOR_TARGET='$(READELF)'
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18053 $as_echo "host tool" >&6; }
18054 else
18055 # We need a cross tool
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18057 $as_echo "pre-installed" >&6; }
18058 fi
18059 fi
18060
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18062 $as_echo_n "checking where to find the target strip... " >&6; }
18063 if test "x${build}" != "x${host}" ; then
18064 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18065 # We already found the complete path
18066 ac_dir=`dirname $STRIP_FOR_TARGET`
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18068 $as_echo "pre-installed in $ac_dir" >&6; }
18069 else
18070 # Canadian cross, just use what we found
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18072 $as_echo "pre-installed" >&6; }
18073 fi
18074 else
18075 ok=yes
18076 case " ${configdirs} " in
18077 *" binutils "*) ;;
18078 *) ok=no ;;
18079 esac
18080
18081 if test $ok = yes; then
18082 # An in-tree tool is available and we can use it
18083 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18085 $as_echo "just compiled" >&6; }
18086 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18087 # We already found the complete path
18088 ac_dir=`dirname $STRIP_FOR_TARGET`
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18090 $as_echo "pre-installed in $ac_dir" >&6; }
18091 elif test "x$target" = "x$host"; then
18092 # We can use an host tool
18093 STRIP_FOR_TARGET='$(STRIP)'
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18095 $as_echo "host tool" >&6; }
18096 else
18097 # We need a cross tool
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18099 $as_echo "pre-installed" >&6; }
18100 fi
18101 fi
18102
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18104 $as_echo_n "checking where to find the target windres... " >&6; }
18105 if test "x${build}" != "x${host}" ; then
18106 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18107 # We already found the complete path
18108 ac_dir=`dirname $WINDRES_FOR_TARGET`
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18110 $as_echo "pre-installed in $ac_dir" >&6; }
18111 else
18112 # Canadian cross, just use what we found
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114 $as_echo "pre-installed" >&6; }
18115 fi
18116 else
18117 ok=yes
18118 case " ${configdirs} " in
18119 *" binutils "*) ;;
18120 *) ok=no ;;
18121 esac
18122
18123 if test $ok = yes; then
18124 # An in-tree tool is available and we can use it
18125 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18127 $as_echo "just compiled" >&6; }
18128 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18129 # We already found the complete path
18130 ac_dir=`dirname $WINDRES_FOR_TARGET`
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18132 $as_echo "pre-installed in $ac_dir" >&6; }
18133 elif test "x$target" = "x$host"; then
18134 # We can use an host tool
18135 WINDRES_FOR_TARGET='$(WINDRES)'
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18137 $as_echo "host tool" >&6; }
18138 else
18139 # We need a cross tool
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18141 $as_echo "pre-installed" >&6; }
18142 fi
18143 fi
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18146 $as_echo_n "checking where to find the target windmc... " >&6; }
18147 if test "x${build}" != "x${host}" ; then
18148 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18149 # We already found the complete path
18150 ac_dir=`dirname $WINDMC_FOR_TARGET`
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18152 $as_echo "pre-installed in $ac_dir" >&6; }
18153 else
18154 # Canadian cross, just use what we found
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18156 $as_echo "pre-installed" >&6; }
18157 fi
18158 else
18159 ok=yes
18160 case " ${configdirs} " in
18161 *" binutils "*) ;;
18162 *) ok=no ;;
18163 esac
18164
18165 if test $ok = yes; then
18166 # An in-tree tool is available and we can use it
18167 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18169 $as_echo "just compiled" >&6; }
18170 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18171 # We already found the complete path
18172 ac_dir=`dirname $WINDMC_FOR_TARGET`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18174 $as_echo "pre-installed in $ac_dir" >&6; }
18175 elif test "x$target" = "x$host"; then
18176 # We can use an host tool
18177 WINDMC_FOR_TARGET='$(WINDMC)'
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18179 $as_echo "host tool" >&6; }
18180 else
18181 # We need a cross tool
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18183 $as_echo "pre-installed" >&6; }
18184 fi
18185 fi
18186
18187
18188
18189
18190
18191 # Certain tools may need extra flags.
18192 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18193 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18194 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18195
18196 # When building target libraries, except in a Canadian cross, we use
18197 # the same toolchain as the compiler we just built.
18198 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18199 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18200 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18201 if test $host = $build; then
18202 case " $configdirs " in
18203 *" gcc "*)
18204 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18205 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18206 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18207 ;;
18208 esac
18209 fi
18210
18211
18212
18213
18214
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18216 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18217 # Check whether --enable-maintainer-mode was given.
18218 if test "${enable_maintainer_mode+set}" = set; then :
18219 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18220 else
18221 USE_MAINTAINER_MODE=no
18222 fi
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18225 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18226
18227
18228 if test "$USE_MAINTAINER_MODE" = yes; then
18229 MAINTAINER_MODE_TRUE=
18230 MAINTAINER_MODE_FALSE='#'
18231 else
18232 MAINTAINER_MODE_TRUE='#'
18233 MAINTAINER_MODE_FALSE=
18234 fi
18235 MAINT=$MAINTAINER_MODE_TRUE
18236
18237 # ---------------------
18238 # GCC bootstrap support
18239 # ---------------------
18240
18241 # Stage specific cflags for build.
18242 stage1_cflags="-g"
18243 case $build in
18244 vax-*-*)
18245 case ${GCC} in
18246 yes) stage1_cflags="-g -Wa,-J" ;;
18247 *) stage1_cflags="-g -J" ;;
18248 esac ;;
18249 esac
18250
18251
18252
18253 # Enable --enable-checking in stage1 of the compiler.
18254 # Check whether --enable-stage1-checking was given.
18255 if test "${enable_stage1_checking+set}" = set; then :
18256 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18257 else
18258 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18259 # For --disable-checking or implicit --enable-checking=release, avoid
18260 # setting --enable-checking=gc in the default stage1 checking for LTO
18261 # bootstraps. See PR62077.
18262 case $BUILD_CONFIG in
18263 *lto*)
18264 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18265 *)
18266 stage1_checking=--enable-checking=yes,types;;
18267 esac
18268 if test "x$enable_checking" = x && \
18269 test -d ${srcdir}/gcc && \
18270 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18271 stage1_checking=--enable-checking=yes,types,extra
18272 fi
18273 else
18274 stage1_checking=--enable-checking=$enable_checking,types
18275 fi
18276 fi
18277
18278
18279
18280 # Enable -Werror in bootstrap stage2 and later.
18281 # Check whether --enable-werror was given.
18282 if test "${enable_werror+set}" = set; then :
18283 enableval=$enable_werror;
18284 case ${enable_werror} in
18285 yes) stage2_werror_flag="--enable-werror-always" ;;
18286 *) stage2_werror_flag="" ;;
18287 esac
18288
18289 else
18290
18291 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18292 case $BUILD_CONFIG in
18293 bootstrap-debug)
18294 stage2_werror_flag="--enable-werror-always" ;;
18295 "")
18296 stage2_werror_flag="--enable-werror-always" ;;
18297 esac
18298 fi
18299
18300 fi
18301
18302
18303
18304
18305 # Specify what files to not compare during bootstrap.
18306
18307 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18308 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18309 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18310 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18311 case "$target" in
18312 hppa*64*-*-hpux*) ;;
18313 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18314 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18315 esac
18316
18317
18318 ac_config_files="$ac_config_files Makefile"
18319
18320 cat >confcache <<\_ACEOF
18321 # This file is a shell script that caches the results of configure
18322 # tests run on this system so they can be shared between configure
18323 # scripts and configure runs, see configure's option --config-cache.
18324 # It is not useful on other systems. If it contains results you don't
18325 # want to keep, you may remove or edit it.
18326 #
18327 # config.status only pays attention to the cache file if you give it
18328 # the --recheck option to rerun configure.
18329 #
18330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18332 # following values.
18333
18334 _ACEOF
18335
18336 # The following way of writing the cache mishandles newlines in values,
18337 # but we know of no workaround that is simple, portable, and efficient.
18338 # So, we kill variables containing newlines.
18339 # Ultrix sh set writes to stderr and can't be redirected directly,
18340 # and sets the high bit in the cache file unless we assign to the vars.
18341 (
18342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18343 eval ac_val=\$$ac_var
18344 case $ac_val in #(
18345 *${as_nl}*)
18346 case $ac_var in #(
18347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18349 esac
18350 case $ac_var in #(
18351 _ | IFS | as_nl) ;; #(
18352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18353 *) { eval $ac_var=; unset $ac_var;} ;;
18354 esac ;;
18355 esac
18356 done
18357
18358 (set) 2>&1 |
18359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18360 *${as_nl}ac_space=\ *)
18361 # `set' does not quote correctly, so add quotes: double-quote
18362 # substitution turns \\\\ into \\, and sed turns \\ into \.
18363 sed -n \
18364 "s/'/'\\\\''/g;
18365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18366 ;; #(
18367 *)
18368 # `set' quotes correctly as required by POSIX, so do not add quotes.
18369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18370 ;;
18371 esac |
18372 sort
18373 ) |
18374 sed '
18375 /^ac_cv_env_/b end
18376 t clear
18377 :clear
18378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18379 t end
18380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18381 :end' >>confcache
18382 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18383 if test -w "$cache_file"; then
18384 if test "x$cache_file" != "x/dev/null"; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18386 $as_echo "$as_me: updating cache $cache_file" >&6;}
18387 if test ! -f "$cache_file" || test -h "$cache_file"; then
18388 cat confcache >"$cache_file"
18389 else
18390 case $cache_file in #(
18391 */* | ?:*)
18392 mv -f confcache "$cache_file"$$ &&
18393 mv -f "$cache_file"$$ "$cache_file" ;; #(
18394 *)
18395 mv -f confcache "$cache_file" ;;
18396 esac
18397 fi
18398 fi
18399 else
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18401 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18402 fi
18403 fi
18404 rm -f confcache
18405
18406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18407 # Let make expand exec_prefix.
18408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18409
18410 # Transform confdefs.h into DEFS.
18411 # Protect against shell expansion while executing Makefile rules.
18412 # Protect against Makefile macro expansion.
18413 #
18414 # If the first sed substitution is executed (which looks for macros that
18415 # take arguments), then branch to the quote section. Otherwise,
18416 # look for a macro that doesn't take arguments.
18417 ac_script='
18418 :mline
18419 /\\$/{
18420 N
18421 s,\\\n,,
18422 b mline
18423 }
18424 t clear
18425 :clear
18426 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18427 t quote
18428 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18429 t quote
18430 b any
18431 :quote
18432 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18433 s/\[/\\&/g
18434 s/\]/\\&/g
18435 s/\$/$$/g
18436 H
18437 :any
18438 ${
18439 g
18440 s/^\n//
18441 s/\n/ /g
18442 p
18443 }
18444 '
18445 DEFS=`sed -n "$ac_script" confdefs.h`
18446
18447
18448 ac_libobjs=
18449 ac_ltlibobjs=
18450 U=
18451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18452 # 1. Remove the extension, and $U if already installed.
18453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18456 # will be set to the directory where LIBOBJS objects are built.
18457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18459 done
18460 LIBOBJS=$ac_libobjs
18461
18462 LTLIBOBJS=$ac_ltlibobjs
18463
18464
18465
18466 : "${CONFIG_STATUS=./config.status}"
18467 ac_write_fail=0
18468 ac_clean_files_save=$ac_clean_files
18469 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18471 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18472 as_write_fail=0
18473 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18474 #! $SHELL
18475 # Generated by $as_me.
18476 # Run this file to recreate the current configuration.
18477 # Compiler output produced by configure, useful for debugging
18478 # configure, is in config.log if it exists.
18479
18480 debug=false
18481 ac_cs_recheck=false
18482 ac_cs_silent=false
18483
18484 SHELL=\${CONFIG_SHELL-$SHELL}
18485 export SHELL
18486 _ASEOF
18487 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18488 ## -------------------- ##
18489 ## M4sh Initialization. ##
18490 ## -------------------- ##
18491
18492 # Be more Bourne compatible
18493 DUALCASE=1; export DUALCASE # for MKS sh
18494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18495 emulate sh
18496 NULLCMD=:
18497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18498 # is contrary to our usage. Disable this feature.
18499 alias -g '${1+"$@"}'='"$@"'
18500 setopt NO_GLOB_SUBST
18501 else
18502 case `(set -o) 2>/dev/null` in #(
18503 *posix*) :
18504 set -o posix ;; #(
18505 *) :
18506 ;;
18507 esac
18508 fi
18509
18510
18511 as_nl='
18512 '
18513 export as_nl
18514 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18515 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18517 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18518 # Prefer a ksh shell builtin over an external printf program on Solaris,
18519 # but without wasting forks for bash or zsh.
18520 if test -z "$BASH_VERSION$ZSH_VERSION" \
18521 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18522 as_echo='print -r --'
18523 as_echo_n='print -rn --'
18524 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18525 as_echo='printf %s\n'
18526 as_echo_n='printf %s'
18527 else
18528 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18529 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18530 as_echo_n='/usr/ucb/echo -n'
18531 else
18532 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18533 as_echo_n_body='eval
18534 arg=$1;
18535 case $arg in #(
18536 *"$as_nl"*)
18537 expr "X$arg" : "X\\(.*\\)$as_nl";
18538 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18539 esac;
18540 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18541 '
18542 export as_echo_n_body
18543 as_echo_n='sh -c $as_echo_n_body as_echo'
18544 fi
18545 export as_echo_body
18546 as_echo='sh -c $as_echo_body as_echo'
18547 fi
18548
18549 # The user is always right.
18550 if test "${PATH_SEPARATOR+set}" != set; then
18551 PATH_SEPARATOR=:
18552 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18553 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18554 PATH_SEPARATOR=';'
18555 }
18556 fi
18557
18558
18559 # IFS
18560 # We need space, tab and new line, in precisely that order. Quoting is
18561 # there to prevent editors from complaining about space-tab.
18562 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18563 # splitting by setting IFS to empty value.)
18564 IFS=" "" $as_nl"
18565
18566 # Find who we are. Look in the path if we contain no directory separator.
18567 as_myself=
18568 case $0 in #((
18569 *[\\/]* ) as_myself=$0 ;;
18570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571 for as_dir in $PATH
18572 do
18573 IFS=$as_save_IFS
18574 test -z "$as_dir" && as_dir=.
18575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18576 done
18577 IFS=$as_save_IFS
18578
18579 ;;
18580 esac
18581 # We did not find ourselves, most probably we were run as `sh COMMAND'
18582 # in which case we are not to be found in the path.
18583 if test "x$as_myself" = x; then
18584 as_myself=$0
18585 fi
18586 if test ! -f "$as_myself"; then
18587 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18588 exit 1
18589 fi
18590
18591 # Unset variables that we do not need and which cause bugs (e.g. in
18592 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18593 # suppresses any "Segmentation fault" message there. '((' could
18594 # trigger a bug in pdksh 5.2.14.
18595 for as_var in BASH_ENV ENV MAIL MAILPATH
18596 do eval test x\${$as_var+set} = xset \
18597 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18598 done
18599 PS1='$ '
18600 PS2='> '
18601 PS4='+ '
18602
18603 # NLS nuisances.
18604 LC_ALL=C
18605 export LC_ALL
18606 LANGUAGE=C
18607 export LANGUAGE
18608
18609 # CDPATH.
18610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18611
18612
18613 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18614 # ----------------------------------------
18615 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18616 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18617 # script with STATUS, using 1 if that was 0.
18618 as_fn_error ()
18619 {
18620 as_status=$1; test $as_status -eq 0 && as_status=1
18621 if test "$4"; then
18622 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18623 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18624 fi
18625 $as_echo "$as_me: error: $2" >&2
18626 as_fn_exit $as_status
18627 } # as_fn_error
18628
18629
18630 # as_fn_set_status STATUS
18631 # -----------------------
18632 # Set $? to STATUS, without forking.
18633 as_fn_set_status ()
18634 {
18635 return $1
18636 } # as_fn_set_status
18637
18638 # as_fn_exit STATUS
18639 # -----------------
18640 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18641 as_fn_exit ()
18642 {
18643 set +e
18644 as_fn_set_status $1
18645 exit $1
18646 } # as_fn_exit
18647
18648 # as_fn_unset VAR
18649 # ---------------
18650 # Portably unset VAR.
18651 as_fn_unset ()
18652 {
18653 { eval $1=; unset $1;}
18654 }
18655 as_unset=as_fn_unset
18656 # as_fn_append VAR VALUE
18657 # ----------------------
18658 # Append the text in VALUE to the end of the definition contained in VAR. Take
18659 # advantage of any shell optimizations that allow amortized linear growth over
18660 # repeated appends, instead of the typical quadratic growth present in naive
18661 # implementations.
18662 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18663 eval 'as_fn_append ()
18664 {
18665 eval $1+=\$2
18666 }'
18667 else
18668 as_fn_append ()
18669 {
18670 eval $1=\$$1\$2
18671 }
18672 fi # as_fn_append
18673
18674 # as_fn_arith ARG...
18675 # ------------------
18676 # Perform arithmetic evaluation on the ARGs, and store the result in the
18677 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18678 # must be portable across $(()) and expr.
18679 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18680 eval 'as_fn_arith ()
18681 {
18682 as_val=$(( $* ))
18683 }'
18684 else
18685 as_fn_arith ()
18686 {
18687 as_val=`expr "$@" || test $? -eq 1`
18688 }
18689 fi # as_fn_arith
18690
18691
18692 if expr a : '\(a\)' >/dev/null 2>&1 &&
18693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18694 as_expr=expr
18695 else
18696 as_expr=false
18697 fi
18698
18699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18700 as_basename=basename
18701 else
18702 as_basename=false
18703 fi
18704
18705 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18706 as_dirname=dirname
18707 else
18708 as_dirname=false
18709 fi
18710
18711 as_me=`$as_basename -- "$0" ||
18712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18713 X"$0" : 'X\(//\)$' \| \
18714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18715 $as_echo X/"$0" |
18716 sed '/^.*\/\([^/][^/]*\)\/*$/{
18717 s//\1/
18718 q
18719 }
18720 /^X\/\(\/\/\)$/{
18721 s//\1/
18722 q
18723 }
18724 /^X\/\(\/\).*/{
18725 s//\1/
18726 q
18727 }
18728 s/.*/./; q'`
18729
18730 # Avoid depending upon Character Ranges.
18731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18734 as_cr_digits='0123456789'
18735 as_cr_alnum=$as_cr_Letters$as_cr_digits
18736
18737 ECHO_C= ECHO_N= ECHO_T=
18738 case `echo -n x` in #(((((
18739 -n*)
18740 case `echo 'xy\c'` in
18741 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18742 xy) ECHO_C='\c';;
18743 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18744 ECHO_T=' ';;
18745 esac;;
18746 *)
18747 ECHO_N='-n';;
18748 esac
18749
18750 rm -f conf$$ conf$$.exe conf$$.file
18751 if test -d conf$$.dir; then
18752 rm -f conf$$.dir/conf$$.file
18753 else
18754 rm -f conf$$.dir
18755 mkdir conf$$.dir 2>/dev/null
18756 fi
18757 if (echo >conf$$.file) 2>/dev/null; then
18758 if ln -s conf$$.file conf$$ 2>/dev/null; then
18759 as_ln_s='ln -s'
18760 # ... but there are two gotchas:
18761 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18762 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18763 # In both cases, we have to default to `cp -pR'.
18764 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18765 as_ln_s='cp -pR'
18766 elif ln conf$$.file conf$$ 2>/dev/null; then
18767 as_ln_s=ln
18768 else
18769 as_ln_s='cp -pR'
18770 fi
18771 else
18772 as_ln_s='cp -pR'
18773 fi
18774 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18775 rmdir conf$$.dir 2>/dev/null
18776
18777
18778 # as_fn_mkdir_p
18779 # -------------
18780 # Create "$as_dir" as a directory, including parents if necessary.
18781 as_fn_mkdir_p ()
18782 {
18783
18784 case $as_dir in #(
18785 -*) as_dir=./$as_dir;;
18786 esac
18787 test -d "$as_dir" || eval $as_mkdir_p || {
18788 as_dirs=
18789 while :; do
18790 case $as_dir in #(
18791 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18792 *) as_qdir=$as_dir;;
18793 esac
18794 as_dirs="'$as_qdir' $as_dirs"
18795 as_dir=`$as_dirname -- "$as_dir" ||
18796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797 X"$as_dir" : 'X\(//\)[^/]' \| \
18798 X"$as_dir" : 'X\(//\)$' \| \
18799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18800 $as_echo X"$as_dir" |
18801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18802 s//\1/
18803 q
18804 }
18805 /^X\(\/\/\)[^/].*/{
18806 s//\1/
18807 q
18808 }
18809 /^X\(\/\/\)$/{
18810 s//\1/
18811 q
18812 }
18813 /^X\(\/\).*/{
18814 s//\1/
18815 q
18816 }
18817 s/.*/./; q'`
18818 test -d "$as_dir" && break
18819 done
18820 test -z "$as_dirs" || eval "mkdir $as_dirs"
18821 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18822
18823
18824 } # as_fn_mkdir_p
18825 if mkdir -p . 2>/dev/null; then
18826 as_mkdir_p='mkdir -p "$as_dir"'
18827 else
18828 test -d ./-p && rmdir ./-p
18829 as_mkdir_p=false
18830 fi
18831
18832
18833 # as_fn_executable_p FILE
18834 # -----------------------
18835 # Test if FILE is an executable regular file.
18836 as_fn_executable_p ()
18837 {
18838 test -f "$1" && test -x "$1"
18839 } # as_fn_executable_p
18840 as_test_x='test -x'
18841 as_executable_p=as_fn_executable_p
18842
18843 # Sed expression to map a string onto a valid CPP name.
18844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18845
18846 # Sed expression to map a string onto a valid variable name.
18847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18848
18849
18850 exec 6>&1
18851 ## ----------------------------------- ##
18852 ## Main body of $CONFIG_STATUS script. ##
18853 ## ----------------------------------- ##
18854 _ASEOF
18855 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18856
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858 # Save the log message, to keep $0 and so on meaningful, and to
18859 # report actual input values of CONFIG_FILES etc. instead of their
18860 # values after options handling.
18861 ac_log="
18862 This file was extended by $as_me, which was
18863 generated by GNU Autoconf 2.69. Invocation command line was
18864
18865 CONFIG_FILES = $CONFIG_FILES
18866 CONFIG_HEADERS = $CONFIG_HEADERS
18867 CONFIG_LINKS = $CONFIG_LINKS
18868 CONFIG_COMMANDS = $CONFIG_COMMANDS
18869 $ $0 $@
18870
18871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18872 "
18873
18874 _ACEOF
18875
18876 case $ac_config_files in *"
18877 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18878 esac
18879
18880
18881
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 # Files that config.status was made for.
18884 config_files="$ac_config_files"
18885
18886 _ACEOF
18887
18888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18889 ac_cs_usage="\
18890 \`$as_me' instantiates files and other configuration actions
18891 from templates according to the current configuration. Unless the files
18892 and actions are specified as TAGs, all are instantiated by default.
18893
18894 Usage: $0 [OPTION]... [TAG]...
18895
18896 -h, --help print this help, then exit
18897 -V, --version print version number and configuration settings, then exit
18898 --config print configuration, then exit
18899 -q, --quiet, --silent
18900 do not print progress messages
18901 -d, --debug don't remove temporary files
18902 --recheck update $as_me by reconfiguring in the same conditions
18903 --file=FILE[:TEMPLATE]
18904 instantiate the configuration file FILE
18905
18906 Configuration files:
18907 $config_files
18908
18909 Report bugs to the package provider."
18910
18911 _ACEOF
18912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18914 ac_cs_version="\\
18915 config.status
18916 configured by $0, generated by GNU Autoconf 2.69,
18917 with options \\"\$ac_cs_config\\"
18918
18919 Copyright (C) 2012 Free Software Foundation, Inc.
18920 This config.status script is free software; the Free Software Foundation
18921 gives unlimited permission to copy, distribute and modify it."
18922
18923 ac_pwd='$ac_pwd'
18924 srcdir='$srcdir'
18925 INSTALL='$INSTALL'
18926 AWK='$AWK'
18927 test -n "\$AWK" || AWK=awk
18928 _ACEOF
18929
18930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18931 # The default lists apply if the user does not specify any file.
18932 ac_need_defaults=:
18933 while test $# != 0
18934 do
18935 case $1 in
18936 --*=?*)
18937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18939 ac_shift=:
18940 ;;
18941 --*=)
18942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18943 ac_optarg=
18944 ac_shift=:
18945 ;;
18946 *)
18947 ac_option=$1
18948 ac_optarg=$2
18949 ac_shift=shift
18950 ;;
18951 esac
18952
18953 case $ac_option in
18954 # Handling of the options.
18955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18956 ac_cs_recheck=: ;;
18957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18958 $as_echo "$ac_cs_version"; exit ;;
18959 --config | --confi | --conf | --con | --co | --c )
18960 $as_echo "$ac_cs_config"; exit ;;
18961 --debug | --debu | --deb | --de | --d | -d )
18962 debug=: ;;
18963 --file | --fil | --fi | --f )
18964 $ac_shift
18965 case $ac_optarg in
18966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18967 '') as_fn_error $? "missing file argument" ;;
18968 esac
18969 as_fn_append CONFIG_FILES " '$ac_optarg'"
18970 ac_need_defaults=false;;
18971 --he | --h | --help | --hel | -h )
18972 $as_echo "$ac_cs_usage"; exit ;;
18973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18974 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18975 ac_cs_silent=: ;;
18976
18977 # This is an error.
18978 -*) as_fn_error $? "unrecognized option: \`$1'
18979 Try \`$0 --help' for more information." ;;
18980
18981 *) as_fn_append ac_config_targets " $1"
18982 ac_need_defaults=false ;;
18983
18984 esac
18985 shift
18986 done
18987
18988 ac_configure_extra_args=
18989
18990 if $ac_cs_silent; then
18991 exec 6>/dev/null
18992 ac_configure_extra_args="$ac_configure_extra_args --silent"
18993 fi
18994
18995 _ACEOF
18996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18997 if \$ac_cs_recheck; then
18998 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18999 shift
19000 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19001 CONFIG_SHELL='$SHELL'
19002 export CONFIG_SHELL
19003 exec "\$@"
19004 fi
19005
19006 _ACEOF
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008 exec 5>>config.log
19009 {
19010 echo
19011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19012 ## Running $as_me. ##
19013 _ASBOX
19014 $as_echo "$ac_log"
19015 } >&5
19016
19017 _ACEOF
19018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19019 #
19020 # INIT-COMMANDS
19021 #
19022 extrasub_build="$extrasub_build"
19023 extrasub_host="$extrasub_host"
19024 extrasub_target="$extrasub_target"
19025
19026 _ACEOF
19027
19028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19029
19030 # Handling of arguments.
19031 for ac_config_target in $ac_config_targets
19032 do
19033 case $ac_config_target in
19034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19035
19036 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19037 esac
19038 done
19039
19040
19041 # If the user did not use the arguments to specify the items to instantiate,
19042 # then the envvar interface is used. Set only those that are not.
19043 # We use the long form for the default assignment because of an extremely
19044 # bizarre bug on SunOS 4.1.3.
19045 if $ac_need_defaults; then
19046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19047 fi
19048
19049 # Have a temporary directory for convenience. Make it in the build tree
19050 # simply because there is no reason against having it here, and in addition,
19051 # creating and moving files from /tmp can sometimes cause problems.
19052 # Hook for its removal unless debugging.
19053 # Note that there is a small window in which the directory will not be cleaned:
19054 # after its creation but before its name has been assigned to `$tmp'.
19055 $debug ||
19056 {
19057 tmp= ac_tmp=
19058 trap 'exit_status=$?
19059 : "${ac_tmp:=$tmp}"
19060 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19061 ' 0
19062 trap 'as_fn_exit 1' 1 2 13 15
19063 }
19064 # Create a (secure) tmp directory for tmp files.
19065
19066 {
19067 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19068 test -d "$tmp"
19069 } ||
19070 {
19071 tmp=./conf$$-$RANDOM
19072 (umask 077 && mkdir "$tmp")
19073 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19074 ac_tmp=$tmp
19075
19076 # Set up the scripts for CONFIG_FILES section.
19077 # No need to generate them if there are no CONFIG_FILES.
19078 # This happens for instance with `./config.status config.h'.
19079 if test -n "$CONFIG_FILES"; then
19080
19081 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19082 ac_cs_awk_getline=:
19083 ac_cs_awk_pipe_init=
19084 ac_cs_awk_read_file='
19085 while ((getline aline < (F[key])) > 0)
19086 print(aline)
19087 close(F[key])'
19088 ac_cs_awk_pipe_fini=
19089 else
19090 ac_cs_awk_getline=false
19091 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19092 ac_cs_awk_read_file='
19093 print "|#_!!_#|"
19094 print "cat " F[key] " &&"
19095 '$ac_cs_awk_pipe_init
19096 # The final `:' finishes the AND list.
19097 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19098 fi
19099 ac_cr=`echo X | tr X '\015'`
19100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19101 # But we know of no other shell where ac_cr would be empty at this
19102 # point, so we can use a bashism as a fallback.
19103 if test "x$ac_cr" = x; then
19104 eval ac_cr=\$\'\\r\'
19105 fi
19106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19108 ac_cs_awk_cr='\\r'
19109 else
19110 ac_cs_awk_cr=$ac_cr
19111 fi
19112
19113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19114 _ACEOF
19115
19116 # Create commands to substitute file output variables.
19117 {
19118 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19119 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19120 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19121 echo "_ACAWK" &&
19122 echo "_ACEOF"
19123 } >conf$$files.sh &&
19124 . ./conf$$files.sh ||
19125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19126 rm -f conf$$files.sh
19127
19128 {
19129 echo "cat >conf$$subs.awk <<_ACEOF" &&
19130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19131 echo "_ACEOF"
19132 } >conf$$subs.sh ||
19133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19135 ac_delim='%!_!# '
19136 for ac_last_try in false false false false false :; do
19137 . ./conf$$subs.sh ||
19138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19139
19140 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19141 if test $ac_delim_n = $ac_delim_num; then
19142 break
19143 elif $ac_last_try; then
19144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19145 else
19146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19147 fi
19148 done
19149 rm -f conf$$subs.sh
19150
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19153 _ACEOF
19154 sed -n '
19155 h
19156 s/^/S["/; s/!.*/"]=/
19157 p
19158 g
19159 s/^[^!]*!//
19160 :repl
19161 t repl
19162 s/'"$ac_delim"'$//
19163 t delim
19164 :nl
19165 h
19166 s/\(.\{148\}\)..*/\1/
19167 t more1
19168 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19169 p
19170 n
19171 b repl
19172 :more1
19173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19174 p
19175 g
19176 s/.\{148\}//
19177 t nl
19178 :delim
19179 h
19180 s/\(.\{148\}\)..*/\1/
19181 t more2
19182 s/["\\]/\\&/g; s/^/"/; s/$/"/
19183 p
19184 b
19185 :more2
19186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19187 p
19188 g
19189 s/.\{148\}//
19190 t delim
19191 ' <conf$$subs.awk | sed '
19192 /^[^""]/{
19193 N
19194 s/\n//
19195 }
19196 ' >>$CONFIG_STATUS || ac_write_fail=1
19197 rm -f conf$$subs.awk
19198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19199 _ACAWK
19200 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19201 for (key in S) S_is_set[key] = 1
19202 FS = "\a"
19203 \$ac_cs_awk_pipe_init
19204 }
19205 {
19206 line = $ 0
19207 nfields = split(line, field, "@")
19208 substed = 0
19209 len = length(field[1])
19210 for (i = 2; i < nfields; i++) {
19211 key = field[i]
19212 keylen = length(key)
19213 if (S_is_set[key]) {
19214 value = S[key]
19215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19216 len += length(value) + length(field[++i])
19217 substed = 1
19218 } else
19219 len += 1 + keylen
19220 }
19221 if (nfields == 3 && !substed) {
19222 key = field[2]
19223 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19224 \$ac_cs_awk_read_file
19225 next
19226 }
19227 }
19228 print line
19229 }
19230 \$ac_cs_awk_pipe_fini
19231 _ACAWK
19232 _ACEOF
19233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19234 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19235 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19236 else
19237 cat
19238 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19239 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19240 _ACEOF
19241
19242 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19243 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19244 # trailing colons and then remove the whole line if VPATH becomes empty
19245 # (actually we leave an empty line to preserve line numbers).
19246 if test "x$srcdir" = x.; then
19247 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19248 h
19249 s///
19250 s/^/:/
19251 s/[ ]*$/:/
19252 s/:\$(srcdir):/:/g
19253 s/:\${srcdir}:/:/g
19254 s/:@srcdir@:/:/g
19255 s/^:*//
19256 s/:*$//
19257 x
19258 s/\(=[ ]*\).*/\1/
19259 G
19260 s/\n//
19261 s/^[^=]*=[ ]*$//
19262 }'
19263 fi
19264
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266 fi # test -n "$CONFIG_FILES"
19267
19268
19269 eval set X " :F $CONFIG_FILES "
19270 shift
19271 for ac_tag
19272 do
19273 case $ac_tag in
19274 :[FHLC]) ac_mode=$ac_tag; continue;;
19275 esac
19276 case $ac_mode$ac_tag in
19277 :[FHL]*:*);;
19278 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19279 :[FH]-) ac_tag=-:-;;
19280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19281 esac
19282 ac_save_IFS=$IFS
19283 IFS=:
19284 set x $ac_tag
19285 IFS=$ac_save_IFS
19286 shift
19287 ac_file=$1
19288 shift
19289
19290 case $ac_mode in
19291 :L) ac_source=$1;;
19292 :[FH])
19293 ac_file_inputs=
19294 for ac_f
19295 do
19296 case $ac_f in
19297 -) ac_f="$ac_tmp/stdin";;
19298 *) # Look for the file first in the build tree, then in the source tree
19299 # (if the path is not absolute). The absolute path cannot be DOS-style,
19300 # because $ac_f cannot contain `:'.
19301 test -f "$ac_f" ||
19302 case $ac_f in
19303 [\\/$]*) false;;
19304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19305 esac ||
19306 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19307 esac
19308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19309 as_fn_append ac_file_inputs " '$ac_f'"
19310 done
19311
19312 # Let's still pretend it is `configure' which instantiates (i.e., don't
19313 # use $as_me), people would be surprised to read:
19314 # /* config.h. Generated by config.status. */
19315 configure_input='Generated from '`
19316 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19317 `' by configure.'
19318 if test x"$ac_file" != x-; then
19319 configure_input="$ac_file. $configure_input"
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19321 $as_echo "$as_me: creating $ac_file" >&6;}
19322 fi
19323 # Neutralize special characters interpreted by sed in replacement strings.
19324 case $configure_input in #(
19325 *\&* | *\|* | *\\* )
19326 ac_sed_conf_input=`$as_echo "$configure_input" |
19327 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19328 *) ac_sed_conf_input=$configure_input;;
19329 esac
19330
19331 case $ac_tag in
19332 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19334 esac
19335 ;;
19336 esac
19337
19338 ac_dir=`$as_dirname -- "$ac_file" ||
19339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340 X"$ac_file" : 'X\(//\)[^/]' \| \
19341 X"$ac_file" : 'X\(//\)$' \| \
19342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19343 $as_echo X"$ac_file" |
19344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19345 s//\1/
19346 q
19347 }
19348 /^X\(\/\/\)[^/].*/{
19349 s//\1/
19350 q
19351 }
19352 /^X\(\/\/\)$/{
19353 s//\1/
19354 q
19355 }
19356 /^X\(\/\).*/{
19357 s//\1/
19358 q
19359 }
19360 s/.*/./; q'`
19361 as_dir="$ac_dir"; as_fn_mkdir_p
19362 ac_builddir=.
19363
19364 case "$ac_dir" in
19365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19366 *)
19367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19368 # A ".." for each directory in $ac_dir_suffix.
19369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19370 case $ac_top_builddir_sub in
19371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19373 esac ;;
19374 esac
19375 ac_abs_top_builddir=$ac_pwd
19376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19377 # for backward compatibility:
19378 ac_top_builddir=$ac_top_build_prefix
19379
19380 case $srcdir in
19381 .) # We are building in place.
19382 ac_srcdir=.
19383 ac_top_srcdir=$ac_top_builddir_sub
19384 ac_abs_top_srcdir=$ac_pwd ;;
19385 [\\/]* | ?:[\\/]* ) # Absolute name.
19386 ac_srcdir=$srcdir$ac_dir_suffix;
19387 ac_top_srcdir=$srcdir
19388 ac_abs_top_srcdir=$srcdir ;;
19389 *) # Relative name.
19390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19391 ac_top_srcdir=$ac_top_build_prefix$srcdir
19392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19393 esac
19394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19395
19396
19397 case $ac_mode in
19398 :F)
19399 #
19400 # CONFIG_FILE
19401 #
19402
19403 case $INSTALL in
19404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19406 esac
19407 _ACEOF
19408
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 # If the template does not know about datarootdir, expand it.
19411 # FIXME: This hack should be removed a few years after 2.60.
19412 ac_datarootdir_hack=; ac_datarootdir_seen=
19413 ac_sed_dataroot='
19414 /datarootdir/ {
19415 p
19416 q
19417 }
19418 /@datadir@/p
19419 /@docdir@/p
19420 /@infodir@/p
19421 /@localedir@/p
19422 /@mandir@/p'
19423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19424 *datarootdir*) ac_datarootdir_seen=yes;;
19425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19428 _ACEOF
19429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19430 ac_datarootdir_hack='
19431 s&@datadir@&$datadir&g
19432 s&@docdir@&$docdir&g
19433 s&@infodir@&$infodir&g
19434 s&@localedir@&$localedir&g
19435 s&@mandir@&$mandir&g
19436 s&\\\${datarootdir}&$datarootdir&g' ;;
19437 esac
19438 _ACEOF
19439
19440 # Neutralize VPATH when `$srcdir' = `.'.
19441 # Shell code in configure.ac might set extrasub.
19442 # FIXME: do we really want to maintain this feature?
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 ac_sed_extra="$ac_vpsub
19445 $extrasub
19446 _ACEOF
19447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19448 :t
19449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19450 s|@configure_input@|$ac_sed_conf_input|;t t
19451 s&@top_builddir@&$ac_top_builddir_sub&;t t
19452 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19453 s&@srcdir@&$ac_srcdir&;t t
19454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19455 s&@top_srcdir@&$ac_top_srcdir&;t t
19456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19457 s&@builddir@&$ac_builddir&;t t
19458 s&@abs_builddir@&$ac_abs_builddir&;t t
19459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19460 s&@INSTALL@&$ac_INSTALL&;t t
19461 $ac_datarootdir_hack
19462 "
19463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19464 if $ac_cs_awk_getline; then
19465 $AWK -f "$ac_tmp/subs.awk"
19466 else
19467 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19468 fi \
19469 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19470
19471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19472 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19474 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19476 which seems to be undefined. Please make sure it is defined" >&5
19477 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19478 which seems to be undefined. Please make sure it is defined" >&2;}
19479
19480 rm -f "$ac_tmp/stdin"
19481 case $ac_file in
19482 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19483 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19484 esac \
19485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19486 ;;
19487
19488
19489
19490 esac
19491
19492
19493 case $ac_file$ac_mode in
19494 "Makefile":F) sed "$extrasub_build" Makefile |
19495 sed "$extrasub_host" |
19496 sed "$extrasub_target" > mf$$
19497 mv -f mf$$ Makefile ;;
19498
19499 esac
19500 done # for ac_tag
19501
19502
19503 as_fn_exit 0
19504 _ACEOF
19505 ac_clean_files=$ac_clean_files_save
19506
19507 test $ac_write_fail = 0 ||
19508 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19509
19510
19511 # configure is writing to config.log, and then calls config.status.
19512 # config.status does its own redirection, appending to config.log.
19513 # Unfortunately, on DOS this fails, as config.log is still kept open
19514 # by configure, so config.status won't be able to write to it; its
19515 # output is simply discarded. So we exec the FD to /dev/null,
19516 # effectively closing config.log, so it can be properly (re)opened and
19517 # appended to by config.status. When coming back to configure, we
19518 # need to make the FD available again.
19519 if test "$no_create" != yes; then
19520 ac_cs_success=:
19521 ac_config_status_args=
19522 test "$silent" = yes &&
19523 ac_config_status_args="$ac_config_status_args --quiet"
19524 exec 5>/dev/null
19525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19526 exec 5>>config.log
19527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19528 # would make configure fail if this is the last instruction.
19529 $ac_cs_success || as_fn_exit 1
19530 fi
19531 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19533 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19534 fi
19535
This page took 0.942324 seconds and 5 git commands to generate.