]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Daily bump.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 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 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
635 NM
636 LIPO
637 LD
638 DSYMUTIL
639 DLLTOOL
640 AS
641 AR
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
646 LEX
647 M4
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 PICFLAG
694 host_shared
695 gcc_host_pie
696 host_pie
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
699 islinc
700 isllibs
701 poststage1_ldflags
702 poststage1_libs
703 stage1_ldflags
704 stage1_libs
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
709 gmpinc
710 gmplibs
711 PGO_BUILD_LTO_CFLAGS
712 PGO_BUILD_USE_CFLAGS
713 PGO_BUILD_GEN_CFLAGS
714 HAVE_CXX11_FOR_BUILD
715 HAVE_CXX11
716 do_compare
717 CARGO
718 GDC
719 GNATMAKE
720 GNATBIND
721 ac_ct_CXX
722 CXXFLAGS
723 CXX
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 target_subdir
732 host_subdir
733 build_subdir
734 build_libsubdir
735 AWK
736 SED
737 LN_S
738 LN
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 target_noncanonical
751 host_noncanonical
752 build_noncanonical
753 build_os
754 build_vendor
755 build_cpu
756 build
757 TOPLEVEL_CONFIGURE_ARGUMENTS
758 target_alias
759 host_alias
760 build_alias
761 LIBS
762 ECHO_T
763 ECHO_N
764 ECHO_C
765 DEFS
766 mandir
767 localedir
768 libdir
769 psdir
770 pdfdir
771 dvidir
772 htmldir
773 infodir
774 docdir
775 oldincludedir
776 includedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files='serialization_dependencies
797 host_makefile_frag
798 target_makefile_frag
799 alphaieee_frag
800 ospace_frag'
801 ac_user_opts='
802 enable_option_checking
803 with_build_libsubdir
804 with_system_zlib
805 with_zstd
806 enable_as_accelerator_for
807 enable_offload_targets
808 enable_offload_defaulted
809 enable_gold
810 enable_ld
811 enable_gprofng
812 enable_compressed_debug_sections
813 enable_default_compressed_debug_sections_algorithm
814 enable_year2038
815 enable_libquadmath
816 enable_libquadmath_support
817 enable_libada
818 enable_libgm2
819 enable_libssp
820 enable_libstdcxx
821 enable_bootstrap
822 enable_pgo_build
823 with_mpc
824 with_mpc_include
825 with_mpc_lib
826 with_mpfr
827 with_mpfr_include
828 with_mpfr_lib
829 with_gmp
830 with_gmp_include
831 with_gmp_lib
832 with_stage1_libs
833 with_static_standard_libraries
834 with_stage1_ldflags
835 with_boot_libs
836 with_boot_ldflags
837 with_isl
838 with_isl_include
839 with_isl_lib
840 enable_isl_version_check
841 enable_lto
842 enable_linker_plugin_configure_flags
843 enable_linker_plugin_flags
844 enable_host_pie
845 enable_host_shared
846 enable_stage1_languages
847 enable_objc_gc
848 with_target_bdw_gc
849 with_target_bdw_gc_include
850 with_target_bdw_gc_lib
851 with_gcc_major_version_only
852 with_build_sysroot
853 with_debug_prefix_map
854 with_build_config
855 enable_vtable_verify
856 enable_serial_configure
857 with_build_time_tools
858 enable_maintainer_mode
859 enable_stage1_checking
860 enable_werror
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CXX
871 CXXFLAGS
872 CCC
873 build_configargs
874 host_configargs
875 target_configargs
876 AR
877 AS
878 DLLTOOL
879 DSYMUTIL
880 LD
881 LIPO
882 NM
883 RANLIB
884 STRIP
885 WINDRES
886 WINDMC
887 OBJCOPY
888 OBJDUMP
889 OTOOL
890 READELF
891 CC_FOR_TARGET
892 CXX_FOR_TARGET
893 GCC_FOR_TARGET
894 GFORTRAN_FOR_TARGET
895 GOC_FOR_TARGET
896 GDC_FOR_TARGET
897 GM2_FOR_TARGET
898 AR_FOR_TARGET
899 AS_FOR_TARGET
900 DLLTOOL_FOR_TARGET
901 DSYMUTIL_FOR_TARGET
902 LD_FOR_TARGET
903 LIPO_FOR_TARGET
904 NM_FOR_TARGET
905 OBJCOPY_FOR_TARGET
906 OBJDUMP_FOR_TARGET
907 OTOOL_FOR_TARGET
908 RANLIB_FOR_TARGET
909 READELF_FOR_TARGET
910 STRIP_FOR_TARGET
911 WINDRES_FOR_TARGET
912 WINDMC_FOR_TARGET'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 ac_unrecognized_opts=
919 ac_unrecognized_sep=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1370 fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1417 fi
1418 else
1419 ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 case $srcdir in
1440 *" "*)
1441 as_fn_error $? "path to source, $srcdir, contains spaces"
1442 ;;
1443 esac
1444 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1445
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures this package to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1514
1515 cat <<\_ACEOF
1516
1517 Program names:
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521
1522 System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530
1531 cat <<\_ACEOF
1532
1533 Optional Features:
1534 --disable-option-checking ignore unrecognized --enable/--with options
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-as-accelerator-for=ARG
1538 build as offload target compiler. Specify offload
1539 host triple by ARG
1540 --enable-offload-targets=LIST
1541 enable offloading to devices from comma-separated
1542 LIST of TARGET[=DIR]. Use optional path to find
1543 offload target compiler during the build
1544 --enable-offload-defaulted
1545 If enabled, configured but not installed offload compilers and
1546 libgomp plugins are silently ignored. Useful for distribution
1547 compilers where those are in separate optional packages.
1548
1549 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1550 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1551 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1552 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1553 Enable compressed debug sections for gas, gold or ld
1554 by default
1555 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1556 Default compression algorithm for
1557 --enable-compressed-debug-sections.
1558 --enable-year2038 enable support for timestamps past the year 2038
1559 --disable-libquadmath do not build libquadmath directory
1560 --disable-libquadmath-support
1561 disable libquadmath support for Fortran
1562 --enable-libada build libada directory
1563 --enable-libgm2 build libgm2 directory
1564 --enable-libssp build libssp directory
1565 --disable-libstdcxx do not build libstdc++-v3 directory
1566 --enable-bootstrap enable bootstrapping [yes if native build]
1567 --enable-pgo-build[=lto]
1568 enable the PGO build
1569 --disable-isl-version-check
1570 disable check for isl version
1571 --enable-lto enable link time optimization support
1572 --enable-linker-plugin-configure-flags=FLAGS
1573 additional flags for configuring linker plugins
1574 [none]
1575 --enable-linker-plugin-flags=FLAGS
1576 additional flags for configuring and building linker
1577 plugins [none]
1578 --enable-host-pie build position independent host executables
1579 --enable-host-shared build host code as shared libraries
1580 --enable-stage1-languages[=all]
1581 choose additional languages to build during stage1.
1582 Mostly useful for compiler development
1583 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1584 Objective-C runtime
1585 --enable-vtable-verify Enable vtable verification feature
1586 --enable-serial-[{host,target,build}-]configure
1587 force sequential configuration of sub-packages for
1588 the host, target or build machine, or all
1589 sub-packages
1590 --enable-maintainer-mode
1591 enable make rules and dependencies not useful (and
1592 sometimes confusing) to the casual installer
1593 --enable-stage1-checking[=all]
1594 choose additional checking for stage1 of the
1595 compiler
1596 --enable-werror enable -Werror in bootstrap stage2 and later
1597
1598 Optional Packages:
1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1601 --with-build-libsubdir=DIR Directory where to find libraries for build system
1602 --with-system-zlib use installed libz
1603 --with-zstd Support zstd compressed debug sections
1604 (default=auto)
1605 --with-mpc=PATH specify prefix directory for installed MPC package.
1606 Equivalent to --with-mpc-include=PATH/include plus
1607 --with-mpc-lib=PATH/lib
1608 --with-mpc-include=PATH specify directory for installed MPC include files
1609 --with-mpc-lib=PATH specify directory for the installed MPC library
1610 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1611 Equivalent to --with-mpfr-include=PATH/include plus
1612 --with-mpfr-lib=PATH/lib
1613 --with-mpfr-include=PATH
1614 specify directory for installed MPFR include files
1615 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1616 --with-gmp=PATH specify prefix directory for the installed GMP
1617 package. Equivalent to
1618 --with-gmp-include=PATH/include plus
1619 --with-gmp-lib=PATH/lib
1620 --with-gmp-include=PATH specify directory for installed GMP include files
1621 --with-gmp-lib=PATH specify directory for the installed GMP library
1622 --with-stage1-libs=LIBS libraries for stage1
1623 --with-static-standard-libraries
1624 use -static-libstdc++ and -static-libgcc
1625 (default=auto)
1626 --with-stage1-ldflags=FLAGS
1627 linker flags for stage1
1628 --with-boot-libs=LIBS libraries for stage2 and later
1629 --with-boot-ldflags=FLAGS
1630 linker flags for stage2 and later
1631 --with-isl=PATH Specify prefix directory for the installed isl
1632 package. Equivalent to
1633 --with-isl-include=PATH/include plus
1634 --with-isl-lib=PATH/lib
1635 --with-isl-include=PATH Specify directory for installed isl include files
1636 --with-isl-lib=PATH Specify the directory for the installed isl library
1637 --with-target-bdw-gc=PATHLIST
1638 specify prefix directory for installed bdw-gc
1639 package. Equivalent to
1640 --with-target-bdw-gc-include=PATH/include plus
1641 --with-target-bdw-gc-lib=PATH/lib
1642 --with-target-bdw-gc-include=PATHLIST
1643 specify directories for installed bdw-gc include
1644 files
1645 --with-target-bdw-gc-lib=PATHLIST
1646 specify directories for installed bdw-gc library
1647 --with-gcc-major-version-only
1648 use only GCC major number in filesystem paths
1649 --with-build-sysroot=SYSROOT
1650 use sysroot as the system root during the build
1651 --with-debug-prefix-map='A=B C=D ...'
1652 map A to B, C to D ... in debug information
1653 --with-build-config='NAME NAME2...'
1654 use config/NAME.mk build configuration
1655 --with-build-time-tools=PATH
1656 use given path to find target tools during the build
1657
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1666 CXX C++ compiler command
1667 CXXFLAGS C++ compiler flags
1668 build_configargs
1669 additional configure arguments for build directories
1670 host_configargs
1671 additional configure arguments for host directories
1672 target_configargs
1673 additional configure arguments for target directories
1674 AR AR for the host
1675 AS AS for the host
1676 DLLTOOL DLLTOOL for the host
1677 DSYMUTIL DSYMUTIL for the host
1678 LD LD for the host
1679 LIPO LIPO for the host
1680 NM NM for the host
1681 RANLIB RANLIB for the host
1682 STRIP STRIP for the host
1683 WINDRES WINDRES for the host
1684 WINDMC WINDMC for the host
1685 OBJCOPY OBJCOPY for the host
1686 OBJDUMP OBJDUMP for the host
1687 OTOOL OTOOL for the host
1688 READELF READELF for the host
1689 CC_FOR_TARGET
1690 CC for the target
1691 CXX_FOR_TARGET
1692 CXX for the target
1693 GCC_FOR_TARGET
1694 GCC for the target
1695 GFORTRAN_FOR_TARGET
1696 GFORTRAN for the target
1697 GOC_FOR_TARGET
1698 GOC for the target
1699 GDC_FOR_TARGET
1700 GDC for the target
1701 GM2_FOR_TARGET
1702 GM2 for the target
1703 AR_FOR_TARGET
1704 AR for the target
1705 AS_FOR_TARGET
1706 AS for the target
1707 DLLTOOL_FOR_TARGET
1708 DLLTOOL for the target
1709 DSYMUTIL_FOR_TARGET
1710 DSYMUTIL for the target
1711 LD_FOR_TARGET
1712 LD for the target
1713 LIPO_FOR_TARGET
1714 LIPO for the target
1715 NM_FOR_TARGET
1716 NM for the target
1717 OBJCOPY_FOR_TARGET
1718 OBJCOPY for the target
1719 OBJDUMP_FOR_TARGET
1720 OBJDUMP for the target
1721 OTOOL_FOR_TARGET
1722 OTOOL for the target
1723 RANLIB_FOR_TARGET
1724 RANLIB for the target
1725 READELF_FOR_TARGET
1726 READELF for the target
1727 STRIP_FOR_TARGET
1728 STRIP for the target
1729 WINDRES_FOR_TARGET
1730 WINDRES for the target
1731 WINDMC_FOR_TARGET
1732 WINDMC for the target
1733
1734 Use these variables to override the choices made by `configure' or to help
1735 it to find libraries and programs with nonstandard names/locations.
1736
1737 Report bugs to the package provider.
1738 _ACEOF
1739 ac_status=$?
1740 fi
1741
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1747 continue
1748 ac_builddir=.
1749
1750 case "$ac_dir" in
1751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *)
1753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1759 esac ;;
1760 esac
1761 ac_abs_top_builddir=$ac_pwd
1762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir=$ac_top_build_prefix
1765
1766 case $srcdir in
1767 .) # We are building in place.
1768 ac_srcdir=.
1769 ac_top_srcdir=$ac_top_builddir_sub
1770 ac_abs_top_srcdir=$ac_pwd ;;
1771 [\\/]* | ?:[\\/]* ) # Absolute name.
1772 ac_srcdir=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir=$srcdir
1774 ac_abs_top_srcdir=$srcdir ;;
1775 *) # Relative name.
1776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1779 esac
1780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781
1782 cd "$ac_dir" || { ac_status=$?; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1790 else
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1792 fi || ac_status=$?
1793 cd "$ac_pwd" || { ac_status=$?; break; }
1794 done
1795 fi
1796
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1799 cat <<\_ACEOF
1800 configure
1801 generated by GNU Autoconf 2.69
1802
1803 Copyright (C) 2012 Free Software Foundation, Inc.
1804 This configure script is free software; the Free Software Foundation
1805 gives unlimited permission to copy, distribute and modify it.
1806 _ACEOF
1807 exit
1808 fi
1809
1810 ## ------------------------ ##
1811 ## Autoconf initialization. ##
1812 ## ------------------------ ##
1813
1814 # ac_fn_c_try_compile LINENO
1815 # --------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_compile ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext
1821 if { { ac_try="$ac_compile"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_compile
1851
1852 # ac_fn_cxx_try_compile LINENO
1853 # ----------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_compile ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext
1859 if { { ac_try="$ac_compile"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_compile") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1872 fi
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest.$ac_objext; then :
1878 ac_retval=0
1879 else
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1
1884 fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888 } # ac_fn_cxx_try_compile
1889
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1918 }; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1933
1934 } # ac_fn_cxx_try_link
1935
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_link ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest$ac_exeext
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1
1971 fi
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_c_try_link
1981 cat >config.log <<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1984
1985 It was created by $as_me, which was
1986 generated by GNU Autoconf 2.69. Invocation command line was
1987
1988 $ $0 $@
1989
1990 _ACEOF
1991 exec 5>>config.log
1992 {
1993 cat <<_ASUNAME
1994 ## --------- ##
1995 ## Platform. ##
1996 ## --------- ##
1997
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014
2015 _ASUNAME
2016
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 $as_echo "PATH: $as_dir"
2023 done
2024 IFS=$as_save_IFS
2025
2026 } >&5
2027
2028 cat >&5 <<_ACEOF
2029
2030
2031 ## ----------- ##
2032 ## Core tests. ##
2033 ## ----------- ##
2034
2035 _ACEOF
2036
2037
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2043 ac_configure_args=
2044 ac_configure_args0=
2045 ac_configure_args1=
2046 ac_must_keep_next=false
2047 for ac_pass in 1 2
2048 do
2049 for ac_arg
2050 do
2051 case $ac_arg in
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2055 continue ;;
2056 *\'*)
2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2058 esac
2059 case $ac_pass in
2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 2)
2062 as_fn_append ac_configure_args1 " '$ac_arg'"
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2065 else
2066 case $ac_arg in
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2073 esac
2074 ;;
2075 -* ) ac_must_keep_next=true ;;
2076 esac
2077 fi
2078 as_fn_append ac_configure_args " '$ac_arg'"
2079 ;;
2080 esac
2081 done
2082 done
2083 { ac_configure_args0=; unset ac_configure_args0;}
2084 { ac_configure_args1=; unset ac_configure_args1;}
2085
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2093 {
2094 echo
2095
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2099 echo
2100 # The following way of writing the cache mishandles newlines in values,
2101 (
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in #(
2105 *${as_nl}*)
2106 case $ac_var in #(
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 esac
2110 case $ac_var in #(
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2114 esac ;;
2115 esac
2116 done
2117 (set) 2>&1 |
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2120 sed -n \
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 ;; #(
2124 *)
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 ;;
2127 esac |
2128 sort
2129 )
2130 echo
2131
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2135 echo
2136 for ac_var in $ac_subst_vars
2137 do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 esac
2142 $as_echo "$ac_var='\''$ac_val'\''"
2143 done | sort
2144 echo
2145
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2150 echo
2151 for ac_var in $ac_subst_files
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160 fi
2161
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2164 ## confdefs.h. ##
2165 ## ----------- ##"
2166 echo
2167 cat confdefs.h
2168 echo
2169 fi
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2177 ' 0
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180 done
2181 ac_signal=0
2182
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2185
2186 $as_echo "/* confdefs.h */" > confdefs.h
2187
2188 # Predefined preprocessor variables.
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2212 _ACEOF
2213
2214
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2217 ac_site_file1=NONE
2218 ac_site_file2=NONE
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2225 esac
2226 elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229 else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232 fi
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 do
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file" \
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5; }
2245 fi
2246 done
2247
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 case $cache_file in
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2257 esac
2258 fi
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2262 >$cache_file
2263 fi
2264
2265 # Check that the precious variables saved in the cache have kept the same
2266 # value.
2267 ac_cache_corrupted=false
2268 for ac_var in $ac_precious_vars; do
2269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2270 eval ac_new_set=\$ac_env_${ac_var}_set
2271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2272 eval ac_new_val=\$ac_env_${ac_var}_value
2273 case $ac_old_set,$ac_new_set in
2274 set,)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2278 ,set)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281 ac_cache_corrupted=: ;;
2282 ,);;
2283 *)
2284 if test "x$ac_old_val" != "x$ac_new_val"; then
2285 # differences in whitespace do not lead to failure.
2286 ac_old_val_w=`echo x $ac_old_val`
2287 ac_new_val_w=`echo x $ac_new_val`
2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291 ac_cache_corrupted=:
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295 eval $ac_var=\$ac_old_val
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2301 fi;;
2302 esac
2303 # Pass precious variables to config.status.
2304 if test "$ac_new_set" = set; then
2305 case $ac_new_val in
2306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 *) ac_arg=$ac_var=$ac_new_val ;;
2308 esac
2309 case " $ac_configure_args " in
2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2312 esac
2313 fi
2314 done
2315 if $ac_cache_corrupted; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2320 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 fi
2322 ## -------------------- ##
2323 ## Main body of script. ##
2324 ## -------------------- ##
2325
2326 ac_ext=c
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331
2332
2333
2334
2335
2336
2337
2338
2339 progname=$0
2340 # if PWD already has a value, it is probably wrong.
2341 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2342
2343 # Export original configure arguments for use by sub-configures.
2344 # Quote arguments with shell meta charatcers.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS=
2346 set -- "$progname" "$@"
2347 for ac_arg
2348 do
2349 case "$ac_arg" in
2350 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2351 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2352 # if the argument is of the form -foo=baz, quote the baz part only
2353 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2354 *) ;;
2355 esac
2356 # Add the quoted argument to the list.
2357 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2358 done
2359 if test "$silent" = yes; then
2360 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2361 fi
2362 # Remove the initial space we just introduced and, as these will be
2363 # expanded by make, quote '$'.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2365
2366
2367 # Find the build, host, and target systems.
2368 ac_aux_dir=
2369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/install-sh -c"
2373 break
2374 elif test -f "$ac_dir/install.sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install.sh -c"
2377 break
2378 elif test -f "$ac_dir/shtool"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/shtool install -c"
2381 break
2382 fi
2383 done
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386 fi
2387
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2395
2396
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 case ${build_alias} in
2436 "") build_noncanonical=${build} ;;
2437 *) build_noncanonical=${build_alias} ;;
2438 esac
2439
2440
2441
2442 case ${host_alias} in
2443 "") host_noncanonical=${build_noncanonical} ;;
2444 *) host_noncanonical=${host_alias} ;;
2445 esac
2446
2447
2448
2449 case ${target_alias} in
2450 "") target_noncanonical=${host_noncanonical} ;;
2451 *) target_noncanonical=${target_alias} ;;
2452 esac
2453
2454
2455
2456
2457 test "$host_noncanonical" = "$target_noncanonical" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2459 NONENONEs,x,x, &&
2460 program_transform_name=s,y,y,
2461
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 $as_echo_n "checking host system type... " >&6; }
2464 if ${ac_cv_host+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test "x$host_alias" = x; then
2468 ac_cv_host=$ac_cv_build
2469 else
2470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2472 fi
2473
2474 fi
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2477 case $ac_cv_host in
2478 *-*-*) ;;
2479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2480 esac
2481 host=$ac_cv_host
2482 ac_save_IFS=$IFS; IFS='-'
2483 set x $ac_cv_host
2484 shift
2485 host_cpu=$1
2486 host_vendor=$2
2487 shift; shift
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2490 host_os=$*
2491 IFS=$ac_save_IFS
2492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2496 $as_echo_n "checking target system type... " >&6; }
2497 if ${ac_cv_target+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test "x$target_alias" = x; then
2501 ac_cv_target=$ac_cv_host
2502 else
2503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2505 fi
2506
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2511 *-*-*) ;;
2512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2513 esac
2514 target=$ac_cv_target
2515 ac_save_IFS=$IFS; IFS='-'
2516 set x $ac_cv_target
2517 shift
2518 target_cpu=$1
2519 target_vendor=$2
2520 shift; shift
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2523 target_os=$*
2524 IFS=$ac_save_IFS
2525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2526
2527
2528 # The aliases save the names the user supplied, while $host etc.
2529 # will get canonicalized.
2530 test -n "$target_alias" &&
2531 test "$program_prefix$program_suffix$program_transform_name" = \
2532 NONENONEs,x,x, &&
2533 program_prefix=${target_alias}-
2534
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2544
2545
2546
2547 # Get 'install' or 'install-sh' and its variants.
2548 # Find a good install program. We prefer a C program (faster),
2549 # so one script is as good as another. But avoid the broken or
2550 # incompatible versions:
2551 # SysV /etc/install, /usr/sbin/install
2552 # SunOS /usr/etc/install
2553 # IRIX /sbin/install
2554 # AIX /bin/install
2555 # AmigaOS /C/install, which installs bootblocks on floppy discs
2556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2559 # OS/2's system install, which has a completely different semantic
2560 # ./install, which can be erroneously created by make from ./install.sh.
2561 # Reject install programs that cannot install multiple files.
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2564 if test -z "$INSTALL"; then
2565 if ${ac_cv_path_install+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 # Account for people who put trailing slashes in PATH elements.
2574 case $as_dir/ in #((
2575 ./ | .// | /[cC]/* | \
2576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2577 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2578 /usr/ucb/* ) ;;
2579 *)
2580 # OSF1 and SCO ODT 3.0 have their own names for install.
2581 # Don't use installbsd from OSF since it installs stuff as root
2582 # by default.
2583 for ac_prog in ginstall scoinst install; do
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2586 if test $ac_prog = install &&
2587 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588 # AIX install. It has an incompatible calling convention.
2589 :
2590 elif test $ac_prog = install &&
2591 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # program-specific install script used by HP pwplus--don't use.
2593 :
2594 else
2595 rm -rf conftest.one conftest.two conftest.dir
2596 echo one > conftest.one
2597 echo two > conftest.two
2598 mkdir conftest.dir
2599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2600 test -s conftest.one && test -s conftest.two &&
2601 test -s conftest.dir/conftest.one &&
2602 test -s conftest.dir/conftest.two
2603 then
2604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2605 break 3
2606 fi
2607 fi
2608 fi
2609 done
2610 done
2611 ;;
2612 esac
2613
2614 done
2615 IFS=$as_save_IFS
2616
2617 rm -rf conftest.one conftest.two conftest.dir
2618
2619 fi
2620 if test "${ac_cv_path_install+set}" = set; then
2621 INSTALL=$ac_cv_path_install
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for INSTALL within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 INSTALL=$ac_install_sh
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2631 $as_echo "$INSTALL" >&6; }
2632
2633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2634 # It thinks the first close brace ends the variable substitution.
2635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636
2637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638
2639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2642 $as_echo_n "checking whether ln works... " >&6; }
2643 if ${acx_cv_prog_LN+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 rm -f conftestdata_t
2647 echo >conftestdata_f
2648 if ln conftestdata_f conftestdata_t 2>/dev/null
2649 then
2650 acx_cv_prog_LN=ln
2651 else
2652 acx_cv_prog_LN=no
2653 fi
2654 rm -f conftestdata_f conftestdata_t
2655
2656 fi
2657 if test $acx_cv_prog_LN = no; then
2658 LN="cp"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2660 $as_echo "no, using $LN" >&6; }
2661 else
2662 LN="$acx_cv_prog_LN"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2665 fi
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2668 $as_echo_n "checking whether ln -s works... " >&6; }
2669 LN_S=$as_ln_s
2670 if test "$LN_S" = "ln -s"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2675 $as_echo "no, using $LN_S" >&6; }
2676 fi
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2679 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2680 if ${ac_cv_path_SED+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2684 for ac_i in 1 2 3 4 5 6 7; do
2685 ac_script="$ac_script$as_nl$ac_script"
2686 done
2687 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2688 { ac_script=; unset ac_script;}
2689 if test -z "$SED"; then
2690 ac_path_SED_found=false
2691 # Loop through the user's path and test for each of PROGNAME-LIST
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_prog in sed gsed; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2700 as_fn_executable_p "$ac_path_SED" || continue
2701 # Check for GNU ac_path_SED and select it if it is found.
2702 # Check for GNU $ac_path_SED
2703 case `"$ac_path_SED" --version 2>&1` in
2704 *GNU*)
2705 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2706 *)
2707 ac_count=0
2708 $as_echo_n 0123456789 >"conftest.in"
2709 while :
2710 do
2711 cat "conftest.in" "conftest.in" >"conftest.tmp"
2712 mv "conftest.tmp" "conftest.in"
2713 cp "conftest.in" "conftest.nl"
2714 $as_echo '' >> "conftest.nl"
2715 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2717 as_fn_arith $ac_count + 1 && ac_count=$as_val
2718 if test $ac_count -gt ${ac_path_SED_max-0}; then
2719 # Best one so far, save it but keep looking for a better one
2720 ac_cv_path_SED="$ac_path_SED"
2721 ac_path_SED_max=$ac_count
2722 fi
2723 # 10*(2^10) chars as input seems more than enough
2724 test $ac_count -gt 10 && break
2725 done
2726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2727 esac
2728
2729 $ac_path_SED_found && break 3
2730 done
2731 done
2732 done
2733 IFS=$as_save_IFS
2734 if test -z "$ac_cv_path_SED"; then
2735 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2736 fi
2737 else
2738 ac_cv_path_SED=$SED
2739 fi
2740
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2743 $as_echo "$ac_cv_path_SED" >&6; }
2744 SED="$ac_cv_path_SED"
2745 rm -f conftest.sed
2746
2747 for ac_prog in gawk mawk nawk awk
2748 do
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_AWK+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$AWK"; then
2757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_AWK="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 AWK=$ac_cv_prog_AWK
2777 if test -n "$AWK"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779 $as_echo "$AWK" >&6; }
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 test -n "$AWK" && break
2787 done
2788
2789
2790 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2791
2792 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2793 # a relative path.
2794 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2795 INSTALL="${srcpwd}/install-sh -c"
2796 fi
2797
2798 # Set srcdir to "." if that's what it is.
2799 # This is important for multilib support.
2800 pwd=`${PWDCMD-pwd}`
2801 if test "${pwd}" = "${srcpwd}" ; then
2802 srcdir=.
2803 fi
2804
2805 topsrcdir=$srcpwd
2806
2807 extra_host_args=
2808
2809 ### To add a new directory to the tree, first choose whether it is a target
2810 ### or a host dependent tool. Then put it into the appropriate list
2811 ### (library or tools, host or target), doing a dependency sort.
2812
2813 # Subdirs will be configured in the order listed in build_configdirs,
2814 # configdirs, or target_configdirs; see the serialization section below.
2815
2816 # Dependency sorting is only needed when *configuration* must be done in
2817 # a particular order. In all cases a dependency should be specified in
2818 # the Makefile, whether or not it's implicitly specified here.
2819
2820 # Double entries in build_configdirs, configdirs, or target_configdirs may
2821 # cause circular dependencies and break everything horribly.
2822
2823 # these library is used by various programs built for the build
2824 # environment
2825 #
2826 build_libs="build-libiberty build-libcpp"
2827
2828 # these tools are built for the build environment
2829 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2830
2831 # these libraries are used by various programs built for the host environment
2832 #f
2833 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2834
2835 # these tools are built for the host environment
2836 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2837 # know that we are building the simulator.
2838 # binutils, gas and ld appear in that order because it makes sense to run
2839 # "make check" in that particular order.
2840 # If --enable-gold is used, "gold" may replace "ld".
2841 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"
2842
2843 # these libraries are built for the target environment, and are built after
2844 # the host libraries and the host tools (which may be a cross compiler)
2845 # Note that libiberty is not a target library.
2846 target_libraries="target-libgcc \
2847 target-libbacktrace \
2848 target-libgloss \
2849 target-newlib \
2850 target-libgomp \
2851 target-libatomic \
2852 target-libitm \
2853 target-libstdc++-v3 \
2854 target-libsanitizer \
2855 target-libvtv \
2856 target-libssp \
2857 target-libquadmath \
2858 target-libgfortran \
2859 target-libffi \
2860 target-libobjc \
2861 target-libada \
2862 target-libgm2 \
2863 target-libgo \
2864 target-libgrust \
2865 target-libphobos \
2866 target-zlib"
2867
2868 # these tools are built using the target libraries, and are intended to
2869 # run only in the target environment
2870 #
2871 # note: any program that *uses* libraries that are in the "target_libraries"
2872 # list belongs in this list.
2873 #
2874 target_tools="target-rda"
2875
2876 ################################################################################
2877
2878 ## All tools belong in one of the four categories, and are assigned above
2879 ## We assign ${configdirs} this way to remove all embedded newlines. This
2880 ## is important because configure will choke if they ever get through.
2881 ## ${configdirs} is directories we build using the host tools.
2882 ## ${target_configdirs} is directories we build using the target tools.
2883 configdirs=`echo ${host_libs} ${host_tools}`
2884 target_configdirs=`echo ${target_libraries} ${target_tools}`
2885 build_configdirs=`echo ${build_libs} ${build_tools}`
2886
2887
2888
2889 ################################################################################
2890
2891 srcname="gnu development package"
2892
2893 # This gets set non-empty for some net releases of packages.
2894 appdirs=""
2895
2896 # Define is_cross_compiler to save on calls to 'test'.
2897 is_cross_compiler=
2898 if test x"${host}" = x"${target}" ; then
2899 is_cross_compiler=no
2900 else
2901 is_cross_compiler=yes
2902 fi
2903
2904 # Find the build and target subdir names.
2905
2906 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2907 # have matching libraries, they should use host libraries: Makefile.tpl
2908 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2909 # However, they still use the build modules, because the corresponding
2910 # host modules (e.g. bison) are only built for the host when bootstrap
2911 # finishes. So:
2912 # - build_subdir is where we find build modules, and never changes.
2913 # - build_libsubdir is where we find build libraries, and can be overridden.
2914
2915 # Prefix 'build-' so this never conflicts with target_subdir.
2916 build_subdir="build-${build_noncanonical}"
2917
2918 # Check whether --with-build-libsubdir was given.
2919 if test "${with_build_libsubdir+set}" = set; then :
2920 withval=$with_build_libsubdir; build_libsubdir="$withval"
2921 else
2922 build_libsubdir="$build_subdir"
2923 fi
2924
2925 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2926 if ( test $srcdir = . && test -d gcc ) \
2927 || test -d $srcdir/../host-${host_noncanonical}; then
2928 host_subdir="host-${host_noncanonical}"
2929 else
2930 host_subdir=.
2931 fi
2932 # No prefix.
2933 target_subdir=${target_noncanonical}
2934
2935 # Be sure to cover against remnants of an in-tree build.
2936 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2937 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2938 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2939 fi
2940
2941 # Skipdirs are removed silently.
2942 skipdirs=
2943 # Noconfigdirs are removed loudly.
2944 noconfigdirs=""
2945
2946 use_gnu_ld=
2947 # Make sure we don't let GNU ld be added if we didn't want it.
2948 if test x$with_gnu_ld = xno ; then
2949 use_gnu_ld=no
2950 noconfigdirs="$noconfigdirs ld gold"
2951 fi
2952
2953 use_gnu_as=
2954 # Make sure we don't let GNU as be added if we didn't want it.
2955 if test x$with_gnu_as = xno ; then
2956 use_gnu_as=no
2957 noconfigdirs="$noconfigdirs gas"
2958 fi
2959
2960 use_included_zlib=
2961
2962 # Check whether --with-system-zlib was given.
2963 if test "${with_system_zlib+set}" = set; then :
2964 withval=$with_system_zlib;
2965 fi
2966
2967 # Make sure we don't let ZLIB be added if we didn't want it.
2968 if test x$with_system_zlib = xyes ; then
2969 use_included_zlib=no
2970 noconfigdirs="$noconfigdirs zlib"
2971 fi
2972
2973 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2974 # is provided.
2975 if test x$with_system_readline = xyes ; then
2976 noconfigdirs="$noconfigdirs readline"
2977 fi
2978
2979
2980 # Check whether --with-zstd was given.
2981 if test "${with_zstd+set}" = set; then :
2982 withval=$with_zstd;
2983 fi
2984
2985
2986 # some tools are so dependent upon X11 that if we're not building with X,
2987 # it's not even worth trying to configure, much less build, that tool.
2988
2989 case ${with_x} in
2990 yes | "") ;; # the default value for this tree is that X11 is available
2991 no)
2992 skipdirs="${skipdirs} tk itcl libgui"
2993 # We won't be able to build gdbtk without X.
2994 enable_gdbtk=no
2995 ;;
2996 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2997 esac
2998
2999 # Some are only suitable for cross toolchains.
3000 # Remove these if host=target.
3001 cross_only="target-libgloss target-newlib target-opcodes"
3002
3003 case $is_cross_compiler in
3004 no) skipdirs="${skipdirs} ${cross_only}" ;;
3005 esac
3006
3007 # If both --with-headers and --with-libs are specified, default to
3008 # --without-newlib.
3009 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3010 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3011 if test x"${with_newlib}" = x ; then
3012 with_newlib=no
3013 fi
3014 fi
3015
3016 # Recognize --with-newlib/--without-newlib.
3017 case ${with_newlib} in
3018 no) skipdirs="${skipdirs} target-newlib" ;;
3019 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3020 esac
3021
3022 # Check whether --enable-as-accelerator-for was given.
3023 if test "${enable_as_accelerator_for+set}" = set; then :
3024 enableval=$enable_as_accelerator_for;
3025 fi
3026
3027
3028 # Check whether --enable-offload-targets was given.
3029 if test "${enable_offload_targets+set}" = set; then :
3030 enableval=$enable_offload_targets;
3031 if test x"$enable_offload_targets" = x; then
3032 as_fn_error $? "no offload targets specified" "$LINENO" 5
3033 fi
3034
3035 else
3036 enable_offload_targets=
3037 fi
3038
3039
3040 # Check whether --enable-offload-defaulted was given.
3041 if test "${enable_offload_defaulted+set}" = set; then :
3042 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3043 else
3044 enable_offload_defaulted=
3045 fi
3046
3047
3048 # Handle --enable-gold, --enable-ld.
3049 # --disable-gold [--enable-ld]
3050 # Build only ld. Default option.
3051 # --enable-gold [--enable-ld]
3052 # Build both gold and ld. Install gold as "ld.gold", install ld
3053 # as "ld.bfd" and "ld".
3054 # --enable-gold=default [--enable-ld]
3055 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3056 # install ld as "ld.bfd".
3057 # --enable-gold[=default] --disable-ld
3058 # Build only gold, which is then installed as both "ld.gold" and "ld".
3059 # --enable-gold --enable-ld=default
3060 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3061 # and ld.bfd).
3062 # In other words, ld is default
3063 # --enable-gold=default --enable-ld=default
3064 # Error.
3065
3066 default_ld=
3067 # Check whether --enable-gold was given.
3068 if test "${enable_gold+set}" = set; then :
3069 enableval=$enable_gold; ENABLE_GOLD=$enableval
3070 else
3071 ENABLE_GOLD=no
3072 fi
3073
3074 case "${ENABLE_GOLD}" in
3075 yes|default)
3076 # Check for ELF target.
3077 is_elf=no
3078 case "${target}" in
3079 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3080 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3081 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3082 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3083 case "${target}" in
3084 *-*-linux*aout* | *-*-linux*oldld*)
3085 ;;
3086 *)
3087 is_elf=yes
3088 ;;
3089 esac
3090 esac
3091
3092 if test "$is_elf" = "yes"; then
3093 # Check for target supported by gold.
3094 case "${target}" in
3095 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3096 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3097 configdirs="$configdirs gold"
3098 if test x${ENABLE_GOLD} = xdefault; then
3099 default_ld=gold
3100 fi
3101 ENABLE_GOLD=yes
3102 ;;
3103 esac
3104 fi
3105 ;;
3106 no)
3107 ;;
3108 *)
3109 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3110 ;;
3111 esac
3112
3113 # Check whether --enable-ld was given.
3114 if test "${enable_ld+set}" = set; then :
3115 enableval=$enable_ld; ENABLE_LD=$enableval
3116 else
3117 ENABLE_LD=yes
3118 fi
3119
3120
3121 case "${ENABLE_LD}" in
3122 default)
3123 if test x${default_ld} != x; then
3124 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3125 fi
3126 ;;
3127 yes)
3128 ;;
3129 no)
3130 if test x${ENABLE_GOLD} != xyes; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3132 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3133 fi
3134 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3135 ;;
3136 *)
3137 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3138 ;;
3139 esac
3140
3141 # Check whether --enable-gprofng was given.
3142 if test "${enable_gprofng+set}" = set; then :
3143 enableval=$enable_gprofng; enable_gprofng=$enableval
3144 else
3145 enable_gprofng=yes
3146 fi
3147
3148 if test "$enable_gprofng" = "yes"; then
3149 case "${target}" in
3150 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3151 configdirs="$configdirs gprofng"
3152 ;;
3153 esac
3154 fi
3155
3156
3157 # PR gas/19109
3158 # Decide the default method for compressing debug sections.
3159 # Provide a configure time option to override our default.
3160 # Check whether --enable-compressed_debug_sections was given.
3161 if test "${enable_compressed_debug_sections+set}" = set; then :
3162 enableval=$enable_compressed_debug_sections;
3163 if test x"$enable_compressed_debug_sections" = xyes; then
3164 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3165 fi
3166
3167 else
3168 enable_compressed_debug_sections=
3169 fi
3170
3171
3172 # Select default compression algorithm.
3173 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3174 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3175 enableval=$enable_default_compressed_debug_sections_algorithm;
3176 else
3177 default_compressed_debug_sections_algorithm=
3178 fi
3179
3180
3181 # Configure extra directories which are host specific
3182
3183 case "${host}" in
3184 *-cygwin*)
3185 configdirs="$configdirs libtermcap" ;;
3186 esac
3187
3188 # A target can indicate whether a language isn't supported for some reason.
3189 # Only spaces may be used in this macro; not newlines or tabs.
3190 unsupported_languages=
3191
3192 # Remove more programs from consideration, based on the host or
3193 # target this usually means that a port of the program doesn't
3194 # exist yet.
3195
3196 case "${host}" in
3197 i[3456789]86-*-msdosdjgpp*)
3198 noconfigdirs="$noconfigdirs tcl tk itcl"
3199 ;;
3200 esac
3201
3202 # Default to --disable-year2038 until we can handle differences between
3203 # projects that use gnulib (which understands year 2038) and projects that
3204 # do not (like BFD).
3205 # Check whether --enable-year2038 was given.
3206 if test "${enable_year2038+set}" = set; then :
3207 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3208 else
3209 ENABLE_YEAR2038=no
3210 fi
3211
3212 enable_year2038=
3213 if test "${ENABLE_YEAR2038}" = "no" ; then
3214 enable_year2038=no
3215 fi
3216
3217 # Check whether --enable-libquadmath was given.
3218 if test "${enable_libquadmath+set}" = set; then :
3219 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3220 else
3221 ENABLE_LIBQUADMATH=yes
3222 fi
3223
3224 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3225 noconfigdirs="$noconfigdirs target-libquadmath"
3226 fi
3227
3228
3229 # Check whether --enable-libquadmath-support was given.
3230 if test "${enable_libquadmath_support+set}" = set; then :
3231 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3232 else
3233 ENABLE_LIBQUADMATH_SUPPORT=yes
3234 fi
3235
3236 enable_libquadmath_support=
3237 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3238 enable_libquadmath_support=no
3239 fi
3240
3241
3242 # Check whether --enable-libada was given.
3243 if test "${enable_libada+set}" = set; then :
3244 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3245 else
3246 ENABLE_LIBADA=yes
3247 fi
3248
3249 if test "${ENABLE_LIBADA}" != "yes" ; then
3250 noconfigdirs="$noconfigdirs gnattools"
3251 fi
3252
3253 # Check whether --enable-libgm2 was given.
3254 if test "${enable_libgm2+set}" = set; then :
3255 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3256 else
3257 ENABLE_LIBGM2=no
3258 fi
3259
3260 if test "${ENABLE_LIBGM2}" != "yes" ; then
3261 noconfigdirs="$noconfigdirs gm2tools"
3262 fi
3263
3264 # Check whether --enable-libssp was given.
3265 if test "${enable_libssp+set}" = set; then :
3266 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3267 else
3268 ENABLE_LIBSSP=yes
3269 fi
3270
3271
3272 # Check whether --enable-libstdcxx was given.
3273 if test "${enable_libstdcxx+set}" = set; then :
3274 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3275 else
3276 ENABLE_LIBSTDCXX=default
3277 fi
3278
3279 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3280 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3281 fi
3282
3283 # Enable libgomp by default on hosted POSIX systems, and a few others.
3284 if test x$enable_libgomp = x ; then
3285 case "${target}" in
3286 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3287 ;;
3288 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3289 ;;
3290 *-*-solaris2* | *-*-hpux11*)
3291 ;;
3292 *-*-darwin* | *-*-aix*)
3293 ;;
3294 nvptx*-*-* | amdgcn*-*-*)
3295 ;;
3296 *)
3297 noconfigdirs="$noconfigdirs target-libgomp"
3298 ;;
3299 esac
3300 fi
3301
3302 # Disable libatomic on unsupported systems.
3303 if test -d ${srcdir}/libatomic; then
3304 if test x$enable_libatomic = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3306 $as_echo_n "checking for libatomic support... " >&6; }
3307 if (srcdir=${srcdir}/libatomic; \
3308 . ${srcdir}/configure.tgt; \
3309 test -n "$UNSUPPORTED")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libatomic"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 fi
3319 fi
3320
3321 # Disable libitm on unsupported systems.
3322 if test -d ${srcdir}/libitm; then
3323 if test x$enable_libitm = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3325 $as_echo_n "checking for libitm support... " >&6; }
3326 if (srcdir=${srcdir}/libitm; \
3327 . ${srcdir}/configure.tgt; \
3328 test -n "$UNSUPPORTED")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs="$noconfigdirs target-libitm"
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336 fi
3337 fi
3338 fi
3339
3340 # Disable libsanitizer on unsupported systems.
3341 if test -d ${srcdir}/libsanitizer; then
3342 if test x$enable_libsanitizer = x; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3344 $as_echo_n "checking for libsanitizer support... " >&6; }
3345 if (srcdir=${srcdir}/libsanitizer; \
3346 . ${srcdir}/configure.tgt; \
3347 test -n "$UNSUPPORTED")
3348 then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 noconfigdirs="$noconfigdirs target-libsanitizer"
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3355 fi
3356 fi
3357 fi
3358
3359 # Disable libvtv on unsupported systems.
3360 if test -d ${srcdir}/libvtv; then
3361 if test x$enable_libvtv = x; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3363 $as_echo_n "checking for libvtv support... " >&6; }
3364 if (srcdir=${srcdir}/libvtv; \
3365 . ${srcdir}/configure.tgt; \
3366 test "$VTV_SUPPORTED" != "yes")
3367 then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 noconfigdirs="$noconfigdirs target-libvtv"
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 fi
3375 fi
3376 fi
3377
3378 # Disable libquadmath for some systems.
3379 case "${target}" in
3380 avr-*-*)
3381 noconfigdirs="$noconfigdirs target-libquadmath"
3382 ;;
3383 # libquadmath is unused on AIX and libquadmath build process use of
3384 # LD_LIBRARY_PATH can break AIX bootstrap.
3385 powerpc-*-aix* | rs6000-*-aix*)
3386 noconfigdirs="$noconfigdirs target-libquadmath"
3387 ;;
3388 esac
3389
3390 # Disable libssp for some systems.
3391 case "${target}" in
3392 avr-*-*)
3393 # No hosted I/O support.
3394 noconfigdirs="$noconfigdirs target-libssp"
3395 ;;
3396 bpf-*-*)
3397 noconfigdirs="$noconfigdirs target-libssp"
3398 ;;
3399 powerpc-*-aix* | rs6000-*-aix*)
3400 noconfigdirs="$noconfigdirs target-libssp"
3401 ;;
3402 pru-*-*)
3403 # No hosted I/O support.
3404 noconfigdirs="$noconfigdirs target-libssp"
3405 ;;
3406 rl78-*-*)
3407 # libssp uses a misaligned load to trigger a fault, but the RL78
3408 # doesn't fault for those - instead, it gives a build-time error
3409 # for explicit misaligned loads.
3410 noconfigdirs="$noconfigdirs target-libssp"
3411 ;;
3412 visium-*-*)
3413 # No hosted I/O support.
3414 noconfigdirs="$noconfigdirs target-libssp"
3415 ;;
3416 esac
3417
3418 # Disable libstdc++-v3 for some systems.
3419 # Allow user to override this if they pass --enable-libstdcxx
3420 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3421 case "${target}" in
3422 *-*-vxworks*)
3423 # VxWorks uses the Dinkumware C++ library.
3424 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3425 ;;
3426 amdgcn*-*-*)
3427 # Not ported/fails to build when using newlib.
3428 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3429 ;;
3430 arm*-wince-pe*)
3431 # the C++ libraries don't build on top of CE's C libraries
3432 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3433 ;;
3434 avr-*-*)
3435 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 ;;
3437 bpf-*-*)
3438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3439 ;;
3440 ft32-*-*)
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3442 ;;
3443 esac
3444 fi
3445
3446 # Disable C++ on systems where it is known to not work.
3447 # For testing, you can override this with --enable-languages=c++.
3448 case ,${enable_languages}, in
3449 *,c++,*)
3450 ;;
3451 *)
3452 case "${target}" in
3453 bpf-*-*)
3454 unsupported_languages="$unsupported_languages c++"
3455 ;;
3456 esac
3457 ;;
3458 esac
3459
3460 # Disable Objc on systems where it is known to not work.
3461 # For testing, you can override this with --enable-languages=objc.
3462 case ,${enable_languages}, in
3463 *,objc,*)
3464 ;;
3465 *)
3466 case "${target}" in
3467 bpf-*-*)
3468 unsupported_languages="$unsupported_languages objc"
3469 ;;
3470 esac
3471 ;;
3472 esac
3473
3474 # Disable D on systems where it is known to not work.
3475 # For testing, you can override this with --enable-languages=d.
3476 case ,${enable_languages}, in
3477 *,d,*)
3478 ;;
3479 *)
3480 case "${target}" in
3481 bpf-*-*)
3482 unsupported_languages="$unsupported_languages d"
3483 ;;
3484 esac
3485 ;;
3486 esac
3487
3488 # Disable libphobos on unsupported systems.
3489 # For testing, you can override this with --enable-libphobos.
3490 if test -d ${srcdir}/libphobos; then
3491 if test x$enable_libphobos = x; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3493 $as_echo_n "checking for libphobos support... " >&6; }
3494 if (srcdir=${srcdir}/libphobos; \
3495 . ${srcdir}/configure.tgt; \
3496 test "$LIBPHOBOS_SUPPORTED" != "yes")
3497 then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 noconfigdirs="$noconfigdirs target-libphobos"
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504 fi
3505 fi
3506 fi
3507
3508 # Disable Fortran for some systems.
3509 case "${target}" in
3510 mmix-*-*)
3511 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3512 unsupported_languages="$unsupported_languages fortran"
3513 ;;
3514 bpf-*-*)
3515 unsupported_languages="$unsupported_languages fortran"
3516 ;;
3517 esac
3518
3519 # Disable libffi for some systems.
3520 case "${target}" in
3521 powerpc-*-darwin*)
3522 ;;
3523 i[3456789]86-*-darwin*)
3524 ;;
3525 x86_64-*-darwin[912]*)
3526 ;;
3527 *-*-darwin*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 *-*-netware*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
3533 *-*-phoenix*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3535 ;;
3536 *-*-rtems*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3538 ;;
3539 *-*-tpf*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3541 ;;
3542 *-*-uclinux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 *-*-vxworks*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3547 ;;
3548 aarch64*-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 alpha*-*-*vms*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 arm*-*-freebsd*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 arm-wince-pe)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 arm*-*-symbianelf*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 bpf-*-*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 cris-*-* | crisv32-*-*)
3567 case "${target}" in
3568 *-*-linux*)
3569 ;;
3570 *) # See PR46792 regarding target-libffi.
3571 noconfigdirs="$noconfigdirs target-libffi";;
3572 esac
3573 ;;
3574 hppa*64*-*-hpux*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577 hppa*-hp-hpux11*)
3578 ;;
3579 hppa*-*-hpux*)
3580 noconfigdirs="$noconfigdirs target-libffi"
3581 ;;
3582 ia64*-*-*vms*)
3583 noconfigdirs="$noconfigdirs target-libffi"
3584 ;;
3585 i[3456789]86-w64-mingw*)
3586 noconfigdirs="$noconfigdirs target-libffi"
3587 ;;
3588 i[3456789]86-*-mingw*)
3589 noconfigdirs="$noconfigdirs target-libffi"
3590 ;;
3591 x86_64-*-mingw*)
3592 noconfigdirs="$noconfigdirs target-libffi"
3593 ;;
3594 mmix-*-*)
3595 noconfigdirs="$noconfigdirs target-libffi"
3596 ;;
3597 powerpc-*-aix*)
3598 ;;
3599 rs6000-*-aix*)
3600 ;;
3601 ft32-*-*)
3602 noconfigdirs="$noconfigdirs target-libffi"
3603 ;;
3604 *-*-lynxos*)
3605 noconfigdirs="$noconfigdirs target-libffi"
3606 ;;
3607 esac
3608
3609 # Disable the go frontend on systems where it is known to not work. Please keep
3610 # this in sync with contrib/config-list.mk.
3611 case "${target}" in
3612 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3613 unsupported_languages="$unsupported_languages go"
3614 ;;
3615 esac
3616
3617 # Only allow gdbserver on some systems.
3618 if test -d ${srcdir}/gdbserver; then
3619 if test x$enable_gdbserver = x; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3621 $as_echo_n "checking for gdbserver support... " >&6; }
3622 if (srcdir=${srcdir}/gdbserver; \
3623 . ${srcdir}/configure.srv; \
3624 test -n "$UNSUPPORTED")
3625 then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 noconfigdirs="$noconfigdirs gdbserver"
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3632 fi
3633 fi
3634 fi
3635
3636 # Disable libgo for some systems where it is known to not work.
3637 # For testing, you can easily override this with --enable-libgo.
3638 if test x$enable_libgo = x; then
3639 case "${target}" in
3640 *-*-darwin*)
3641 # PR 46986
3642 noconfigdirs="$noconfigdirs target-libgo"
3643 ;;
3644 *-*-cygwin* | *-*-mingw*)
3645 noconfigdirs="$noconfigdirs target-libgo"
3646 ;;
3647 bpf-*-*)
3648 noconfigdirs="$noconfigdirs target-libgo"
3649 ;;
3650 esac
3651 fi
3652
3653 # Default libgloss CPU subdirectory.
3654 libgloss_dir="$target_cpu"
3655
3656 case "${target}" in
3657 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3658 libgloss_dir=wince
3659 ;;
3660 aarch64*-*-* )
3661 libgloss_dir=aarch64
3662 ;;
3663 arm*-*-*)
3664 libgloss_dir=arm
3665 ;;
3666 cris-*-* | crisv32-*-*)
3667 libgloss_dir=cris
3668 ;;
3669 hppa*-*-*)
3670 libgloss_dir=pa
3671 ;;
3672 i[3456789]86-*-*)
3673 libgloss_dir=i386
3674 ;;
3675 loongarch*-*-*)
3676 libgloss_dir=loongarch
3677 ;;
3678 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3679 libgloss_dir=m68hc11
3680 ;;
3681 m68*-*-* | fido-*-*)
3682 libgloss_dir=m68k
3683 ;;
3684 mips*-*-*)
3685 libgloss_dir=mips
3686 ;;
3687 powerpc*-*-*)
3688 libgloss_dir=rs6000
3689 ;;
3690 pru-*-*)
3691 libgloss_dir=pru
3692 ;;
3693 sparc*-*-*)
3694 libgloss_dir=sparc
3695 ;;
3696 esac
3697
3698 # Disable newlib and libgloss for various target OSes.
3699 case "${target}" in
3700 alpha*-dec-osf*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 i[3456789]86-*-linux*)
3704 # This section makes it possible to build newlib natively on linux.
3705 # If we are using a cross compiler then don't configure newlib.
3706 if test x${is_cross_compiler} != xno ; then
3707 noconfigdirs="$noconfigdirs target-newlib"
3708 fi
3709 noconfigdirs="$noconfigdirs target-libgloss"
3710 # If we are not using a cross compiler, do configure newlib.
3711 # Note however, that newlib will only be configured in this situation
3712 # if the --with-newlib option has been given, because otherwise
3713 # 'target-newlib' will appear in skipdirs.
3714 ;;
3715 i[3456789]86-*-rdos*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 sparc-*-sunos4*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 bpf-*-*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-aix*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 *-*-beos*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 *-*-chorusos)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 ;;
3736 *-*-dragonfly*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 ;;
3739 *-*-freebsd*)
3740 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3741 ;;
3742 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3743 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3744 ;;
3745 *-*-lynxos*)
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3747 ;;
3748 *-*-mingw*)
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3750 ;;
3751 *-*-netbsd*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3753 ;;
3754 *-*-netware*)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 ;;
3757 *-*-tpf*)
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3759 ;;
3760 *-*-uclinux*)
3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3762 ;;
3763 *-*-vxworks*)
3764 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3765 ;;
3766 esac
3767
3768 case "${target}" in
3769 *-*-chorusos)
3770 ;;
3771 aarch64-*-darwin*)
3772 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3773 noconfigdirs="$noconfigdirs sim target-rda"
3774 ;;
3775 amdgcn*-*-*)
3776 ;;
3777 arm-*-darwin*)
3778 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3779 noconfigdirs="$noconfigdirs sim target-rda"
3780 ;;
3781 powerpc-*-darwin*)
3782 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3783 noconfigdirs="$noconfigdirs sim target-rda"
3784 ;;
3785 i[3456789]86-*-darwin*)
3786 noconfigdirs="$noconfigdirs ld gprof"
3787 noconfigdirs="$noconfigdirs sim target-rda"
3788 ;;
3789 x86_64-*-darwin[912]*)
3790 noconfigdirs="$noconfigdirs ld gas gprof"
3791 noconfigdirs="$noconfigdirs sim target-rda"
3792 ;;
3793 *-*-darwin*)
3794 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs="$noconfigdirs sim target-rda"
3796 ;;
3797 *-*-dragonfly*)
3798 ;;
3799 *-*-freebsd*)
3800 if test "x$with_gmp" = x \
3801 && ! test -d ${srcdir}/gmp \
3802 && test -f /usr/local/include/gmp.h; then
3803 with_gmp=/usr/local
3804 fi
3805 ;;
3806 *-*-kaos*)
3807 # Remove unsupported stuff on all kaOS configurations.
3808 noconfigdirs="$noconfigdirs target-libgloss"
3809 ;;
3810 *-*-netbsd*)
3811 ;;
3812 *-*-netware*)
3813 ;;
3814 *-*-phoenix*)
3815 noconfigdirs="$noconfigdirs target-libgloss"
3816 ;;
3817 *-*-rtems*)
3818 noconfigdirs="$noconfigdirs target-libgloss"
3819 ;;
3820 # The tpf target doesn't support gdb yet.
3821 *-*-tpf*)
3822 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3823 ;;
3824 *-*-uclinux*)
3825 noconfigdirs="$noconfigdirs target-rda"
3826 ;;
3827 *-*-vxworks*)
3828 ;;
3829 alpha*-dec-osf*)
3830 # ld works, but does not support shared libraries.
3831 # gas doesn't generate exception information.
3832 noconfigdirs="$noconfigdirs gas ld"
3833 ;;
3834 alpha*-*-*vms*)
3835 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3836 ;;
3837 alpha*-*-*)
3838 # newlib is not 64 bit ready
3839 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 ;;
3841 bpf-*-*)
3842 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3843 ;;
3844 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3845 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3846 ;;
3847 arc*-*-*)
3848 noconfigdirs="$noconfigdirs sim"
3849 ;;
3850 arm-*-pe*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3852 ;;
3853 arm-*-riscix*)
3854 noconfigdirs="$noconfigdirs ld target-libgloss"
3855 ;;
3856 avr-*-*)
3857 if test x${with_avrlibc} != xno; then
3858 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3859 fi
3860 ;;
3861 c4x-*-* | tic4x-*-*)
3862 noconfigdirs="$noconfigdirs target-libgloss"
3863 ;;
3864 tic54x-*-*)
3865 noconfigdirs="$noconfigdirs target-libgloss gdb"
3866 ;;
3867 d10v-*-*)
3868 noconfigdirs="$noconfigdirs target-libgloss"
3869 ;;
3870 d30v-*-*)
3871 noconfigdirs="$noconfigdirs gdb"
3872 ;;
3873 fr30-*-elf*)
3874 noconfigdirs="$noconfigdirs gdb"
3875 ;;
3876 ft32-*-*)
3877 noconfigdirs="$noconfigdirs target-rda gprof"
3878 ;;
3879 moxie-*-*)
3880 noconfigdirs="$noconfigdirs"
3881 ;;
3882 h8300*-*-*)
3883 noconfigdirs="$noconfigdirs target-libgloss"
3884 ;;
3885 h8500-*-*)
3886 noconfigdirs="$noconfigdirs target-libgloss"
3887 ;;
3888 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3889 ;;
3890 hppa*64*-*-hpux*)
3891 noconfigdirs="$noconfigdirs gdb"
3892 ;;
3893 hppa*-*-hpux11*)
3894 noconfigdirs="$noconfigdirs gdb ld"
3895 ;;
3896 hppa*64*-*-linux*)
3897 ;;
3898 hppa*-*-linux*)
3899 ;;
3900 hppa*-*-*elf* | \
3901 hppa*-*-lites* | \
3902 hppa*-*-openbsd* | \
3903 hppa*64*-*-*)
3904 ;;
3905 hppa*-*-pro*)
3906 ;;
3907 hppa*-*-*)
3908 noconfigdirs="$noconfigdirs ld"
3909 ;;
3910 i960-*-*)
3911 noconfigdirs="$noconfigdirs gdb"
3912 ;;
3913 ia64*-*-elf*)
3914 # No gdb support yet.
3915 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3916 ;;
3917 ia64*-**-hpux*)
3918 # No ld support yet.
3919 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3920 ;;
3921 ia64*-*-*vms*)
3922 # No ld support yet.
3923 noconfigdirs="$noconfigdirs libgui itcl ld"
3924 ;;
3925 i[3456789]86-w64-mingw*)
3926 ;;
3927 i[3456789]86-*-mingw*)
3928 target_configdirs="$target_configdirs target-winsup"
3929 ;;
3930 *-*-cygwin*)
3931 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3932 noconfigdirs="$noconfigdirs target-libgloss"
3933 # always build newlib if winsup directory is present.
3934 if test -d "$srcdir/winsup/cygwin"; then
3935 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3936 elif test -d "$srcdir/newlib"; then
3937 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3938 fi
3939 ;;
3940 i[3456789]86-*-pe)
3941 noconfigdirs="$noconfigdirs target-libgloss"
3942 ;;
3943 i[3456789]86-*-sco3.2v5*)
3944 # The linker does not yet know about weak symbols in COFF,
3945 # and is not configured to handle mixed ELF and COFF.
3946 noconfigdirs="$noconfigdirs ld target-libgloss"
3947 ;;
3948 i[3456789]86-*-sco*)
3949 noconfigdirs="$noconfigdirs gprof target-libgloss"
3950 ;;
3951 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3952 noconfigdirs="$noconfigdirs target-libgloss"
3953 ;;
3954 i[3456789]86-*-sysv4*)
3955 noconfigdirs="$noconfigdirs target-libgloss"
3956 ;;
3957 i[3456789]86-*-beos*)
3958 noconfigdirs="$noconfigdirs gdb"
3959 ;;
3960 i[3456789]86-*-rdos*)
3961 noconfigdirs="$noconfigdirs gdb"
3962 ;;
3963 mmix-*-*)
3964 noconfigdirs="$noconfigdirs gdb"
3965 ;;
3966 mt-*-*)
3967 noconfigdirs="$noconfigdirs sim"
3968 ;;
3969 nfp-*-*)
3970 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3971 noconfigdirs="$noconfigdirs $target_libraries"
3972 ;;
3973 pdp11-*-*)
3974 noconfigdirs="$noconfigdirs gdb gprof"
3975 ;;
3976 powerpc-*-aix*)
3977 # copied from rs6000-*-* entry
3978 noconfigdirs="$noconfigdirs gprof"
3979 ;;
3980 powerpc*-*-winnt* | powerpc*-*-pe*)
3981 target_configdirs="$target_configdirs target-winsup"
3982 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3983 # always build newlib.
3984 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3985 ;;
3986 # This is temporary until we can link against shared libraries
3987 powerpcle-*-solaris*)
3988 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3989 ;;
3990 powerpc-*-beos*)
3991 noconfigdirs="$noconfigdirs gdb"
3992 ;;
3993 rs6000-*-lynxos*)
3994 noconfigdirs="$noconfigdirs gprof"
3995 ;;
3996 rs6000-*-aix*)
3997 noconfigdirs="$noconfigdirs gprof"
3998 ;;
3999 rs6000-*-*)
4000 noconfigdirs="$noconfigdirs gprof"
4001 ;;
4002 m68k-apollo-*)
4003 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4004 ;;
4005 microblaze*)
4006 noconfigdirs="$noconfigdirs gprof"
4007 ;;
4008 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4009 if test x$with_newlib = xyes; then
4010 noconfigdirs="$noconfigdirs gprof"
4011 fi
4012 ;;
4013 mips*-*-irix5*)
4014 noconfigdirs="$noconfigdirs gprof target-libgloss"
4015 ;;
4016 mips*-*-irix6*)
4017 noconfigdirs="$noconfigdirs gprof target-libgloss"
4018 ;;
4019 mips*-*-bsd*)
4020 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4021 ;;
4022 mips*-*-linux*)
4023 ;;
4024 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4025 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4026 noconfigdirs="$noconfigdirs ld gas gprof"
4027 ;;
4028 mips*-*-*)
4029 noconfigdirs="$noconfigdirs gprof"
4030 ;;
4031 nvptx*-*-*)
4032 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4033 ;;
4034 sh-*-*)
4035 case "${target}" in
4036 sh*-*-elf)
4037 ;;
4038 *)
4039 noconfigdirs="$noconfigdirs target-libgloss" ;;
4040 esac
4041 ;;
4042 sparc-*-sunos4*)
4043 if test x${is_cross_compiler} = xno ; then
4044 use_gnu_ld=no
4045 fi
4046 ;;
4047 tic6x-*-*)
4048 noconfigdirs="$noconfigdirs sim"
4049 ;;
4050 tilepro*-*-* | tilegx*-*-*)
4051 noconfigdirs="$noconfigdirs sim"
4052 ;;
4053 v810-*-*)
4054 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4055 ;;
4056 vax-*-*)
4057 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4058 ;;
4059 wasm32-*-*)
4060 noconfigdirs="$noconfigdirs ld"
4061 ;;
4062 loongarch*-*-linux*)
4063 ;;
4064 loongarch*-*-*)
4065 noconfigdirs="$noconfigdirs gprof"
4066 ;;
4067 esac
4068
4069 # If we aren't building newlib, then don't build libgloss, since libgloss
4070 # depends upon some newlib header files.
4071 case "${noconfigdirs}" in
4072 *target-libgloss*) ;;
4073 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4074 esac
4075
4076 # Work in distributions that contain no compiler tools, like Autoconf.
4077 host_makefile_frag=/dev/null
4078 if test -d ${srcdir}/config ; then
4079 case "${host}" in
4080 i[3456789]86-*-msdosdjgpp*)
4081 host_makefile_frag="config/mh-djgpp"
4082 ;;
4083 *-cygwin*)
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4086 $as_echo_n "checking to see if cat works as expected... " >&6; }
4087 echo a >cygwin-cat-check
4088 if test `cat cygwin-cat-check` = a ; then
4089 rm cygwin-cat-check
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4092 else
4093 rm cygwin-cat-check
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 as_fn_error $? "The cat command does not ignore carriage return characters.
4097 Please either mount the build directory in binary mode or run the following
4098 commands before running any configure script:
4099 set -o igncr
4100 export SHELLOPTS
4101 " "$LINENO" 5
4102 fi
4103
4104 host_makefile_frag="config/mh-cygwin"
4105 ;;
4106 *-mingw*)
4107 host_makefile_frag="config/mh-mingw"
4108 ;;
4109 alpha*-linux*)
4110 host_makefile_frag="config/mh-alpha-linux"
4111 ;;
4112 hppa*-hp-hpux*)
4113 host_makefile_frag="config/mh-pa"
4114 ;;
4115 hppa*-*)
4116 host_makefile_frag="config/mh-pa"
4117 ;;
4118 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4119 host_makefile_frag="config/mh-darwin"
4120 ;;
4121 powerpc-*-aix*)
4122 host_makefile_frag="config/mh-ppc-aix"
4123 ;;
4124 rs6000-*-aix*)
4125 host_makefile_frag="config/mh-ppc-aix"
4126 ;;
4127 esac
4128 fi
4129
4130 if test "${build}" != "${host}" ; then
4131 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4132 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4133 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4134 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4135 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4136 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4137 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4138 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4139 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4140 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4141 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4142 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4143 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4144 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4145 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4146 else
4147 AR_FOR_BUILD="\$(AR)"
4148 AS_FOR_BUILD="\$(AS)"
4149 CC_FOR_BUILD="\$(CC)"
4150 CXX_FOR_BUILD="\$(CXX)"
4151 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4152 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4153 GOC_FOR_BUILD="\$(GOC)"
4154 GDC_FOR_BUILD="\$(GDC)"
4155 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4156 LD_FOR_BUILD="\$(LD)"
4157 NM_FOR_BUILD="\$(NM)"
4158 RANLIB_FOR_BUILD="\$(RANLIB)"
4159 WINDRES_FOR_BUILD="\$(WINDRES)"
4160 WINDMC_FOR_BUILD="\$(WINDMC)"
4161 fi
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_CC+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 CC=$ac_cv_prog_CC
4197 if test -n "$CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199 $as_echo "$CC" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205
4206 fi
4207 if test -z "$ac_cv_prog_CC"; then
4208 ac_ct_CC=$CC
4209 # Extract the first word of "gcc", so it can be a program name with args.
4210 set dummy gcc; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$ac_ct_CC"; then
4217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_CC="gcc"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237 if test -n "$ac_ct_CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239 $as_echo "$ac_ct_CC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245 if test "x$ac_ct_CC" = x; then
4246 CC=""
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249 yes:)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned=yes ;;
4253 esac
4254 CC=$ac_ct_CC
4255 fi
4256 else
4257 CC="$ac_cv_prog_CC"
4258 fi
4259
4260 if test -z "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}cc; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC="${ac_tool_prefix}cc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 CC=$ac_cv_prog_CC
4290 if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 fi
4300 fi
4301 if test -z "$CC"; then
4302 # Extract the first word of "cc", so it can be a program name with args.
4303 set dummy cc; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_CC+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4311 else
4312 ac_prog_rejected=no
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321 ac_prog_rejected=yes
4322 continue
4323 fi
4324 ac_cv_prog_CC="cc"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 if test $ac_prog_rejected = yes; then
4333 # We found a bogon in the path, so make sure we never use it.
4334 set dummy $ac_cv_prog_CC
4335 shift
4336 if test $# != 0; then
4337 # We chose a different compiler from the bogus one.
4338 # However, it has the same basename, so the bogon will be chosen
4339 # first if we set CC to just the basename; use the full file name.
4340 shift
4341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4342 fi
4343 fi
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356 fi
4357 if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog in cl.exe
4360 do
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_CC+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382 done
4383 done
4384 IFS=$as_save_IFS
4385
4386 fi
4387 fi
4388 CC=$ac_cv_prog_CC
4389 if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391 $as_echo "$CC" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 test -n "$CC" && break
4399 done
4400 fi
4401 if test -z "$CC"; then
4402 ac_ct_CC=$CC
4403 for ac_prog in cl.exe
4404 do
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy $ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_CC="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433 if test -n "$ac_ct_CC"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435 $as_echo "$ac_ct_CC" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 test -n "$ac_ct_CC" && break
4443 done
4444
4445 if test "x$ac_ct_CC" = x; then
4446 CC=""
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449 yes:)
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 ac_tool_warned=yes ;;
4453 esac
4454 CC=$ac_ct_CC
4455 fi
4456 fi
4457
4458 fi
4459
4460
4461 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $? "no acceptable C compiler found in \$PATH
4464 See \`config.log' for more details" "$LINENO" 5; }
4465
4466 # Provide some information about the compiler.
4467 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468 set X $ac_compile
4469 ac_compiler=$2
4470 for ac_option in --version -v -V -qversion; do
4471 { { ac_try="$ac_compiler $ac_option >&5"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4479 ac_status=$?
4480 if test -s conftest.err; then
4481 sed '10a\
4482 ... rest of stderr output deleted ...
4483 10q' conftest.err >conftest.er1
4484 cat conftest.er1 >&5
4485 fi
4486 rm -f conftest.er1 conftest.err
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489 done
4490
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main ()
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 ac_clean_files_save=$ac_clean_files
4503 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4504 # Try to create an executable without -o first, disregard a.out.
4505 # It will help us diagnose broken compilers, and finding out an intuition
4506 # of exeext.
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4508 $as_echo_n "checking whether the C compiler works... " >&6; }
4509 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4510
4511 # The possible output files:
4512 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4513
4514 ac_rmfiles=
4515 for ac_file in $ac_files
4516 do
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4520 esac
4521 done
4522 rm -f $ac_rmfiles
4523
4524 if { { ac_try="$ac_link_default"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link_default") 2>&5
4532 ac_status=$?
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4538 # so that the user can short-circuit this test for compilers unknown to
4539 # Autoconf.
4540 for ac_file in $ac_files ''
4541 do
4542 test -f "$ac_file" || continue
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4545 ;;
4546 [ab].out )
4547 # We found the default executable, but exeext='' is most
4548 # certainly right.
4549 break;;
4550 *.* )
4551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4552 then :; else
4553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4554 fi
4555 # We set ac_cv_exeext here because the later test for it is not
4556 # safe: cross compilers may not add the suffix if given an `-o'
4557 # argument, so we may need to know it at that point already.
4558 # Even if this section looks crufty: it has the advantage of
4559 # actually working.
4560 break;;
4561 * )
4562 break;;
4563 esac
4564 done
4565 test "$ac_cv_exeext" = no && ac_cv_exeext=
4566
4567 else
4568 ac_file=''
4569 fi
4570 if test -z "$ac_file"; then :
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error 77 "C compiler cannot create executables
4579 See \`config.log' for more details" "$LINENO" 5; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582 $as_echo "yes" >&6; }
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4585 $as_echo_n "checking for C compiler default output file name... " >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4587 $as_echo "$ac_file" >&6; }
4588 ac_exeext=$ac_cv_exeext
4589
4590 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4591 ac_clean_files=$ac_clean_files_save
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4593 $as_echo_n "checking for suffix of executables... " >&6; }
4594 if { { ac_try="$ac_link"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_link") 2>&5
4602 ac_status=$?
4603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }; then :
4605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4606 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4607 # work properly (i.e., refer to `conftest.exe'), while it won't with
4608 # `rm'.
4609 for ac_file in conftest.exe conftest conftest.*; do
4610 test -f "$ac_file" || continue
4611 case $ac_file in
4612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614 break;;
4615 * ) break;;
4616 esac
4617 done
4618 else
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4622 See \`config.log' for more details" "$LINENO" 5; }
4623 fi
4624 rm -f conftest conftest$ac_cv_exeext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4626 $as_echo "$ac_cv_exeext" >&6; }
4627
4628 rm -f conftest.$ac_ext
4629 EXEEXT=$ac_cv_exeext
4630 ac_exeext=$EXEEXT
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <stdio.h>
4634 int
4635 main ()
4636 {
4637 FILE *f = fopen ("conftest.out", "w");
4638 return ferror (f) || fclose (f) != 0;
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 ac_clean_files="$ac_clean_files conftest.out"
4645 # Check that the compiler produces executables we can run. If not, either
4646 # the compiler is broken, or we cross compile.
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4648 $as_echo_n "checking whether we are cross compiling... " >&6; }
4649 if test "$cross_compiling" != yes; then
4650 { { ac_try="$ac_link"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657 (eval "$ac_link") 2>&5
4658 ac_status=$?
4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660 test $ac_status = 0; }
4661 if { ac_try='./conftest$ac_cv_exeext'
4662 { { case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 $as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_try") 2>&5
4669 ac_status=$?
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }; }; then
4672 cross_compiling=no
4673 else
4674 if test "$cross_compiling" = maybe; then
4675 cross_compiling=yes
4676 else
4677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4679 as_fn_error $? "cannot run C compiled programs.
4680 If you meant to cross compile, use \`--host'.
4681 See \`config.log' for more details" "$LINENO" 5; }
4682 fi
4683 fi
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4686 $as_echo "$cross_compiling" >&6; }
4687
4688 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4689 ac_clean_files=$ac_clean_files_save
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4691 $as_echo_n "checking for suffix of object files... " >&6; }
4692 if ${ac_cv_objext+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.o conftest.obj
4707 if { { ac_try="$ac_compile"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 $as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compile") 2>&5
4715 ac_status=$?
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }; then :
4718 for ac_file in conftest.o conftest.obj conftest.*; do
4719 test -f "$ac_file" || continue;
4720 case $ac_file in
4721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4723 break;;
4724 esac
4725 done
4726 else
4727 $as_echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot compute suffix of object files: cannot compile
4733 See \`config.log' for more details" "$LINENO" 5; }
4734 fi
4735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4738 $as_echo "$ac_cv_objext" >&6; }
4739 OBJEXT=$ac_cv_objext
4740 ac_objext=$OBJEXT
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4743 if ${ac_cv_c_compiler_gnu+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748
4749 int
4750 main ()
4751 {
4752 #ifndef __GNUC__
4753 choke me
4754 #endif
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_compiler_gnu=yes
4762 else
4763 ac_compiler_gnu=no
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4771 if test $ac_compiler_gnu = yes; then
4772 GCC=yes
4773 else
4774 GCC=
4775 fi
4776 ac_test_CFLAGS=${CFLAGS+set}
4777 ac_save_CFLAGS=$CFLAGS
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4780 if ${ac_cv_prog_cc_g+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 ac_save_c_werror_flag=$ac_c_werror_flag
4784 ac_c_werror_flag=yes
4785 ac_cv_prog_cc_g=no
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4800 else
4801 CFLAGS=""
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804
4805 int
4806 main ()
4807 {
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814
4815 else
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4817 CFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_g=yes
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ac_c_werror_flag=$ac_save_c_werror_flag
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4840 $as_echo "$ac_cv_prog_cc_g" >&6; }
4841 if test "$ac_test_CFLAGS" = set; then
4842 CFLAGS=$ac_save_CFLAGS
4843 elif test $ac_cv_prog_cc_g = yes; then
4844 if test "$GCC" = yes; then
4845 CFLAGS="-g -O2"
4846 else
4847 CFLAGS="-g"
4848 fi
4849 else
4850 if test "$GCC" = yes; then
4851 CFLAGS="-O2"
4852 else
4853 CFLAGS=
4854 fi
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4858 if ${ac_cv_prog_cc_c89+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 ac_cv_prog_cc_c89=no
4862 ac_save_CC=$CC
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 #include <stdarg.h>
4866 #include <stdio.h>
4867 struct stat;
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4872 char **p;
4873 int i;
4874 {
4875 return p[i];
4876 }
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4878 {
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4885 }
4886
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
4896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4898 #define FOO(x) 'x'
4899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905 int argc;
4906 char **argv;
4907 int
4908 main ()
4909 {
4910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4917 do
4918 CC="$ac_save_CC $ac_arg"
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924 done
4925 rm -f conftest.$ac_ext
4926 CC=$ac_save_CC
4927
4928 fi
4929 # AC_CACHE_VAL
4930 case "x$ac_cv_prog_cc_c89" in
4931 x)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 $as_echo "none needed" >&6; } ;;
4934 xno)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936 $as_echo "unsupported" >&6; } ;;
4937 *)
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941 esac
4942 if test "x$ac_cv_prog_cc_c89" != xno; then :
4943
4944 fi
4945
4946 ac_ext=c
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4953 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4954 if ${ac_cv_prog_cc_c99+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 ac_cv_prog_cc_c99=no
4958 ac_save_CC=$CC
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <stdarg.h>
4962 #include <stdbool.h>
4963 #include <stdlib.h>
4964 #include <wchar.h>
4965 #include <stdio.h>
4966
4967 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4968 #define debug(...) fprintf (stderr, __VA_ARGS__)
4969 #define showlist(...) puts (#__VA_ARGS__)
4970 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4971 static void
4972 test_varargs_macros (void)
4973 {
4974 int x = 1234;
4975 int y = 5678;
4976 debug ("Flag");
4977 debug ("X = %d\n", x);
4978 showlist (The first, second, and third items.);
4979 report (x>y, "x is %d but y is %d", x, y);
4980 }
4981
4982 // Check long long types.
4983 #define BIG64 18446744073709551615ull
4984 #define BIG32 4294967295ul
4985 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4986 #if !BIG_OK
4987 your preprocessor is broken;
4988 #endif
4989 #if BIG_OK
4990 #else
4991 your preprocessor is broken;
4992 #endif
4993 static long long int bignum = -9223372036854775807LL;
4994 static unsigned long long int ubignum = BIG64;
4995
4996 struct incomplete_array
4997 {
4998 int datasize;
4999 double data[];
5000 };
5001
5002 struct named_init {
5003 int number;
5004 const wchar_t *name;
5005 double average;
5006 };
5007
5008 typedef const char *ccp;
5009
5010 static inline int
5011 test_restrict (ccp restrict text)
5012 {
5013 // See if C++-style comments work.
5014 // Iterate through items via the restricted pointer.
5015 // Also check for declarations in for loops.
5016 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5017 continue;
5018 return 0;
5019 }
5020
5021 // Check varargs and va_copy.
5022 static void
5023 test_varargs (const char *format, ...)
5024 {
5025 va_list args;
5026 va_start (args, format);
5027 va_list args_copy;
5028 va_copy (args_copy, args);
5029
5030 const char *str;
5031 int number;
5032 float fnumber;
5033
5034 while (*format)
5035 {
5036 switch (*format++)
5037 {
5038 case 's': // string
5039 str = va_arg (args_copy, const char *);
5040 break;
5041 case 'd': // int
5042 number = va_arg (args_copy, int);
5043 break;
5044 case 'f': // float
5045 fnumber = va_arg (args_copy, double);
5046 break;
5047 default:
5048 break;
5049 }
5050 }
5051 va_end (args_copy);
5052 va_end (args);
5053 }
5054
5055 int
5056 main ()
5057 {
5058
5059 // Check bool.
5060 _Bool success = false;
5061
5062 // Check restrict.
5063 if (test_restrict ("String literal") == 0)
5064 success = true;
5065 char *restrict newvar = "Another string";
5066
5067 // Check varargs.
5068 test_varargs ("s, d' f .", "string", 65, 34.234);
5069 test_varargs_macros ();
5070
5071 // Check flexible array members.
5072 struct incomplete_array *ia =
5073 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5074 ia->datasize = 10;
5075 for (int i = 0; i < ia->datasize; ++i)
5076 ia->data[i] = i * 1.234;
5077
5078 // Check named initializers.
5079 struct named_init ni = {
5080 .number = 34,
5081 .name = L"Test wide string",
5082 .average = 543.34343,
5083 };
5084
5085 ni.number = 58;
5086
5087 int dynamic_array[ni.number];
5088 dynamic_array[ni.number - 1] = 543;
5089
5090 // work around unused variable warnings
5091 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5092 || dynamic_array[ni.number - 1] != 543);
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5099 do
5100 CC="$ac_save_CC $ac_arg"
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_prog_cc_c99=$ac_arg
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext
5105 test "x$ac_cv_prog_cc_c99" != "xno" && break
5106 done
5107 rm -f conftest.$ac_ext
5108 CC=$ac_save_CC
5109
5110 fi
5111 # AC_CACHE_VAL
5112 case "x$ac_cv_prog_cc_c99" in
5113 x)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5115 $as_echo "none needed" >&6; } ;;
5116 xno)
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5118 $as_echo "unsupported" >&6; } ;;
5119 *)
5120 CC="$CC $ac_cv_prog_cc_c99"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5122 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5123 esac
5124 if test "x$ac_cv_prog_cc_c99" != xno; then :
5125
5126 fi
5127
5128
5129 ac_ext=cpp
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 if test -z "$CXX"; then
5135 if test -n "$CCC"; then
5136 CXX=$CCC
5137 else
5138 if test -n "$ac_tool_prefix"; then
5139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5140 do
5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_CXX+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$CXX"; then
5149 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 CXX=$ac_cv_prog_CXX
5169 if test -n "$CXX"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5171 $as_echo "$CXX" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 test -n "$CXX" && break
5179 done
5180 fi
5181 if test -z "$CXX"; then
5182 ac_ct_CXX=$CXX
5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5184 do
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$ac_ct_CXX"; then
5193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_CXX="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5213 if test -n "$ac_ct_CXX"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5215 $as_echo "$ac_ct_CXX" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 test -n "$ac_ct_CXX" && break
5223 done
5224
5225 if test "x$ac_ct_CXX" = x; then
5226 CXX="g++"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229 yes:)
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5233 esac
5234 CXX=$ac_ct_CXX
5235 fi
5236 fi
5237
5238 fi
5239 fi
5240 # Provide some information about the compiler.
5241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5242 set X $ac_compile
5243 ac_compiler=$2
5244 for ac_option in --version -v -V -qversion; do
5245 { { ac_try="$ac_compiler $ac_option >&5"
5246 case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 $as_echo "$ac_try_echo"; } >&5
5252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5253 ac_status=$?
5254 if test -s conftest.err; then
5255 sed '10a\
5256 ... rest of stderr output deleted ...
5257 10q' conftest.err >conftest.er1
5258 cat conftest.er1 >&5
5259 fi
5260 rm -f conftest.er1 conftest.err
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }
5263 done
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5266 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5267 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272
5273 int
5274 main ()
5275 {
5276 #ifndef __GNUC__
5277 choke me
5278 #endif
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_cxx_try_compile "$LINENO"; then :
5285 ac_compiler_gnu=yes
5286 else
5287 ac_compiler_gnu=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5294 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5295 if test $ac_compiler_gnu = yes; then
5296 GXX=yes
5297 else
5298 GXX=
5299 fi
5300 ac_test_CXXFLAGS=${CXXFLAGS+set}
5301 ac_save_CXXFLAGS=$CXXFLAGS
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5303 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5304 if ${ac_cv_prog_cxx_g+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5308 ac_cxx_werror_flag=yes
5309 ac_cv_prog_cxx_g=no
5310 CXXFLAGS="-g"
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313
5314 int
5315 main ()
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_cxx_try_compile "$LINENO"; then :
5323 ac_cv_prog_cxx_g=yes
5324 else
5325 CXXFLAGS=""
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328
5329 int
5330 main ()
5331 {
5332
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 if ac_fn_cxx_try_compile "$LINENO"; then :
5338
5339 else
5340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5341 CXXFLAGS="-g"
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344
5345 int
5346 main ()
5347 {
5348
5349 ;
5350 return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_cxx_try_compile "$LINENO"; then :
5354 ac_cv_prog_cxx_g=yes
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5364 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5365 if test "$ac_test_CXXFLAGS" = set; then
5366 CXXFLAGS=$ac_save_CXXFLAGS
5367 elif test $ac_cv_prog_cxx_g = yes; then
5368 if test "$GXX" = yes; then
5369 CXXFLAGS="-g -O2"
5370 else
5371 CXXFLAGS="-g"
5372 fi
5373 else
5374 if test "$GXX" = yes; then
5375 CXXFLAGS="-O2"
5376 else
5377 CXXFLAGS=
5378 fi
5379 fi
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386
5387 # We must set the default linker to the linker used by gcc for the correct
5388 # operation of libtool. If LD is not defined and we are using gcc, try to
5389 # set the LD default to the ld used by gcc.
5390 if test -z "$LD"; then
5391 if test "$GCC" = yes; then
5392 case $build in
5393 *-*-mingw*)
5394 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5395 *)
5396 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5397 esac
5398 case $gcc_prog_ld in
5399 # Accept absolute paths.
5400 [\\/]* | [A-Za-z]:[\\/]*)
5401 LD="$gcc_prog_ld" ;;
5402 esac
5403 fi
5404 fi
5405
5406 # Check whether -static-libstdc++ -static-libgcc is supported.
5407 have_static_libs=no
5408 if test "$GCC" = yes; then
5409 saved_LDFLAGS="$LDFLAGS"
5410
5411 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5413 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5414 ac_ext=cpp
5415 ac_cpp='$CXXCPP $CPPFLAGS'
5416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5419
5420
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423
5424 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5425 #error -static-libstdc++ not implemented
5426 #endif
5427 int main() {}
5428 _ACEOF
5429 if ac_fn_cxx_try_link "$LINENO"; then :
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }; have_static_libs=yes
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext conftest.$ac_ext
5438 ac_ext=c
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444
5445 LDFLAGS="$saved_LDFLAGS"
5446 fi
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_GNATBIND+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$GNATBIND"; then
5460 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 GNATBIND=$ac_cv_prog_GNATBIND
5480 if test -n "$GNATBIND"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5482 $as_echo "$GNATBIND" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 fi
5490 if test -z "$ac_cv_prog_GNATBIND"; then
5491 ac_ct_GNATBIND=$GNATBIND
5492 # Extract the first word of "gnatbind", so it can be a program name with args.
5493 set dummy gnatbind; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$ac_ct_GNATBIND"; then
5500 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5520 if test -n "$ac_ct_GNATBIND"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5522 $as_echo "$ac_ct_GNATBIND" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528 if test "x$ac_ct_GNATBIND" = x; then
5529 GNATBIND="no"
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5536 esac
5537 GNATBIND=$ac_ct_GNATBIND
5538 fi
5539 else
5540 GNATBIND="$ac_cv_prog_GNATBIND"
5541 fi
5542
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_GNATMAKE+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$GNATMAKE"; then
5552 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 GNATMAKE=$ac_cv_prog_GNATMAKE
5572 if test -n "$GNATMAKE"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5574 $as_echo "$GNATMAKE" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 fi
5582 if test -z "$ac_cv_prog_GNATMAKE"; then
5583 ac_ct_GNATMAKE=$GNATMAKE
5584 # Extract the first word of "gnatmake", so it can be a program name with args.
5585 set dummy gnatmake; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$ac_ct_GNATMAKE"; then
5592 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5612 if test -n "$ac_ct_GNATMAKE"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5614 $as_echo "$ac_ct_GNATMAKE" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620 if test "x$ac_ct_GNATMAKE" = x; then
5621 GNATMAKE="no"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629 GNATMAKE=$ac_ct_GNATMAKE
5630 fi
5631 else
5632 GNATMAKE="$ac_cv_prog_GNATMAKE"
5633 fi
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5636 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5637 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat >conftest.adb <<EOF
5641 pragma Warnings (Off);
5642 with System.CRTL;
5643 pragma Warnings (On);
5644 use type System.CRTL.int64;
5645 procedure conftest is begin null; end conftest;
5646 EOF
5647 acx_cv_cc_gcc_supports_ada=no
5648 # There is a bug in old released versions of GCC which causes the
5649 # driver to exit successfully when the appropriate language module
5650 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5651 # Therefore we must check for the error message as well as an
5652 # unsuccessful exit.
5653 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5654 # given a .adb file, but produce no object file. So we must check
5655 # if an object file was really produced to guard against this.
5656 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5657 if test x"$errors" = x && test -f conftest.$ac_objext; then
5658 acx_cv_cc_gcc_supports_ada=yes
5659 fi
5660 rm -f conftest.*
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5663 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5664
5665 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5666 have_gnat=yes
5667 else
5668 have_gnat=no
5669 fi
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_GDC+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$GDC"; then
5682 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 GDC=$ac_cv_prog_GDC
5702 if test -n "$GDC"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5704 $as_echo "$GDC" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 fi
5712 if test -z "$ac_cv_prog_GDC"; then
5713 ac_ct_GDC=$GDC
5714 # Extract the first word of "gdc", so it can be a program name with args.
5715 set dummy gdc; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$ac_ct_GDC"; then
5722 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_GDC="gdc"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5742 if test -n "$ac_ct_GDC"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5744 $as_echo "$ac_ct_GDC" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750 if test "x$ac_ct_GDC" = x; then
5751 GDC="no"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759 GDC=$ac_ct_GDC
5760 fi
5761 else
5762 GDC="$ac_cv_prog_GDC"
5763 fi
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5766 $as_echo_n "checking whether the D compiler works... " >&6; }
5767 if ${acx_cv_d_compiler_works+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat >conftest.d <<EOF
5771 module conftest; int main() { return 0; }
5772 EOF
5773 acx_cv_d_compiler_works=no
5774 if test "x$GDC" != xno; then
5775 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5776 if test x"$errors" = x && test -f conftest.$ac_objext; then
5777 acx_cv_d_compiler_works=yes
5778 fi
5779 rm -f conftest.*
5780 fi
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5783 $as_echo "$acx_cv_d_compiler_works" >&6; }
5784 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5785 have_gdc=yes
5786 else
5787 have_gdc=no
5788 fi
5789
5790 for ac_prog in cargo
5791 do
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_CARGO+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$CARGO"; then
5800 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_CARGO="$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 CARGO=$ac_cv_prog_CARGO
5820 if test -n "$CARGO"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5822 $as_echo "$CARGO" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 test -n "$CARGO" && break
5830 done
5831 test -n "$CARGO" || CARGO="no"
5832
5833 if test "x$CARGO" != xno; then
5834 have_cargo=yes
5835 else
5836 have_cargo=no
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5839 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5840 if ${gcc_cv_prog_cmp_skip+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 echo abfoo >t1
5844 echo cdfoo >t2
5845 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5846 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5847 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5848 :
5849 else
5850 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5851 fi
5852 fi
5853 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5854 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5855 :
5856 else
5857 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5858 fi
5859 fi
5860 rm t1 t2
5861
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5864 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5865 do_compare="$gcc_cv_prog_cmp_skip"
5866
5867
5868
5869 # Check whether --enable-bootstrap was given.
5870 if test "${enable_bootstrap+set}" = set; then :
5871 enableval=$enable_bootstrap;
5872 else
5873 enable_bootstrap=default
5874 fi
5875
5876
5877 # Issue errors and warnings for invalid/strange bootstrap combinations.
5878 if test -r $srcdir/gcc/configure; then
5879 have_compiler=yes
5880 else
5881 have_compiler=no
5882 fi
5883
5884 case "$have_compiler:$host:$target:$enable_bootstrap" in
5885 *:*:*:no) ;;
5886
5887 # Default behavior. Enable bootstrap if we have a compiler
5888 # and we are in a native configuration.
5889 yes:$build:$build:default)
5890 enable_bootstrap=yes ;;
5891
5892 *:*:*:default)
5893 enable_bootstrap=no ;;
5894
5895 # We have a compiler and we are in a native configuration, bootstrap is ok
5896 yes:$build:$build:yes)
5897 ;;
5898
5899 # Other configurations, but we have a compiler. Assume the user knows
5900 # what he's doing.
5901 yes:*:*:yes)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5903 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5904 ;;
5905
5906 # No compiler: if they passed --enable-bootstrap explicitly, fail
5907 no:*:*:yes)
5908 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5909
5910 # Fail if wrong command line
5911 *)
5912 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5913 ;;
5914 esac
5915
5916 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5917 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5918 # require C++11 (or higher).
5919 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5920 CXX="$CXX -std=c++11"
5921 elif test "$have_compiler" = yes; then
5922 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5923 ac_ext=cpp
5924 ac_cpp='$CXXCPP $CPPFLAGS'
5925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928 ac_success=no
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5931 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5932 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937
5938
5939 // If the compiler admits that it is not ready for C++11, why torture it?
5940 // Hopefully, this will speed up the test.
5941
5942 #ifndef __cplusplus
5943
5944 #error "This is not a C++ compiler"
5945
5946 #elif __cplusplus < 201103L
5947
5948 #error "This is not a C++11 compiler"
5949
5950 #else
5951
5952 namespace cxx11
5953 {
5954
5955 namespace test_static_assert
5956 {
5957
5958 template <typename T>
5959 struct check
5960 {
5961 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5962 };
5963
5964 }
5965
5966 namespace test_final_override
5967 {
5968
5969 struct Base
5970 {
5971 virtual ~Base() {}
5972 virtual void f() {}
5973 };
5974
5975 struct Derived : public Base
5976 {
5977 virtual ~Derived() override {}
5978 virtual void f() override {}
5979 };
5980
5981 }
5982
5983 namespace test_double_right_angle_brackets
5984 {
5985
5986 template < typename T >
5987 struct check {};
5988
5989 typedef check<void> single_type;
5990 typedef check<check<void>> double_type;
5991 typedef check<check<check<void>>> triple_type;
5992 typedef check<check<check<check<void>>>> quadruple_type;
5993
5994 }
5995
5996 namespace test_decltype
5997 {
5998
5999 int
6000 f()
6001 {
6002 int a = 1;
6003 decltype(a) b = 2;
6004 return a + b;
6005 }
6006
6007 }
6008
6009 namespace test_type_deduction
6010 {
6011
6012 template < typename T1, typename T2 >
6013 struct is_same
6014 {
6015 static const bool value = false;
6016 };
6017
6018 template < typename T >
6019 struct is_same<T, T>
6020 {
6021 static const bool value = true;
6022 };
6023
6024 template < typename T1, typename T2 >
6025 auto
6026 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6027 {
6028 return a1 + a2;
6029 }
6030
6031 int
6032 test(const int c, volatile int v)
6033 {
6034 static_assert(is_same<int, decltype(0)>::value == true, "");
6035 static_assert(is_same<int, decltype(c)>::value == false, "");
6036 static_assert(is_same<int, decltype(v)>::value == false, "");
6037 auto ac = c;
6038 auto av = v;
6039 auto sumi = ac + av + 'x';
6040 auto sumf = ac + av + 1.0;
6041 static_assert(is_same<int, decltype(ac)>::value == true, "");
6042 static_assert(is_same<int, decltype(av)>::value == true, "");
6043 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6045 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6046 return (sumf > 0.0) ? sumi : add(c, v);
6047 }
6048
6049 }
6050
6051 namespace test_noexcept
6052 {
6053
6054 int f() { return 0; }
6055 int g() noexcept { return 0; }
6056
6057 static_assert(noexcept(f()) == false, "");
6058 static_assert(noexcept(g()) == true, "");
6059
6060 }
6061
6062 namespace test_constexpr
6063 {
6064
6065 template < typename CharT >
6066 unsigned long constexpr
6067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6068 {
6069 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6070 }
6071
6072 template < typename CharT >
6073 unsigned long constexpr
6074 strlen_c(const CharT *const s) noexcept
6075 {
6076 return strlen_c_r(s, 0UL);
6077 }
6078
6079 static_assert(strlen_c("") == 0UL, "");
6080 static_assert(strlen_c("1") == 1UL, "");
6081 static_assert(strlen_c("example") == 7UL, "");
6082 static_assert(strlen_c("another\0example") == 7UL, "");
6083
6084 }
6085
6086 namespace test_rvalue_references
6087 {
6088
6089 template < int N >
6090 struct answer
6091 {
6092 static constexpr int value = N;
6093 };
6094
6095 answer<1> f(int&) { return answer<1>(); }
6096 answer<2> f(const int&) { return answer<2>(); }
6097 answer<3> f(int&&) { return answer<3>(); }
6098
6099 void
6100 test()
6101 {
6102 int i = 0;
6103 const int c = 0;
6104 static_assert(decltype(f(i))::value == 1, "");
6105 static_assert(decltype(f(c))::value == 2, "");
6106 static_assert(decltype(f(0))::value == 3, "");
6107 }
6108
6109 }
6110
6111 namespace test_uniform_initialization
6112 {
6113
6114 struct test
6115 {
6116 static const int zero {};
6117 static const int one {1};
6118 };
6119
6120 static_assert(test::zero == 0, "");
6121 static_assert(test::one == 1, "");
6122
6123 }
6124
6125 namespace test_lambdas
6126 {
6127
6128 void
6129 test1()
6130 {
6131 auto lambda1 = [](){};
6132 auto lambda2 = lambda1;
6133 lambda1();
6134 lambda2();
6135 }
6136
6137 int
6138 test2()
6139 {
6140 auto a = [](int i, int j){ return i + j; }(1, 2);
6141 auto b = []() -> int { return '0'; }();
6142 auto c = [=](){ return a + b; }();
6143 auto d = [&](){ return c; }();
6144 auto e = [a, &b](int x) mutable {
6145 const auto identity = [](int y){ return y; };
6146 for (auto i = 0; i < a; ++i)
6147 a += b--;
6148 return x + identity(a + b);
6149 }(0);
6150 return a + b + c + d + e;
6151 }
6152
6153 int
6154 test3()
6155 {
6156 const auto nullary = [](){ return 0; };
6157 const auto unary = [](int x){ return x; };
6158 using nullary_t = decltype(nullary);
6159 using unary_t = decltype(unary);
6160 const auto higher1st = [](nullary_t f){ return f(); };
6161 const auto higher2nd = [unary](nullary_t f1){
6162 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6163 };
6164 return higher1st(nullary) + higher2nd(nullary)(unary);
6165 }
6166
6167 }
6168
6169 namespace test_variadic_templates
6170 {
6171
6172 template <int...>
6173 struct sum;
6174
6175 template <int N0, int... N1toN>
6176 struct sum<N0, N1toN...>
6177 {
6178 static constexpr auto value = N0 + sum<N1toN...>::value;
6179 };
6180
6181 template <>
6182 struct sum<>
6183 {
6184 static constexpr auto value = 0;
6185 };
6186
6187 static_assert(sum<>::value == 0, "");
6188 static_assert(sum<1>::value == 1, "");
6189 static_assert(sum<23>::value == 23, "");
6190 static_assert(sum<1, 2>::value == 3, "");
6191 static_assert(sum<5, 5, 11>::value == 21, "");
6192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6193
6194 }
6195
6196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6198 // because of this.
6199 namespace test_template_alias_sfinae
6200 {
6201
6202 struct foo {};
6203
6204 template<typename T>
6205 using member = typename T::member_type;
6206
6207 template<typename T>
6208 void func(...) {}
6209
6210 template<typename T>
6211 void func(member<T>*) {}
6212
6213 void test();
6214
6215 void test() { func<foo>(0); }
6216
6217 }
6218
6219 } // namespace cxx11
6220
6221 #endif // __cplusplus >= 201103L
6222
6223
6224
6225 _ACEOF
6226 if ac_fn_cxx_try_compile "$LINENO"; then :
6227 ax_cv_cxx_compile_cxx11=yes
6228 else
6229 ax_cv_cxx_compile_cxx11=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6234 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6235 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6236 ac_success=yes
6237 fi
6238
6239 if test x$ac_success = xno; then
6240 for alternative in ${ax_cxx_compile_alternatives}; do
6241 switch="-std=gnu++${alternative}"
6242 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6245 if eval \${$cachevar+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 ac_save_CXX="$CXX"
6249 CXX="$CXX $switch"
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252
6253
6254 // If the compiler admits that it is not ready for C++11, why torture it?
6255 // Hopefully, this will speed up the test.
6256
6257 #ifndef __cplusplus
6258
6259 #error "This is not a C++ compiler"
6260
6261 #elif __cplusplus < 201103L
6262
6263 #error "This is not a C++11 compiler"
6264
6265 #else
6266
6267 namespace cxx11
6268 {
6269
6270 namespace test_static_assert
6271 {
6272
6273 template <typename T>
6274 struct check
6275 {
6276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6277 };
6278
6279 }
6280
6281 namespace test_final_override
6282 {
6283
6284 struct Base
6285 {
6286 virtual ~Base() {}
6287 virtual void f() {}
6288 };
6289
6290 struct Derived : public Base
6291 {
6292 virtual ~Derived() override {}
6293 virtual void f() override {}
6294 };
6295
6296 }
6297
6298 namespace test_double_right_angle_brackets
6299 {
6300
6301 template < typename T >
6302 struct check {};
6303
6304 typedef check<void> single_type;
6305 typedef check<check<void>> double_type;
6306 typedef check<check<check<void>>> triple_type;
6307 typedef check<check<check<check<void>>>> quadruple_type;
6308
6309 }
6310
6311 namespace test_decltype
6312 {
6313
6314 int
6315 f()
6316 {
6317 int a = 1;
6318 decltype(a) b = 2;
6319 return a + b;
6320 }
6321
6322 }
6323
6324 namespace test_type_deduction
6325 {
6326
6327 template < typename T1, typename T2 >
6328 struct is_same
6329 {
6330 static const bool value = false;
6331 };
6332
6333 template < typename T >
6334 struct is_same<T, T>
6335 {
6336 static const bool value = true;
6337 };
6338
6339 template < typename T1, typename T2 >
6340 auto
6341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6342 {
6343 return a1 + a2;
6344 }
6345
6346 int
6347 test(const int c, volatile int v)
6348 {
6349 static_assert(is_same<int, decltype(0)>::value == true, "");
6350 static_assert(is_same<int, decltype(c)>::value == false, "");
6351 static_assert(is_same<int, decltype(v)>::value == false, "");
6352 auto ac = c;
6353 auto av = v;
6354 auto sumi = ac + av + 'x';
6355 auto sumf = ac + av + 1.0;
6356 static_assert(is_same<int, decltype(ac)>::value == true, "");
6357 static_assert(is_same<int, decltype(av)>::value == true, "");
6358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6361 return (sumf > 0.0) ? sumi : add(c, v);
6362 }
6363
6364 }
6365
6366 namespace test_noexcept
6367 {
6368
6369 int f() { return 0; }
6370 int g() noexcept { return 0; }
6371
6372 static_assert(noexcept(f()) == false, "");
6373 static_assert(noexcept(g()) == true, "");
6374
6375 }
6376
6377 namespace test_constexpr
6378 {
6379
6380 template < typename CharT >
6381 unsigned long constexpr
6382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6383 {
6384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6385 }
6386
6387 template < typename CharT >
6388 unsigned long constexpr
6389 strlen_c(const CharT *const s) noexcept
6390 {
6391 return strlen_c_r(s, 0UL);
6392 }
6393
6394 static_assert(strlen_c("") == 0UL, "");
6395 static_assert(strlen_c("1") == 1UL, "");
6396 static_assert(strlen_c("example") == 7UL, "");
6397 static_assert(strlen_c("another\0example") == 7UL, "");
6398
6399 }
6400
6401 namespace test_rvalue_references
6402 {
6403
6404 template < int N >
6405 struct answer
6406 {
6407 static constexpr int value = N;
6408 };
6409
6410 answer<1> f(int&) { return answer<1>(); }
6411 answer<2> f(const int&) { return answer<2>(); }
6412 answer<3> f(int&&) { return answer<3>(); }
6413
6414 void
6415 test()
6416 {
6417 int i = 0;
6418 const int c = 0;
6419 static_assert(decltype(f(i))::value == 1, "");
6420 static_assert(decltype(f(c))::value == 2, "");
6421 static_assert(decltype(f(0))::value == 3, "");
6422 }
6423
6424 }
6425
6426 namespace test_uniform_initialization
6427 {
6428
6429 struct test
6430 {
6431 static const int zero {};
6432 static const int one {1};
6433 };
6434
6435 static_assert(test::zero == 0, "");
6436 static_assert(test::one == 1, "");
6437
6438 }
6439
6440 namespace test_lambdas
6441 {
6442
6443 void
6444 test1()
6445 {
6446 auto lambda1 = [](){};
6447 auto lambda2 = lambda1;
6448 lambda1();
6449 lambda2();
6450 }
6451
6452 int
6453 test2()
6454 {
6455 auto a = [](int i, int j){ return i + j; }(1, 2);
6456 auto b = []() -> int { return '0'; }();
6457 auto c = [=](){ return a + b; }();
6458 auto d = [&](){ return c; }();
6459 auto e = [a, &b](int x) mutable {
6460 const auto identity = [](int y){ return y; };
6461 for (auto i = 0; i < a; ++i)
6462 a += b--;
6463 return x + identity(a + b);
6464 }(0);
6465 return a + b + c + d + e;
6466 }
6467
6468 int
6469 test3()
6470 {
6471 const auto nullary = [](){ return 0; };
6472 const auto unary = [](int x){ return x; };
6473 using nullary_t = decltype(nullary);
6474 using unary_t = decltype(unary);
6475 const auto higher1st = [](nullary_t f){ return f(); };
6476 const auto higher2nd = [unary](nullary_t f1){
6477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6478 };
6479 return higher1st(nullary) + higher2nd(nullary)(unary);
6480 }
6481
6482 }
6483
6484 namespace test_variadic_templates
6485 {
6486
6487 template <int...>
6488 struct sum;
6489
6490 template <int N0, int... N1toN>
6491 struct sum<N0, N1toN...>
6492 {
6493 static constexpr auto value = N0 + sum<N1toN...>::value;
6494 };
6495
6496 template <>
6497 struct sum<>
6498 {
6499 static constexpr auto value = 0;
6500 };
6501
6502 static_assert(sum<>::value == 0, "");
6503 static_assert(sum<1>::value == 1, "");
6504 static_assert(sum<23>::value == 23, "");
6505 static_assert(sum<1, 2>::value == 3, "");
6506 static_assert(sum<5, 5, 11>::value == 21, "");
6507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6508
6509 }
6510
6511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6513 // because of this.
6514 namespace test_template_alias_sfinae
6515 {
6516
6517 struct foo {};
6518
6519 template<typename T>
6520 using member = typename T::member_type;
6521
6522 template<typename T>
6523 void func(...) {}
6524
6525 template<typename T>
6526 void func(member<T>*) {}
6527
6528 void test();
6529
6530 void test() { func<foo>(0); }
6531
6532 }
6533
6534 } // namespace cxx11
6535
6536 #endif // __cplusplus >= 201103L
6537
6538
6539
6540 _ACEOF
6541 if ac_fn_cxx_try_compile "$LINENO"; then :
6542 eval $cachevar=yes
6543 else
6544 eval $cachevar=no
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 CXX="$ac_save_CXX"
6548 fi
6549 eval ac_res=\$$cachevar
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if eval test x\$$cachevar = xyes; then
6553 CXX="$CXX $switch"
6554 if test -n "$CXXCPP" ; then
6555 CXXCPP="$CXXCPP $switch"
6556 fi
6557 ac_success=yes
6558 break
6559 fi
6560 done
6561 fi
6562
6563 if test x$ac_success = xno; then
6564 for alternative in ${ax_cxx_compile_alternatives}; do
6565 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6566 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6568 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6569 if eval \${$cachevar+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 ac_save_CXX="$CXX"
6573 CXX="$CXX $switch"
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576
6577
6578 // If the compiler admits that it is not ready for C++11, why torture it?
6579 // Hopefully, this will speed up the test.
6580
6581 #ifndef __cplusplus
6582
6583 #error "This is not a C++ compiler"
6584
6585 #elif __cplusplus < 201103L
6586
6587 #error "This is not a C++11 compiler"
6588
6589 #else
6590
6591 namespace cxx11
6592 {
6593
6594 namespace test_static_assert
6595 {
6596
6597 template <typename T>
6598 struct check
6599 {
6600 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6601 };
6602
6603 }
6604
6605 namespace test_final_override
6606 {
6607
6608 struct Base
6609 {
6610 virtual ~Base() {}
6611 virtual void f() {}
6612 };
6613
6614 struct Derived : public Base
6615 {
6616 virtual ~Derived() override {}
6617 virtual void f() override {}
6618 };
6619
6620 }
6621
6622 namespace test_double_right_angle_brackets
6623 {
6624
6625 template < typename T >
6626 struct check {};
6627
6628 typedef check<void> single_type;
6629 typedef check<check<void>> double_type;
6630 typedef check<check<check<void>>> triple_type;
6631 typedef check<check<check<check<void>>>> quadruple_type;
6632
6633 }
6634
6635 namespace test_decltype
6636 {
6637
6638 int
6639 f()
6640 {
6641 int a = 1;
6642 decltype(a) b = 2;
6643 return a + b;
6644 }
6645
6646 }
6647
6648 namespace test_type_deduction
6649 {
6650
6651 template < typename T1, typename T2 >
6652 struct is_same
6653 {
6654 static const bool value = false;
6655 };
6656
6657 template < typename T >
6658 struct is_same<T, T>
6659 {
6660 static const bool value = true;
6661 };
6662
6663 template < typename T1, typename T2 >
6664 auto
6665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6666 {
6667 return a1 + a2;
6668 }
6669
6670 int
6671 test(const int c, volatile int v)
6672 {
6673 static_assert(is_same<int, decltype(0)>::value == true, "");
6674 static_assert(is_same<int, decltype(c)>::value == false, "");
6675 static_assert(is_same<int, decltype(v)>::value == false, "");
6676 auto ac = c;
6677 auto av = v;
6678 auto sumi = ac + av + 'x';
6679 auto sumf = ac + av + 1.0;
6680 static_assert(is_same<int, decltype(ac)>::value == true, "");
6681 static_assert(is_same<int, decltype(av)>::value == true, "");
6682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6685 return (sumf > 0.0) ? sumi : add(c, v);
6686 }
6687
6688 }
6689
6690 namespace test_noexcept
6691 {
6692
6693 int f() { return 0; }
6694 int g() noexcept { return 0; }
6695
6696 static_assert(noexcept(f()) == false, "");
6697 static_assert(noexcept(g()) == true, "");
6698
6699 }
6700
6701 namespace test_constexpr
6702 {
6703
6704 template < typename CharT >
6705 unsigned long constexpr
6706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6707 {
6708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6709 }
6710
6711 template < typename CharT >
6712 unsigned long constexpr
6713 strlen_c(const CharT *const s) noexcept
6714 {
6715 return strlen_c_r(s, 0UL);
6716 }
6717
6718 static_assert(strlen_c("") == 0UL, "");
6719 static_assert(strlen_c("1") == 1UL, "");
6720 static_assert(strlen_c("example") == 7UL, "");
6721 static_assert(strlen_c("another\0example") == 7UL, "");
6722
6723 }
6724
6725 namespace test_rvalue_references
6726 {
6727
6728 template < int N >
6729 struct answer
6730 {
6731 static constexpr int value = N;
6732 };
6733
6734 answer<1> f(int&) { return answer<1>(); }
6735 answer<2> f(const int&) { return answer<2>(); }
6736 answer<3> f(int&&) { return answer<3>(); }
6737
6738 void
6739 test()
6740 {
6741 int i = 0;
6742 const int c = 0;
6743 static_assert(decltype(f(i))::value == 1, "");
6744 static_assert(decltype(f(c))::value == 2, "");
6745 static_assert(decltype(f(0))::value == 3, "");
6746 }
6747
6748 }
6749
6750 namespace test_uniform_initialization
6751 {
6752
6753 struct test
6754 {
6755 static const int zero {};
6756 static const int one {1};
6757 };
6758
6759 static_assert(test::zero == 0, "");
6760 static_assert(test::one == 1, "");
6761
6762 }
6763
6764 namespace test_lambdas
6765 {
6766
6767 void
6768 test1()
6769 {
6770 auto lambda1 = [](){};
6771 auto lambda2 = lambda1;
6772 lambda1();
6773 lambda2();
6774 }
6775
6776 int
6777 test2()
6778 {
6779 auto a = [](int i, int j){ return i + j; }(1, 2);
6780 auto b = []() -> int { return '0'; }();
6781 auto c = [=](){ return a + b; }();
6782 auto d = [&](){ return c; }();
6783 auto e = [a, &b](int x) mutable {
6784 const auto identity = [](int y){ return y; };
6785 for (auto i = 0; i < a; ++i)
6786 a += b--;
6787 return x + identity(a + b);
6788 }(0);
6789 return a + b + c + d + e;
6790 }
6791
6792 int
6793 test3()
6794 {
6795 const auto nullary = [](){ return 0; };
6796 const auto unary = [](int x){ return x; };
6797 using nullary_t = decltype(nullary);
6798 using unary_t = decltype(unary);
6799 const auto higher1st = [](nullary_t f){ return f(); };
6800 const auto higher2nd = [unary](nullary_t f1){
6801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6802 };
6803 return higher1st(nullary) + higher2nd(nullary)(unary);
6804 }
6805
6806 }
6807
6808 namespace test_variadic_templates
6809 {
6810
6811 template <int...>
6812 struct sum;
6813
6814 template <int N0, int... N1toN>
6815 struct sum<N0, N1toN...>
6816 {
6817 static constexpr auto value = N0 + sum<N1toN...>::value;
6818 };
6819
6820 template <>
6821 struct sum<>
6822 {
6823 static constexpr auto value = 0;
6824 };
6825
6826 static_assert(sum<>::value == 0, "");
6827 static_assert(sum<1>::value == 1, "");
6828 static_assert(sum<23>::value == 23, "");
6829 static_assert(sum<1, 2>::value == 3, "");
6830 static_assert(sum<5, 5, 11>::value == 21, "");
6831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6832
6833 }
6834
6835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6837 // because of this.
6838 namespace test_template_alias_sfinae
6839 {
6840
6841 struct foo {};
6842
6843 template<typename T>
6844 using member = typename T::member_type;
6845
6846 template<typename T>
6847 void func(...) {}
6848
6849 template<typename T>
6850 void func(member<T>*) {}
6851
6852 void test();
6853
6854 void test() { func<foo>(0); }
6855
6856 }
6857
6858 } // namespace cxx11
6859
6860 #endif // __cplusplus >= 201103L
6861
6862
6863
6864 _ACEOF
6865 if ac_fn_cxx_try_compile "$LINENO"; then :
6866 eval $cachevar=yes
6867 else
6868 eval $cachevar=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 CXX="$ac_save_CXX"
6872 fi
6873 eval ac_res=\$$cachevar
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6875 $as_echo "$ac_res" >&6; }
6876 if eval test x\$$cachevar = xyes; then
6877 CXX="$CXX $switch"
6878 if test -n "$CXXCPP" ; then
6879 CXXCPP="$CXXCPP $switch"
6880 fi
6881 ac_success=yes
6882 break
6883 fi
6884 done
6885 if test x$ac_success = xyes; then
6886 break
6887 fi
6888 done
6889 fi
6890
6891 ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6898 if test x$ac_success = xno; then
6899 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6900 fi
6901 fi
6902 if test x$ac_success = xno; then
6903 HAVE_CXX11=0
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6905 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6906 else
6907 HAVE_CXX11=1
6908
6909 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6910
6911 fi
6912
6913
6914
6915 if test "${build}" != "${host}"; then
6916 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6917 ac_ext=cpp
6918 ac_cpp='$CXXCPP $CPPFLAGS'
6919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6922 ac_success=no
6923 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6924 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6925 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6926 CXX="$CXX_FOR_BUILD"
6927 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6928 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6930 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6931 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936
6937
6938 // If the compiler admits that it is not ready for C++11, why torture it?
6939 // Hopefully, this will speed up the test.
6940
6941 #ifndef __cplusplus
6942
6943 #error "This is not a C++ compiler"
6944
6945 #elif __cplusplus < 201103L
6946
6947 #error "This is not a C++11 compiler"
6948
6949 #else
6950
6951 namespace cxx11
6952 {
6953
6954 namespace test_static_assert
6955 {
6956
6957 template <typename T>
6958 struct check
6959 {
6960 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6961 };
6962
6963 }
6964
6965 namespace test_final_override
6966 {
6967
6968 struct Base
6969 {
6970 virtual ~Base() {}
6971 virtual void f() {}
6972 };
6973
6974 struct Derived : public Base
6975 {
6976 virtual ~Derived() override {}
6977 virtual void f() override {}
6978 };
6979
6980 }
6981
6982 namespace test_double_right_angle_brackets
6983 {
6984
6985 template < typename T >
6986 struct check {};
6987
6988 typedef check<void> single_type;
6989 typedef check<check<void>> double_type;
6990 typedef check<check<check<void>>> triple_type;
6991 typedef check<check<check<check<void>>>> quadruple_type;
6992
6993 }
6994
6995 namespace test_decltype
6996 {
6997
6998 int
6999 f()
7000 {
7001 int a = 1;
7002 decltype(a) b = 2;
7003 return a + b;
7004 }
7005
7006 }
7007
7008 namespace test_type_deduction
7009 {
7010
7011 template < typename T1, typename T2 >
7012 struct is_same
7013 {
7014 static const bool value = false;
7015 };
7016
7017 template < typename T >
7018 struct is_same<T, T>
7019 {
7020 static const bool value = true;
7021 };
7022
7023 template < typename T1, typename T2 >
7024 auto
7025 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7026 {
7027 return a1 + a2;
7028 }
7029
7030 int
7031 test(const int c, volatile int v)
7032 {
7033 static_assert(is_same<int, decltype(0)>::value == true, "");
7034 static_assert(is_same<int, decltype(c)>::value == false, "");
7035 static_assert(is_same<int, decltype(v)>::value == false, "");
7036 auto ac = c;
7037 auto av = v;
7038 auto sumi = ac + av + 'x';
7039 auto sumf = ac + av + 1.0;
7040 static_assert(is_same<int, decltype(ac)>::value == true, "");
7041 static_assert(is_same<int, decltype(av)>::value == true, "");
7042 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7043 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7044 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7045 return (sumf > 0.0) ? sumi : add(c, v);
7046 }
7047
7048 }
7049
7050 namespace test_noexcept
7051 {
7052
7053 int f() { return 0; }
7054 int g() noexcept { return 0; }
7055
7056 static_assert(noexcept(f()) == false, "");
7057 static_assert(noexcept(g()) == true, "");
7058
7059 }
7060
7061 namespace test_constexpr
7062 {
7063
7064 template < typename CharT >
7065 unsigned long constexpr
7066 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7067 {
7068 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7069 }
7070
7071 template < typename CharT >
7072 unsigned long constexpr
7073 strlen_c(const CharT *const s) noexcept
7074 {
7075 return strlen_c_r(s, 0UL);
7076 }
7077
7078 static_assert(strlen_c("") == 0UL, "");
7079 static_assert(strlen_c("1") == 1UL, "");
7080 static_assert(strlen_c("example") == 7UL, "");
7081 static_assert(strlen_c("another\0example") == 7UL, "");
7082
7083 }
7084
7085 namespace test_rvalue_references
7086 {
7087
7088 template < int N >
7089 struct answer
7090 {
7091 static constexpr int value = N;
7092 };
7093
7094 answer<1> f(int&) { return answer<1>(); }
7095 answer<2> f(const int&) { return answer<2>(); }
7096 answer<3> f(int&&) { return answer<3>(); }
7097
7098 void
7099 test()
7100 {
7101 int i = 0;
7102 const int c = 0;
7103 static_assert(decltype(f(i))::value == 1, "");
7104 static_assert(decltype(f(c))::value == 2, "");
7105 static_assert(decltype(f(0))::value == 3, "");
7106 }
7107
7108 }
7109
7110 namespace test_uniform_initialization
7111 {
7112
7113 struct test
7114 {
7115 static const int zero {};
7116 static const int one {1};
7117 };
7118
7119 static_assert(test::zero == 0, "");
7120 static_assert(test::one == 1, "");
7121
7122 }
7123
7124 namespace test_lambdas
7125 {
7126
7127 void
7128 test1()
7129 {
7130 auto lambda1 = [](){};
7131 auto lambda2 = lambda1;
7132 lambda1();
7133 lambda2();
7134 }
7135
7136 int
7137 test2()
7138 {
7139 auto a = [](int i, int j){ return i + j; }(1, 2);
7140 auto b = []() -> int { return '0'; }();
7141 auto c = [=](){ return a + b; }();
7142 auto d = [&](){ return c; }();
7143 auto e = [a, &b](int x) mutable {
7144 const auto identity = [](int y){ return y; };
7145 for (auto i = 0; i < a; ++i)
7146 a += b--;
7147 return x + identity(a + b);
7148 }(0);
7149 return a + b + c + d + e;
7150 }
7151
7152 int
7153 test3()
7154 {
7155 const auto nullary = [](){ return 0; };
7156 const auto unary = [](int x){ return x; };
7157 using nullary_t = decltype(nullary);
7158 using unary_t = decltype(unary);
7159 const auto higher1st = [](nullary_t f){ return f(); };
7160 const auto higher2nd = [unary](nullary_t f1){
7161 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7162 };
7163 return higher1st(nullary) + higher2nd(nullary)(unary);
7164 }
7165
7166 }
7167
7168 namespace test_variadic_templates
7169 {
7170
7171 template <int...>
7172 struct sum;
7173
7174 template <int N0, int... N1toN>
7175 struct sum<N0, N1toN...>
7176 {
7177 static constexpr auto value = N0 + sum<N1toN...>::value;
7178 };
7179
7180 template <>
7181 struct sum<>
7182 {
7183 static constexpr auto value = 0;
7184 };
7185
7186 static_assert(sum<>::value == 0, "");
7187 static_assert(sum<1>::value == 1, "");
7188 static_assert(sum<23>::value == 23, "");
7189 static_assert(sum<1, 2>::value == 3, "");
7190 static_assert(sum<5, 5, 11>::value == 21, "");
7191 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7192
7193 }
7194
7195 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7196 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7197 // because of this.
7198 namespace test_template_alias_sfinae
7199 {
7200
7201 struct foo {};
7202
7203 template<typename T>
7204 using member = typename T::member_type;
7205
7206 template<typename T>
7207 void func(...) {}
7208
7209 template<typename T>
7210 void func(member<T>*) {}
7211
7212 void test();
7213
7214 void test() { func<foo>(0); }
7215
7216 }
7217
7218 } // namespace cxx11
7219
7220 #endif // __cplusplus >= 201103L
7221
7222
7223
7224 _ACEOF
7225 if ac_fn_cxx_try_compile "$LINENO"; then :
7226 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7227 else
7228 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7233 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7234 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7235 ac_success=yes
7236 fi
7237
7238 if test x$ac_success = xno; then
7239 for alternative in ${ax_cxx_compile_alternatives}; do
7240 switch="-std=gnu++${alternative}"
7241 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7243 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7244 if eval \${$cachevar+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 ac_save_CXX="$CXX"
7248 CXX="$CXX $switch"
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251
7252
7253 // If the compiler admits that it is not ready for C++11, why torture it?
7254 // Hopefully, this will speed up the test.
7255
7256 #ifndef __cplusplus
7257
7258 #error "This is not a C++ compiler"
7259
7260 #elif __cplusplus < 201103L
7261
7262 #error "This is not a C++11 compiler"
7263
7264 #else
7265
7266 namespace cxx11
7267 {
7268
7269 namespace test_static_assert
7270 {
7271
7272 template <typename T>
7273 struct check
7274 {
7275 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7276 };
7277
7278 }
7279
7280 namespace test_final_override
7281 {
7282
7283 struct Base
7284 {
7285 virtual ~Base() {}
7286 virtual void f() {}
7287 };
7288
7289 struct Derived : public Base
7290 {
7291 virtual ~Derived() override {}
7292 virtual void f() override {}
7293 };
7294
7295 }
7296
7297 namespace test_double_right_angle_brackets
7298 {
7299
7300 template < typename T >
7301 struct check {};
7302
7303 typedef check<void> single_type;
7304 typedef check<check<void>> double_type;
7305 typedef check<check<check<void>>> triple_type;
7306 typedef check<check<check<check<void>>>> quadruple_type;
7307
7308 }
7309
7310 namespace test_decltype
7311 {
7312
7313 int
7314 f()
7315 {
7316 int a = 1;
7317 decltype(a) b = 2;
7318 return a + b;
7319 }
7320
7321 }
7322
7323 namespace test_type_deduction
7324 {
7325
7326 template < typename T1, typename T2 >
7327 struct is_same
7328 {
7329 static const bool value = false;
7330 };
7331
7332 template < typename T >
7333 struct is_same<T, T>
7334 {
7335 static const bool value = true;
7336 };
7337
7338 template < typename T1, typename T2 >
7339 auto
7340 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7341 {
7342 return a1 + a2;
7343 }
7344
7345 int
7346 test(const int c, volatile int v)
7347 {
7348 static_assert(is_same<int, decltype(0)>::value == true, "");
7349 static_assert(is_same<int, decltype(c)>::value == false, "");
7350 static_assert(is_same<int, decltype(v)>::value == false, "");
7351 auto ac = c;
7352 auto av = v;
7353 auto sumi = ac + av + 'x';
7354 auto sumf = ac + av + 1.0;
7355 static_assert(is_same<int, decltype(ac)>::value == true, "");
7356 static_assert(is_same<int, decltype(av)>::value == true, "");
7357 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7358 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7359 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7360 return (sumf > 0.0) ? sumi : add(c, v);
7361 }
7362
7363 }
7364
7365 namespace test_noexcept
7366 {
7367
7368 int f() { return 0; }
7369 int g() noexcept { return 0; }
7370
7371 static_assert(noexcept(f()) == false, "");
7372 static_assert(noexcept(g()) == true, "");
7373
7374 }
7375
7376 namespace test_constexpr
7377 {
7378
7379 template < typename CharT >
7380 unsigned long constexpr
7381 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7382 {
7383 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7384 }
7385
7386 template < typename CharT >
7387 unsigned long constexpr
7388 strlen_c(const CharT *const s) noexcept
7389 {
7390 return strlen_c_r(s, 0UL);
7391 }
7392
7393 static_assert(strlen_c("") == 0UL, "");
7394 static_assert(strlen_c("1") == 1UL, "");
7395 static_assert(strlen_c("example") == 7UL, "");
7396 static_assert(strlen_c("another\0example") == 7UL, "");
7397
7398 }
7399
7400 namespace test_rvalue_references
7401 {
7402
7403 template < int N >
7404 struct answer
7405 {
7406 static constexpr int value = N;
7407 };
7408
7409 answer<1> f(int&) { return answer<1>(); }
7410 answer<2> f(const int&) { return answer<2>(); }
7411 answer<3> f(int&&) { return answer<3>(); }
7412
7413 void
7414 test()
7415 {
7416 int i = 0;
7417 const int c = 0;
7418 static_assert(decltype(f(i))::value == 1, "");
7419 static_assert(decltype(f(c))::value == 2, "");
7420 static_assert(decltype(f(0))::value == 3, "");
7421 }
7422
7423 }
7424
7425 namespace test_uniform_initialization
7426 {
7427
7428 struct test
7429 {
7430 static const int zero {};
7431 static const int one {1};
7432 };
7433
7434 static_assert(test::zero == 0, "");
7435 static_assert(test::one == 1, "");
7436
7437 }
7438
7439 namespace test_lambdas
7440 {
7441
7442 void
7443 test1()
7444 {
7445 auto lambda1 = [](){};
7446 auto lambda2 = lambda1;
7447 lambda1();
7448 lambda2();
7449 }
7450
7451 int
7452 test2()
7453 {
7454 auto a = [](int i, int j){ return i + j; }(1, 2);
7455 auto b = []() -> int { return '0'; }();
7456 auto c = [=](){ return a + b; }();
7457 auto d = [&](){ return c; }();
7458 auto e = [a, &b](int x) mutable {
7459 const auto identity = [](int y){ return y; };
7460 for (auto i = 0; i < a; ++i)
7461 a += b--;
7462 return x + identity(a + b);
7463 }(0);
7464 return a + b + c + d + e;
7465 }
7466
7467 int
7468 test3()
7469 {
7470 const auto nullary = [](){ return 0; };
7471 const auto unary = [](int x){ return x; };
7472 using nullary_t = decltype(nullary);
7473 using unary_t = decltype(unary);
7474 const auto higher1st = [](nullary_t f){ return f(); };
7475 const auto higher2nd = [unary](nullary_t f1){
7476 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7477 };
7478 return higher1st(nullary) + higher2nd(nullary)(unary);
7479 }
7480
7481 }
7482
7483 namespace test_variadic_templates
7484 {
7485
7486 template <int...>
7487 struct sum;
7488
7489 template <int N0, int... N1toN>
7490 struct sum<N0, N1toN...>
7491 {
7492 static constexpr auto value = N0 + sum<N1toN...>::value;
7493 };
7494
7495 template <>
7496 struct sum<>
7497 {
7498 static constexpr auto value = 0;
7499 };
7500
7501 static_assert(sum<>::value == 0, "");
7502 static_assert(sum<1>::value == 1, "");
7503 static_assert(sum<23>::value == 23, "");
7504 static_assert(sum<1, 2>::value == 3, "");
7505 static_assert(sum<5, 5, 11>::value == 21, "");
7506 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7507
7508 }
7509
7510 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7511 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7512 // because of this.
7513 namespace test_template_alias_sfinae
7514 {
7515
7516 struct foo {};
7517
7518 template<typename T>
7519 using member = typename T::member_type;
7520
7521 template<typename T>
7522 void func(...) {}
7523
7524 template<typename T>
7525 void func(member<T>*) {}
7526
7527 void test();
7528
7529 void test() { func<foo>(0); }
7530
7531 }
7532
7533 } // namespace cxx11
7534
7535 #endif // __cplusplus >= 201103L
7536
7537
7538
7539 _ACEOF
7540 if ac_fn_cxx_try_compile "$LINENO"; then :
7541 eval $cachevar=yes
7542 else
7543 eval $cachevar=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 CXX="$ac_save_CXX"
7547 fi
7548 eval ac_res=\$$cachevar
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7550 $as_echo "$ac_res" >&6; }
7551 if eval test x\$$cachevar = xyes; then
7552 CXX="$CXX $switch"
7553 if test -n "$CXXCPP" ; then
7554 CXXCPP="$CXXCPP $switch"
7555 fi
7556 ac_success=yes
7557 break
7558 fi
7559 done
7560 fi
7561
7562 if test x$ac_success = xno; then
7563 for alternative in ${ax_cxx_compile_alternatives}; do
7564 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7565 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7567 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7568 if eval \${$cachevar+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 ac_save_CXX="$CXX"
7572 CXX="$CXX $switch"
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575
7576
7577 // If the compiler admits that it is not ready for C++11, why torture it?
7578 // Hopefully, this will speed up the test.
7579
7580 #ifndef __cplusplus
7581
7582 #error "This is not a C++ compiler"
7583
7584 #elif __cplusplus < 201103L
7585
7586 #error "This is not a C++11 compiler"
7587
7588 #else
7589
7590 namespace cxx11
7591 {
7592
7593 namespace test_static_assert
7594 {
7595
7596 template <typename T>
7597 struct check
7598 {
7599 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7600 };
7601
7602 }
7603
7604 namespace test_final_override
7605 {
7606
7607 struct Base
7608 {
7609 virtual ~Base() {}
7610 virtual void f() {}
7611 };
7612
7613 struct Derived : public Base
7614 {
7615 virtual ~Derived() override {}
7616 virtual void f() override {}
7617 };
7618
7619 }
7620
7621 namespace test_double_right_angle_brackets
7622 {
7623
7624 template < typename T >
7625 struct check {};
7626
7627 typedef check<void> single_type;
7628 typedef check<check<void>> double_type;
7629 typedef check<check<check<void>>> triple_type;
7630 typedef check<check<check<check<void>>>> quadruple_type;
7631
7632 }
7633
7634 namespace test_decltype
7635 {
7636
7637 int
7638 f()
7639 {
7640 int a = 1;
7641 decltype(a) b = 2;
7642 return a + b;
7643 }
7644
7645 }
7646
7647 namespace test_type_deduction
7648 {
7649
7650 template < typename T1, typename T2 >
7651 struct is_same
7652 {
7653 static const bool value = false;
7654 };
7655
7656 template < typename T >
7657 struct is_same<T, T>
7658 {
7659 static const bool value = true;
7660 };
7661
7662 template < typename T1, typename T2 >
7663 auto
7664 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7665 {
7666 return a1 + a2;
7667 }
7668
7669 int
7670 test(const int c, volatile int v)
7671 {
7672 static_assert(is_same<int, decltype(0)>::value == true, "");
7673 static_assert(is_same<int, decltype(c)>::value == false, "");
7674 static_assert(is_same<int, decltype(v)>::value == false, "");
7675 auto ac = c;
7676 auto av = v;
7677 auto sumi = ac + av + 'x';
7678 auto sumf = ac + av + 1.0;
7679 static_assert(is_same<int, decltype(ac)>::value == true, "");
7680 static_assert(is_same<int, decltype(av)>::value == true, "");
7681 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7682 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7683 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7684 return (sumf > 0.0) ? sumi : add(c, v);
7685 }
7686
7687 }
7688
7689 namespace test_noexcept
7690 {
7691
7692 int f() { return 0; }
7693 int g() noexcept { return 0; }
7694
7695 static_assert(noexcept(f()) == false, "");
7696 static_assert(noexcept(g()) == true, "");
7697
7698 }
7699
7700 namespace test_constexpr
7701 {
7702
7703 template < typename CharT >
7704 unsigned long constexpr
7705 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7706 {
7707 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7708 }
7709
7710 template < typename CharT >
7711 unsigned long constexpr
7712 strlen_c(const CharT *const s) noexcept
7713 {
7714 return strlen_c_r(s, 0UL);
7715 }
7716
7717 static_assert(strlen_c("") == 0UL, "");
7718 static_assert(strlen_c("1") == 1UL, "");
7719 static_assert(strlen_c("example") == 7UL, "");
7720 static_assert(strlen_c("another\0example") == 7UL, "");
7721
7722 }
7723
7724 namespace test_rvalue_references
7725 {
7726
7727 template < int N >
7728 struct answer
7729 {
7730 static constexpr int value = N;
7731 };
7732
7733 answer<1> f(int&) { return answer<1>(); }
7734 answer<2> f(const int&) { return answer<2>(); }
7735 answer<3> f(int&&) { return answer<3>(); }
7736
7737 void
7738 test()
7739 {
7740 int i = 0;
7741 const int c = 0;
7742 static_assert(decltype(f(i))::value == 1, "");
7743 static_assert(decltype(f(c))::value == 2, "");
7744 static_assert(decltype(f(0))::value == 3, "");
7745 }
7746
7747 }
7748
7749 namespace test_uniform_initialization
7750 {
7751
7752 struct test
7753 {
7754 static const int zero {};
7755 static const int one {1};
7756 };
7757
7758 static_assert(test::zero == 0, "");
7759 static_assert(test::one == 1, "");
7760
7761 }
7762
7763 namespace test_lambdas
7764 {
7765
7766 void
7767 test1()
7768 {
7769 auto lambda1 = [](){};
7770 auto lambda2 = lambda1;
7771 lambda1();
7772 lambda2();
7773 }
7774
7775 int
7776 test2()
7777 {
7778 auto a = [](int i, int j){ return i + j; }(1, 2);
7779 auto b = []() -> int { return '0'; }();
7780 auto c = [=](){ return a + b; }();
7781 auto d = [&](){ return c; }();
7782 auto e = [a, &b](int x) mutable {
7783 const auto identity = [](int y){ return y; };
7784 for (auto i = 0; i < a; ++i)
7785 a += b--;
7786 return x + identity(a + b);
7787 }(0);
7788 return a + b + c + d + e;
7789 }
7790
7791 int
7792 test3()
7793 {
7794 const auto nullary = [](){ return 0; };
7795 const auto unary = [](int x){ return x; };
7796 using nullary_t = decltype(nullary);
7797 using unary_t = decltype(unary);
7798 const auto higher1st = [](nullary_t f){ return f(); };
7799 const auto higher2nd = [unary](nullary_t f1){
7800 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7801 };
7802 return higher1st(nullary) + higher2nd(nullary)(unary);
7803 }
7804
7805 }
7806
7807 namespace test_variadic_templates
7808 {
7809
7810 template <int...>
7811 struct sum;
7812
7813 template <int N0, int... N1toN>
7814 struct sum<N0, N1toN...>
7815 {
7816 static constexpr auto value = N0 + sum<N1toN...>::value;
7817 };
7818
7819 template <>
7820 struct sum<>
7821 {
7822 static constexpr auto value = 0;
7823 };
7824
7825 static_assert(sum<>::value == 0, "");
7826 static_assert(sum<1>::value == 1, "");
7827 static_assert(sum<23>::value == 23, "");
7828 static_assert(sum<1, 2>::value == 3, "");
7829 static_assert(sum<5, 5, 11>::value == 21, "");
7830 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7831
7832 }
7833
7834 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7835 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7836 // because of this.
7837 namespace test_template_alias_sfinae
7838 {
7839
7840 struct foo {};
7841
7842 template<typename T>
7843 using member = typename T::member_type;
7844
7845 template<typename T>
7846 void func(...) {}
7847
7848 template<typename T>
7849 void func(member<T>*) {}
7850
7851 void test();
7852
7853 void test() { func<foo>(0); }
7854
7855 }
7856
7857 } // namespace cxx11
7858
7859 #endif // __cplusplus >= 201103L
7860
7861
7862
7863 _ACEOF
7864 if ac_fn_cxx_try_compile "$LINENO"; then :
7865 eval $cachevar=yes
7866 else
7867 eval $cachevar=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 CXX="$ac_save_CXX"
7871 fi
7872 eval ac_res=\$$cachevar
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7874 $as_echo "$ac_res" >&6; }
7875 if eval test x\$$cachevar = xyes; then
7876 CXX="$CXX $switch"
7877 if test -n "$CXXCPP" ; then
7878 CXXCPP="$CXXCPP $switch"
7879 fi
7880 ac_success=yes
7881 break
7882 fi
7883 done
7884 if test x$ac_success = xyes; then
7885 break
7886 fi
7887 done
7888 fi
7889 CXX_FOR_BUILD="$CXX"
7890 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7891 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7892 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7893 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7894 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7895 ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7902 if test x$ac_success = xno; then
7903 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7904 fi
7905 fi
7906 if test x$ac_success = xno; then
7907 HAVE_CXX11_FOR_BUILD=0
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7909 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7910 else
7911 HAVE_CXX11_FOR_BUILD=1
7912
7913 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7914
7915 fi
7916
7917
7918 fi
7919 fi
7920
7921 # Check whether --enable-pgo-build was given.
7922 if test "${enable_pgo_build+set}" = set; then :
7923 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7924 else
7925 enable_pgo_build=no
7926 fi
7927
7928
7929 # Issue errors and warnings for invalid/strange PGO build combinations.
7930 case "$have_compiler:$host:$target:$enable_pgo_build" in
7931 *:*:*:no) ;;
7932
7933 # Allow the PGO build only if we aren't building a compiler and
7934 # we are in a native configuration.
7935 no:$build:$build:yes | no:$build:$build:lto) ;;
7936
7937 # Disallow the PGO bootstrap if we are building a compiler.
7938 yes:*:*:yes | yes:*:*:lto)
7939 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7940
7941 *)
7942 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7943 ;;
7944 esac
7945
7946 if test "$enable_pgo_build" != "no"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7948 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7949 old_CFLAGS="$CFLAGS"
7950 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7951 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7952
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 int foo;
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958
7959 else
7960 PGO_BUILD_GEN_CFLAGS=
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 CFLAGS="$old_CFLAGS"
7964 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7966 $as_echo "yes" >&6; }
7967 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7972 fi
7973
7974 if test "$enable_pgo_build" = "lto"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7976 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7977 old_CFLAGS="$CFLAGS"
7978 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7979 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int foo;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985
7986 else
7987 PGO_BUILD_LTO_CFLAGS=
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 CFLAGS="$old_CFLAGS"
7991 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993 $as_echo "yes" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7998 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7999 fi
8000 fi
8001 fi
8002
8003
8004
8005
8006 # Used for setting $lt_cv_objdir
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8008 $as_echo_n "checking for objdir... " >&6; }
8009 if ${lt_cv_objdir+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 rm -f .libs 2>/dev/null
8013 mkdir .libs 2>/dev/null
8014 if test -d .libs; then
8015 lt_cv_objdir=.libs
8016 else
8017 # MS-DOS does not allow filenames that begin with a dot.
8018 lt_cv_objdir=_libs
8019 fi
8020 rmdir .libs 2>/dev/null
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8023 $as_echo "$lt_cv_objdir" >&6; }
8024 objdir=$lt_cv_objdir
8025
8026
8027
8028
8029
8030 cat >>confdefs.h <<_ACEOF
8031 #define LT_OBJDIR "$lt_cv_objdir/"
8032 _ACEOF
8033
8034
8035
8036 # Check for GMP, MPFR and MPC
8037 require_gmp=no
8038 require_mpc=no
8039 if test -d ${srcdir}/gcc ; then
8040 require_gmp=yes
8041 require_mpc=yes
8042 fi
8043 if test -d ${srcdir}/gdb ; then
8044 if test "x$enable_gdb" != xno; then
8045 require_gmp=yes
8046 fi
8047 fi
8048
8049 gmplibs="-lmpfr -lgmp"
8050 if test x"$require_mpc" = "xyes" ; then
8051 gmplibs="-lmpc $gmplibs"
8052 fi
8053 gmpinc=
8054 have_gmp=no
8055
8056 # Specify a location for mpc
8057 # check for this first so it ends up on the link line before mpfr.
8058
8059 # Check whether --with-mpc was given.
8060 if test "${with_mpc+set}" = set; then :
8061 withval=$with_mpc;
8062 fi
8063
8064
8065 # Check whether --with-mpc-include was given.
8066 if test "${with_mpc_include+set}" = set; then :
8067 withval=$with_mpc_include;
8068 fi
8069
8070
8071 # Check whether --with-mpc-lib was given.
8072 if test "${with_mpc_lib+set}" = set; then :
8073 withval=$with_mpc_lib;
8074 fi
8075
8076
8077 if test "x$with_mpc" != x; then
8078 gmplibs="-L$with_mpc/lib $gmplibs"
8079 gmpinc="-I$with_mpc/include $gmpinc"
8080 fi
8081 if test "x$with_mpc_include" != x; then
8082 gmpinc="-I$with_mpc_include $gmpinc"
8083 fi
8084 if test "x$with_mpc_lib" != x; then
8085 gmplibs="-L$with_mpc_lib $gmplibs"
8086 fi
8087 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8088 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8089 gmpinc='-I$$s/mpc/src '"$gmpinc"
8090 # Do not test the mpc version. Assume that it is sufficient, since
8091 # it is in the source tree, and the library has not been built yet
8092 # but it would be included on the link line in the version check below
8093 # hence making the test fail.
8094 have_gmp=yes
8095 fi
8096
8097 # Specify a location for mpfr
8098 # check for this first so it ends up on the link line before gmp.
8099
8100 # Check whether --with-mpfr was given.
8101 if test "${with_mpfr+set}" = set; then :
8102 withval=$with_mpfr;
8103 fi
8104
8105
8106 # Check whether --with-mpfr-include was given.
8107 if test "${with_mpfr_include+set}" = set; then :
8108 withval=$with_mpfr_include;
8109 fi
8110
8111
8112 # Check whether --with-mpfr-lib was given.
8113 if test "${with_mpfr_lib+set}" = set; then :
8114 withval=$with_mpfr_lib;
8115 fi
8116
8117
8118 if test "x$with_mpfr" != x; then
8119 gmplibs="-L$with_mpfr/lib $gmplibs"
8120 gmpinc="-I$with_mpfr/include $gmpinc"
8121 fi
8122 if test "x$with_mpfr_include" != x; then
8123 gmpinc="-I$with_mpfr_include $gmpinc"
8124 fi
8125 if test "x$with_mpfr_lib" != x; then
8126 gmplibs="-L$with_mpfr_lib $gmplibs"
8127 fi
8128 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8129 # MPFR v3.1.0 moved the sources into a src sub-directory.
8130 if ! test -d ${srcdir}/mpfr/src; then
8131 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8132 fi
8133 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8134 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8135 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8136 # Do not test the mpfr version. Assume that it is sufficient, since
8137 # it is in the source tree, and the library has not been built yet
8138 # but it would be included on the link line in the version check below
8139 # hence making the test fail.
8140 have_gmp=yes
8141 fi
8142
8143 # Specify a location for gmp
8144
8145 # Check whether --with-gmp was given.
8146 if test "${with_gmp+set}" = set; then :
8147 withval=$with_gmp;
8148 fi
8149
8150
8151 # Check whether --with-gmp-include was given.
8152 if test "${with_gmp_include+set}" = set; then :
8153 withval=$with_gmp_include;
8154 fi
8155
8156
8157 # Check whether --with-gmp-lib was given.
8158 if test "${with_gmp_lib+set}" = set; then :
8159 withval=$with_gmp_lib;
8160 fi
8161
8162
8163
8164 if test "x$with_gmp" != x; then
8165 gmplibs="-L$with_gmp/lib $gmplibs"
8166 gmpinc="-I$with_gmp/include $gmpinc"
8167 fi
8168 if test "x$with_gmp_include" != x; then
8169 gmpinc="-I$with_gmp_include $gmpinc"
8170 fi
8171 if test "x$with_gmp_lib" != x; then
8172 gmplibs="-L$with_gmp_lib $gmplibs"
8173 fi
8174 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8175 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8176 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8177 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8178 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8179 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8180 # Do not test the gmp version. Assume that it is sufficient, since
8181 # it is in the source tree, and the library has not been built yet
8182 # but it would be included on the link line in the version check below
8183 # hence making the test fail.
8184 have_gmp=yes
8185 fi
8186
8187 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8188 have_gmp=yes
8189 saved_CFLAGS="$CFLAGS"
8190 CFLAGS="$CFLAGS $gmpinc"
8191 # Check for the recommended and required versions of GMP.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8193 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #include "gmp.h"
8197 int
8198 main ()
8199 {
8200
8201 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8202 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8203 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8204 choke me
8205 #endif
8206
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <gmp.h>
8215 int
8216 main ()
8217 {
8218
8219 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8220 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8221 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8222 choke me
8223 #endif
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"; then :
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8234 $as_echo "buggy but acceptable" >&6; }
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }; have_gmp=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242
8243 # If we have GMP, check the MPFR version.
8244 if test x"$have_gmp" = xyes; then
8245 # Check for the recommended and required versions of MPFR.
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8247 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <gmp.h>
8251 #include <mpfr.h>
8252 int
8253 main ()
8254 {
8255
8256 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8257 choke me
8258 #endif
8259
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_compile "$LINENO"; then :
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 #include <gmp.h>
8268 #include <mpfr.h>
8269 int
8270 main ()
8271 {
8272
8273 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8274 choke me
8275 #endif
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8286 $as_echo "buggy but acceptable" >&6; }
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }; have_gmp=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295
8296 # Check for the MPC header version.
8297 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8298 # Check for the recommended and required versions of MPC.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8300 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <mpc.h>
8304 int
8305 main ()
8306 {
8307
8308 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8309 choke me
8310 #endif
8311
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"; then :
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 #include <mpc.h>
8320 int
8321 main ()
8322 {
8323
8324 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8325 choke me
8326 #endif
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8334 $as_echo "yes" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8337 $as_echo "buggy but acceptable" >&6; }
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }; have_gmp=no
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346
8347 # Now check the MPFR library.
8348 if test x"$have_gmp" = xyes; then
8349 saved_LIBS="$LIBS"
8350 LIBS="$LIBS $gmplibs"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8352 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #include <mpfr.h>
8356 int
8357 main ()
8358 {
8359
8360 mpfr_t n;
8361 mpfr_t x;
8362 int t;
8363 mpfr_init (n);
8364 mpfr_init (x);
8365 mpfr_atan2 (n, n, x, MPFR_RNDN);
8366 mpfr_erfc (n, x, MPFR_RNDN);
8367 mpfr_subnormalize (x, t, MPFR_RNDN);
8368 mpfr_clear(n);
8369 mpfr_clear(x);
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8377 $as_echo "yes" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }; have_gmp=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS="$saved_LIBS"
8385 fi
8386
8387 # Now check the MPC library
8388 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8389 saved_LIBS="$LIBS"
8390 LIBS="$LIBS $gmplibs"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8392 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <mpc.h>
8396 int
8397 main ()
8398 {
8399
8400 mpc_t c;
8401 mpc_init2 (c, 53);
8402 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8403 mpc_cosh (c, c, MPC_RNDNN);
8404 mpc_pow (c, c, c, MPC_RNDNN);
8405 mpc_acosh (c, c, MPC_RNDNN);
8406 mpc_clear (c);
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414 $as_echo "yes" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }; have_gmp=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 LIBS="$saved_LIBS"
8422 fi
8423
8424 CFLAGS="$saved_CFLAGS"
8425
8426 # The library versions listed in the error message below should match
8427 # the HARD-minimums enforced above.
8428 if test x$have_gmp != xyes; then
8429 if test -d ${srcdir}/gcc ; then
8430 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8431 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8432 their locations. Source code for these libraries can be found at
8433 their respective hosting sites as well as at
8434 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8435 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8436 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8437 make sure that you have installed both the libraries and the header
8438 files. They may be located in separate packages." "$LINENO" 5
8439 else
8440 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8441 Try the --with-gmp and/or --with-mpfr options to specify
8442 their locations. If you obtained GMP and/or MPFR from a vendor
8443 distribution package, make sure that you have installed both the libraries
8444 and the header files. They may be located in separate packages." "$LINENO" 5
8445 fi
8446 fi
8447 fi
8448
8449 # Flags needed for both GMP, MPFR and/or MPC.
8450
8451
8452
8453
8454
8455
8456
8457 # Libraries to use for stage1 or when not bootstrapping.
8458
8459 # Check whether --with-stage1-libs was given.
8460 if test "${with_stage1_libs+set}" = set; then :
8461 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8462 stage1_libs=
8463 else
8464 stage1_libs=$withval
8465 fi
8466 else
8467 stage1_libs=
8468 fi
8469
8470
8471
8472 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8473 # default is yes if gcc is being built; no otherwise. The reason for
8474 # this default is that gdb is sometimes linked against GNU Source
8475 # Highlight, which is a shared library that uses C++ exceptions. In
8476 # this case, -static-libstdc++ will cause crashes.
8477
8478 # Check whether --with-static-standard-libraries was given.
8479 if test "${with_static_standard_libraries+set}" = set; then :
8480 withval=$with_static_standard_libraries;
8481 else
8482 with_static_standard_libraries=auto
8483 fi
8484
8485 if test "$with_static_standard_libraries" = auto; then
8486 with_static_standard_libraries=$have_compiler
8487 fi
8488
8489 # Linker flags to use for stage1 or when not bootstrapping.
8490
8491 # Check whether --with-stage1-ldflags was given.
8492 if test "${with_stage1_ldflags+set}" = set; then :
8493 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8494 stage1_ldflags=
8495 else
8496 stage1_ldflags=$withval
8497 fi
8498 else
8499 stage1_ldflags=
8500 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8501 # if supported. But if the user explicitly specified the libraries to use,
8502 # trust that they are doing what they want.
8503 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8504 -a "$have_static_libs" = yes; then
8505 stage1_ldflags="-static-libstdc++ -static-libgcc"
8506 fi
8507 fi
8508
8509
8510
8511 # Libraries to use for stage2 and later builds.
8512
8513 # Check whether --with-boot-libs was given.
8514 if test "${with_boot_libs+set}" = set; then :
8515 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8516 poststage1_libs=
8517 else
8518 poststage1_libs=$withval
8519 fi
8520 else
8521 poststage1_libs=
8522 fi
8523
8524
8525
8526 # Linker flags to use for stage2 and later builds.
8527
8528 # Check whether --with-boot-ldflags was given.
8529 if test "${with_boot_ldflags+set}" = set; then :
8530 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8531 poststage1_ldflags=
8532 else
8533 poststage1_ldflags=$withval
8534 fi
8535 else
8536 poststage1_ldflags=
8537 # In stages 2 and 3, default to linking libstdc++ and libgcc
8538 # statically. But if the user explicitly specified the libraries to
8539 # use, trust that they are doing what they want.
8540 if test "$poststage1_libs" = ""; then
8541 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8542 fi
8543 fi
8544
8545 case $target in
8546 *-darwin2* | *-darwin1[56789]*)
8547 # For these versions, we default to using embedded rpaths.
8548 if test "x$enable_darwin_at_rpath" != "xno"; then
8549 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8550 fi
8551 ;;
8552 *-darwin*)
8553 # For these versions, we only use embedded rpaths on demand.
8554 if test "x$enable_darwin_at_rpath" = "xyes"; then
8555 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8556 fi
8557 ;;
8558 esac
8559
8560
8561 # GCC GRAPHITE dependency isl.
8562 # Basic setup is inlined here, actual checks are in config/isl.m4
8563
8564
8565 # Check whether --with-isl was given.
8566 if test "${with_isl+set}" = set; then :
8567 withval=$with_isl;
8568 fi
8569
8570
8571 # Treat --without-isl as a request to disable
8572 # GRAPHITE support and skip all following checks.
8573 if test "x$with_isl" != "xno"; then
8574 # Check for isl
8575
8576
8577 # Check whether --with-isl-include was given.
8578 if test "${with_isl_include+set}" = set; then :
8579 withval=$with_isl_include;
8580 fi
8581
8582
8583 # Check whether --with-isl-lib was given.
8584 if test "${with_isl_lib+set}" = set; then :
8585 withval=$with_isl_lib;
8586 fi
8587
8588
8589 # Check whether --enable-isl-version-check was given.
8590 if test "${enable_isl_version_check+set}" = set; then :
8591 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8592 else
8593 ENABLE_ISL_CHECK=yes
8594 fi
8595
8596
8597 # Initialize isllibs and islinc.
8598 case $with_isl in
8599 no)
8600 isllibs=
8601 islinc=
8602 ;;
8603 "" | yes)
8604 ;;
8605 *)
8606 isllibs="-L$with_isl/lib"
8607 islinc="-I$with_isl/include"
8608 ;;
8609 esac
8610 if test "x${with_isl_include}" != x ; then
8611 islinc="-I$with_isl_include"
8612 fi
8613 if test "x${with_isl_lib}" != x; then
8614 isllibs="-L$with_isl_lib"
8615 fi
8616 if test "x${islinc}" = x && test "x${isllibs}" = x \
8617 && test -d ${srcdir}/isl; then
8618 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8619 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8620 ENABLE_ISL_CHECK=no
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8622 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8623 fi
8624
8625 isllibs="${isllibs} -lisl"
8626
8627
8628
8629 if test "${ENABLE_ISL_CHECK}" = yes ; then
8630 _isl_saved_CFLAGS=$CFLAGS
8631 _isl_saved_LDFLAGS=$LDFLAGS
8632 _isl_saved_LIBS=$LIBS
8633
8634 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8635 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8636 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8639 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <isl/schedule.h>
8643 int
8644 main ()
8645 {
8646 isl_options_set_schedule_serialize_sccs (NULL, 0);
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_link "$LINENO"; then :
8652 gcc_cv_isl=yes
8653 else
8654 gcc_cv_isl=no
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8659 $as_echo "$gcc_cv_isl" >&6; }
8660
8661 if test "${gcc_cv_isl}" = no ; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8663 $as_echo "required isl version is 0.15 or later" >&6; }
8664 fi
8665
8666 CFLAGS=$_isl_saved_CFLAGS
8667 LDFLAGS=$_isl_saved_LDFLAGS
8668 LIBS=$_isl_saved_LIBS
8669 fi
8670
8671
8672
8673
8674
8675
8676 if test "x${with_isl}" = xno; then
8677 graphite_requested=no
8678 elif test "x${with_isl}" != x \
8679 || test "x${with_isl_include}" != x \
8680 || test "x${with_isl_lib}" != x ; then
8681 graphite_requested=yes
8682 else
8683 graphite_requested=no
8684 fi
8685
8686
8687
8688 if test "${gcc_cv_isl}" = no ; then
8689 isllibs=
8690 islinc=
8691 fi
8692
8693 if test "${graphite_requested}" = yes \
8694 && test "x${isllibs}" = x \
8695 && test "x${islinc}" = x ; then
8696
8697 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8698 fi
8699
8700
8701 fi
8702
8703 # If the isl check failed, disable builds of in-tree variant of isl
8704 if test "x$with_isl" = xno ||
8705 test "x$gcc_cv_isl" = xno; then
8706 noconfigdirs="$noconfigdirs isl"
8707 islinc=
8708 fi
8709
8710
8711
8712
8713 # Check for LTO support.
8714 # Check whether --enable-lto was given.
8715 if test "${enable_lto+set}" = set; then :
8716 enableval=$enable_lto; enable_lto=$enableval
8717 else
8718 enable_lto=yes; default_enable_lto=yes
8719 fi
8720
8721
8722
8723
8724
8725 target_elf=no
8726 case $target in
8727 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8728 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8729 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8730 nvptx-*-none)
8731 target_elf=no
8732 ;;
8733 *)
8734 target_elf=yes
8735 ;;
8736 esac
8737
8738 if test $target_elf = yes; then :
8739 # ELF platforms build the lto-plugin always.
8740 build_lto_plugin=yes
8741
8742 else
8743 if test x"$default_enable_lto" = x"yes" ; then
8744 case $target in
8745 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8746 # On other non-ELF platforms, LTO has yet to be validated.
8747 *) enable_lto=no ;;
8748 esac
8749 else
8750 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8751 # It would also be nice to check the binutils support, but we don't
8752 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8753 # warn during gcc/ subconfigure; unless you're bootstrapping with
8754 # -flto it won't be needed until after installation anyway.
8755 case $target in
8756 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8757 *) if test x"$enable_lto" = x"yes"; then
8758 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8759 fi
8760 ;;
8761 esac
8762 fi
8763 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8764 # Build it unless LTO was explicitly disabled.
8765 case $target in
8766 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8767 *) ;;
8768 esac
8769
8770 fi
8771
8772
8773 # Check whether --enable-linker-plugin-configure-flags was given.
8774 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8775 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8776 else
8777 extra_linker_plugin_configure_flags=
8778 fi
8779
8780
8781 # Check whether --enable-linker-plugin-flags was given.
8782 if test "${enable_linker_plugin_flags+set}" = set; then :
8783 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8784 else
8785 extra_linker_plugin_flags=
8786 fi
8787
8788
8789
8790 # Handle --enable-host-pie
8791 # If host PIE executables are the default (or must be forced on) for some host,
8792 # we must pass that configuration to the gcc directory.
8793 gcc_host_pie=
8794 # Check whether --enable-host-pie was given.
8795 if test "${enable_host_pie+set}" = set; then :
8796 enableval=$enable_host_pie; host_pie=$enableval
8797 case $host in
8798 *-*-darwin2*)
8799 if test x$host_pie != xyes ; then
8800 # for Darwin20+ this is required.
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8802 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8803 host_pie=yes
8804 gcc_host_pie=--enable-host-pie
8805 fi ;;
8806 *) ;;
8807 esac
8808 else
8809 case $host in
8810 *-*-darwin2*)
8811 # Default to PIE (mandatory for aarch64).
8812 host_pie=yes
8813 gcc_host_pie=--enable-host-pie
8814 ;;
8815 *) host_pie=no ;;
8816 esac
8817 fi
8818
8819
8820
8821
8822
8823 # Enable --enable-host-shared.
8824 # Checked early to determine whether jit is an 'all' language
8825 # Check whether --enable-host-shared was given.
8826 if test "${enable_host_shared+set}" = set; then :
8827 enableval=$enable_host_shared; host_shared=$enableval
8828 case $host in
8829 x86_64-*-darwin* | aarch64-*-darwin*)
8830 if test x$host_shared != xyes ; then
8831 # PIC is the default, and actually cannot be switched off.
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8833 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8834 host_shared=yes
8835 fi ;;
8836 *-*-darwin*)
8837 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8839 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8840 host_shared=yes
8841 fi ;;
8842 *) ;;
8843 esac
8844 else
8845 case $host in
8846 # 64B x86_64 and Aarch64 Darwin default to PIC.
8847 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8848 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8849 *-*-darwin*) host_shared=$host_pie ;;
8850 *) host_shared=no;;
8851 esac
8852 fi
8853
8854
8855
8856
8857 if test x$host_shared = xyes; then
8858 case $host in
8859 *-*-darwin*)
8860 # Since host shared is the default for 64b Darwin, and also enabled for
8861 # host_pie, ensure that we present the PIE flag when host_pie is active.
8862 if test x$host_pie = xyes; then
8863 PICFLAG=-fPIE
8864 fi
8865 ;;
8866 *)
8867 PICFLAG=-fPIC
8868 ;;
8869 esac
8870 elif test x$host_pie = xyes; then
8871 PICFLAG=-fPIE
8872 else
8873 PICFLAG=
8874 fi
8875
8876
8877
8878 # If we are building PIC/PIE host executables, and we are building dependent
8879 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8880 # code.
8881 host_libs_picflag=
8882 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8883 host_libs_picflag='--with-pic'
8884 fi
8885
8886
8887 # By default, C and C++ are the only stage 1 languages.
8888 stage1_languages=,c,
8889
8890 # Target libraries that we bootstrap.
8891 bootstrap_target_libs=,target-libgcc,
8892
8893 # Figure out what language subdirectories are present.
8894 # Look if the user specified --enable-languages="..."; if not, use
8895 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8896 # go away some day.
8897 # NB: embedded tabs in this IF block -- do not untabify
8898 if test -d ${srcdir}/gcc; then
8899 if test x"${enable_languages+set}" != xset; then
8900 if test x"${LANGUAGES+set}" = xset; then
8901 enable_languages="${LANGUAGES}"
8902 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8903 else
8904 enable_languages=default
8905 fi
8906 else
8907 if test x"${enable_languages}" = x ||
8908 test x"${enable_languages}" = xyes;
8909 then
8910 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8911 exit 1
8912 fi
8913 fi
8914 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8915
8916 # 'f95' is the old name for the 'fortran' language. We issue a warning
8917 # and make the substitution.
8918 case ,${enable_languages}, in
8919 *,f95,*)
8920 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8921 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8922 ;;
8923 esac
8924
8925 # If bootstrapping, C++ must be enabled.
8926 case ",$enable_languages,:$enable_bootstrap" in
8927 *,c++,*:*) ;;
8928 *:yes)
8929 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8930 enable_languages="${enable_languages},c++"
8931 else
8932 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8933 fi
8934 ;;
8935 esac
8936
8937 # First scan to see if an enabled language requires some other language.
8938 # We assume that a given config-lang.in will list all the language
8939 # front ends it requires, even if some are required indirectly.
8940 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8941 case ${lang_frag} in
8942 ..) ;;
8943 # The odd quoting in the next line works around
8944 # an apparent bug in bash 1.12 on linux.
8945 ${srcdir}/gcc/[*]/config-lang.in) ;;
8946 *)
8947 # From the config-lang.in, get $language, $lang_requires, and
8948 # $lang_requires_boot_languages.
8949 language=
8950 lang_requires=
8951 lang_requires_boot_languages=
8952 # set srcdir during sourcing lang_frag to the gcc dir.
8953 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8954 # polutes this shell
8955 saved_srcdir=${srcdir}
8956 srcdir=${srcdir}/gcc . ${lang_frag}
8957 srcdir=${saved_srcdir}
8958 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8959 case ,${enable_languages}, in
8960 *,$other,*) ;;
8961 *,default,*) ;;
8962 *,all,*) ;;
8963 *,$language,*)
8964 echo " \`$other' language required by \`$language'; enabling" 1>&2
8965 enable_languages="${enable_languages},${other}"
8966 ;;
8967 esac
8968 done
8969 for other in ${lang_requires_boot_languages} ; do
8970 if test "$other" != "c"; then
8971 case ,${enable_stage1_languages}, in
8972 *,$other,*) ;;
8973 *,default,*) ;;
8974 *,all,*) ;;
8975 *)
8976 case ,${enable_languages}, in
8977 *,$language,*)
8978 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8979 enable_stage1_languages="$enable_stage1_languages,${other}"
8980 ;;
8981 esac
8982 ;;
8983 esac
8984 fi
8985 done
8986 ;;
8987 esac
8988 done
8989
8990 new_enable_languages=,c,
8991
8992 # If LTO is enabled, add the LTO front end.
8993 if test "$enable_lto" = "yes" ; then
8994 case ,${enable_languages}, in
8995 *,lto,*) ;;
8996 *) enable_languages="${enable_languages},lto" ;;
8997 esac
8998 if test "${build_lto_plugin}" = "yes" ; then
8999 configdirs="$configdirs lto-plugin"
9000 fi
9001 fi
9002
9003 # If we're building an offloading compiler, add the LTO front end.
9004 if test x"$enable_as_accelerator_for" != x ; then
9005 case ,${enable_languages}, in
9006 *,lto,*) ;;
9007 *) enable_languages="${enable_languages},lto" ;;
9008 esac
9009 fi
9010
9011 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9012 potential_languages=,c,
9013
9014 enabled_target_libs=
9015 disabled_target_libs=
9016
9017 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9018 case ${lang_frag} in
9019 ..) ;;
9020 # The odd quoting in the next line works around
9021 # an apparent bug in bash 1.12 on linux.
9022 ${srcdir}/gcc/[*]/config-lang.in) ;;
9023 *)
9024 # From the config-lang.in, get $language, $target_libs,
9025 # $lang_dirs, $boot_language, and $build_by_default
9026 language=
9027 target_libs=
9028 lang_dirs=
9029 subdir_requires=
9030 boot_language=no
9031 build_by_default=yes
9032 # set srcdir during sourcing. See above about save & restore
9033 saved_srcdir=${srcdir}
9034 srcdir=${srcdir}/gcc . ${lang_frag}
9035 srcdir=${saved_srcdir}
9036 if test x${language} = x; then
9037 echo "${lang_frag} doesn't set \$language." 1>&2
9038 exit 1
9039 fi
9040
9041 if test "$language" = "c++"; then
9042 boot_language=yes
9043 fi
9044
9045 add_this_lang=no
9046 # C is always enabled, so no need to add it again
9047 if test "$language" != "c"; then
9048 case ,${enable_languages}, in
9049 *,${language},*)
9050 # Language was explicitly selected; include it
9051 add_this_lang=yes
9052 ;;
9053 *,all,*)
9054 # All languages are enabled
9055 add_this_lang=all
9056 ;;
9057 *,default,*)
9058 # 'default' was selected, select it if it is a default language
9059 add_this_lang=${build_by_default}
9060 ;;
9061 esac
9062 fi
9063
9064 # Disable languages that need other directories if these aren't available.
9065 for i in $subdir_requires; do
9066 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9067 case ${add_this_lang} in
9068 yes)
9069 # Specifically requested language; tell them.
9070 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9071 ;;
9072 all)
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9074 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9075 add_this_lang=unsupported
9076 ;;
9077 *)
9078 # Silently disable.
9079 add_this_lang=unsupported
9080 ;;
9081 esac
9082 done
9083
9084 # Disable Ada if no preexisting GNAT is available.
9085 case ${add_this_lang}:${language}:${have_gnat} in
9086 yes:ada:no)
9087 # Specifically requested language; tell them.
9088 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9089 ;;
9090 all:ada:no)
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9092 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9093 add_this_lang=unsupported
9094 ;;
9095 *:ada:no)
9096 # Silently disable.
9097 add_this_lang=unsupported
9098 ;;
9099 esac
9100
9101 # Disable D if no preexisting GDC is available.
9102 case ${add_this_lang}:${language}:${have_gdc} in
9103 yes:d:no)
9104 # Specifically requested language; tell them.
9105 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9106 ;;
9107 all:d:no)
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9109 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9110 add_this_lang=unsupported
9111 ;;
9112 *:d:no)
9113 # Silently disable.
9114 add_this_lang=unsupported
9115 ;;
9116 esac
9117
9118 # Disable jit if -enable-host-shared not specified
9119 # but not if building for Mingw. All code in Windows
9120 # is position independent code (PIC).
9121 case $target in
9122 *mingw*) ;;
9123 *)
9124 case ${add_this_lang}:${language}:${host_shared} in
9125 yes:jit:no)
9126 # PR jit/64780: explicitly specify --enable-host-shared
9127 as_fn_error $? "
9128 Enabling language \"jit\" requires --enable-host-shared.
9129
9130 --enable-host-shared typically slows the rest of the compiler down by
9131 a few %, so you must explicitly enable it.
9132
9133 If you want to build both the jit and the regular compiler, it is often
9134 best to do this via two separate configure/builds, in separate
9135 directories, to avoid imposing the performance cost of
9136 --enable-host-shared on the regular compiler." "$LINENO" 5
9137 ;;
9138 all:jit:no)
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9140 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9141 add_this_lang=unsupported
9142 ;;
9143 *:jit:no)
9144 # Silently disable.
9145 add_this_lang=unsupported
9146 ;;
9147 esac
9148 ;;
9149 esac
9150
9151 # Pre-conditions to consider whether cargo being supported.
9152 if test x"$have_cargo" = xyes \
9153 && test x"$build" != x"$host"; then
9154 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
9155 # "'cargo' should build for the host system" is resolved:
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
9157 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
9158 have_cargo=no
9159 else
9160 # Assume that cargo-produced object files are compatible with what
9161 # we're going to build here.
9162 :
9163 fi
9164 # Disable Rust if cargo is unavailable.
9165 case ${add_this_lang}:${language}:${have_cargo} in
9166 yes:rust:no)
9167 # Specifically requested language; tell them.
9168 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
9169 ;;
9170 all:rust:no)
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9172 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9173 add_this_lang=unsupported
9174 ;;
9175 *:rust:no)
9176 # Silently disable.
9177 add_this_lang=unsupported
9178 ;;
9179 esac
9180
9181
9182 # Disable a language that is unsupported by the target.
9183 case "${add_this_lang}: $unsupported_languages " in
9184 no:*) ;;
9185 unsupported:*) ;;
9186 *:*" $language "*)
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9188 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9189 add_this_lang=unsupported
9190 ;;
9191 esac
9192
9193 case $add_this_lang in
9194 unsupported)
9195 # Remove language-dependent dirs.
9196 disabled_target_libs="$disabled_target_libs $target_libs"
9197 noconfigdirs="$noconfigdirs $lang_dirs"
9198 ;;
9199 no)
9200 # Remove language-dependent dirs; still show language as supported.
9201 disabled_target_libs="$disabled_target_libs $target_libs"
9202 noconfigdirs="$noconfigdirs $lang_dirs"
9203 potential_languages="${potential_languages}${language},"
9204 ;;
9205 all|yes)
9206 new_enable_languages="${new_enable_languages}${language},"
9207 potential_languages="${potential_languages}${language},"
9208 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9209 enabled_target_libs="$enabled_target_libs $target_libs"
9210 case "${boot_language}:,$enable_stage1_languages," in
9211 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9212 # Add to (comma-separated) list of stage 1 languages.
9213 case ",$stage1_languages," in
9214 *,$language,* | ,yes, | ,all,) ;;
9215 *) stage1_languages="${stage1_languages}${language}," ;;
9216 esac
9217 # We need to bootstrap any supporting libraries.
9218 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9219 ;;
9220 esac
9221 ;;
9222 esac
9223 ;;
9224 esac
9225 done
9226
9227 # Add target libraries which are only needed for disabled languages
9228 # to noconfigdirs.
9229 if test -n "$disabled_target_libs"; then
9230 for dir in $disabled_target_libs; do
9231 case " $enabled_target_libs " in
9232 *" ${dir} "*) ;;
9233 *) noconfigdirs="$noconfigdirs $dir" ;;
9234 esac
9235 done
9236 fi
9237
9238 # Check whether --enable-stage1-languages was given.
9239 if test "${enable_stage1_languages+set}" = set; then :
9240 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9241 ,no,|,,)
9242 # Set it to something that will have no effect in the loop below
9243 enable_stage1_languages=c ;;
9244 ,yes,)
9245 enable_stage1_languages=`echo $new_enable_languages | \
9246 sed -e "s/^,//" -e "s/,$//" ` ;;
9247 *,all,*)
9248 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9249 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9250 esac
9251
9252 # Add "good" languages from enable_stage1_languages to stage1_languages,
9253 # while "bad" languages go in missing_languages. Leave no duplicates.
9254 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9255 case $potential_languages in
9256 *,$i,*)
9257 case $stage1_languages in
9258 *,$i,*) ;;
9259 *) stage1_languages="$stage1_languages$i," ;;
9260 esac ;;
9261 *)
9262 case $missing_languages in
9263 *,$i,*) ;;
9264 *) missing_languages="$missing_languages$i," ;;
9265 esac ;;
9266 esac
9267 done
9268 fi
9269
9270
9271 # Remove leading/trailing commas that were added for simplicity
9272 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9273 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9274 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9275 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9276
9277 if test "x$missing_languages" != x; then
9278 as_fn_error $? "
9279 The following requested languages could not be built: ${missing_languages}
9280 Supported languages are: ${potential_languages}" "$LINENO" 5
9281 fi
9282 if test "x$new_enable_languages" != "x$enable_languages"; then
9283 echo The following languages will be built: ${new_enable_languages}
9284 enable_languages="$new_enable_languages"
9285 fi
9286
9287
9288 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9289 fi
9290
9291 # Handle --disable-<component> generically.
9292 for dir in $configdirs $build_configdirs $target_configdirs ; do
9293 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9294 varname=`echo $dirname | sed -e s/+/_/g`
9295 if eval test x\${enable_${varname}} "=" xno ; then
9296 noconfigdirs="$noconfigdirs $dir"
9297 fi
9298 done
9299
9300 # Check for Boehm's garbage collector
9301 # Check whether --enable-objc-gc was given.
9302 if test "${enable_objc_gc+set}" = set; then :
9303 enableval=$enable_objc_gc;
9304 fi
9305
9306
9307 # Check whether --with-target-bdw-gc was given.
9308 if test "${with_target_bdw_gc+set}" = set; then :
9309 withval=$with_target_bdw_gc;
9310 fi
9311
9312
9313 # Check whether --with-target-bdw-gc-include was given.
9314 if test "${with_target_bdw_gc_include+set}" = set; then :
9315 withval=$with_target_bdw_gc_include;
9316 fi
9317
9318
9319 # Check whether --with-target-bdw-gc-lib was given.
9320 if test "${with_target_bdw_gc_lib+set}" = set; then :
9321 withval=$with_target_bdw_gc_lib;
9322 fi
9323
9324
9325 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9327 $as_echo_n "checking for bdw garbage collector... " >&6; }
9328 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9330 $as_echo "using bdw-gc in default locations" >&6; }
9331 else
9332 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9333 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9334 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9335 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9338 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9339 fi
9340 fi
9341 esac
9342
9343 # Disable libitm, libsanitizer, libvtv if we're not building C++
9344 case ,${enable_languages}, in
9345 *,c++,*)
9346 # Disable libitm, libsanitizer if we're not building libstdc++
9347 case "${noconfigdirs}" in
9348 *target-libstdc++-v3*)
9349 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9350 ;;
9351 *) ;;
9352 esac
9353 ;;
9354 *)
9355 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9356 ;;
9357 esac
9358
9359 case ,${enable_languages}, in
9360 *,rust,*)
9361 case " ${noconfigdirs} " in
9362 *\ target-libstdc++-v3\ *)
9363 # Disable target libgrust if we're not building target libstdc++.
9364 noconfigdirs="$noconfigdirs target-libgrust"
9365 ;;
9366 esac
9367 ;;
9368 esac
9369
9370 # If gcc/ is not in the source tree then we'll not be building a
9371 # target compiler, assume in that case we don't want to build any
9372 # target libraries or tools.
9373 #
9374 # This was added primarily for the benefit for binutils-gdb who reuse
9375 # this configure script, but don't always have target tools available.
9376 if test ! -d ${srcdir}/gcc; then
9377 skipdirs="${skipdirs} ${target_configdirs}"
9378 fi
9379
9380 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9381 # $build_configdirs and $target_configdirs.
9382 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9383
9384 notsupp=""
9385 for dir in . $skipdirs $noconfigdirs ; do
9386 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9387 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9388 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9389 if test -r $srcdir/$dirname/configure ; then
9390 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9391 true
9392 else
9393 notsupp="$notsupp $dir"
9394 fi
9395 fi
9396 fi
9397 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9398 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9399 if test -r $srcdir/$dirname/configure ; then
9400 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9401 true
9402 else
9403 notsupp="$notsupp $dir"
9404 fi
9405 fi
9406 fi
9407 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9408 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9409 if test -r $srcdir/$dirname/configure ; then
9410 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9411 true
9412 else
9413 notsupp="$notsupp $dir"
9414 fi
9415 fi
9416 fi
9417 done
9418
9419 # Quietly strip out all directories which aren't configurable in this tree.
9420 # This relies on all configurable subdirectories being autoconfiscated, which
9421 # is now the case.
9422 build_configdirs_all="$build_configdirs"
9423 build_configdirs=
9424 for i in ${build_configdirs_all} ; do
9425 j=`echo $i | sed -e s/build-//g`
9426 if test -f ${srcdir}/$j/configure ; then
9427 build_configdirs="${build_configdirs} $i"
9428 fi
9429 done
9430
9431 configdirs_all="$configdirs"
9432 configdirs=
9433 for i in ${configdirs_all} ; do
9434 if test -f ${srcdir}/$i/configure ; then
9435 configdirs="${configdirs} $i"
9436 fi
9437 done
9438
9439 target_configdirs_all="$target_configdirs"
9440 target_configdirs=
9441 for i in ${target_configdirs_all} ; do
9442 j=`echo $i | sed -e s/target-//g`
9443 if test -f ${srcdir}/$j/configure ; then
9444 target_configdirs="${target_configdirs} $i"
9445 fi
9446 done
9447
9448 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9449 # so we have to add it after the preceding checks.
9450 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9451 then
9452 case " $configdirs " in
9453 *" libiberty "*)
9454 # If we can build libiberty, we can also build libiberty-linker-plugin.
9455 configdirs="$configdirs libiberty-linker-plugin"
9456 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9457 --with-libiberty=../libiberty-linker-plugin";;
9458 *)
9459 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9460 esac
9461 fi
9462
9463 # Sometimes we have special requirements for the host libiberty.
9464 extra_host_libiberty_configure_flags=
9465 case " $configdirs " in
9466 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9467 # When these are to be built as shared libraries, the same applies to
9468 # libiberty.
9469 extra_host_libiberty_configure_flags=--enable-shared
9470 ;;
9471 esac
9472
9473
9474 # Sometimes we have special requirements for the host zlib.
9475 extra_host_zlib_configure_flags=
9476 case " $configdirs " in
9477 *" bfd "*)
9478 # When bfd is to be built as a shared library, the same applies to
9479 # zlib.
9480 if test "$enable_shared" = "yes"; then
9481 extra_host_zlib_configure_flags=--enable-host-shared
9482 fi
9483 ;;
9484 esac
9485
9486
9487 # Produce a warning message for the subdirs we can't configure.
9488 # This isn't especially interesting in the Cygnus tree, but in the individual
9489 # FSF releases, it's important to let people know when their machine isn't
9490 # supported by the one or two programs in a package.
9491
9492 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9493 # If $appdirs is non-empty, at least one of those directories must still
9494 # be configured, or we error out. (E.g., if the gas release supports a
9495 # specified target in some subdirs but not the gas subdir, we shouldn't
9496 # pretend that all is well.)
9497 if test -n "$appdirs" ; then
9498 for dir in $appdirs ; do
9499 if test -r $dir/Makefile.in ; then
9500 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9501 appdirs=""
9502 break
9503 fi
9504 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9505 appdirs=""
9506 break
9507 fi
9508 fi
9509 done
9510 if test -n "$appdirs" ; then
9511 echo "*** This configuration is not supported by this package." 1>&2
9512 exit 1
9513 fi
9514 fi
9515 # Okay, some application will build, or we don't care to check. Still
9516 # notify of subdirs not getting built.
9517 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9518 echo " ${notsupp}" 1>&2
9519 echo " (Any other directories should still work fine.)" 1>&2
9520 fi
9521
9522 case "$host" in
9523 *msdosdjgpp*)
9524 enable_gdbtk=no ;;
9525 esac
9526
9527 # To find our prefix, in gcc_cv_tool_prefix.
9528
9529 # The user is always right.
9530 if test "${PATH_SEPARATOR+set}" != set; then
9531 echo "#! /bin/sh" >conf$$.sh
9532 echo "exit 0" >>conf$$.sh
9533 chmod +x conf$$.sh
9534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9535 PATH_SEPARATOR=';'
9536 else
9537 PATH_SEPARATOR=:
9538 fi
9539 rm -f conf$$.sh
9540 fi
9541
9542
9543 get_gcc_base_ver="cat"
9544
9545 # Check whether --with-gcc-major-version-only was given.
9546 if test "${with_gcc_major_version_only+set}" = set; then :
9547 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9548 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9549 fi
9550
9551 fi
9552
9553
9554
9555
9556
9557
9558 if test "x$exec_prefix" = xNONE; then
9559 if test "x$prefix" = xNONE; then
9560 gcc_cv_tool_prefix=$ac_default_prefix
9561 else
9562 gcc_cv_tool_prefix=$prefix
9563 fi
9564 else
9565 gcc_cv_tool_prefix=$exec_prefix
9566 fi
9567
9568 # If there is no compiler in the tree, use the PATH only. In any
9569 # case, if there is no compiler in the tree nobody should use
9570 # AS_FOR_TARGET and LD_FOR_TARGET.
9571 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9572 if test x$with_gcc_major_version_only = xyes ; then
9573 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9574 else
9575 gcc_version=`cat $srcdir/gcc/BASE-VER`
9576 fi
9577 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9578 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9579 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9580 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9581 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9582 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9583 else
9584 gcc_cv_tool_dirs=
9585 fi
9586
9587 if test x$build = x$target && test -n "$md_exec_prefix"; then
9588 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9589 fi
9590
9591
9592
9593 copy_dirs=
9594
9595
9596 # Check whether --with-build-sysroot was given.
9597 if test "${with_build_sysroot+set}" = set; then :
9598 withval=$with_build_sysroot; if test x"$withval" != x ; then
9599 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9600 fi
9601 else
9602 SYSROOT_CFLAGS_FOR_TARGET=
9603 fi
9604
9605
9606
9607
9608 # Check whether --with-debug-prefix-map was given.
9609 if test "${with_debug_prefix_map+set}" = set; then :
9610 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9611 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9612 for debug_map in $withval; do
9613 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9614 done
9615 fi
9616 else
9617 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9618 fi
9619
9620
9621
9622 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9623 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9624 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9625 # We want to ensure that TARGET libraries (which we know are built with
9626 # gcc) are built with "-O2 -g", so include those options when setting
9627 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9628 if test "x$CFLAGS_FOR_TARGET" = x; then
9629 if test "x${is_cross_compiler}" = xyes; then
9630 CFLAGS_FOR_TARGET="-g -O2"
9631 else
9632 CFLAGS_FOR_TARGET=$CFLAGS
9633 case " $CFLAGS " in
9634 *" -O2 "*) ;;
9635 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9636 esac
9637 case " $CFLAGS " in
9638 *" -g "* | *" -g3 "*) ;;
9639 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9640 esac
9641 fi
9642 fi
9643
9644
9645 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9646 if test "x${is_cross_compiler}" = xyes; then
9647 CXXFLAGS_FOR_TARGET="-g -O2"
9648 else
9649 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9650 case " $CXXFLAGS " in
9651 *" -O2 "*) ;;
9652 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9653 esac
9654 case " $CXXFLAGS " in
9655 *" -g "* | *" -g3 "*) ;;
9656 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9657 esac
9658 fi
9659 fi
9660
9661
9662
9663
9664 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9665 # the named directory are copied to $(tooldir)/sys-include.
9666 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9667 if test x${is_cross_compiler} = xno ; then
9668 echo 1>&2 '***' --with-headers is only supported when cross compiling
9669 exit 1
9670 fi
9671 if test x"${with_headers}" != xyes ; then
9672 x=${gcc_cv_tool_prefix}
9673 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9674 fi
9675 fi
9676
9677 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9678 # the name directories are copied to $(tooldir)/lib. Multiple directories
9679 # are permitted.
9680 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9681 if test x${is_cross_compiler} = xno ; then
9682 echo 1>&2 '***' --with-libs is only supported when cross compiling
9683 exit 1
9684 fi
9685 if test x"${with_libs}" != xyes ; then
9686 # Copy the libraries in reverse order, so that files in the first named
9687 # library override files in subsequent libraries.
9688 x=${gcc_cv_tool_prefix}
9689 for l in ${with_libs}; do
9690 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9691 done
9692 fi
9693 fi
9694
9695 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9696 #
9697 # This is done by determining whether or not the appropriate directory
9698 # is available, and by checking whether or not specific configurations
9699 # have requested that this magic not happen.
9700 #
9701 # The command line options always override the explicit settings in
9702 # configure.ac, and the settings in configure.ac override this magic.
9703 #
9704 # If the default for a toolchain is to use GNU as and ld, and you don't
9705 # want to do that, then you should use the --without-gnu-as and
9706 # --without-gnu-ld options for the configure script. Similarly, if
9707 # the default is to use the included zlib and you don't want to do that,
9708 # you should use the --with-system-zlib option for the configure script.
9709
9710 if test x${use_gnu_as} = x &&
9711 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9712 with_gnu_as=yes
9713 extra_host_args="$extra_host_args --with-gnu-as"
9714 fi
9715
9716 if test x${use_gnu_ld} = x &&
9717 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9718 with_gnu_ld=yes
9719 extra_host_args="$extra_host_args --with-gnu-ld"
9720 fi
9721
9722 if test x${use_included_zlib} = x &&
9723 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9724 :
9725 else
9726 with_system_zlib=yes
9727 extra_host_args="$extra_host_args --with-system-zlib"
9728 fi
9729
9730 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9731 # can detect this case.
9732
9733 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9734 with_newlib=yes
9735 extra_host_args="$extra_host_args --with-newlib"
9736 fi
9737
9738 # Handle ${copy_dirs}
9739 set fnord ${copy_dirs}
9740 shift
9741 while test $# != 0 ; do
9742 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9743 :
9744 else
9745 echo Copying $1 to $2
9746
9747 # Use the install script to create the directory and all required
9748 # parent directories.
9749 if test -d $2 ; then
9750 :
9751 else
9752 echo >config.temp
9753 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9754 fi
9755
9756 # Copy the directory, assuming we have tar.
9757 # FIXME: Should we use B in the second tar? Not all systems support it.
9758 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9759
9760 # It is the responsibility of the user to correctly adjust all
9761 # symlinks. If somebody can figure out how to handle them correctly
9762 # here, feel free to add the code.
9763
9764 echo $1 > $2/COPIED
9765 fi
9766 shift; shift
9767 done
9768
9769 # Determine a target-dependent exec_prefix that the installed
9770 # gcc will search in. Keep this list sorted by triplet, with
9771 # the *-*-osname triplets last.
9772 md_exec_prefix=
9773 case "${target}" in
9774 i[34567]86-pc-msdosdjgpp*)
9775 md_exec_prefix=/dev/env/DJDIR/bin
9776 ;;
9777 *-*-hpux* | \
9778 *-*-nto-qnx* | \
9779 *-*-solaris2*)
9780 md_exec_prefix=/usr/ccs/bin
9781 ;;
9782 esac
9783
9784 extra_arflags_for_target=
9785 extra_nmflags_for_target=
9786 extra_ranlibflags_for_target=
9787 target_makefile_frag=/dev/null
9788 case "${target}" in
9789 spu-*-*)
9790 target_makefile_frag="config/mt-spu"
9791 ;;
9792 loongarch*-*linux* | loongarch*-*gnu*)
9793 target_makefile_frag="config/mt-loongarch-gnu"
9794 ;;
9795 loongarch*-*elf*)
9796 target_makefile_frag="config/mt-loongarch-elf"
9797 ;;
9798 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9799 target_makefile_frag="config/mt-sde"
9800 ;;
9801 mipsisa*-*-elfoabi*)
9802 target_makefile_frag="config/mt-mips-elfoabi"
9803 ;;
9804 mips*-*-*linux* | mips*-*-gnu*)
9805 target_makefile_frag="config/mt-mips-gnu"
9806 ;;
9807 nios2-*-elf*)
9808 target_makefile_frag="config/mt-nios2-elf"
9809 ;;
9810 *-*-linux-android*)
9811 target_makefile_frag="config/mt-android"
9812 ;;
9813 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9814 target_makefile_frag="config/mt-gnu"
9815 ;;
9816 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9817 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9818 # commands to handle both 32-bit and 64-bit objects. These flags are
9819 # harmless if we're using GNU nm or ar.
9820 extra_arflags_for_target=" -X32_64"
9821 extra_nmflags_for_target=" -B -X32_64"
9822 ;;
9823 esac
9824
9825 alphaieee_frag=/dev/null
9826 case $target in
9827 alpha*-*-*)
9828 # This just makes sure to use the -mieee option to build target libs.
9829 # This should probably be set individually by each library.
9830 alphaieee_frag="config/mt-alphaieee"
9831 ;;
9832 esac
9833
9834 # If --enable-target-optspace always use -Os instead of -O2 to build
9835 # the target libraries, similarly if it is not specified, use -Os
9836 # on selected platforms.
9837 ospace_frag=/dev/null
9838 case "${enable_target_optspace}:${target}" in
9839 yes:*)
9840 ospace_frag="config/mt-ospace"
9841 ;;
9842 :d30v-*)
9843 ospace_frag="config/mt-d30v"
9844 ;;
9845 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9846 ospace_frag="config/mt-ospace"
9847 ;;
9848 no:* | :*)
9849 ;;
9850 *)
9851 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9852 ;;
9853 esac
9854
9855 # Some systems (e.g., one of the i386-aix systems the gas testers are
9856 # using) don't handle "\$" correctly, so don't use it here.
9857 tooldir='${exec_prefix}'/${target_noncanonical}
9858 build_tooldir=${tooldir}
9859
9860 # Create a .gdbinit file which runs the one in srcdir
9861 # and tells GDB to look there for source files.
9862
9863 if test -r ${srcdir}/.gdbinit ; then
9864 case ${srcdir} in
9865 .) ;;
9866 *) cat > ./.gdbinit <<EOF
9867 # ${NO_EDIT}
9868 dir ${srcdir}
9869 dir .
9870 source ${srcdir}/.gdbinit
9871 EOF
9872 ;;
9873 esac
9874 fi
9875
9876 # Make sure that the compiler is able to generate an executable. If it
9877 # can't, we are probably in trouble. We don't care whether we can run the
9878 # executable--we might be using a cross compiler--we only care whether it
9879 # can be created. At this point the main configure script has set CC.
9880 we_are_ok=no
9881 echo "int main () { return 0; }" > conftest.c
9882 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9883 if test $? = 0 ; then
9884 if test -s conftest || test -s conftest.exe ; then
9885 we_are_ok=yes
9886 fi
9887 fi
9888 case $we_are_ok in
9889 no)
9890 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9891 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9892 rm -f conftest*
9893 exit 1
9894 ;;
9895 esac
9896 rm -f conftest*
9897
9898 # Decide which environment variable is used to find dynamic libraries.
9899 case "${host}" in
9900 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9901 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9902 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9903 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9904 esac
9905
9906 # On systems where the dynamic library environment variable is PATH,
9907 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9908 # built executables to PATH.
9909 if test "$RPATH_ENVVAR" = PATH; then
9910 GCC_SHLIB_SUBDIR=/shlib
9911 else
9912 GCC_SHLIB_SUBDIR=
9913 fi
9914
9915 # Adjust the toplevel makefile according to whether bootstrap was selected.
9916 case $enable_bootstrap in
9917 yes)
9918 bootstrap_suffix=bootstrap
9919 BUILD_CONFIG=bootstrap-debug
9920 ;;
9921 no)
9922 bootstrap_suffix=no-bootstrap
9923 BUILD_CONFIG=
9924 ;;
9925 esac
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9928 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9929
9930
9931 # Check whether --with-build-config was given.
9932 if test "${with_build_config+set}" = set; then :
9933 withval=$with_build_config; case $with_build_config in
9934 yes) with_build_config= ;;
9935 no) with_build_config= BUILD_CONFIG= ;;
9936 esac
9937 fi
9938
9939
9940 if test "x${with_build_config}" != x; then
9941 BUILD_CONFIG=$with_build_config
9942 else
9943 case $BUILD_CONFIG in
9944 bootstrap-debug)
9945 if echo "int f (void) { return 0; }" > conftest.c &&
9946 ${CC} -c conftest.c &&
9947 mv conftest.o conftest.o.g0 &&
9948 ${CC} -c -g conftest.c &&
9949 mv conftest.o conftest.o.g &&
9950 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9951 :
9952 else
9953 BUILD_CONFIG=
9954 fi
9955 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9956 ;;
9957 esac
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9960 $as_echo "$BUILD_CONFIG" >&6; }
9961
9962
9963 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9965 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9966 # Check whether --enable-vtable-verify was given.
9967 if test "${enable_vtable_verify+set}" = set; then :
9968 enableval=$enable_vtable_verify; case "$enableval" in
9969 yes) enable_vtable_verify=yes ;;
9970 no) enable_vtable_verify=no ;;
9971 *) enable_vtable_verify=no;;
9972 esac
9973 else
9974 enable_vtable_verify=no
9975 fi
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9978 $as_echo "$enable_vtable_verify" >&6; }
9979
9980 # Record target_configdirs and the configure arguments for target and
9981 # build configuration in Makefile.
9982 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9983 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9984 bootstrap_fixincludes=no
9985
9986 # If we are building libgomp, bootstrap it.
9987 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9988 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9989 fi
9990
9991 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9992 # or bootstrap-ubsan, bootstrap it.
9993 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9994 case "$BUILD_CONFIG" in
9995 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9996 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9997 bootstrap_fixincludes=yes
9998 ;;
9999 esac
10000 fi
10001
10002 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10003 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10004 test "$enable_vtable_verify" != no; then
10005 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10006 fi
10007
10008 # If we are building libatomic and the list of enabled languages includes the
10009 # D frontend, bootstrap it.
10010 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10011 case ,${enable_languages}, in
10012 *,d,*)
10013 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10014 ;;
10015 esac
10016 fi
10017
10018 # Determine whether gdb needs tk/tcl or not.
10019 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10020 # and in that case we want gdb to be built without tk. Ugh!
10021 # In fact I believe gdb is the *only* package directly dependent on tk,
10022 # so we should be able to put the 'maybe's in unconditionally and
10023 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10024 # 100% sure that that's safe though.
10025
10026 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10027 case "$enable_gdbtk" in
10028 no)
10029 GDB_TK="" ;;
10030 yes)
10031 GDB_TK="${gdb_tk}" ;;
10032 *)
10033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10034 # distro. Eventually someone will fix this and move Insight, nee
10035 # gdbtk to a separate directory.
10036 if test -d ${srcdir}/gdb/gdbtk ; then
10037 GDB_TK="${gdb_tk}"
10038 else
10039 GDB_TK=""
10040 fi
10041 ;;
10042 esac
10043 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10044 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10045
10046 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10047 # else does, only include them if one of these is built. The Makefile
10048 # provides the ordering, so it's enough here to add to the list.
10049 case " ${configdirs} " in
10050 *\ gdb\ *)
10051 configdirs="${configdirs} gnulib gdbsupport"
10052 ;;
10053 *\ gdbserver\ *)
10054 configdirs="${configdirs} gnulib gdbsupport"
10055 ;;
10056 *\ sim\ *)
10057 configdirs="${configdirs} gnulib"
10058 ;;
10059 esac
10060
10061 # Strip out unwanted targets.
10062
10063 # While at that, we remove Makefiles if we were started for recursive
10064 # configuration, so that the top-level Makefile reconfigures them,
10065 # like we used to do when configure itself was recursive.
10066
10067 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10068 # but now we're fixing up the Makefile ourselves with the additional
10069 # commands passed to AC_CONFIG_FILES. Use separate variables
10070 # extrasub-{build,host,target} not because there is any reason to split
10071 # the substitutions up that way, but only to remain below the limit of
10072 # 99 commands in a script, for HP-UX sed.
10073
10074 # Do not nest @if/@endif or @unless/@endunless pairs, because
10075 # configure will not warn you at all.
10076
10077 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10078 yes:yes:*\ gold\ *:*,c++,*) ;;
10079 yes:yes:*\ gold\ *:*)
10080 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10081 ;;
10082 esac
10083
10084 extrasub_build=
10085 for module in ${build_configdirs} ; do
10086 if test -z "${no_recursion}" \
10087 && test -f ${build_subdir}/${module}/Makefile; then
10088 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10089 rm -f ${build_subdir}/${module}/Makefile
10090 fi
10091 extrasub_build="$extrasub_build
10092 /^@if build-$module\$/d
10093 /^@endif build-$module\$/d
10094 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10095 /^@if build-$module-$bootstrap_suffix\$/d
10096 /^@endif build-$module-$bootstrap_suffix\$/d
10097 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10098 done
10099 extrasub_host=
10100 for module in ${configdirs} ; do
10101 if test -z "${no_recursion}"; then
10102 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10103 if test -f ${file}; then
10104 echo 1>&2 "*** removing ${file} to force reconfigure"
10105 rm -f ${file}
10106 fi
10107 done
10108 fi
10109 case ${module},${bootstrap_fixincludes} in
10110 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10111 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10112 esac
10113 extrasub_host="$extrasub_host
10114 /^@if $module\$/d
10115 /^@endif $module\$/d
10116 /^@unless $module\$/,/^@endunless $module\$/d
10117 /^@if $module-$host_bootstrap_suffix\$/d
10118 /^@endif $module-$host_bootstrap_suffix\$/d
10119 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10120 done
10121 extrasub_target=
10122 for module in ${target_configdirs} ; do
10123 if test -z "${no_recursion}" \
10124 && test -f ${target_subdir}/${module}/Makefile; then
10125 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10126 rm -f ${target_subdir}/${module}/Makefile
10127 fi
10128
10129 # We only bootstrap target libraries listed in bootstrap_target_libs.
10130 case $bootstrap_target_libs in
10131 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10132 *) target_bootstrap_suffix=no-bootstrap ;;
10133 esac
10134
10135 extrasub_target="$extrasub_target
10136 /^@if target-$module\$/d
10137 /^@endif target-$module\$/d
10138 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10139 /^@if target-$module-$target_bootstrap_suffix\$/d
10140 /^@endif target-$module-$target_bootstrap_suffix\$/d
10141 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10142 done
10143
10144 # Do the final fixup along with target modules.
10145 extrasub_target="$extrasub_target
10146 /^@if /,/^@endif /d
10147 /^@unless /d
10148 /^@endunless /d"
10149
10150 if test "$enable_pgo_build" != "no"; then
10151 extrasub_build="$extrasub_build
10152 /^@if pgo-build\$/d
10153 /^@endif pgo-build\$/d"
10154 fi
10155
10156 # Create the serialization dependencies. This uses a temporary file.
10157
10158 # Check whether --enable-serial-configure was given.
10159 if test "${enable_serial_configure+set}" = set; then :
10160 enableval=$enable_serial_configure;
10161 fi
10162
10163
10164 case ${enable_serial_configure} in
10165 yes)
10166 enable_serial_build_configure=yes
10167 enable_serial_host_configure=yes
10168 enable_serial_target_configure=yes
10169 ;;
10170 esac
10171
10172 # These force 'configure's to be done one at a time, to avoid problems
10173 # with contention over a shared config.cache.
10174 rm -f serdep.tmp
10175 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10176 echo '# serdep.tmp' > serdep.tmp
10177 fi
10178 olditem=
10179 test "x${enable_serial_build_configure}" = xyes &&
10180 for item in ${build_configdirs} ; do
10181 case ${olditem} in
10182 "") ;;
10183 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10184 esac
10185 olditem=${item}
10186 done
10187 olditem=
10188 test "x${enable_serial_host_configure}" = xyes &&
10189 for item in ${configdirs} ; do
10190 case ${olditem} in
10191 "") ;;
10192 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10193 esac
10194 olditem=${item}
10195 done
10196 olditem=
10197 test "x${enable_serial_target_configure}" = xyes &&
10198 for item in ${target_configdirs} ; do
10199 case ${olditem} in
10200 "") ;;
10201 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10202 esac
10203 olditem=${item}
10204 done
10205 serialization_dependencies=serdep.tmp
10206
10207
10208 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10209 # target, nonopt, and variable assignments. These are the ones we
10210 # might not want to pass down to subconfigures. The exception being
10211 # --cache-file=/dev/null, which is used to turn off the use of cache
10212 # files altogether, and which should be passed on to subconfigures.
10213 # Also strip program-prefix, program-suffix, and program-transform-name,
10214 # so that we can pass down a consistent program-transform-name.
10215 hbaseargs=
10216 bbaseargs=
10217 tbaseargs=
10218 keep_next=no
10219 skip_next=no
10220 eval "set -- $ac_configure_args"
10221 for ac_arg
10222 do
10223 if test X"$skip_next" = X"yes"; then
10224 skip_next=no
10225 continue
10226 fi
10227 if test X"$keep_next" = X"yes"; then
10228 case $ac_arg in
10229 *\'*)
10230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10231 esac
10232 hbaseargs="$hbaseargs '$ac_arg'"
10233 bbaseargs="$bbaseargs '$ac_arg'"
10234 tbaseargs="$tbaseargs '$ac_arg'"
10235 keep_next=no
10236 continue
10237 fi
10238
10239 # Handle separated arguments. Based on the logic generated by
10240 # autoconf 2.59.
10241 case $ac_arg in
10242 *=* | --config-cache | -C | -disable-* | --disable-* \
10243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10245 | -with-* | --with-* | -without-* | --without-* | --x)
10246 separate_arg=no
10247 ;;
10248 -*)
10249 separate_arg=yes
10250 ;;
10251 *)
10252 separate_arg=no
10253 ;;
10254 esac
10255
10256 skip_targ=no
10257 skip_barg=no
10258 case $ac_arg in
10259
10260 --with-* | --without-*)
10261 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10262
10263 case $libopt in
10264 *[-_]include)
10265 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10266 ;;
10267 *[-_]lib)
10268 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10269 ;;
10270 *[-_]prefix)
10271 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10272 ;;
10273 *[-_]type)
10274 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10275 ;;
10276 *)
10277 lib=$libopt
10278 ;;
10279 esac
10280
10281
10282 case $lib in
10283 mpc | mpfr | gmp | isl)
10284 # If we're processing --with-$lib, --with-$lib-include or
10285 # --with-$lib-lib, for one of the libs above, and target is
10286 # different from host, don't pass the current argument to any
10287 # target library's configure.
10288 if test x$is_cross_compiler = xyes; then
10289 skip_targ=yes
10290 fi
10291 ;;
10292 libintl | libiconv)
10293 # We don't want libintl (and co.) in anything but the host arguments.
10294 skip_targ=yes
10295 skip_barg=yes
10296 ;;
10297 esac
10298 ;;
10299 esac
10300
10301 case "$ac_arg" in
10302 --cache-file=/dev/null | \
10303 -cache-file=/dev/null )
10304 # Handled here to avoid the test to skip args below.
10305 hbaseargs="$hbaseargs '$ac_arg'"
10306 bbaseargs="$bbaseargs '$ac_arg'"
10307 tbaseargs="$tbaseargs '$ac_arg'"
10308 # Assert: $separate_arg should always be no.
10309 keep_next=$separate_arg
10310 ;;
10311 --no*)
10312 continue
10313 ;;
10314 --c* | \
10315 --sr* | \
10316 --ho* | \
10317 --bu* | \
10318 --t* | \
10319 --program-* | \
10320 -cache_file* | \
10321 -srcdir* | \
10322 -host* | \
10323 -build* | \
10324 -target* | \
10325 -program-prefix* | \
10326 -program-suffix* | \
10327 -program-transform-name* )
10328 skip_next=$separate_arg
10329 continue
10330 ;;
10331 -*)
10332 # An option. Add it.
10333 case $ac_arg in
10334 *\'*)
10335 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10336 esac
10337 hbaseargs="$hbaseargs '$ac_arg'"
10338 if test X"$skip_barg" = Xno; then
10339 bbaseargs="$bbaseargs '$ac_arg'"
10340 fi
10341 if test X"$skip_targ" = Xno; then
10342 tbaseargs="$tbaseargs '$ac_arg'"
10343 fi
10344 keep_next=$separate_arg
10345 ;;
10346 *)
10347 # Either a variable assignment, or a nonopt (triplet). Don't
10348 # pass it down; let the Makefile handle this.
10349 continue
10350 ;;
10351 esac
10352 done
10353 # Remove the initial space we just introduced and, as these will be
10354 # expanded by make, quote '$'.
10355 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10356 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10357
10358 # Add in --program-transform-name, after --program-prefix and
10359 # --program-suffix have been applied to it. Autoconf has already
10360 # doubled dollar signs and backslashes in program_transform_name; we want
10361 # the backslashes un-doubled, and then the entire thing wrapped in single
10362 # quotes, because this will be expanded first by make and then by the shell.
10363 # Also, because we want to override the logic in subdir configure scripts to
10364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10366 ${program_transform_name}
10367 EOF_SED
10368 gcc_transform_name=`cat conftestsed.out`
10369 rm -f conftestsed.out
10370 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10371 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10372 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10373 if test "$silent" = yes; then
10374 bbaseargs="$bbaseargs --silent"
10375 hbaseargs="$hbaseargs --silent"
10376 tbaseargs="$tbaseargs --silent"
10377 fi
10378
10379 bbaseargs="$bbaseargs --disable-option-checking"
10380 hbaseargs="$hbaseargs --disable-option-checking"
10381 tbaseargs="$tbaseargs --disable-option-checking"
10382
10383 if test "$enable_year2038" = no; then
10384 baseargs="$baseargs --disable-year2038"
10385 tbaseargs="$tbaseargs --disable-year2038"
10386 fi
10387
10388 # Record and document user additions to sub configure arguments.
10389
10390
10391
10392
10393 # For the build-side libraries, we just need to pretend we're native,
10394 # and not use the same cache file. Multilibs are neither needed nor
10395 # desired. We can't even use the same cache file for all build-side
10396 # libraries, as they're compiled differently; some with C, some with
10397 # C++ or with different feature-enabling options.
10398 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10399
10400 # For host modules, accept cache file option, or specification as blank.
10401 case "${cache_file}" in
10402 "") # empty
10403 cache_file_option="" ;;
10404 /* | [A-Za-z]:[\\/]* ) # absolute path
10405 cache_file_option="--cache-file=${cache_file}" ;;
10406 *) # relative path
10407 cache_file_option="--cache-file=../${cache_file}" ;;
10408 esac
10409
10410 # Host dirs don't like to share a cache file either, horribly enough.
10411 # This seems to be due to autoconf 2.5x stupidity.
10412 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10413
10414 target_configargs="$target_configargs ${tbaseargs}"
10415
10416 # Passing a --with-cross-host argument lets the target libraries know
10417 # whether they are being built with a cross-compiler or being built
10418 # native. However, it would be better to use other mechanisms to make the
10419 # sorts of decisions they want to make on this basis. Please consider
10420 # this option to be deprecated. FIXME.
10421 if test x${is_cross_compiler} = xyes ; then
10422 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10423 fi
10424
10425 # Special user-friendly check for native x86_64-linux build, if
10426 # multilib is not explicitly enabled.
10427 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10428 x86_64-*linux*:yes:$build:$build:)
10429 # Make sure we have a development environment that handles 32-bit
10430 dev64=no
10431 echo "int main () { return 0; }" > conftest.c
10432 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10433 if test $? = 0 ; then
10434 if test -s conftest || test -s conftest.exe ; then
10435 dev64=yes
10436 fi
10437 fi
10438 rm -f conftest*
10439 if test x${dev64} != xyes ; then
10440 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
10441 fi
10442 ;;
10443 esac
10444
10445 # Default to --enable-multilib.
10446 if test x${enable_multilib} = x ; then
10447 target_configargs="--enable-multilib ${target_configargs}"
10448 fi
10449
10450 # Pass --with-newlib if appropriate. Note that target_configdirs has
10451 # changed from the earlier setting of with_newlib.
10452 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10453 target_configargs="--with-newlib ${target_configargs}"
10454 fi
10455
10456 # Different target subdirs use different values of certain variables
10457 # (notably CXX). Worse, multilibs use *lots* of different values.
10458 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10459 # it doesn't automatically accept command-line overrides of them.
10460 # This means it's not safe for target subdirs to share a cache file,
10461 # which is disgusting, but there you have it. Hopefully this can be
10462 # fixed in future. It's still worthwhile to use a cache file for each
10463 # directory. I think.
10464
10465 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10466 # We need to pass --target, as newer autoconf's requires consistency
10467 # for target_alias and gcc doesn't manage it consistently.
10468 target_configargs="--cache-file=./config.cache ${target_configargs}"
10469
10470 FLAGS_FOR_TARGET=
10471 case " $target_configdirs " in
10472 *" newlib "*)
10473 case " $target_configargs " in
10474 *" --with-newlib "*)
10475 case "$target" in
10476 *-cygwin*)
10477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10478 ;;
10479 esac
10480
10481 # If we're not building GCC, don't discard standard headers.
10482 if test -d ${srcdir}/gcc; then
10483 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10484
10485 if test "${build}" != "${host}"; then
10486 # On Canadian crosses, CC_FOR_TARGET will have already been set
10487 # by `configure', so we won't have an opportunity to add -Bgcc/
10488 # to it. This is right: we don't want to search that directory
10489 # for binaries, but we want the header files in there, so add
10490 # them explicitly.
10491 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10492
10493 # Someone might think of using the pre-installed headers on
10494 # Canadian crosses, in case the installed compiler is not fully
10495 # compatible with the compiler being built. In this case, it
10496 # would be better to flag an error than risking having
10497 # incompatible object files being constructed. We can't
10498 # guarantee that an error will be flagged, but let's hope the
10499 # compiler will do it, when presented with incompatible header
10500 # files.
10501 fi
10502 fi
10503
10504 case "${target}-${is_cross_compiler}" in
10505 i[3456789]86-*-linux*-no)
10506 # Here host == target, so we don't need to build gcc,
10507 # so we don't want to discard standard headers.
10508 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10509 ;;
10510 *)
10511 # If we're building newlib, use its generic headers last, but search
10512 # for any libc-related directories first (so make it the last -B
10513 # switch).
10514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10515
10516 # If we're building libgloss, find the startup file, simulator library
10517 # and linker script.
10518 case " $target_configdirs " in
10519 *" libgloss "*)
10520 # Look for startup file, simulator library and maybe linker script.
10521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10522 # Look for libnosys.a in case the target needs it.
10523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10524 # Most targets have the linker script in the source directory.
10525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10526 ;;
10527 esac
10528 ;;
10529 esac
10530 ;;
10531 esac
10532 ;;
10533 esac
10534
10535 case "$target" in
10536 x86_64-*mingw* | *-w64-mingw*)
10537 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10538 # however, use a symlink named 'mingw' in ${prefix} .
10539 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10540 ;;
10541 *-mingw*)
10542 # MinGW can't be handled as Cygwin above since it does not use newlib.
10543 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'
10544 ;;
10545 esac
10546
10547 # Allow the user to override the flags for
10548 # our build compiler if desired.
10549 if test x"${build}" = x"${host}" ; then
10550 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10551 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10552 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10553 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10554 fi
10555
10556 # On Canadian crosses, we'll be searching the right directories for
10557 # the previously-installed cross compiler, so don't bother to add
10558 # flags for directories within the install tree of the compiler
10559 # being built; programs in there won't even run.
10560 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10561 # Search for pre-installed headers if nothing else fits.
10562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10563 fi
10564
10565 if test "x${use_gnu_ld}" = x &&
10566 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10567 # Arrange for us to find uninstalled linker scripts.
10568 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10569 fi
10570
10571 # Search for other target-specific linker scripts and such.
10572 case "${target}" in
10573 mep*)
10574 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10575 ;;
10576 # The VxWorks support for shared libraries is getting in
10577 # incrementally. Make sure it doesn't get activated implicitly:
10578 *vxworks*)
10579 if test "${enable_shared-unset}" = unset ; then
10580 enable_shared=no
10581 # So the build of libraries knows ...
10582 target_configargs="${target_configargs} --disable-shared"
10583 # So gcc knows ...
10584 host_configargs="${host_configargs} --disable-shared"
10585 fi
10586 ;;
10587 esac
10588
10589 # Makefile fragments.
10590 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10591 do
10592 eval fragval=\$$frag
10593 if test $fragval != /dev/null; then
10594 eval $frag=${srcdir}/$fragval
10595 fi
10596 done
10597
10598
10599
10600
10601
10602 # Miscellanea: directories, flags, etc.
10603
10604
10605
10606
10607
10608
10609
10610
10611 # Build module lists & subconfigure args.
10612
10613
10614
10615 # Host module lists & subconfigure args.
10616
10617
10618
10619
10620 # Target module lists & subconfigure args.
10621
10622
10623
10624 # Build tools.
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645 # Generate default definitions for YACC, M4, LEX and other programs that run
10646 # on the build machine. These are used if the Makefile can't locate these
10647 # programs in objdir.
10648 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10649
10650 for ac_prog in 'bison -y' byacc yacc
10651 do
10652 # Extract the first word of "$ac_prog", so it can be a program name with args.
10653 set dummy $ac_prog; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_YACC+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test -n "$YACC"; then
10660 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_YACC="$ac_prog"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 YACC=$ac_cv_prog_YACC
10680 if test -n "$YACC"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10682 $as_echo "$YACC" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689 test -n "$YACC" && break
10690 done
10691 test -n "$YACC" || YACC="$MISSING bison -y"
10692
10693 case " $build_configdirs " in
10694 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10695 esac
10696
10697 for ac_prog in bison
10698 do
10699 # Extract the first word of "$ac_prog", so it can be a program name with args.
10700 set dummy $ac_prog; ac_word=$2
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702 $as_echo_n "checking for $ac_word... " >&6; }
10703 if ${ac_cv_prog_BISON+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 if test -n "$BISON"; then
10707 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10708 else
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10711 do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_BISON="$ac_prog"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720 done
10721 done
10722 IFS=$as_save_IFS
10723
10724 fi
10725 fi
10726 BISON=$ac_cv_prog_BISON
10727 if test -n "$BISON"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10729 $as_echo "$BISON" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733 fi
10734
10735
10736 test -n "$BISON" && break
10737 done
10738 test -n "$BISON" || BISON="$MISSING bison"
10739
10740 case " $build_configdirs " in
10741 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10742 esac
10743
10744 for ac_prog in gm4 gnum4 m4
10745 do
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_M4+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 if test -n "$M4"; then
10754 ac_cv_prog_M4="$M4" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_M4="$ac_prog"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767 done
10768 done
10769 IFS=$as_save_IFS
10770
10771 fi
10772 fi
10773 M4=$ac_cv_prog_M4
10774 if test -n "$M4"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10776 $as_echo "$M4" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10780 fi
10781
10782
10783 test -n "$M4" && break
10784 done
10785 test -n "$M4" || M4="$MISSING m4"
10786
10787 case " $build_configdirs " in
10788 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10789 esac
10790
10791 for ac_prog in flex lex
10792 do
10793 # Extract the first word of "$ac_prog", so it can be a program name with args.
10794 set dummy $ac_prog; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_prog_LEX+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 if test -n "$LEX"; then
10801 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10802 else
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10805 do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810 ac_cv_prog_LEX="$ac_prog"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10813 fi
10814 done
10815 done
10816 IFS=$as_save_IFS
10817
10818 fi
10819 fi
10820 LEX=$ac_cv_prog_LEX
10821 if test -n "$LEX"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10823 $as_echo "$LEX" >&6; }
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 fi
10828
10829
10830 test -n "$LEX" && break
10831 done
10832 test -n "$LEX" || LEX="$MISSING flex"
10833
10834 case " $build_configdirs " in
10835 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10836 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10837 esac
10838
10839 for ac_prog in flex
10840 do
10841 # Extract the first word of "$ac_prog", so it can be a program name with args.
10842 set dummy $ac_prog; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_FLEX+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 if test -n "$FLEX"; then
10849 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858 ac_cv_prog_FLEX="$ac_prog"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10861 fi
10862 done
10863 done
10864 IFS=$as_save_IFS
10865
10866 fi
10867 fi
10868 FLEX=$ac_cv_prog_FLEX
10869 if test -n "$FLEX"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10871 $as_echo "$FLEX" >&6; }
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876
10877
10878 test -n "$FLEX" && break
10879 done
10880 test -n "$FLEX" || FLEX="$MISSING flex"
10881
10882 case " $build_configdirs " in
10883 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10884 esac
10885
10886 for ac_prog in makeinfo
10887 do
10888 # Extract the first word of "$ac_prog", so it can be a program name with args.
10889 set dummy $ac_prog; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if ${ac_cv_prog_MAKEINFO+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 if test -n "$MAKEINFO"; then
10896 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10897 else
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10905 ac_cv_prog_MAKEINFO="$ac_prog"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10908 fi
10909 done
10910 done
10911 IFS=$as_save_IFS
10912
10913 fi
10914 fi
10915 MAKEINFO=$ac_cv_prog_MAKEINFO
10916 if test -n "$MAKEINFO"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10918 $as_echo "$MAKEINFO" >&6; }
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923
10924
10925 test -n "$MAKEINFO" && break
10926 done
10927 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10928
10929 case " $build_configdirs " in
10930 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10931 *)
10932
10933 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10934 # higher, else we use the "missing" dummy.
10935 if ${MAKEINFO} --version \
10936 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10937 :
10938 else
10939 MAKEINFO="$MISSING makeinfo"
10940 fi
10941 ;;
10942
10943 esac
10944
10945 # FIXME: expect and dejagnu may become build tools?
10946
10947 for ac_prog in expect
10948 do
10949 # Extract the first word of "$ac_prog", so it can be a program name with args.
10950 set dummy $ac_prog; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if ${ac_cv_prog_EXPECT+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 if test -n "$EXPECT"; then
10957 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10958 else
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966 ac_cv_prog_EXPECT="$ac_prog"
10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970 done
10971 done
10972 IFS=$as_save_IFS
10973
10974 fi
10975 fi
10976 EXPECT=$ac_cv_prog_EXPECT
10977 if test -n "$EXPECT"; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10979 $as_echo "$EXPECT" >&6; }
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 fi
10984
10985
10986 test -n "$EXPECT" && break
10987 done
10988 test -n "$EXPECT" || EXPECT="expect"
10989
10990 case " $configdirs " in
10991 *" expect "*)
10992 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10993 ;;
10994 esac
10995
10996 for ac_prog in runtest
10997 do
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_prog_RUNTEST+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 if test -n "$RUNTEST"; then
11006 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11010 do
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_RUNTEST="$ac_prog"
11016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019 done
11020 done
11021 IFS=$as_save_IFS
11022
11023 fi
11024 fi
11025 RUNTEST=$ac_cv_prog_RUNTEST
11026 if test -n "$RUNTEST"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11028 $as_echo "$RUNTEST" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11032 fi
11033
11034
11035 test -n "$RUNTEST" && break
11036 done
11037 test -n "$RUNTEST" || RUNTEST="runtest"
11038
11039 case " $configdirs " in
11040 *" dejagnu "*)
11041 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11042 ;;
11043 esac
11044
11045
11046 # Host tools.
11047 ncn_tool_prefix=
11048 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11049 ncn_target_tool_prefix=
11050 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11051
11052
11053
11054 if test -n "$AR"; then
11055 ac_cv_prog_AR=$AR
11056 elif test -n "$ac_cv_prog_AR"; then
11057 AR=$ac_cv_prog_AR
11058 fi
11059
11060 if test -n "$ac_cv_prog_AR"; then
11061 for ncn_progname in ar; do
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if ${ac_cv_prog_AR+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test -n "$AR"; then
11070 ac_cv_prog_AR="$AR" # Let the user override the test.
11071 else
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_AR="${ncn_progname}"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083 done
11084 done
11085 IFS=$as_save_IFS
11086
11087 fi
11088 fi
11089 AR=$ac_cv_prog_AR
11090 if test -n "$AR"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11092 $as_echo "$AR" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 fi
11097
11098
11099 done
11100 fi
11101
11102 for ncn_progname in ar; do
11103 if test -n "$ncn_tool_prefix"; then
11104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_prog_AR+:} false; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 if test -n "$AR"; then
11112 ac_cv_prog_AR="$AR" # Let the user override the test.
11113 else
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11116 do
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11124 fi
11125 done
11126 done
11127 IFS=$as_save_IFS
11128
11129 fi
11130 fi
11131 AR=$ac_cv_prog_AR
11132 if test -n "$AR"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11134 $as_echo "$AR" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11138 fi
11139
11140
11141 fi
11142 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11144 set dummy ${ncn_progname}; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_prog_AR+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 if test -n "$AR"; then
11151 ac_cv_prog_AR="$AR" # Let the user override the test.
11152 else
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11155 do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_prog_AR="${ncn_progname}"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11163 fi
11164 done
11165 done
11166 IFS=$as_save_IFS
11167
11168 fi
11169 fi
11170 AR=$ac_cv_prog_AR
11171 if test -n "$AR"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11173 $as_echo "$AR" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178
11179
11180 fi
11181 test -n "$ac_cv_prog_AR" && break
11182 done
11183
11184 if test -z "$ac_cv_prog_AR" ; then
11185 set dummy ar
11186 if test $build = $host ; then
11187 AR="$2"
11188 else
11189 AR="${ncn_tool_prefix}$2"
11190 fi
11191 fi
11192
11193
11194
11195 if test -n "$AS"; then
11196 ac_cv_prog_AS=$AS
11197 elif test -n "$ac_cv_prog_AS"; then
11198 AS=$ac_cv_prog_AS
11199 fi
11200
11201 if test -n "$ac_cv_prog_AS"; then
11202 for ncn_progname in as; do
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204 set dummy ${ncn_progname}; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if ${ac_cv_prog_AS+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test -n "$AS"; then
11211 ac_cv_prog_AS="$AS" # Let the user override the test.
11212 else
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_AS="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224 done
11225 done
11226 IFS=$as_save_IFS
11227
11228 fi
11229 fi
11230 AS=$ac_cv_prog_AS
11231 if test -n "$AS"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11233 $as_echo "$AS" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11237 fi
11238
11239
11240 done
11241 fi
11242
11243 for ncn_progname in as; do
11244 if test -n "$ncn_tool_prefix"; then
11245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_AS+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -n "$AS"; then
11253 ac_cv_prog_AS="$AS" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266 done
11267 done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 AS=$ac_cv_prog_AS
11273 if test -n "$AS"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11275 $as_echo "$AS" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281
11282 fi
11283 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11285 set dummy ${ncn_progname}; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_prog_AS+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 if test -n "$AS"; then
11292 ac_cv_prog_AS="$AS" # Let the user override the test.
11293 else
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11296 do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_AS="${ncn_progname}"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305 done
11306 done
11307 IFS=$as_save_IFS
11308
11309 fi
11310 fi
11311 AS=$ac_cv_prog_AS
11312 if test -n "$AS"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11314 $as_echo "$AS" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11318 fi
11319
11320
11321 fi
11322 test -n "$ac_cv_prog_AS" && break
11323 done
11324
11325 if test -z "$ac_cv_prog_AS" ; then
11326 set dummy as
11327 if test $build = $host ; then
11328 AS="$2"
11329 else
11330 AS="${ncn_tool_prefix}$2"
11331 fi
11332 fi
11333
11334
11335
11336 if test -n "$DLLTOOL"; then
11337 ac_cv_prog_DLLTOOL=$DLLTOOL
11338 elif test -n "$ac_cv_prog_DLLTOOL"; then
11339 DLLTOOL=$ac_cv_prog_DLLTOOL
11340 fi
11341
11342 if test -n "$ac_cv_prog_DLLTOOL"; then
11343 for ncn_progname in dlltool; do
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345 set dummy ${ncn_progname}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_prog_DLLTOOL+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 if test -n "$DLLTOOL"; then
11352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_DLLTOOL="${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 fi
11370 fi
11371 DLLTOOL=$ac_cv_prog_DLLTOOL
11372 if test -n "$DLLTOOL"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11374 $as_echo "$DLLTOOL" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 fi
11379
11380
11381 done
11382 fi
11383
11384 for ncn_progname in dlltool; do
11385 if test -n "$ncn_tool_prefix"; then
11386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11387 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_prog_DLLTOOL+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 if test -n "$DLLTOOL"; then
11394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11395 else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11398 do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11406 fi
11407 done
11408 done
11409 IFS=$as_save_IFS
11410
11411 fi
11412 fi
11413 DLLTOOL=$ac_cv_prog_DLLTOOL
11414 if test -n "$DLLTOOL"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11416 $as_echo "$DLLTOOL" >&6; }
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421
11422
11423 fi
11424 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426 set dummy ${ncn_progname}; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_prog_DLLTOOL+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 if test -n "$DLLTOOL"; then
11433 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11434 else
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_DLLTOOL="${ncn_progname}"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446 done
11447 done
11448 IFS=$as_save_IFS
11449
11450 fi
11451 fi
11452 DLLTOOL=$ac_cv_prog_DLLTOOL
11453 if test -n "$DLLTOOL"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11455 $as_echo "$DLLTOOL" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460
11461
11462 fi
11463 test -n "$ac_cv_prog_DLLTOOL" && break
11464 done
11465
11466 if test -z "$ac_cv_prog_DLLTOOL" ; then
11467 set dummy dlltool
11468 if test $build = $host ; then
11469 DLLTOOL="$2"
11470 else
11471 DLLTOOL="${ncn_tool_prefix}$2"
11472 fi
11473 fi
11474
11475
11476
11477 if test -n "$DSYMUTIL"; then
11478 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11479 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11481 fi
11482
11483 if test -n "$ac_cv_prog_DSYMUTIL"; then
11484 for ncn_progname in dsymutil; do
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 if test -n "$DSYMUTIL"; then
11493 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11494 else
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506 done
11507 done
11508 IFS=$as_save_IFS
11509
11510 fi
11511 fi
11512 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11513 if test -n "$DSYMUTIL"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11515 $as_echo "$DSYMUTIL" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 fi
11520
11521
11522 done
11523 fi
11524
11525 for ncn_progname in dsymutil; do
11526 if test -n "$ncn_tool_prefix"; then
11527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11528 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 if test -n "$DSYMUTIL"; then
11535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11536 else
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11539 do
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11544 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11547 fi
11548 done
11549 done
11550 IFS=$as_save_IFS
11551
11552 fi
11553 fi
11554 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11555 if test -n "$DSYMUTIL"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11557 $as_echo "$DSYMUTIL" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11561 fi
11562
11563
11564 fi
11565 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567 set dummy ${ncn_progname}; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 if test -n "$DSYMUTIL"; then
11574 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11575 else
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 break 2
11586 fi
11587 done
11588 done
11589 IFS=$as_save_IFS
11590
11591 fi
11592 fi
11593 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11594 if test -n "$DSYMUTIL"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11596 $as_echo "$DSYMUTIL" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11600 fi
11601
11602
11603 fi
11604 test -n "$ac_cv_prog_DSYMUTIL" && break
11605 done
11606
11607 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11608 set dummy dsymutil
11609 if test $build = $host ; then
11610 DSYMUTIL="$2"
11611 else
11612 DSYMUTIL="${ncn_tool_prefix}$2"
11613 fi
11614 fi
11615
11616
11617
11618 if test -n "$LD"; then
11619 ac_cv_prog_LD=$LD
11620 elif test -n "$ac_cv_prog_LD"; then
11621 LD=$ac_cv_prog_LD
11622 fi
11623
11624 if test -n "$ac_cv_prog_LD"; then
11625 for ncn_progname in ld; do
11626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11627 set dummy ${ncn_progname}; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_prog_LD+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 if test -n "$LD"; then
11634 ac_cv_prog_LD="$LD" # Let the user override the test.
11635 else
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11638 do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643 ac_cv_prog_LD="${ncn_progname}"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647 done
11648 done
11649 IFS=$as_save_IFS
11650
11651 fi
11652 fi
11653 LD=$ac_cv_prog_LD
11654 if test -n "$LD"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11656 $as_echo "$LD" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 done
11664 fi
11665
11666 for ncn_progname in ld; do
11667 if test -n "$ncn_tool_prefix"; then
11668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11669 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671 $as_echo_n "checking for $ac_word... " >&6; }
11672 if ${ac_cv_prog_LD+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 if test -n "$LD"; then
11676 ac_cv_prog_LD="$LD" # Let the user override the test.
11677 else
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11688 fi
11689 done
11690 done
11691 IFS=$as_save_IFS
11692
11693 fi
11694 fi
11695 LD=$ac_cv_prog_LD
11696 if test -n "$LD"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11698 $as_echo "$LD" >&6; }
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702 fi
11703
11704
11705 fi
11706 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708 set dummy ${ncn_progname}; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_prog_LD+:} false; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 if test -n "$LD"; then
11715 ac_cv_prog_LD="$LD" # Let the user override the test.
11716 else
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724 ac_cv_prog_LD="${ncn_progname}"
11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 break 2
11727 fi
11728 done
11729 done
11730 IFS=$as_save_IFS
11731
11732 fi
11733 fi
11734 LD=$ac_cv_prog_LD
11735 if test -n "$LD"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11737 $as_echo "$LD" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11741 fi
11742
11743
11744 fi
11745 test -n "$ac_cv_prog_LD" && break
11746 done
11747
11748 if test -z "$ac_cv_prog_LD" ; then
11749 set dummy ld
11750 if test $build = $host ; then
11751 LD="$2"
11752 else
11753 LD="${ncn_tool_prefix}$2"
11754 fi
11755 fi
11756
11757
11758
11759 if test -n "$LIPO"; then
11760 ac_cv_prog_LIPO=$LIPO
11761 elif test -n "$ac_cv_prog_LIPO"; then
11762 LIPO=$ac_cv_prog_LIPO
11763 fi
11764
11765 if test -n "$ac_cv_prog_LIPO"; then
11766 for ncn_progname in lipo; do
11767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11768 set dummy ${ncn_progname}; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_prog_LIPO+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 if test -n "$LIPO"; then
11775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_LIPO="${ncn_progname}"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788 done
11789 done
11790 IFS=$as_save_IFS
11791
11792 fi
11793 fi
11794 LIPO=$ac_cv_prog_LIPO
11795 if test -n "$LIPO"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11797 $as_echo "$LIPO" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 fi
11802
11803
11804 done
11805 fi
11806
11807 for ncn_progname in lipo; do
11808 if test -n "$ncn_tool_prefix"; then
11809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_prog_LIPO+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$LIPO"; then
11817 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 fi
11835 fi
11836 LIPO=$ac_cv_prog_LIPO
11837 if test -n "$LIPO"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11839 $as_echo "$LIPO" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844
11845
11846 fi
11847 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849 set dummy ${ncn_progname}; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_prog_LIPO+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 if test -n "$LIPO"; then
11856 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11857 else
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865 ac_cv_prog_LIPO="${ncn_progname}"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869 done
11870 done
11871 IFS=$as_save_IFS
11872
11873 fi
11874 fi
11875 LIPO=$ac_cv_prog_LIPO
11876 if test -n "$LIPO"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11878 $as_echo "$LIPO" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884
11885 fi
11886 test -n "$ac_cv_prog_LIPO" && break
11887 done
11888
11889 if test -z "$ac_cv_prog_LIPO" ; then
11890 set dummy lipo
11891 if test $build = $host ; then
11892 LIPO="$2"
11893 else
11894 LIPO="${ncn_tool_prefix}$2"
11895 fi
11896 fi
11897
11898
11899
11900 if test -n "$NM"; then
11901 ac_cv_prog_NM=$NM
11902 elif test -n "$ac_cv_prog_NM"; then
11903 NM=$ac_cv_prog_NM
11904 fi
11905
11906 if test -n "$ac_cv_prog_NM"; then
11907 for ncn_progname in nm; do
11908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11909 set dummy ${ncn_progname}; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_prog_NM+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if test -n "$NM"; then
11916 ac_cv_prog_NM="$NM" # Let the user override the test.
11917 else
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11920 do
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11925 ac_cv_prog_NM="${ncn_progname}"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 break 2
11928 fi
11929 done
11930 done
11931 IFS=$as_save_IFS
11932
11933 fi
11934 fi
11935 NM=$ac_cv_prog_NM
11936 if test -n "$NM"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11938 $as_echo "$NM" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11942 fi
11943
11944
11945 done
11946 fi
11947
11948 for ncn_progname in nm; do
11949 if test -n "$ncn_tool_prefix"; then
11950 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_prog_NM+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$NM"; then
11958 ac_cv_prog_NM="$NM" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 NM=$ac_cv_prog_NM
11978 if test -n "$NM"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11980 $as_echo "$NM" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 fi
11988 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990 set dummy ${ncn_progname}; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_prog_NM+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 if test -n "$NM"; then
11997 ac_cv_prog_NM="$NM" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_prog_NM="${ncn_progname}"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12009 fi
12010 done
12011 done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 NM=$ac_cv_prog_NM
12017 if test -n "$NM"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12019 $as_echo "$NM" >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026 fi
12027 test -n "$ac_cv_prog_NM" && break
12028 done
12029
12030 if test -z "$ac_cv_prog_NM" ; then
12031 set dummy nm
12032 if test $build = $host ; then
12033 NM="$2"
12034 else
12035 NM="${ncn_tool_prefix}$2"
12036 fi
12037 fi
12038
12039
12040
12041 if test -n "$RANLIB"; then
12042 ac_cv_prog_RANLIB=$RANLIB
12043 elif test -n "$ac_cv_prog_RANLIB"; then
12044 RANLIB=$ac_cv_prog_RANLIB
12045 fi
12046
12047 if test -n "$ac_cv_prog_RANLIB"; then
12048 for ncn_progname in ranlib; do
12049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_RANLIB+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$RANLIB"; then
12057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_RANLIB="${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12069 fi
12070 done
12071 done
12072 IFS=$as_save_IFS
12073
12074 fi
12075 fi
12076 RANLIB=$ac_cv_prog_RANLIB
12077 if test -n "$RANLIB"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12079 $as_echo "$RANLIB" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084
12085
12086 done
12087 fi
12088
12089 for ncn_progname in ranlib; do
12090 if test -n "$ncn_tool_prefix"; then
12091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_RANLIB+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 if test -n "$RANLIB"; then
12099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12111 fi
12112 done
12113 done
12114 IFS=$as_save_IFS
12115
12116 fi
12117 fi
12118 RANLIB=$ac_cv_prog_RANLIB
12119 if test -n "$RANLIB"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12121 $as_echo "$RANLIB" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126
12127
12128 fi
12129 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12131 set dummy ${ncn_progname}; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_prog_RANLIB+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 if test -n "$RANLIB"; then
12138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147 ac_cv_prog_RANLIB="${ncn_progname}"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 break 2
12150 fi
12151 done
12152 done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 RANLIB=$ac_cv_prog_RANLIB
12158 if test -n "$RANLIB"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12160 $as_echo "$RANLIB" >&6; }
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167 fi
12168 test -n "$ac_cv_prog_RANLIB" && break
12169 done
12170
12171 if test -z "$ac_cv_prog_RANLIB" ; then
12172 RANLIB="true"
12173 fi
12174
12175
12176
12177 if test -n "$STRIP"; then
12178 ac_cv_prog_STRIP=$STRIP
12179 elif test -n "$ac_cv_prog_STRIP"; then
12180 STRIP=$ac_cv_prog_STRIP
12181 fi
12182
12183 if test -n "$ac_cv_prog_STRIP"; then
12184 for ncn_progname in strip; do
12185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12186 set dummy ${ncn_progname}; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_prog_STRIP+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 if test -n "$STRIP"; then
12193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_prog_STRIP="${ncn_progname}"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12205 fi
12206 done
12207 done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 STRIP=$ac_cv_prog_STRIP
12213 if test -n "$STRIP"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12215 $as_echo "$STRIP" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 done
12223 fi
12224
12225 for ncn_progname in strip; do
12226 if test -n "$ncn_tool_prefix"; then
12227 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12228 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if ${ac_cv_prog_STRIP+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 if test -n "$STRIP"; then
12235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12236 else
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12247 fi
12248 done
12249 done
12250 IFS=$as_save_IFS
12251
12252 fi
12253 fi
12254 STRIP=$ac_cv_prog_STRIP
12255 if test -n "$STRIP"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12257 $as_echo "$STRIP" >&6; }
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262
12263
12264 fi
12265 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267 set dummy ${ncn_progname}; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_prog_STRIP+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 if test -n "$STRIP"; then
12274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12278 do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_STRIP="${ncn_progname}"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12286 fi
12287 done
12288 done
12289 IFS=$as_save_IFS
12290
12291 fi
12292 fi
12293 STRIP=$ac_cv_prog_STRIP
12294 if test -n "$STRIP"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12296 $as_echo "$STRIP" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302
12303 fi
12304 test -n "$ac_cv_prog_STRIP" && break
12305 done
12306
12307 if test -z "$ac_cv_prog_STRIP" ; then
12308 STRIP="true"
12309 fi
12310
12311
12312
12313 if test -n "$WINDRES"; then
12314 ac_cv_prog_WINDRES=$WINDRES
12315 elif test -n "$ac_cv_prog_WINDRES"; then
12316 WINDRES=$ac_cv_prog_WINDRES
12317 fi
12318
12319 if test -n "$ac_cv_prog_WINDRES"; then
12320 for ncn_progname in windres; do
12321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12322 set dummy ${ncn_progname}; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_prog_WINDRES+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 if test -n "$WINDRES"; then
12329 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12330 else
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338 ac_cv_prog_WINDRES="${ncn_progname}"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12341 fi
12342 done
12343 done
12344 IFS=$as_save_IFS
12345
12346 fi
12347 fi
12348 WINDRES=$ac_cv_prog_WINDRES
12349 if test -n "$WINDRES"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12351 $as_echo "$WINDRES" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356
12357
12358 done
12359 fi
12360
12361 for ncn_progname in windres; do
12362 if test -n "$ncn_tool_prefix"; then
12363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12364 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_WINDRES+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -n "$WINDRES"; then
12371 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384 done
12385 done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 WINDRES=$ac_cv_prog_WINDRES
12391 if test -n "$WINDRES"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12393 $as_echo "$WINDRES" >&6; }
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398
12399
12400 fi
12401 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403 set dummy ${ncn_progname}; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_WINDRES+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if test -n "$WINDRES"; then
12410 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_prog_WINDRES="${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423 done
12424 done
12425 IFS=$as_save_IFS
12426
12427 fi
12428 fi
12429 WINDRES=$ac_cv_prog_WINDRES
12430 if test -n "$WINDRES"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12432 $as_echo "$WINDRES" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438
12439 fi
12440 test -n "$ac_cv_prog_WINDRES" && break
12441 done
12442
12443 if test -z "$ac_cv_prog_WINDRES" ; then
12444 set dummy windres
12445 if test $build = $host ; then
12446 WINDRES="$2"
12447 else
12448 WINDRES="${ncn_tool_prefix}$2"
12449 fi
12450 fi
12451
12452
12453
12454 if test -n "$WINDMC"; then
12455 ac_cv_prog_WINDMC=$WINDMC
12456 elif test -n "$ac_cv_prog_WINDMC"; then
12457 WINDMC=$ac_cv_prog_WINDMC
12458 fi
12459
12460 if test -n "$ac_cv_prog_WINDMC"; then
12461 for ncn_progname in windmc; do
12462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12463 set dummy ${ncn_progname}; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if ${ac_cv_prog_WINDMC+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 if test -n "$WINDMC"; then
12470 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12471 else
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12474 do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_prog_WINDMC="${ncn_progname}"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12482 fi
12483 done
12484 done
12485 IFS=$as_save_IFS
12486
12487 fi
12488 fi
12489 WINDMC=$ac_cv_prog_WINDMC
12490 if test -n "$WINDMC"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12492 $as_echo "$WINDMC" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12496 fi
12497
12498
12499 done
12500 fi
12501
12502 for ncn_progname in windmc; do
12503 if test -n "$ncn_tool_prefix"; then
12504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if ${ac_cv_prog_WINDMC+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$WINDMC"; then
12512 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12516 do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525 done
12526 done
12527 IFS=$as_save_IFS
12528
12529 fi
12530 fi
12531 WINDMC=$ac_cv_prog_WINDMC
12532 if test -n "$WINDMC"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12534 $as_echo "$WINDMC" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12538 fi
12539
12540
12541 fi
12542 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_prog_WINDMC+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 if test -n "$WINDMC"; then
12551 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12555 do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12560 ac_cv_prog_WINDMC="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564 done
12565 done
12566 IFS=$as_save_IFS
12567
12568 fi
12569 fi
12570 WINDMC=$ac_cv_prog_WINDMC
12571 if test -n "$WINDMC"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12573 $as_echo "$WINDMC" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578
12579
12580 fi
12581 test -n "$ac_cv_prog_WINDMC" && break
12582 done
12583
12584 if test -z "$ac_cv_prog_WINDMC" ; then
12585 set dummy windmc
12586 if test $build = $host ; then
12587 WINDMC="$2"
12588 else
12589 WINDMC="${ncn_tool_prefix}$2"
12590 fi
12591 fi
12592
12593
12594
12595 if test -n "$OBJCOPY"; then
12596 ac_cv_prog_OBJCOPY=$OBJCOPY
12597 elif test -n "$ac_cv_prog_OBJCOPY"; then
12598 OBJCOPY=$ac_cv_prog_OBJCOPY
12599 fi
12600
12601 if test -n "$ac_cv_prog_OBJCOPY"; then
12602 for ncn_progname in objcopy; do
12603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12604 set dummy ${ncn_progname}; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_prog_OBJCOPY+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 if test -n "$OBJCOPY"; then
12611 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12612 else
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12615 do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620 ac_cv_prog_OBJCOPY="${ncn_progname}"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624 done
12625 done
12626 IFS=$as_save_IFS
12627
12628 fi
12629 fi
12630 OBJCOPY=$ac_cv_prog_OBJCOPY
12631 if test -n "$OBJCOPY"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12633 $as_echo "$OBJCOPY" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 done
12641 fi
12642
12643 for ncn_progname in objcopy; do
12644 if test -n "$ncn_tool_prefix"; then
12645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_OBJCOPY+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$OBJCOPY"; then
12653 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666 done
12667 done
12668 IFS=$as_save_IFS
12669
12670 fi
12671 fi
12672 OBJCOPY=$ac_cv_prog_OBJCOPY
12673 if test -n "$OBJCOPY"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12675 $as_echo "$OBJCOPY" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681
12682 fi
12683 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_prog_OBJCOPY+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 if test -n "$OBJCOPY"; then
12692 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_OBJCOPY="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 fi
12710 fi
12711 OBJCOPY=$ac_cv_prog_OBJCOPY
12712 if test -n "$OBJCOPY"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12714 $as_echo "$OBJCOPY" >&6; }
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721 fi
12722 test -n "$ac_cv_prog_OBJCOPY" && break
12723 done
12724
12725 if test -z "$ac_cv_prog_OBJCOPY" ; then
12726 set dummy objcopy
12727 if test $build = $host ; then
12728 OBJCOPY="$2"
12729 else
12730 OBJCOPY="${ncn_tool_prefix}$2"
12731 fi
12732 fi
12733
12734
12735
12736 if test -n "$OBJDUMP"; then
12737 ac_cv_prog_OBJDUMP=$OBJDUMP
12738 elif test -n "$ac_cv_prog_OBJDUMP"; then
12739 OBJDUMP=$ac_cv_prog_OBJDUMP
12740 fi
12741
12742 if test -n "$ac_cv_prog_OBJDUMP"; then
12743 for ncn_progname in objdump; do
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_prog_OBJDUMP+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$OBJDUMP"; then
12752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_OBJDUMP="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 OBJDUMP=$ac_cv_prog_OBJDUMP
12772 if test -n "$OBJDUMP"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12774 $as_echo "$OBJDUMP" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780
12781 done
12782 fi
12783
12784 for ncn_progname in objdump; do
12785 if test -n "$ncn_tool_prefix"; then
12786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if ${ac_cv_prog_OBJDUMP+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test -n "$OBJDUMP"; then
12794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12795 else
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12798 do
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12806 fi
12807 done
12808 done
12809 IFS=$as_save_IFS
12810
12811 fi
12812 fi
12813 OBJDUMP=$ac_cv_prog_OBJDUMP
12814 if test -n "$OBJDUMP"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12816 $as_echo "$OBJDUMP" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12820 fi
12821
12822
12823 fi
12824 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if ${ac_cv_prog_OBJDUMP+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$OBJDUMP"; then
12833 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_OBJDUMP="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 OBJDUMP=$ac_cv_prog_OBJDUMP
12853 if test -n "$OBJDUMP"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12855 $as_echo "$OBJDUMP" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 fi
12863 test -n "$ac_cv_prog_OBJDUMP" && break
12864 done
12865
12866 if test -z "$ac_cv_prog_OBJDUMP" ; then
12867 set dummy objdump
12868 if test $build = $host ; then
12869 OBJDUMP="$2"
12870 else
12871 OBJDUMP="${ncn_tool_prefix}$2"
12872 fi
12873 fi
12874
12875
12876
12877 if test -n "$OTOOL"; then
12878 ac_cv_prog_OTOOL=$OTOOL
12879 elif test -n "$ac_cv_prog_OTOOL"; then
12880 OTOOL=$ac_cv_prog_OTOOL
12881 fi
12882
12883 if test -n "$ac_cv_prog_OTOOL"; then
12884 for ncn_progname in otool; do
12885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12886 set dummy ${ncn_progname}; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if ${ac_cv_prog_OTOOL+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 if test -n "$OTOOL"; then
12893 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12894 else
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_prog_OTOOL="${ncn_progname}"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906 done
12907 done
12908 IFS=$as_save_IFS
12909
12910 fi
12911 fi
12912 OTOOL=$ac_cv_prog_OTOOL
12913 if test -n "$OTOOL"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12915 $as_echo "$OTOOL" >&6; }
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920
12921
12922 done
12923 fi
12924
12925 for ncn_progname in otool; do
12926 if test -n "$ncn_tool_prefix"; then
12927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if ${ac_cv_prog_OTOOL+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 if test -n "$OTOOL"; then
12935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12936 else
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12939 do
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12944 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12947 fi
12948 done
12949 done
12950 IFS=$as_save_IFS
12951
12952 fi
12953 fi
12954 OTOOL=$ac_cv_prog_OTOOL
12955 if test -n "$OTOOL"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12957 $as_echo "$OTOOL" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12961 fi
12962
12963
12964 fi
12965 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_prog_OTOOL+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 if test -n "$OTOOL"; then
12974 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_prog_OTOOL="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12986 fi
12987 done
12988 done
12989 IFS=$as_save_IFS
12990
12991 fi
12992 fi
12993 OTOOL=$ac_cv_prog_OTOOL
12994 if test -n "$OTOOL"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12996 $as_echo "$OTOOL" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003 fi
13004 test -n "$ac_cv_prog_OTOOL" && break
13005 done
13006
13007 if test -z "$ac_cv_prog_OTOOL" ; then
13008 set dummy otool
13009 if test $build = $host ; then
13010 OTOOL="$2"
13011 else
13012 OTOOL="${ncn_tool_prefix}$2"
13013 fi
13014 fi
13015
13016
13017
13018 if test -n "$READELF"; then
13019 ac_cv_prog_READELF=$READELF
13020 elif test -n "$ac_cv_prog_READELF"; then
13021 READELF=$ac_cv_prog_READELF
13022 fi
13023
13024 if test -n "$ac_cv_prog_READELF"; then
13025 for ncn_progname in readelf; do
13026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if ${ac_cv_prog_READELF+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$READELF"; then
13034 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13038 do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_READELF="${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047 done
13048 done
13049 IFS=$as_save_IFS
13050
13051 fi
13052 fi
13053 READELF=$ac_cv_prog_READELF
13054 if test -n "$READELF"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13056 $as_echo "$READELF" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062
13063 done
13064 fi
13065
13066 for ncn_progname in readelf; do
13067 if test -n "$ncn_tool_prefix"; then
13068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_prog_READELF+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 if test -n "$READELF"; then
13076 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13080 do
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13088 fi
13089 done
13090 done
13091 IFS=$as_save_IFS
13092
13093 fi
13094 fi
13095 READELF=$ac_cv_prog_READELF
13096 if test -n "$READELF"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13098 $as_echo "$READELF" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102 fi
13103
13104
13105 fi
13106 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13108 set dummy ${ncn_progname}; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_prog_READELF+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 if test -n "$READELF"; then
13115 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13116 else
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13119 do
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_READELF="${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13127 fi
13128 done
13129 done
13130 IFS=$as_save_IFS
13131
13132 fi
13133 fi
13134 READELF=$ac_cv_prog_READELF
13135 if test -n "$READELF"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13137 $as_echo "$READELF" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 fi
13142
13143
13144 fi
13145 test -n "$ac_cv_prog_READELF" && break
13146 done
13147
13148 if test -z "$ac_cv_prog_READELF" ; then
13149 set dummy readelf
13150 if test $build = $host ; then
13151 READELF="$2"
13152 else
13153 READELF="${ncn_tool_prefix}$2"
13154 fi
13155 fi
13156
13157
13158
13159
13160
13161
13162
13163 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13164
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13167 $as_echo_n "checking for -plugin option... " >&6; }
13168
13169 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13170 plugin_option=
13171 for plugin in $plugin_names; do
13172 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13173 if test x$plugin_so = x$plugin; then
13174 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13175 fi
13176 if test x$plugin_so != x$plugin; then
13177 plugin_option="--plugin $plugin_so"
13178 break
13179 fi
13180 done
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13183 set dummy ${ac_tool_prefix}ar; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if ${ac_cv_prog_AR+:} false; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$AR"; then
13190 ac_cv_prog_AR="$AR" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199 ac_cv_prog_AR="${ac_tool_prefix}ar"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13202 fi
13203 done
13204 done
13205 IFS=$as_save_IFS
13206
13207 fi
13208 fi
13209 AR=$ac_cv_prog_AR
13210 if test -n "$AR"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13212 $as_echo "$AR" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 fi
13217
13218
13219 fi
13220 if test -z "$ac_cv_prog_AR"; then
13221 ac_ct_AR=$AR
13222 # Extract the first word of "ar", so it can be a program name with args.
13223 set dummy ar; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$ac_ct_AR"; then
13230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_ac_ct_AR="ar"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243 done
13244 done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13250 if test -n "$ac_ct_AR"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13252 $as_echo "$ac_ct_AR" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258 if test "x$ac_ct_AR" = x; then
13259 AR=""
13260 else
13261 case $cross_compiling:$ac_tool_warned in
13262 yes:)
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13265 ac_tool_warned=yes ;;
13266 esac
13267 AR=$ac_ct_AR
13268 fi
13269 else
13270 AR="$ac_cv_prog_AR"
13271 fi
13272
13273 if test "${AR}" = "" ; then
13274 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13275 fi
13276 touch conftest.c
13277 ${AR} $plugin_option rc conftest.a conftest.c
13278 if test "$?" != 0; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13280 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13281 plugin_option=
13282 fi
13283 rm -f conftest.*
13284 if test -n "$plugin_option"; then
13285 PLUGIN_OPTION="$plugin_option"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13287 $as_echo "$plugin_option" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293 AR_PLUGIN_OPTION=
13294 RANLIB_PLUGIN_OPTION=
13295 if test -n "$PLUGIN_OPTION"; then
13296 if $AR --help 2>&1 | grep -q "\--plugin"; then
13297 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13298 fi
13299 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13300 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13301 fi
13302 fi
13303
13304
13305
13306 # Target tools.
13307
13308 # Check whether --with-build-time-tools was given.
13309 if test "${with_build_time_tools+set}" = set; then :
13310 withval=$with_build_time_tools; case x"$withval" in
13311 x/*) ;;
13312 *)
13313 with_build_time_tools=
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13315 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13316 ;;
13317 esac
13318 else
13319 with_build_time_tools=
13320 fi
13321
13322
13323
13324
13325 if test -n "$CC_FOR_TARGET"; then
13326 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13327 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13328 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13329 fi
13330
13331 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13332 for ncn_progname in cc gcc; do
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$CC_FOR_TARGET"; then
13341 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13361 if test -n "$CC_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13363 $as_echo "$CC_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370 done
13371 fi
13372
13373 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13374 for ncn_progname in cc gcc; do
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13376 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13377 if test -x $with_build_time_tools/${ncn_progname}; then
13378 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13380 $as_echo "yes" >&6; }
13381 break
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386 done
13387 fi
13388
13389 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13390 for ncn_progname in cc gcc; do
13391 if test -n "$ncn_target_tool_prefix"; then
13392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 if test -n "$CC_FOR_TARGET"; then
13400 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 break 2
13412 fi
13413 done
13414 done
13415 IFS=$as_save_IFS
13416
13417 fi
13418 fi
13419 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13420 if test -n "$CC_FOR_TARGET"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13422 $as_echo "$CC_FOR_TARGET" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426 fi
13427
13428
13429 fi
13430 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13432 set dummy ${ncn_progname}; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 if test -n "$CC_FOR_TARGET"; then
13439 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452 done
13453 done
13454 IFS=$as_save_IFS
13455
13456 fi
13457 fi
13458 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13459 if test -n "$CC_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13461 $as_echo "$CC_FOR_TARGET" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466
13467
13468 fi
13469 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13470 done
13471 fi
13472
13473 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13474 set dummy cc gcc
13475 if test $build = $target ; then
13476 CC_FOR_TARGET="$2"
13477 else
13478 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13479 fi
13480 else
13481 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13482 fi
13483
13484
13485
13486 if test -n "$CXX_FOR_TARGET"; then
13487 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13488 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13489 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13490 fi
13491
13492 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13493 for ncn_progname in c++ g++ cxx gxx; do
13494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13495 set dummy ${ncn_progname}; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$CXX_FOR_TARGET"; then
13502 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515 done
13516 done
13517 IFS=$as_save_IFS
13518
13519 fi
13520 fi
13521 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13522 if test -n "$CXX_FOR_TARGET"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13524 $as_echo "$CXX_FOR_TARGET" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530
13531 done
13532 fi
13533
13534 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13535 for ncn_progname in c++ g++ cxx gxx; do
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13537 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13538 if test -x $with_build_time_tools/${ncn_progname}; then
13539 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13541 $as_echo "yes" >&6; }
13542 break
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547 done
13548 fi
13549
13550 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13551 for ncn_progname in c++ g++ cxx gxx; do
13552 if test -n "$ncn_target_tool_prefix"; then
13553 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13554 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13556 $as_echo_n "checking for $ac_word... " >&6; }
13557 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 if test -n "$CXX_FOR_TARGET"; then
13561 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13562 else
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13565 do
13566 IFS=$as_save_IFS
13567 test -z "$as_dir" && as_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13570 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13572 break 2
13573 fi
13574 done
13575 done
13576 IFS=$as_save_IFS
13577
13578 fi
13579 fi
13580 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13581 if test -n "$CXX_FOR_TARGET"; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13583 $as_echo "$CXX_FOR_TARGET" >&6; }
13584 else
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586 $as_echo "no" >&6; }
13587 fi
13588
13589
13590 fi
13591 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13593 set dummy ${ncn_progname}; ac_word=$2
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13595 $as_echo_n "checking for $ac_word... " >&6; }
13596 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 if test -n "$CXX_FOR_TARGET"; then
13600 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13601 else
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13604 do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613 done
13614 done
13615 IFS=$as_save_IFS
13616
13617 fi
13618 fi
13619 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13620 if test -n "$CXX_FOR_TARGET"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13622 $as_echo "$CXX_FOR_TARGET" >&6; }
13623 else
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13626 fi
13627
13628
13629 fi
13630 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13631 done
13632 fi
13633
13634 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13635 set dummy c++ g++ cxx gxx
13636 if test $build = $target ; then
13637 CXX_FOR_TARGET="$2"
13638 else
13639 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13640 fi
13641 else
13642 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13643 fi
13644
13645
13646
13647 if test -n "$GCC_FOR_TARGET"; then
13648 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13649 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13650 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13651 fi
13652
13653 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13654 for ncn_progname in gcc; do
13655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13656 set dummy ${ncn_progname}; ac_word=$2
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658 $as_echo_n "checking for $ac_word... " >&6; }
13659 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 if test -n "$GCC_FOR_TARGET"; then
13663 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13664 else
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13667 do
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13675 fi
13676 done
13677 done
13678 IFS=$as_save_IFS
13679
13680 fi
13681 fi
13682 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13683 if test -n "$GCC_FOR_TARGET"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13685 $as_echo "$GCC_FOR_TARGET" >&6; }
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689 fi
13690
13691
13692 done
13693 fi
13694
13695 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13696 for ncn_progname in gcc; do
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13698 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13699 if test -x $with_build_time_tools/${ncn_progname}; then
13700 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703 break
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708 done
13709 fi
13710
13711 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13712 for ncn_progname in gcc; do
13713 if test -n "$ncn_target_tool_prefix"; then
13714 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13715 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717 $as_echo_n "checking for $ac_word... " >&6; }
13718 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 if test -n "$GCC_FOR_TARGET"; then
13722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13723 else
13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13726 do
13727 IFS=$as_save_IFS
13728 test -z "$as_dir" && as_dir=.
13729 for ac_exec_ext in '' $ac_executable_extensions; do
13730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13731 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13733 break 2
13734 fi
13735 done
13736 done
13737 IFS=$as_save_IFS
13738
13739 fi
13740 fi
13741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13742 if test -n "$GCC_FOR_TARGET"; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13744 $as_echo "$GCC_FOR_TARGET" >&6; }
13745 else
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13748 fi
13749
13750
13751 fi
13752 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13754 set dummy ${ncn_progname}; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test -n "$GCC_FOR_TARGET"; then
13761 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774 done
13775 done
13776 IFS=$as_save_IFS
13777
13778 fi
13779 fi
13780 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13781 if test -n "$GCC_FOR_TARGET"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13783 $as_echo "$GCC_FOR_TARGET" >&6; }
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789
13790 fi
13791 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13792 done
13793 fi
13794
13795 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13796 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13797 else
13798 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13799 fi
13800
13801
13802
13803 if test -n "$GFORTRAN_FOR_TARGET"; then
13804 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13805 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13806 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13807 fi
13808
13809 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13810 for ncn_progname in gfortran; do
13811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13812 set dummy ${ncn_progname}; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -n "$GFORTRAN_FOR_TARGET"; then
13819 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13823 do
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13831 fi
13832 done
13833 done
13834 IFS=$as_save_IFS
13835
13836 fi
13837 fi
13838 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13839 if test -n "$GFORTRAN_FOR_TARGET"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13841 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13845 fi
13846
13847
13848 done
13849 fi
13850
13851 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13852 for ncn_progname in gfortran; do
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13855 if test -x $with_build_time_tools/${ncn_progname}; then
13856 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13858 $as_echo "yes" >&6; }
13859 break
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13863 fi
13864 done
13865 fi
13866
13867 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13868 for ncn_progname in gfortran; do
13869 if test -n "$ncn_target_tool_prefix"; then
13870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 if test -n "$GFORTRAN_FOR_TARGET"; then
13878 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13879 else
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891 done
13892 done
13893 IFS=$as_save_IFS
13894
13895 fi
13896 fi
13897 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13898 if test -n "$GFORTRAN_FOR_TARGET"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13900 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13901 else
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13904 fi
13905
13906
13907 fi
13908 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13910 set dummy ${ncn_progname}; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 if test -n "$GFORTRAN_FOR_TARGET"; then
13917 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13921 do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930 done
13931 done
13932 IFS=$as_save_IFS
13933
13934 fi
13935 fi
13936 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13937 if test -n "$GFORTRAN_FOR_TARGET"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13939 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13943 fi
13944
13945
13946 fi
13947 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13948 done
13949 fi
13950
13951 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13952 set dummy gfortran
13953 if test $build = $target ; then
13954 GFORTRAN_FOR_TARGET="$2"
13955 else
13956 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13957 fi
13958 else
13959 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13960 fi
13961
13962
13963
13964 if test -n "$GOC_FOR_TARGET"; then
13965 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13966 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13967 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13968 fi
13969
13970 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13971 for ncn_progname in gccgo; do
13972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13973 set dummy ${ncn_progname}; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 if test -n "$GOC_FOR_TARGET"; then
13980 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13981 else
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13984 do
13985 IFS=$as_save_IFS
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13991 break 2
13992 fi
13993 done
13994 done
13995 IFS=$as_save_IFS
13996
13997 fi
13998 fi
13999 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14000 if test -n "$GOC_FOR_TARGET"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14002 $as_echo "$GOC_FOR_TARGET" >&6; }
14003 else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 $as_echo "no" >&6; }
14006 fi
14007
14008
14009 done
14010 fi
14011
14012 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14013 for ncn_progname in gccgo; do
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14015 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14016 if test -x $with_build_time_tools/${ncn_progname}; then
14017 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019 $as_echo "yes" >&6; }
14020 break
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14024 fi
14025 done
14026 fi
14027
14028 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14029 for ncn_progname in gccgo; do
14030 if test -n "$ncn_target_tool_prefix"; then
14031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 if test -n "$GOC_FOR_TARGET"; then
14039 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14040 else
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14043 do
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14051 fi
14052 done
14053 done
14054 IFS=$as_save_IFS
14055
14056 fi
14057 fi
14058 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14059 if test -n "$GOC_FOR_TARGET"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14061 $as_echo "$GOC_FOR_TARGET" >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065 fi
14066
14067
14068 fi
14069 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14071 set dummy ${ncn_progname}; ac_word=$2
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073 $as_echo_n "checking for $ac_word... " >&6; }
14074 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 if test -n "$GOC_FOR_TARGET"; then
14078 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14079 else
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14082 do
14083 IFS=$as_save_IFS
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 break 2
14090 fi
14091 done
14092 done
14093 IFS=$as_save_IFS
14094
14095 fi
14096 fi
14097 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14098 if test -n "$GOC_FOR_TARGET"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14100 $as_echo "$GOC_FOR_TARGET" >&6; }
14101 else
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14104 fi
14105
14106
14107 fi
14108 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14109 done
14110 fi
14111
14112 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14113 set dummy gccgo
14114 if test $build = $target ; then
14115 GOC_FOR_TARGET="$2"
14116 else
14117 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14118 fi
14119 else
14120 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14121 fi
14122
14123
14124
14125 if test -n "$GDC_FOR_TARGET"; then
14126 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14127 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14128 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14129 fi
14130
14131 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14132 for ncn_progname in gdc; do
14133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14134 set dummy ${ncn_progname}; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 if test -n "$GDC_FOR_TARGET"; then
14141 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14150 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 break 2
14153 fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14161 if test -n "$GDC_FOR_TARGET"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14163 $as_echo "$GDC_FOR_TARGET" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 fi
14168
14169
14170 done
14171 fi
14172
14173 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14174 for ncn_progname in gdc; do
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14176 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14177 if test -x $with_build_time_tools/${ncn_progname}; then
14178 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14180 $as_echo "yes" >&6; }
14181 break
14182 else
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14184 $as_echo "no" >&6; }
14185 fi
14186 done
14187 fi
14188
14189 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14190 for ncn_progname in gdc; do
14191 if test -n "$ncn_target_tool_prefix"; then
14192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14195 $as_echo_n "checking for $ac_word... " >&6; }
14196 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 if test -n "$GDC_FOR_TARGET"; then
14200 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14201 else
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203 for as_dir in $PATH
14204 do
14205 IFS=$as_save_IFS
14206 test -z "$as_dir" && as_dir=.
14207 for ac_exec_ext in '' $ac_executable_extensions; do
14208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14209 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14211 break 2
14212 fi
14213 done
14214 done
14215 IFS=$as_save_IFS
14216
14217 fi
14218 fi
14219 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14220 if test -n "$GDC_FOR_TARGET"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14222 $as_echo "$GDC_FOR_TARGET" >&6; }
14223 else
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 fi
14227
14228
14229 fi
14230 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14232 set dummy ${ncn_progname}; ac_word=$2
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14234 $as_echo_n "checking for $ac_word... " >&6; }
14235 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14236 $as_echo_n "(cached) " >&6
14237 else
14238 if test -n "$GDC_FOR_TARGET"; then
14239 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14240 else
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14243 do
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252 done
14253 done
14254 IFS=$as_save_IFS
14255
14256 fi
14257 fi
14258 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14259 if test -n "$GDC_FOR_TARGET"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14261 $as_echo "$GDC_FOR_TARGET" >&6; }
14262 else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265 fi
14266
14267
14268 fi
14269 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14270 done
14271 fi
14272
14273 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14274 set dummy gdc
14275 if test $build = $target ; then
14276 GDC_FOR_TARGET="$2"
14277 else
14278 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14279 fi
14280 else
14281 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14282 fi
14283
14284
14285
14286 if test -n "$GM2_FOR_TARGET"; then
14287 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14288 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14289 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14290 fi
14291
14292 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14293 for ncn_progname in gm2; do
14294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14295 set dummy ${ncn_progname}; ac_word=$2
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14297 $as_echo_n "checking for $ac_word... " >&6; }
14298 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 if test -n "$GM2_FOR_TARGET"; then
14302 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14303 else
14304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305 for as_dir in $PATH
14306 do
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14311 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315 done
14316 done
14317 IFS=$as_save_IFS
14318
14319 fi
14320 fi
14321 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14322 if test -n "$GM2_FOR_TARGET"; then
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14324 $as_echo "$GM2_FOR_TARGET" >&6; }
14325 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14328 fi
14329
14330
14331 done
14332 fi
14333
14334 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14335 for ncn_progname in gm2; do
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14337 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14338 if test -x $with_build_time_tools/${ncn_progname}; then
14339 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14341 $as_echo "yes" >&6; }
14342 break
14343 else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14346 fi
14347 done
14348 fi
14349
14350 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14351 for ncn_progname in gm2; do
14352 if test -n "$ncn_target_tool_prefix"; then
14353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 if test -n "$GM2_FOR_TARGET"; then
14361 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366 IFS=$as_save_IFS
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14372 break 2
14373 fi
14374 done
14375 done
14376 IFS=$as_save_IFS
14377
14378 fi
14379 fi
14380 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14381 if test -n "$GM2_FOR_TARGET"; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14383 $as_echo "$GM2_FOR_TARGET" >&6; }
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14387 fi
14388
14389
14390 fi
14391 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14393 set dummy ${ncn_progname}; ac_word=$2
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14395 $as_echo_n "checking for $ac_word... " >&6; }
14396 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 if test -n "$GM2_FOR_TARGET"; then
14400 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14401 else
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14404 do
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14409 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413 done
14414 done
14415 IFS=$as_save_IFS
14416
14417 fi
14418 fi
14419 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14420 if test -n "$GM2_FOR_TARGET"; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14422 $as_echo "$GM2_FOR_TARGET" >&6; }
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14425 $as_echo "no" >&6; }
14426 fi
14427
14428
14429 fi
14430 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14431 done
14432 fi
14433
14434 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14435 set dummy gm2
14436 if test $build = $target ; then
14437 GM2_FOR_TARGET="$2"
14438 else
14439 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14440 fi
14441 else
14442 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14443 fi
14444
14445
14446
14447 cat > conftest.c << \EOF
14448 #ifdef __GNUC__
14449 gcc_yay;
14450 #endif
14451 EOF
14452 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14453 have_gcc_for_target=yes
14454 else
14455 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14456 have_gcc_for_target=no
14457 fi
14458 rm conftest.c
14459
14460
14461
14462
14463 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14464 if test -n "$with_build_time_tools"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14466 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14467 if test -x $with_build_time_tools/ar; then
14468 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14469 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14471 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14475 fi
14476 elif test $build != $host && test $have_gcc_for_target = yes; then
14477 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14478 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14479 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14480 fi
14481 fi
14482 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14483 # Extract the first word of "ar", so it can be a program name with args.
14484 set dummy ar; ac_word=$2
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14486 $as_echo_n "checking for $ac_word... " >&6; }
14487 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 case $AR_FOR_TARGET in
14491 [\\/]* | ?:[\\/]*)
14492 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14493 ;;
14494 *)
14495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496 for as_dir in $gcc_cv_tool_dirs
14497 do
14498 IFS=$as_save_IFS
14499 test -z "$as_dir" && as_dir=.
14500 for ac_exec_ext in '' $ac_executable_extensions; do
14501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14502 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14504 break 2
14505 fi
14506 done
14507 done
14508 IFS=$as_save_IFS
14509
14510 ;;
14511 esac
14512 fi
14513 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14514 if test -n "$AR_FOR_TARGET"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14516 $as_echo "$AR_FOR_TARGET" >&6; }
14517 else
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 $as_echo "no" >&6; }
14520 fi
14521
14522
14523 fi
14524 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14525
14526
14527 if test -n "$AR_FOR_TARGET"; then
14528 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14529 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14530 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14531 fi
14532
14533 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14534 for ncn_progname in ar; do
14535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14536 set dummy ${ncn_progname}; ac_word=$2
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14538 $as_echo_n "checking for $ac_word... " >&6; }
14539 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 if test -n "$AR_FOR_TARGET"; then
14543 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14544 else
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14547 do
14548 IFS=$as_save_IFS
14549 test -z "$as_dir" && as_dir=.
14550 for ac_exec_ext in '' $ac_executable_extensions; do
14551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14552 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14554 break 2
14555 fi
14556 done
14557 done
14558 IFS=$as_save_IFS
14559
14560 fi
14561 fi
14562 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14563 if test -n "$AR_FOR_TARGET"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14565 $as_echo "$AR_FOR_TARGET" >&6; }
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14568 $as_echo "no" >&6; }
14569 fi
14570
14571
14572 done
14573 fi
14574
14575 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14576 for ncn_progname in ar; do
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14578 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14579 if test -x $with_build_time_tools/${ncn_progname}; then
14580 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; }
14583 break
14584 else
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14587 fi
14588 done
14589 fi
14590
14591 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14592 for ncn_progname in ar; do
14593 if test -n "$ncn_target_tool_prefix"; then
14594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14595 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 if test -n "$AR_FOR_TARGET"; then
14602 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14603 else
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14606 do
14607 IFS=$as_save_IFS
14608 test -z "$as_dir" && as_dir=.
14609 for ac_exec_ext in '' $ac_executable_extensions; do
14610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 break 2
14614 fi
14615 done
14616 done
14617 IFS=$as_save_IFS
14618
14619 fi
14620 fi
14621 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14622 if test -n "$AR_FOR_TARGET"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14624 $as_echo "$AR_FOR_TARGET" >&6; }
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628 fi
14629
14630
14631 fi
14632 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14634 set dummy ${ncn_progname}; ac_word=$2
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14636 $as_echo_n "checking for $ac_word... " >&6; }
14637 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 if test -n "$AR_FOR_TARGET"; then
14641 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14642 else
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14645 do
14646 IFS=$as_save_IFS
14647 test -z "$as_dir" && as_dir=.
14648 for ac_exec_ext in '' $ac_executable_extensions; do
14649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14650 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14652 break 2
14653 fi
14654 done
14655 done
14656 IFS=$as_save_IFS
14657
14658 fi
14659 fi
14660 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14661 if test -n "$AR_FOR_TARGET"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14663 $as_echo "$AR_FOR_TARGET" >&6; }
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14667 fi
14668
14669
14670 fi
14671 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14672 done
14673 fi
14674
14675 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14676 set dummy ar
14677 if test $build = $target ; then
14678 AR_FOR_TARGET="$2"
14679 else
14680 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14681 fi
14682 else
14683 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14684 fi
14685
14686 else
14687 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14688 fi
14689
14690
14691
14692
14693 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14694 if test -n "$with_build_time_tools"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14696 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14697 if test -x $with_build_time_tools/as; then
14698 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14699 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14701 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14702 else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705 fi
14706 elif test $build != $host && test $have_gcc_for_target = yes; then
14707 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14708 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14709 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14710 fi
14711 fi
14712 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14713 # Extract the first word of "as", so it can be a program name with args.
14714 set dummy as; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 $as_echo_n "checking for $ac_word... " >&6; }
14717 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 case $AS_FOR_TARGET in
14721 [\\/]* | ?:[\\/]*)
14722 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14723 ;;
14724 *)
14725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14726 for as_dir in $gcc_cv_tool_dirs
14727 do
14728 IFS=$as_save_IFS
14729 test -z "$as_dir" && as_dir=.
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14732 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14734 break 2
14735 fi
14736 done
14737 done
14738 IFS=$as_save_IFS
14739
14740 ;;
14741 esac
14742 fi
14743 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14744 if test -n "$AS_FOR_TARGET"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14746 $as_echo "$AS_FOR_TARGET" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14750 fi
14751
14752
14753 fi
14754 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14755
14756
14757 if test -n "$AS_FOR_TARGET"; then
14758 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14759 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14760 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14761 fi
14762
14763 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14764 for ncn_progname in as; do
14765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14766 set dummy ${ncn_progname}; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768 $as_echo_n "checking for $ac_word... " >&6; }
14769 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 if test -n "$AS_FOR_TARGET"; then
14773 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14774 else
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14777 do
14778 IFS=$as_save_IFS
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14782 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14784 break 2
14785 fi
14786 done
14787 done
14788 IFS=$as_save_IFS
14789
14790 fi
14791 fi
14792 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14793 if test -n "$AS_FOR_TARGET"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14795 $as_echo "$AS_FOR_TARGET" >&6; }
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 $as_echo "no" >&6; }
14799 fi
14800
14801
14802 done
14803 fi
14804
14805 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14806 for ncn_progname in as; do
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14808 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14809 if test -x $with_build_time_tools/${ncn_progname}; then
14810 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14812 $as_echo "yes" >&6; }
14813 break
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 fi
14818 done
14819 fi
14820
14821 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14822 for ncn_progname in as; do
14823 if test -n "$ncn_target_tool_prefix"; then
14824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14827 $as_echo_n "checking for $ac_word... " >&6; }
14828 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 if test -n "$AS_FOR_TARGET"; then
14832 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14833 else
14834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14836 do
14837 IFS=$as_save_IFS
14838 test -z "$as_dir" && as_dir=.
14839 for ac_exec_ext in '' $ac_executable_extensions; do
14840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14841 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14843 break 2
14844 fi
14845 done
14846 done
14847 IFS=$as_save_IFS
14848
14849 fi
14850 fi
14851 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14852 if test -n "$AS_FOR_TARGET"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14854 $as_echo "$AS_FOR_TARGET" >&6; }
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14858 fi
14859
14860
14861 fi
14862 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14864 set dummy ${ncn_progname}; ac_word=$2
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14866 $as_echo_n "checking for $ac_word... " >&6; }
14867 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870 if test -n "$AS_FOR_TARGET"; then
14871 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14872 else
14873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874 for as_dir in $PATH
14875 do
14876 IFS=$as_save_IFS
14877 test -z "$as_dir" && as_dir=.
14878 for ac_exec_ext in '' $ac_executable_extensions; do
14879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14880 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14882 break 2
14883 fi
14884 done
14885 done
14886 IFS=$as_save_IFS
14887
14888 fi
14889 fi
14890 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14891 if test -n "$AS_FOR_TARGET"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14893 $as_echo "$AS_FOR_TARGET" >&6; }
14894 else
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14897 fi
14898
14899
14900 fi
14901 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14902 done
14903 fi
14904
14905 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14906 set dummy as
14907 if test $build = $target ; then
14908 AS_FOR_TARGET="$2"
14909 else
14910 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14911 fi
14912 else
14913 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14914 fi
14915
14916 else
14917 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14918 fi
14919
14920
14921
14922
14923 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14924 if test -n "$with_build_time_tools"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14926 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14927 if test -x $with_build_time_tools/dlltool; then
14928 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14929 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14931 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14932 else
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14935 fi
14936 elif test $build != $host && test $have_gcc_for_target = yes; then
14937 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14938 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14939 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14940 fi
14941 fi
14942 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14943 # Extract the first word of "dlltool", so it can be a program name with args.
14944 set dummy dlltool; ac_word=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946 $as_echo_n "checking for $ac_word... " >&6; }
14947 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 case $DLLTOOL_FOR_TARGET in
14951 [\\/]* | ?:[\\/]*)
14952 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14953 ;;
14954 *)
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $gcc_cv_tool_dirs
14957 do
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14965 fi
14966 done
14967 done
14968 IFS=$as_save_IFS
14969
14970 ;;
14971 esac
14972 fi
14973 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14974 if test -n "$DLLTOOL_FOR_TARGET"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14976 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14977 else
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 $as_echo "no" >&6; }
14980 fi
14981
14982
14983 fi
14984 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14985
14986
14987 if test -n "$DLLTOOL_FOR_TARGET"; then
14988 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14989 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14990 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14991 fi
14992
14993 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14994 for ncn_progname in dlltool; do
14995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14996 set dummy ${ncn_progname}; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14998 $as_echo_n "checking for $ac_word... " >&6; }
14999 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 if test -n "$DLLTOOL_FOR_TARGET"; then
15003 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15004 else
15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006 for as_dir in $PATH
15007 do
15008 IFS=$as_save_IFS
15009 test -z "$as_dir" && as_dir=.
15010 for ac_exec_ext in '' $ac_executable_extensions; do
15011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15012 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15014 break 2
15015 fi
15016 done
15017 done
15018 IFS=$as_save_IFS
15019
15020 fi
15021 fi
15022 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15023 if test -n "$DLLTOOL_FOR_TARGET"; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15025 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15026 else
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 $as_echo "no" >&6; }
15029 fi
15030
15031
15032 done
15033 fi
15034
15035 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15036 for ncn_progname in dlltool; do
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15038 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15039 if test -x $with_build_time_tools/${ncn_progname}; then
15040 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 $as_echo "yes" >&6; }
15043 break
15044 else
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 $as_echo "no" >&6; }
15047 fi
15048 done
15049 fi
15050
15051 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15052 for ncn_progname in dlltool; do
15053 if test -n "$ncn_target_tool_prefix"; then
15054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15055 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15057 $as_echo_n "checking for $ac_word... " >&6; }
15058 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 if test -n "$DLLTOOL_FOR_TARGET"; then
15062 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15063 else
15064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15065 for as_dir in $PATH
15066 do
15067 IFS=$as_save_IFS
15068 test -z "$as_dir" && as_dir=.
15069 for ac_exec_ext in '' $ac_executable_extensions; do
15070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15071 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15073 break 2
15074 fi
15075 done
15076 done
15077 IFS=$as_save_IFS
15078
15079 fi
15080 fi
15081 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15082 if test -n "$DLLTOOL_FOR_TARGET"; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15084 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15085 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087 $as_echo "no" >&6; }
15088 fi
15089
15090
15091 fi
15092 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15094 set dummy ${ncn_progname}; ac_word=$2
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15096 $as_echo_n "checking for $ac_word... " >&6; }
15097 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 if test -n "$DLLTOOL_FOR_TARGET"; then
15101 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15102 else
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15105 do
15106 IFS=$as_save_IFS
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15112 break 2
15113 fi
15114 done
15115 done
15116 IFS=$as_save_IFS
15117
15118 fi
15119 fi
15120 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15121 if test -n "$DLLTOOL_FOR_TARGET"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15123 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15127 fi
15128
15129
15130 fi
15131 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15132 done
15133 fi
15134
15135 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15136 set dummy dlltool
15137 if test $build = $target ; then
15138 DLLTOOL_FOR_TARGET="$2"
15139 else
15140 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15141 fi
15142 else
15143 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15144 fi
15145
15146 else
15147 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15148 fi
15149
15150
15151
15152
15153 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15154 if test -n "$with_build_time_tools"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15156 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15157 if test -x $with_build_time_tools/dsymutil; then
15158 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15159 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15161 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15165 fi
15166 elif test $build != $host && test $have_gcc_for_target = yes; then
15167 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15168 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15169 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15170 fi
15171 fi
15172 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15173 # Extract the first word of "dsymutil", so it can be a program name with args.
15174 set dummy dsymutil; ac_word=$2
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15176 $as_echo_n "checking for $ac_word... " >&6; }
15177 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179 else
15180 case $DSYMUTIL_FOR_TARGET in
15181 [\\/]* | ?:[\\/]*)
15182 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15183 ;;
15184 *)
15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $gcc_cv_tool_dirs
15187 do
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 for ac_exec_ext in '' $ac_executable_extensions; do
15191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15192 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15194 break 2
15195 fi
15196 done
15197 done
15198 IFS=$as_save_IFS
15199
15200 ;;
15201 esac
15202 fi
15203 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15204 if test -n "$DSYMUTIL_FOR_TARGET"; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15206 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15207 else
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15210 fi
15211
15212
15213 fi
15214 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15215
15216
15217 if test -n "$DSYMUTIL_FOR_TARGET"; then
15218 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15219 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15220 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15221 fi
15222
15223 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15224 for ncn_progname in dsymutil; do
15225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15226 set dummy ${ncn_progname}; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15228 $as_echo_n "checking for $ac_word... " >&6; }
15229 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 if test -n "$DSYMUTIL_FOR_TARGET"; then
15233 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15234 else
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $PATH
15237 do
15238 IFS=$as_save_IFS
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15244 break 2
15245 fi
15246 done
15247 done
15248 IFS=$as_save_IFS
15249
15250 fi
15251 fi
15252 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15253 if test -n "$DSYMUTIL_FOR_TARGET"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15255 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15256 else
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15259 fi
15260
15261
15262 done
15263 fi
15264
15265 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15266 for ncn_progname in dsymutil; do
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15268 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15269 if test -x $with_build_time_tools/${ncn_progname}; then
15270 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15272 $as_echo "yes" >&6; }
15273 break
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278 done
15279 fi
15280
15281 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15282 for ncn_progname in dsymutil; do
15283 if test -n "$ncn_target_tool_prefix"; then
15284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15285 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15287 $as_echo_n "checking for $ac_word... " >&6; }
15288 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15289 $as_echo_n "(cached) " >&6
15290 else
15291 if test -n "$DSYMUTIL_FOR_TARGET"; then
15292 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15293 else
15294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15295 for as_dir in $PATH
15296 do
15297 IFS=$as_save_IFS
15298 test -z "$as_dir" && as_dir=.
15299 for ac_exec_ext in '' $ac_executable_extensions; do
15300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15301 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15303 break 2
15304 fi
15305 done
15306 done
15307 IFS=$as_save_IFS
15308
15309 fi
15310 fi
15311 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15312 if test -n "$DSYMUTIL_FOR_TARGET"; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15314 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15315 else
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317 $as_echo "no" >&6; }
15318 fi
15319
15320
15321 fi
15322 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15324 set dummy ${ncn_progname}; ac_word=$2
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15326 $as_echo_n "checking for $ac_word... " >&6; }
15327 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 if test -n "$DSYMUTIL_FOR_TARGET"; then
15331 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15332 else
15333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15334 for as_dir in $PATH
15335 do
15336 IFS=$as_save_IFS
15337 test -z "$as_dir" && as_dir=.
15338 for ac_exec_ext in '' $ac_executable_extensions; do
15339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15340 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15342 break 2
15343 fi
15344 done
15345 done
15346 IFS=$as_save_IFS
15347
15348 fi
15349 fi
15350 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15351 if test -n "$DSYMUTIL_FOR_TARGET"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15353 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15357 fi
15358
15359
15360 fi
15361 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15362 done
15363 fi
15364
15365 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15366 set dummy dsymutil
15367 if test $build = $target ; then
15368 DSYMUTIL_FOR_TARGET="$2"
15369 else
15370 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15371 fi
15372 else
15373 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15374 fi
15375
15376 else
15377 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15378 fi
15379
15380
15381
15382
15383 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15384 if test -n "$with_build_time_tools"; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15386 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15387 if test -x $with_build_time_tools/ld; then
15388 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15389 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15391 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15392 else
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15395 fi
15396 elif test $build != $host && test $have_gcc_for_target = yes; then
15397 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15398 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15399 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15400 fi
15401 fi
15402 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15403 # Extract the first word of "ld", so it can be a program name with args.
15404 set dummy ld; ac_word=$2
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15406 $as_echo_n "checking for $ac_word... " >&6; }
15407 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 case $LD_FOR_TARGET in
15411 [\\/]* | ?:[\\/]*)
15412 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15413 ;;
15414 *)
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $gcc_cv_tool_dirs
15417 do
15418 IFS=$as_save_IFS
15419 test -z "$as_dir" && as_dir=.
15420 for ac_exec_ext in '' $ac_executable_extensions; do
15421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15424 break 2
15425 fi
15426 done
15427 done
15428 IFS=$as_save_IFS
15429
15430 ;;
15431 esac
15432 fi
15433 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15434 if test -n "$LD_FOR_TARGET"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15436 $as_echo "$LD_FOR_TARGET" >&6; }
15437 else
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15439 $as_echo "no" >&6; }
15440 fi
15441
15442
15443 fi
15444 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15445
15446
15447 if test -n "$LD_FOR_TARGET"; then
15448 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15449 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15450 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15451 fi
15452
15453 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15454 for ncn_progname in ld; do
15455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15456 set dummy ${ncn_progname}; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 if test -n "$LD_FOR_TARGET"; then
15463 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15464 else
15465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15466 for as_dir in $PATH
15467 do
15468 IFS=$as_save_IFS
15469 test -z "$as_dir" && as_dir=.
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15472 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15474 break 2
15475 fi
15476 done
15477 done
15478 IFS=$as_save_IFS
15479
15480 fi
15481 fi
15482 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15483 if test -n "$LD_FOR_TARGET"; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15485 $as_echo "$LD_FOR_TARGET" >&6; }
15486 else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15488 $as_echo "no" >&6; }
15489 fi
15490
15491
15492 done
15493 fi
15494
15495 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15496 for ncn_progname in ld; do
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15498 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15499 if test -x $with_build_time_tools/${ncn_progname}; then
15500 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15502 $as_echo "yes" >&6; }
15503 break
15504 else
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15507 fi
15508 done
15509 fi
15510
15511 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15512 for ncn_progname in ld; do
15513 if test -n "$ncn_target_tool_prefix"; then
15514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15515 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15517 $as_echo_n "checking for $ac_word... " >&6; }
15518 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 if test -n "$LD_FOR_TARGET"; then
15522 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15523 else
15524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15525 for as_dir in $PATH
15526 do
15527 IFS=$as_save_IFS
15528 test -z "$as_dir" && as_dir=.
15529 for ac_exec_ext in '' $ac_executable_extensions; do
15530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15531 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15533 break 2
15534 fi
15535 done
15536 done
15537 IFS=$as_save_IFS
15538
15539 fi
15540 fi
15541 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15542 if test -n "$LD_FOR_TARGET"; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15544 $as_echo "$LD_FOR_TARGET" >&6; }
15545 else
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547 $as_echo "no" >&6; }
15548 fi
15549
15550
15551 fi
15552 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15554 set dummy ${ncn_progname}; ac_word=$2
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15556 $as_echo_n "checking for $ac_word... " >&6; }
15557 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 if test -n "$LD_FOR_TARGET"; then
15561 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15562 else
15563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15564 for as_dir in $PATH
15565 do
15566 IFS=$as_save_IFS
15567 test -z "$as_dir" && as_dir=.
15568 for ac_exec_ext in '' $ac_executable_extensions; do
15569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15570 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15572 break 2
15573 fi
15574 done
15575 done
15576 IFS=$as_save_IFS
15577
15578 fi
15579 fi
15580 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15581 if test -n "$LD_FOR_TARGET"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15583 $as_echo "$LD_FOR_TARGET" >&6; }
15584 else
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15586 $as_echo "no" >&6; }
15587 fi
15588
15589
15590 fi
15591 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15592 done
15593 fi
15594
15595 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15596 set dummy ld
15597 if test $build = $target ; then
15598 LD_FOR_TARGET="$2"
15599 else
15600 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15601 fi
15602 else
15603 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15604 fi
15605
15606 else
15607 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15608 fi
15609
15610
15611
15612
15613 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15614 if test -n "$with_build_time_tools"; then
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15616 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15617 if test -x $with_build_time_tools/lipo; then
15618 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15619 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15621 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15622 else
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15625 fi
15626 elif test $build != $host && test $have_gcc_for_target = yes; then
15627 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15628 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15629 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15630 fi
15631 fi
15632 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15633 # Extract the first word of "lipo", so it can be a program name with args.
15634 set dummy lipo; ac_word=$2
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15636 $as_echo_n "checking for $ac_word... " >&6; }
15637 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 case $LIPO_FOR_TARGET in
15641 [\\/]* | ?:[\\/]*)
15642 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15643 ;;
15644 *)
15645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646 for as_dir in $gcc_cv_tool_dirs
15647 do
15648 IFS=$as_save_IFS
15649 test -z "$as_dir" && as_dir=.
15650 for ac_exec_ext in '' $ac_executable_extensions; do
15651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15652 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15654 break 2
15655 fi
15656 done
15657 done
15658 IFS=$as_save_IFS
15659
15660 ;;
15661 esac
15662 fi
15663 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15664 if test -n "$LIPO_FOR_TARGET"; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15666 $as_echo "$LIPO_FOR_TARGET" >&6; }
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15670 fi
15671
15672
15673 fi
15674 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15675
15676
15677 if test -n "$LIPO_FOR_TARGET"; then
15678 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15679 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15680 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15681 fi
15682
15683 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15684 for ncn_progname in lipo; do
15685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15686 set dummy ${ncn_progname}; ac_word=$2
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15688 $as_echo_n "checking for $ac_word... " >&6; }
15689 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15690 $as_echo_n "(cached) " >&6
15691 else
15692 if test -n "$LIPO_FOR_TARGET"; then
15693 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15694 else
15695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696 for as_dir in $PATH
15697 do
15698 IFS=$as_save_IFS
15699 test -z "$as_dir" && as_dir=.
15700 for ac_exec_ext in '' $ac_executable_extensions; do
15701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15702 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15704 break 2
15705 fi
15706 done
15707 done
15708 IFS=$as_save_IFS
15709
15710 fi
15711 fi
15712 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15713 if test -n "$LIPO_FOR_TARGET"; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15715 $as_echo "$LIPO_FOR_TARGET" >&6; }
15716 else
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15719 fi
15720
15721
15722 done
15723 fi
15724
15725 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15726 for ncn_progname in lipo; do
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15728 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15729 if test -x $with_build_time_tools/${ncn_progname}; then
15730 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15732 $as_echo "yes" >&6; }
15733 break
15734 else
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737 fi
15738 done
15739 fi
15740
15741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15742 for ncn_progname in lipo; do
15743 if test -n "$ncn_target_tool_prefix"; then
15744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15747 $as_echo_n "checking for $ac_word... " >&6; }
15748 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 if test -n "$LIPO_FOR_TARGET"; then
15752 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15753 else
15754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755 for as_dir in $PATH
15756 do
15757 IFS=$as_save_IFS
15758 test -z "$as_dir" && as_dir=.
15759 for ac_exec_ext in '' $ac_executable_extensions; do
15760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15761 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15763 break 2
15764 fi
15765 done
15766 done
15767 IFS=$as_save_IFS
15768
15769 fi
15770 fi
15771 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15772 if test -n "$LIPO_FOR_TARGET"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15774 $as_echo "$LIPO_FOR_TARGET" >&6; }
15775 else
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15778 fi
15779
15780
15781 fi
15782 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15784 set dummy ${ncn_progname}; ac_word=$2
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15786 $as_echo_n "checking for $ac_word... " >&6; }
15787 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790 if test -n "$LIPO_FOR_TARGET"; then
15791 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15792 else
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15795 do
15796 IFS=$as_save_IFS
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15802 break 2
15803 fi
15804 done
15805 done
15806 IFS=$as_save_IFS
15807
15808 fi
15809 fi
15810 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15811 if test -n "$LIPO_FOR_TARGET"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15813 $as_echo "$LIPO_FOR_TARGET" >&6; }
15814 else
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15817 fi
15818
15819
15820 fi
15821 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15822 done
15823 fi
15824
15825 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15826 set dummy lipo
15827 if test $build = $target ; then
15828 LIPO_FOR_TARGET="$2"
15829 else
15830 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15831 fi
15832 else
15833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15834 fi
15835
15836 else
15837 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15838 fi
15839
15840
15841
15842
15843 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15844 if test -n "$with_build_time_tools"; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15846 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15847 if test -x $with_build_time_tools/nm; then
15848 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15849 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15851 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15852 else
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15855 fi
15856 elif test $build != $host && test $have_gcc_for_target = yes; then
15857 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15858 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15859 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15860 fi
15861 fi
15862 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15863 # Extract the first word of "nm", so it can be a program name with args.
15864 set dummy nm; ac_word=$2
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15866 $as_echo_n "checking for $ac_word... " >&6; }
15867 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15868 $as_echo_n "(cached) " >&6
15869 else
15870 case $NM_FOR_TARGET in
15871 [\\/]* | ?:[\\/]*)
15872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15873 ;;
15874 *)
15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876 for as_dir in $gcc_cv_tool_dirs
15877 do
15878 IFS=$as_save_IFS
15879 test -z "$as_dir" && as_dir=.
15880 for ac_exec_ext in '' $ac_executable_extensions; do
15881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15882 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15884 break 2
15885 fi
15886 done
15887 done
15888 IFS=$as_save_IFS
15889
15890 ;;
15891 esac
15892 fi
15893 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15894 if test -n "$NM_FOR_TARGET"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15896 $as_echo "$NM_FOR_TARGET" >&6; }
15897 else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899 $as_echo "no" >&6; }
15900 fi
15901
15902
15903 fi
15904 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15905
15906
15907 if test -n "$NM_FOR_TARGET"; then
15908 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15909 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15910 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15911 fi
15912
15913 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15914 for ncn_progname in nm; do
15915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15916 set dummy ${ncn_progname}; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15920 $as_echo_n "(cached) " >&6
15921 else
15922 if test -n "$NM_FOR_TARGET"; then
15923 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15924 else
15925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926 for as_dir in $PATH
15927 do
15928 IFS=$as_save_IFS
15929 test -z "$as_dir" && as_dir=.
15930 for ac_exec_ext in '' $ac_executable_extensions; do
15931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15934 break 2
15935 fi
15936 done
15937 done
15938 IFS=$as_save_IFS
15939
15940 fi
15941 fi
15942 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15943 if test -n "$NM_FOR_TARGET"; then
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15945 $as_echo "$NM_FOR_TARGET" >&6; }
15946 else
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15948 $as_echo "no" >&6; }
15949 fi
15950
15951
15952 done
15953 fi
15954
15955 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15956 for ncn_progname in nm; do
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15958 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15959 if test -x $with_build_time_tools/${ncn_progname}; then
15960 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15962 $as_echo "yes" >&6; }
15963 break
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967 fi
15968 done
15969 fi
15970
15971 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15972 for ncn_progname in nm; do
15973 if test -n "$ncn_target_tool_prefix"; then
15974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15977 $as_echo_n "checking for $ac_word... " >&6; }
15978 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 if test -n "$NM_FOR_TARGET"; then
15982 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15983 else
15984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15986 do
15987 IFS=$as_save_IFS
15988 test -z "$as_dir" && as_dir=.
15989 for ac_exec_ext in '' $ac_executable_extensions; do
15990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15991 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15993 break 2
15994 fi
15995 done
15996 done
15997 IFS=$as_save_IFS
15998
15999 fi
16000 fi
16001 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16002 if test -n "$NM_FOR_TARGET"; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16004 $as_echo "$NM_FOR_TARGET" >&6; }
16005 else
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007 $as_echo "no" >&6; }
16008 fi
16009
16010
16011 fi
16012 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16014 set dummy ${ncn_progname}; ac_word=$2
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16016 $as_echo_n "checking for $ac_word... " >&6; }
16017 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16020 if test -n "$NM_FOR_TARGET"; then
16021 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16022 else
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16025 do
16026 IFS=$as_save_IFS
16027 test -z "$as_dir" && as_dir=.
16028 for ac_exec_ext in '' $ac_executable_extensions; do
16029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16030 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16032 break 2
16033 fi
16034 done
16035 done
16036 IFS=$as_save_IFS
16037
16038 fi
16039 fi
16040 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16041 if test -n "$NM_FOR_TARGET"; then
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16043 $as_echo "$NM_FOR_TARGET" >&6; }
16044 else
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16046 $as_echo "no" >&6; }
16047 fi
16048
16049
16050 fi
16051 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16052 done
16053 fi
16054
16055 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16056 set dummy nm
16057 if test $build = $target ; then
16058 NM_FOR_TARGET="$2"
16059 else
16060 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16061 fi
16062 else
16063 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16064 fi
16065
16066 else
16067 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16068 fi
16069
16070
16071
16072
16073 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16074 if test -n "$with_build_time_tools"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16076 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16077 if test -x $with_build_time_tools/objcopy; then
16078 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16079 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16081 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16082 else
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084 $as_echo "no" >&6; }
16085 fi
16086 elif test $build != $host && test $have_gcc_for_target = yes; then
16087 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16088 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16089 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16090 fi
16091 fi
16092 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16093 # Extract the first word of "objcopy", so it can be a program name with args.
16094 set dummy objcopy; ac_word=$2
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16096 $as_echo_n "checking for $ac_word... " >&6; }
16097 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 case $OBJCOPY_FOR_TARGET in
16101 [\\/]* | ?:[\\/]*)
16102 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16103 ;;
16104 *)
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $gcc_cv_tool_dirs
16107 do
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 break 2
16115 fi
16116 done
16117 done
16118 IFS=$as_save_IFS
16119
16120 ;;
16121 esac
16122 fi
16123 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16124 if test -n "$OBJCOPY_FOR_TARGET"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16126 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16130 fi
16131
16132
16133 fi
16134 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16135
16136
16137 if test -n "$OBJCOPY_FOR_TARGET"; then
16138 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16139 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16140 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16141 fi
16142
16143 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16144 for ncn_progname in objcopy; do
16145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16146 set dummy ${ncn_progname}; ac_word=$2
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16148 $as_echo_n "checking for $ac_word... " >&6; }
16149 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 if test -n "$OBJCOPY_FOR_TARGET"; then
16153 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16154 else
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 for as_dir in $PATH
16157 do
16158 IFS=$as_save_IFS
16159 test -z "$as_dir" && as_dir=.
16160 for ac_exec_ext in '' $ac_executable_extensions; do
16161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16162 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16164 break 2
16165 fi
16166 done
16167 done
16168 IFS=$as_save_IFS
16169
16170 fi
16171 fi
16172 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16173 if test -n "$OBJCOPY_FOR_TARGET"; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16175 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16176 else
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179 fi
16180
16181
16182 done
16183 fi
16184
16185 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16186 for ncn_progname in objcopy; do
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16188 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16189 if test -x $with_build_time_tools/${ncn_progname}; then
16190 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16192 $as_echo "yes" >&6; }
16193 break
16194 else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16197 fi
16198 done
16199 fi
16200
16201 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16202 for ncn_progname in objcopy; do
16203 if test -n "$ncn_target_tool_prefix"; then
16204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16207 $as_echo_n "checking for $ac_word... " >&6; }
16208 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211 if test -n "$OBJCOPY_FOR_TARGET"; then
16212 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16213 else
16214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16215 for as_dir in $PATH
16216 do
16217 IFS=$as_save_IFS
16218 test -z "$as_dir" && as_dir=.
16219 for ac_exec_ext in '' $ac_executable_extensions; do
16220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16221 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16223 break 2
16224 fi
16225 done
16226 done
16227 IFS=$as_save_IFS
16228
16229 fi
16230 fi
16231 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16232 if test -n "$OBJCOPY_FOR_TARGET"; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16234 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16235 else
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16237 $as_echo "no" >&6; }
16238 fi
16239
16240
16241 fi
16242 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16244 set dummy ${ncn_progname}; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 if test -n "$OBJCOPY_FOR_TARGET"; then
16251 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16252 else
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256 IFS=$as_save_IFS
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16260 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16262 break 2
16263 fi
16264 done
16265 done
16266 IFS=$as_save_IFS
16267
16268 fi
16269 fi
16270 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16271 if test -n "$OBJCOPY_FOR_TARGET"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16273 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16277 fi
16278
16279
16280 fi
16281 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16282 done
16283 fi
16284
16285 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16286 set dummy objcopy
16287 if test $build = $target ; then
16288 OBJCOPY_FOR_TARGET="$2"
16289 else
16290 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16291 fi
16292 else
16293 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16294 fi
16295
16296 else
16297 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16298 fi
16299
16300
16301
16302
16303 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16304 if test -n "$with_build_time_tools"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16306 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16307 if test -x $with_build_time_tools/objdump; then
16308 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16309 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16311 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16312 else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314 $as_echo "no" >&6; }
16315 fi
16316 elif test $build != $host && test $have_gcc_for_target = yes; then
16317 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16318 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16319 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16320 fi
16321 fi
16322 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16323 # Extract the first word of "objdump", so it can be a program name with args.
16324 set dummy objdump; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16328 $as_echo_n "(cached) " >&6
16329 else
16330 case $OBJDUMP_FOR_TARGET in
16331 [\\/]* | ?:[\\/]*)
16332 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16333 ;;
16334 *)
16335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16336 for as_dir in $gcc_cv_tool_dirs
16337 do
16338 IFS=$as_save_IFS
16339 test -z "$as_dir" && as_dir=.
16340 for ac_exec_ext in '' $ac_executable_extensions; do
16341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16344 break 2
16345 fi
16346 done
16347 done
16348 IFS=$as_save_IFS
16349
16350 ;;
16351 esac
16352 fi
16353 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16354 if test -n "$OBJDUMP_FOR_TARGET"; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16356 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16357 else
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16360 fi
16361
16362
16363 fi
16364 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16365
16366
16367 if test -n "$OBJDUMP_FOR_TARGET"; then
16368 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16369 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16370 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16371 fi
16372
16373 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16374 for ncn_progname in objdump; do
16375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16376 set dummy ${ncn_progname}; ac_word=$2
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16378 $as_echo_n "checking for $ac_word... " >&6; }
16379 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 if test -n "$OBJDUMP_FOR_TARGET"; then
16383 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16384 else
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16387 do
16388 IFS=$as_save_IFS
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16394 break 2
16395 fi
16396 done
16397 done
16398 IFS=$as_save_IFS
16399
16400 fi
16401 fi
16402 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16403 if test -n "$OBJDUMP_FOR_TARGET"; then
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16405 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16406 else
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16408 $as_echo "no" >&6; }
16409 fi
16410
16411
16412 done
16413 fi
16414
16415 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16416 for ncn_progname in objdump; do
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16418 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16419 if test -x $with_build_time_tools/${ncn_progname}; then
16420 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16422 $as_echo "yes" >&6; }
16423 break
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 fi
16428 done
16429 fi
16430
16431 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16432 for ncn_progname in objdump; do
16433 if test -n "$ncn_target_tool_prefix"; then
16434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16437 $as_echo_n "checking for $ac_word... " >&6; }
16438 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 if test -n "$OBJDUMP_FOR_TARGET"; then
16442 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16443 else
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16446 do
16447 IFS=$as_save_IFS
16448 test -z "$as_dir" && as_dir=.
16449 for ac_exec_ext in '' $ac_executable_extensions; do
16450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16451 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16453 break 2
16454 fi
16455 done
16456 done
16457 IFS=$as_save_IFS
16458
16459 fi
16460 fi
16461 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16462 if test -n "$OBJDUMP_FOR_TARGET"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16464 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16468 fi
16469
16470
16471 fi
16472 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16474 set dummy ${ncn_progname}; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476 $as_echo_n "checking for $ac_word... " >&6; }
16477 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 if test -n "$OBJDUMP_FOR_TARGET"; then
16481 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16482 else
16483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16485 do
16486 IFS=$as_save_IFS
16487 test -z "$as_dir" && as_dir=.
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492 break 2
16493 fi
16494 done
16495 done
16496 IFS=$as_save_IFS
16497
16498 fi
16499 fi
16500 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16501 if test -n "$OBJDUMP_FOR_TARGET"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16503 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16504 else
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506 $as_echo "no" >&6; }
16507 fi
16508
16509
16510 fi
16511 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16512 done
16513 fi
16514
16515 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16516 set dummy objdump
16517 if test $build = $target ; then
16518 OBJDUMP_FOR_TARGET="$2"
16519 else
16520 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16521 fi
16522 else
16523 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16524 fi
16525
16526 else
16527 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16528 fi
16529
16530
16531
16532
16533 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16534 if test -n "$with_build_time_tools"; then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16536 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16537 if test -x $with_build_time_tools/otool; then
16538 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16539 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16541 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16542 else
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16545 fi
16546 elif test $build != $host && test $have_gcc_for_target = yes; then
16547 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16548 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16549 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16550 fi
16551 fi
16552 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16553 # Extract the first word of "otool", so it can be a program name with args.
16554 set dummy otool; ac_word=$2
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16556 $as_echo_n "checking for $ac_word... " >&6; }
16557 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16558 $as_echo_n "(cached) " >&6
16559 else
16560 case $OTOOL_FOR_TARGET in
16561 [\\/]* | ?:[\\/]*)
16562 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16563 ;;
16564 *)
16565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16566 for as_dir in $gcc_cv_tool_dirs
16567 do
16568 IFS=$as_save_IFS
16569 test -z "$as_dir" && as_dir=.
16570 for ac_exec_ext in '' $ac_executable_extensions; do
16571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16572 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16574 break 2
16575 fi
16576 done
16577 done
16578 IFS=$as_save_IFS
16579
16580 ;;
16581 esac
16582 fi
16583 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16584 if test -n "$OTOOL_FOR_TARGET"; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16586 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 $as_echo "no" >&6; }
16590 fi
16591
16592
16593 fi
16594 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16595
16596
16597 if test -n "$OTOOL_FOR_TARGET"; then
16598 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16599 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16600 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16601 fi
16602
16603 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16604 for ncn_progname in otool; do
16605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16606 set dummy ${ncn_progname}; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16612 if test -n "$OTOOL_FOR_TARGET"; then
16613 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16614 else
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16617 do
16618 IFS=$as_save_IFS
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624 break 2
16625 fi
16626 done
16627 done
16628 IFS=$as_save_IFS
16629
16630 fi
16631 fi
16632 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16633 if test -n "$OTOOL_FOR_TARGET"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16635 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16636 else
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 fi
16640
16641
16642 done
16643 fi
16644
16645 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16646 for ncn_progname in otool; do
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16649 if test -x $with_build_time_tools/${ncn_progname}; then
16650 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16652 $as_echo "yes" >&6; }
16653 break
16654 else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 $as_echo "no" >&6; }
16657 fi
16658 done
16659 fi
16660
16661 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16662 for ncn_progname in otool; do
16663 if test -n "$ncn_target_tool_prefix"; then
16664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16669 $as_echo_n "(cached) " >&6
16670 else
16671 if test -n "$OTOOL_FOR_TARGET"; then
16672 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16673 else
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16676 do
16677 IFS=$as_save_IFS
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16683 break 2
16684 fi
16685 done
16686 done
16687 IFS=$as_save_IFS
16688
16689 fi
16690 fi
16691 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16692 if test -n "$OTOOL_FOR_TARGET"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16694 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16695 else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698 fi
16699
16700
16701 fi
16702 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16704 set dummy ${ncn_progname}; ac_word=$2
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16706 $as_echo_n "checking for $ac_word... " >&6; }
16707 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16708 $as_echo_n "(cached) " >&6
16709 else
16710 if test -n "$OTOOL_FOR_TARGET"; then
16711 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16712 else
16713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16714 for as_dir in $PATH
16715 do
16716 IFS=$as_save_IFS
16717 test -z "$as_dir" && as_dir=.
16718 for ac_exec_ext in '' $ac_executable_extensions; do
16719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16720 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16722 break 2
16723 fi
16724 done
16725 done
16726 IFS=$as_save_IFS
16727
16728 fi
16729 fi
16730 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16731 if test -n "$OTOOL_FOR_TARGET"; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16733 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16734 else
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736 $as_echo "no" >&6; }
16737 fi
16738
16739
16740 fi
16741 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16742 done
16743 fi
16744
16745 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16746 set dummy otool
16747 if test $build = $target ; then
16748 OTOOL_FOR_TARGET="$2"
16749 else
16750 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16751 fi
16752 else
16753 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16754 fi
16755
16756 else
16757 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16758 fi
16759
16760
16761
16762
16763 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16764 if test -n "$with_build_time_tools"; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16766 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16767 if test -x $with_build_time_tools/ranlib; then
16768 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16769 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16771 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16772 else
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774 $as_echo "no" >&6; }
16775 fi
16776 elif test $build != $host && test $have_gcc_for_target = yes; then
16777 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16778 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16779 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16780 fi
16781 fi
16782 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16783 # Extract the first word of "ranlib", so it can be a program name with args.
16784 set dummy ranlib; ac_word=$2
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16786 $as_echo_n "checking for $ac_word... " >&6; }
16787 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16788 $as_echo_n "(cached) " >&6
16789 else
16790 case $RANLIB_FOR_TARGET in
16791 [\\/]* | ?:[\\/]*)
16792 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16793 ;;
16794 *)
16795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in $gcc_cv_tool_dirs
16797 do
16798 IFS=$as_save_IFS
16799 test -z "$as_dir" && as_dir=.
16800 for ac_exec_ext in '' $ac_executable_extensions; do
16801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16802 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16804 break 2
16805 fi
16806 done
16807 done
16808 IFS=$as_save_IFS
16809
16810 ;;
16811 esac
16812 fi
16813 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16814 if test -n "$RANLIB_FOR_TARGET"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16816 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16820 fi
16821
16822
16823 fi
16824 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16825
16826
16827 if test -n "$RANLIB_FOR_TARGET"; then
16828 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16829 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16830 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16831 fi
16832
16833 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16834 for ncn_progname in ranlib; do
16835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16836 set dummy ${ncn_progname}; ac_word=$2
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16838 $as_echo_n "checking for $ac_word... " >&6; }
16839 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16840 $as_echo_n "(cached) " >&6
16841 else
16842 if test -n "$RANLIB_FOR_TARGET"; then
16843 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16844 else
16845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16846 for as_dir in $PATH
16847 do
16848 IFS=$as_save_IFS
16849 test -z "$as_dir" && as_dir=.
16850 for ac_exec_ext in '' $ac_executable_extensions; do
16851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16852 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16854 break 2
16855 fi
16856 done
16857 done
16858 IFS=$as_save_IFS
16859
16860 fi
16861 fi
16862 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16863 if test -n "$RANLIB_FOR_TARGET"; then
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16865 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16866 else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16868 $as_echo "no" >&6; }
16869 fi
16870
16871
16872 done
16873 fi
16874
16875 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16876 for ncn_progname in ranlib; do
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16878 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16879 if test -x $with_build_time_tools/${ncn_progname}; then
16880 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16882 $as_echo "yes" >&6; }
16883 break
16884 else
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887 fi
16888 done
16889 fi
16890
16891 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16892 for ncn_progname in ranlib; do
16893 if test -n "$ncn_target_tool_prefix"; then
16894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16897 $as_echo_n "checking for $ac_word... " >&6; }
16898 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 if test -n "$RANLIB_FOR_TARGET"; then
16902 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16903 else
16904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905 for as_dir in $PATH
16906 do
16907 IFS=$as_save_IFS
16908 test -z "$as_dir" && as_dir=.
16909 for ac_exec_ext in '' $ac_executable_extensions; do
16910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16913 break 2
16914 fi
16915 done
16916 done
16917 IFS=$as_save_IFS
16918
16919 fi
16920 fi
16921 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16922 if test -n "$RANLIB_FOR_TARGET"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16924 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16925 else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16928 fi
16929
16930
16931 fi
16932 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16934 set dummy ${ncn_progname}; ac_word=$2
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16936 $as_echo_n "checking for $ac_word... " >&6; }
16937 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16938 $as_echo_n "(cached) " >&6
16939 else
16940 if test -n "$RANLIB_FOR_TARGET"; then
16941 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16942 else
16943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16944 for as_dir in $PATH
16945 do
16946 IFS=$as_save_IFS
16947 test -z "$as_dir" && as_dir=.
16948 for ac_exec_ext in '' $ac_executable_extensions; do
16949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16950 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16952 break 2
16953 fi
16954 done
16955 done
16956 IFS=$as_save_IFS
16957
16958 fi
16959 fi
16960 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16961 if test -n "$RANLIB_FOR_TARGET"; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16963 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16964 else
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966 $as_echo "no" >&6; }
16967 fi
16968
16969
16970 fi
16971 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16972 done
16973 fi
16974
16975 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16976 set dummy ranlib
16977 if test $build = $target ; then
16978 RANLIB_FOR_TARGET="$2"
16979 else
16980 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16981 fi
16982 else
16983 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16984 fi
16985
16986 else
16987 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16988 fi
16989
16990
16991
16992
16993 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16994 if test -n "$with_build_time_tools"; then
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16996 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16997 if test -x $with_build_time_tools/readelf; then
16998 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16999 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17001 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17002 else
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17005 fi
17006 elif test $build != $host && test $have_gcc_for_target = yes; then
17007 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17008 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17009 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17010 fi
17011 fi
17012 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17013 # Extract the first word of "readelf", so it can be a program name with args.
17014 set dummy readelf; ac_word=$2
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17016 $as_echo_n "checking for $ac_word... " >&6; }
17017 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17018 $as_echo_n "(cached) " >&6
17019 else
17020 case $READELF_FOR_TARGET in
17021 [\\/]* | ?:[\\/]*)
17022 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17023 ;;
17024 *)
17025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $gcc_cv_tool_dirs
17027 do
17028 IFS=$as_save_IFS
17029 test -z "$as_dir" && as_dir=.
17030 for ac_exec_ext in '' $ac_executable_extensions; do
17031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17032 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17034 break 2
17035 fi
17036 done
17037 done
17038 IFS=$as_save_IFS
17039
17040 ;;
17041 esac
17042 fi
17043 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17044 if test -n "$READELF_FOR_TARGET"; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17046 $as_echo "$READELF_FOR_TARGET" >&6; }
17047 else
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17050 fi
17051
17052
17053 fi
17054 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17055
17056
17057 if test -n "$READELF_FOR_TARGET"; then
17058 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17059 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17060 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17061 fi
17062
17063 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17064 for ncn_progname in readelf; do
17065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17066 set dummy ${ncn_progname}; ac_word=$2
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17068 $as_echo_n "checking for $ac_word... " >&6; }
17069 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 if test -n "$READELF_FOR_TARGET"; then
17073 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17074 else
17075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17076 for as_dir in $PATH
17077 do
17078 IFS=$as_save_IFS
17079 test -z "$as_dir" && as_dir=.
17080 for ac_exec_ext in '' $ac_executable_extensions; do
17081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17082 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17084 break 2
17085 fi
17086 done
17087 done
17088 IFS=$as_save_IFS
17089
17090 fi
17091 fi
17092 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17093 if test -n "$READELF_FOR_TARGET"; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17095 $as_echo "$READELF_FOR_TARGET" >&6; }
17096 else
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17098 $as_echo "no" >&6; }
17099 fi
17100
17101
17102 done
17103 fi
17104
17105 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17106 for ncn_progname in readelf; do
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17109 if test -x $with_build_time_tools/${ncn_progname}; then
17110 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113 break
17114 else
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 $as_echo "no" >&6; }
17117 fi
17118 done
17119 fi
17120
17121 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17122 for ncn_progname in readelf; do
17123 if test -n "$ncn_target_tool_prefix"; then
17124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17127 $as_echo_n "checking for $ac_word... " >&6; }
17128 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17129 $as_echo_n "(cached) " >&6
17130 else
17131 if test -n "$READELF_FOR_TARGET"; then
17132 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17133 else
17134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17135 for as_dir in $PATH
17136 do
17137 IFS=$as_save_IFS
17138 test -z "$as_dir" && as_dir=.
17139 for ac_exec_ext in '' $ac_executable_extensions; do
17140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17141 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17143 break 2
17144 fi
17145 done
17146 done
17147 IFS=$as_save_IFS
17148
17149 fi
17150 fi
17151 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17152 if test -n "$READELF_FOR_TARGET"; then
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17154 $as_echo "$READELF_FOR_TARGET" >&6; }
17155 else
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157 $as_echo "no" >&6; }
17158 fi
17159
17160
17161 fi
17162 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17164 set dummy ${ncn_progname}; ac_word=$2
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17166 $as_echo_n "checking for $ac_word... " >&6; }
17167 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17168 $as_echo_n "(cached) " >&6
17169 else
17170 if test -n "$READELF_FOR_TARGET"; then
17171 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17172 else
17173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17174 for as_dir in $PATH
17175 do
17176 IFS=$as_save_IFS
17177 test -z "$as_dir" && as_dir=.
17178 for ac_exec_ext in '' $ac_executable_extensions; do
17179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17180 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17182 break 2
17183 fi
17184 done
17185 done
17186 IFS=$as_save_IFS
17187
17188 fi
17189 fi
17190 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17191 if test -n "$READELF_FOR_TARGET"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17193 $as_echo "$READELF_FOR_TARGET" >&6; }
17194 else
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17197 fi
17198
17199
17200 fi
17201 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17202 done
17203 fi
17204
17205 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17206 set dummy readelf
17207 if test $build = $target ; then
17208 READELF_FOR_TARGET="$2"
17209 else
17210 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17211 fi
17212 else
17213 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17214 fi
17215
17216 else
17217 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17218 fi
17219
17220
17221
17222
17223 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17224 if test -n "$with_build_time_tools"; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17226 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17227 if test -x $with_build_time_tools/strip; then
17228 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17229 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17231 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17232 else
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17235 fi
17236 elif test $build != $host && test $have_gcc_for_target = yes; then
17237 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17238 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17239 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17240 fi
17241 fi
17242 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17243 # Extract the first word of "strip", so it can be a program name with args.
17244 set dummy strip; ac_word=$2
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17246 $as_echo_n "checking for $ac_word... " >&6; }
17247 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250 case $STRIP_FOR_TARGET in
17251 [\\/]* | ?:[\\/]*)
17252 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17253 ;;
17254 *)
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $gcc_cv_tool_dirs
17257 do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17265 fi
17266 done
17267 done
17268 IFS=$as_save_IFS
17269
17270 ;;
17271 esac
17272 fi
17273 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17274 if test -n "$STRIP_FOR_TARGET"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17276 $as_echo "$STRIP_FOR_TARGET" >&6; }
17277 else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280 fi
17281
17282
17283 fi
17284 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17285
17286
17287 if test -n "$STRIP_FOR_TARGET"; then
17288 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17289 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17290 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17291 fi
17292
17293 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17294 for ncn_progname in strip; do
17295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17296 set dummy ${ncn_progname}; ac_word=$2
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17298 $as_echo_n "checking for $ac_word... " >&6; }
17299 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17300 $as_echo_n "(cached) " >&6
17301 else
17302 if test -n "$STRIP_FOR_TARGET"; then
17303 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17304 else
17305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in $PATH
17307 do
17308 IFS=$as_save_IFS
17309 test -z "$as_dir" && as_dir=.
17310 for ac_exec_ext in '' $ac_executable_extensions; do
17311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17312 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17314 break 2
17315 fi
17316 done
17317 done
17318 IFS=$as_save_IFS
17319
17320 fi
17321 fi
17322 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17323 if test -n "$STRIP_FOR_TARGET"; then
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17325 $as_echo "$STRIP_FOR_TARGET" >&6; }
17326 else
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17328 $as_echo "no" >&6; }
17329 fi
17330
17331
17332 done
17333 fi
17334
17335 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17336 for ncn_progname in strip; do
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17339 if test -x $with_build_time_tools/${ncn_progname}; then
17340 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17342 $as_echo "yes" >&6; }
17343 break
17344 else
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346 $as_echo "no" >&6; }
17347 fi
17348 done
17349 fi
17350
17351 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17352 for ncn_progname in strip; do
17353 if test -n "$ncn_target_tool_prefix"; then
17354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17357 $as_echo_n "checking for $ac_word... " >&6; }
17358 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17359 $as_echo_n "(cached) " >&6
17360 else
17361 if test -n "$STRIP_FOR_TARGET"; then
17362 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17363 else
17364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17365 for as_dir in $PATH
17366 do
17367 IFS=$as_save_IFS
17368 test -z "$as_dir" && as_dir=.
17369 for ac_exec_ext in '' $ac_executable_extensions; do
17370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17371 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17373 break 2
17374 fi
17375 done
17376 done
17377 IFS=$as_save_IFS
17378
17379 fi
17380 fi
17381 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17382 if test -n "$STRIP_FOR_TARGET"; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17384 $as_echo "$STRIP_FOR_TARGET" >&6; }
17385 else
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 $as_echo "no" >&6; }
17388 fi
17389
17390
17391 fi
17392 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17394 set dummy ${ncn_progname}; ac_word=$2
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17396 $as_echo_n "checking for $ac_word... " >&6; }
17397 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17398 $as_echo_n "(cached) " >&6
17399 else
17400 if test -n "$STRIP_FOR_TARGET"; then
17401 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17402 else
17403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17405 do
17406 IFS=$as_save_IFS
17407 test -z "$as_dir" && as_dir=.
17408 for ac_exec_ext in '' $ac_executable_extensions; do
17409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17410 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17412 break 2
17413 fi
17414 done
17415 done
17416 IFS=$as_save_IFS
17417
17418 fi
17419 fi
17420 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17421 if test -n "$STRIP_FOR_TARGET"; then
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17423 $as_echo "$STRIP_FOR_TARGET" >&6; }
17424 else
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426 $as_echo "no" >&6; }
17427 fi
17428
17429
17430 fi
17431 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17432 done
17433 fi
17434
17435 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17436 set dummy strip
17437 if test $build = $target ; then
17438 STRIP_FOR_TARGET="$2"
17439 else
17440 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17441 fi
17442 else
17443 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17444 fi
17445
17446 else
17447 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17448 fi
17449
17450
17451
17452
17453 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17454 if test -n "$with_build_time_tools"; then
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17456 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17457 if test -x $with_build_time_tools/windres; then
17458 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17459 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17461 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17462 else
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17464 $as_echo "no" >&6; }
17465 fi
17466 elif test $build != $host && test $have_gcc_for_target = yes; then
17467 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17468 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17469 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17470 fi
17471 fi
17472 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17473 # Extract the first word of "windres", so it can be a program name with args.
17474 set dummy windres; ac_word=$2
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17476 $as_echo_n "checking for $ac_word... " >&6; }
17477 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479 else
17480 case $WINDRES_FOR_TARGET in
17481 [\\/]* | ?:[\\/]*)
17482 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17483 ;;
17484 *)
17485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17486 for as_dir in $gcc_cv_tool_dirs
17487 do
17488 IFS=$as_save_IFS
17489 test -z "$as_dir" && as_dir=.
17490 for ac_exec_ext in '' $ac_executable_extensions; do
17491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17492 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17494 break 2
17495 fi
17496 done
17497 done
17498 IFS=$as_save_IFS
17499
17500 ;;
17501 esac
17502 fi
17503 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17504 if test -n "$WINDRES_FOR_TARGET"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17506 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17507 else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509 $as_echo "no" >&6; }
17510 fi
17511
17512
17513 fi
17514 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17515
17516
17517 if test -n "$WINDRES_FOR_TARGET"; then
17518 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17519 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17520 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17521 fi
17522
17523 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17524 for ncn_progname in windres; do
17525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17526 set dummy ${ncn_progname}; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17528 $as_echo_n "checking for $ac_word... " >&6; }
17529 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 if test -n "$WINDRES_FOR_TARGET"; then
17533 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17534 else
17535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17537 do
17538 IFS=$as_save_IFS
17539 test -z "$as_dir" && as_dir=.
17540 for ac_exec_ext in '' $ac_executable_extensions; do
17541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17542 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17544 break 2
17545 fi
17546 done
17547 done
17548 IFS=$as_save_IFS
17549
17550 fi
17551 fi
17552 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17553 if test -n "$WINDRES_FOR_TARGET"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17555 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17556 else
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17559 fi
17560
17561
17562 done
17563 fi
17564
17565 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17566 for ncn_progname in windres; do
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17569 if test -x $with_build_time_tools/${ncn_progname}; then
17570 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572 $as_echo "yes" >&6; }
17573 break
17574 else
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17576 $as_echo "no" >&6; }
17577 fi
17578 done
17579 fi
17580
17581 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17582 for ncn_progname in windres; do
17583 if test -n "$ncn_target_tool_prefix"; then
17584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17587 $as_echo_n "checking for $ac_word... " >&6; }
17588 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17589 $as_echo_n "(cached) " >&6
17590 else
17591 if test -n "$WINDRES_FOR_TARGET"; then
17592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17593 else
17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595 for as_dir in $PATH
17596 do
17597 IFS=$as_save_IFS
17598 test -z "$as_dir" && as_dir=.
17599 for ac_exec_ext in '' $ac_executable_extensions; do
17600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17603 break 2
17604 fi
17605 done
17606 done
17607 IFS=$as_save_IFS
17608
17609 fi
17610 fi
17611 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17612 if test -n "$WINDRES_FOR_TARGET"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17614 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17615 else
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617 $as_echo "no" >&6; }
17618 fi
17619
17620
17621 fi
17622 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17624 set dummy ${ncn_progname}; ac_word=$2
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17626 $as_echo_n "checking for $ac_word... " >&6; }
17627 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17630 if test -n "$WINDRES_FOR_TARGET"; then
17631 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17632 else
17633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634 for as_dir in $PATH
17635 do
17636 IFS=$as_save_IFS
17637 test -z "$as_dir" && as_dir=.
17638 for ac_exec_ext in '' $ac_executable_extensions; do
17639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17640 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17642 break 2
17643 fi
17644 done
17645 done
17646 IFS=$as_save_IFS
17647
17648 fi
17649 fi
17650 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17651 if test -n "$WINDRES_FOR_TARGET"; then
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17653 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17654 else
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656 $as_echo "no" >&6; }
17657 fi
17658
17659
17660 fi
17661 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17662 done
17663 fi
17664
17665 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17666 set dummy windres
17667 if test $build = $target ; then
17668 WINDRES_FOR_TARGET="$2"
17669 else
17670 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17671 fi
17672 else
17673 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17674 fi
17675
17676 else
17677 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17678 fi
17679
17680
17681
17682
17683 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17684 if test -n "$with_build_time_tools"; then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17686 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17687 if test -x $with_build_time_tools/windmc; then
17688 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17689 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17691 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17692 else
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694 $as_echo "no" >&6; }
17695 fi
17696 elif test $build != $host && test $have_gcc_for_target = yes; then
17697 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17698 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17699 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17700 fi
17701 fi
17702 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17703 # Extract the first word of "windmc", so it can be a program name with args.
17704 set dummy windmc; ac_word=$2
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17706 $as_echo_n "checking for $ac_word... " >&6; }
17707 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17708 $as_echo_n "(cached) " >&6
17709 else
17710 case $WINDMC_FOR_TARGET in
17711 [\\/]* | ?:[\\/]*)
17712 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17713 ;;
17714 *)
17715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17716 for as_dir in $gcc_cv_tool_dirs
17717 do
17718 IFS=$as_save_IFS
17719 test -z "$as_dir" && as_dir=.
17720 for ac_exec_ext in '' $ac_executable_extensions; do
17721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17722 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17724 break 2
17725 fi
17726 done
17727 done
17728 IFS=$as_save_IFS
17729
17730 ;;
17731 esac
17732 fi
17733 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17734 if test -n "$WINDMC_FOR_TARGET"; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17736 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17737 else
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739 $as_echo "no" >&6; }
17740 fi
17741
17742
17743 fi
17744 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17745
17746
17747 if test -n "$WINDMC_FOR_TARGET"; then
17748 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17749 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17750 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17751 fi
17752
17753 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17754 for ncn_progname in windmc; do
17755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17756 set dummy ${ncn_progname}; ac_word=$2
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17758 $as_echo_n "checking for $ac_word... " >&6; }
17759 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 if test -n "$WINDMC_FOR_TARGET"; then
17763 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17764 else
17765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17766 for as_dir in $PATH
17767 do
17768 IFS=$as_save_IFS
17769 test -z "$as_dir" && as_dir=.
17770 for ac_exec_ext in '' $ac_executable_extensions; do
17771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17772 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17774 break 2
17775 fi
17776 done
17777 done
17778 IFS=$as_save_IFS
17779
17780 fi
17781 fi
17782 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17783 if test -n "$WINDMC_FOR_TARGET"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17785 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17786 else
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 fi
17790
17791
17792 done
17793 fi
17794
17795 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17796 for ncn_progname in windmc; do
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17799 if test -x $with_build_time_tools/${ncn_progname}; then
17800 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17802 $as_echo "yes" >&6; }
17803 break
17804 else
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806 $as_echo "no" >&6; }
17807 fi
17808 done
17809 fi
17810
17811 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17812 for ncn_progname in windmc; do
17813 if test -n "$ncn_target_tool_prefix"; then
17814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17817 $as_echo_n "checking for $ac_word... " >&6; }
17818 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17821 if test -n "$WINDMC_FOR_TARGET"; then
17822 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17823 else
17824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17825 for as_dir in $PATH
17826 do
17827 IFS=$as_save_IFS
17828 test -z "$as_dir" && as_dir=.
17829 for ac_exec_ext in '' $ac_executable_extensions; do
17830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17831 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17833 break 2
17834 fi
17835 done
17836 done
17837 IFS=$as_save_IFS
17838
17839 fi
17840 fi
17841 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17842 if test -n "$WINDMC_FOR_TARGET"; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17844 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17845 else
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17847 $as_echo "no" >&6; }
17848 fi
17849
17850
17851 fi
17852 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17854 set dummy ${ncn_progname}; ac_word=$2
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17856 $as_echo_n "checking for $ac_word... " >&6; }
17857 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 if test -n "$WINDMC_FOR_TARGET"; then
17861 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17862 else
17863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17864 for as_dir in $PATH
17865 do
17866 IFS=$as_save_IFS
17867 test -z "$as_dir" && as_dir=.
17868 for ac_exec_ext in '' $ac_executable_extensions; do
17869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17870 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17872 break 2
17873 fi
17874 done
17875 done
17876 IFS=$as_save_IFS
17877
17878 fi
17879 fi
17880 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17881 if test -n "$WINDMC_FOR_TARGET"; then
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17883 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17884 else
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17886 $as_echo "no" >&6; }
17887 fi
17888
17889
17890 fi
17891 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17892 done
17893 fi
17894
17895 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17896 set dummy windmc
17897 if test $build = $target ; then
17898 WINDMC_FOR_TARGET="$2"
17899 else
17900 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17901 fi
17902 else
17903 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17904 fi
17905
17906 else
17907 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17908 fi
17909
17910
17911 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17914 $as_echo_n "checking where to find the target ar... " >&6; }
17915 if test "x${build}" != "x${host}" ; then
17916 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $AR_FOR_TARGET`
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17920 $as_echo "pre-installed in $ac_dir" >&6; }
17921 else
17922 # Canadian cross, just use what we found
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17924 $as_echo "pre-installed" >&6; }
17925 fi
17926 else
17927 ok=yes
17928 case " ${configdirs} " in
17929 *" binutils "*) ;;
17930 *) ok=no ;;
17931 esac
17932
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937 $as_echo "just compiled" >&6; }
17938 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $AR_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942 $as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 AR_FOR_TARGET='$(AR)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947 $as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951 $as_echo "pre-installed" >&6; }
17952 fi
17953 fi
17954
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17956 $as_echo_n "checking where to find the target as... " >&6; }
17957 if test "x${build}" != "x${host}" ; then
17958 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $AS_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962 $as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17967 fi
17968 else
17969 ok=yes
17970 case " ${configdirs} " in
17971 *" gas "*) ;;
17972 *) ok=no ;;
17973 esac
17974
17975 if test $ok = yes; then
17976 # An in-tree tool is available and we can use it
17977 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17979 $as_echo "just compiled" >&6; }
17980 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17981 # We already found the complete path
17982 ac_dir=`dirname $AS_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 elif test "x$target" = "x$host"; then
17986 # We can use an host tool
17987 AS_FOR_TARGET='$(AS)'
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17989 $as_echo "host tool" >&6; }
17990 else
17991 # We need a cross tool
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17993 $as_echo "pre-installed" >&6; }
17994 fi
17995 fi
17996
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17998 $as_echo_n "checking where to find the target cc... " >&6; }
17999 if test "x${build}" != "x${host}" ; then
18000 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18001 # We already found the complete path
18002 ac_dir=`dirname $CC_FOR_TARGET`
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18004 $as_echo "pre-installed in $ac_dir" >&6; }
18005 else
18006 # Canadian cross, just use what we found
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18008 $as_echo "pre-installed" >&6; }
18009 fi
18010 else
18011 ok=yes
18012 case " ${configdirs} " in
18013 *" gcc "*) ;;
18014 *) ok=no ;;
18015 esac
18016
18017 if test $ok = yes; then
18018 # An in-tree tool is available and we can use it
18019 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18021 $as_echo "just compiled" >&6; }
18022 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $CC_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 elif test "x$target" = "x$host"; then
18028 # We can use an host tool
18029 CC_FOR_TARGET='$(CC)'
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18031 $as_echo "host tool" >&6; }
18032 else
18033 # We need a cross tool
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18035 $as_echo "pre-installed" >&6; }
18036 fi
18037 fi
18038
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18040 $as_echo_n "checking where to find the target c++... " >&6; }
18041 if test "x${build}" != "x${host}" ; then
18042 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18043 # We already found the complete path
18044 ac_dir=`dirname $CXX_FOR_TARGET`
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18046 $as_echo "pre-installed in $ac_dir" >&6; }
18047 else
18048 # Canadian cross, just use what we found
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18050 $as_echo "pre-installed" >&6; }
18051 fi
18052 else
18053 ok=yes
18054 case " ${configdirs} " in
18055 *" gcc "*) ;;
18056 *) ok=no ;;
18057 esac
18058 case ,${enable_languages}, in
18059 *,c++,*) ;;
18060 *) ok=no ;;
18061 esac
18062 if test $ok = yes; then
18063 # An in-tree tool is available and we can use it
18064 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'
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18066 $as_echo "just compiled" >&6; }
18067 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $CXX_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18071 $as_echo "pre-installed in $ac_dir" >&6; }
18072 elif test "x$target" = "x$host"; then
18073 # We can use an host tool
18074 CXX_FOR_TARGET='$(CXX)'
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18076 $as_echo "host tool" >&6; }
18077 else
18078 # We need a cross tool
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18080 $as_echo "pre-installed" >&6; }
18081 fi
18082 fi
18083
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18085 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
18086 if test "x${build}" != "x${host}" ; then
18087 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18088 # We already found the complete path
18089 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18091 $as_echo "pre-installed in $ac_dir" >&6; }
18092 else
18093 # Canadian cross, just use what we found
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18095 $as_echo "pre-installed" >&6; }
18096 fi
18097 else
18098 ok=yes
18099 case " ${configdirs} " in
18100 *" gcc "*) ;;
18101 *) ok=no ;;
18102 esac
18103 case ,${enable_languages}, in
18104 *,c++,*) ;;
18105 *) ok=no ;;
18106 esac
18107 if test $ok = yes; then
18108 # An in-tree tool is available and we can use it
18109 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'
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18111 $as_echo "just compiled" >&6; }
18112 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18116 $as_echo "pre-installed in $ac_dir" >&6; }
18117 elif test "x$target" = "x$host"; then
18118 # We can use an host tool
18119 RAW_CXX_FOR_TARGET='$(CXX)'
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18121 $as_echo "host tool" >&6; }
18122 else
18123 # We need a cross tool
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18125 $as_echo "pre-installed" >&6; }
18126 fi
18127 fi
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18130 $as_echo_n "checking where to find the target dlltool... " >&6; }
18131 if test "x${build}" != "x${host}" ; then
18132 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18133 # We already found the complete path
18134 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18136 $as_echo "pre-installed in $ac_dir" >&6; }
18137 else
18138 # Canadian cross, just use what we found
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18140 $as_echo "pre-installed" >&6; }
18141 fi
18142 else
18143 ok=yes
18144 case " ${configdirs} " in
18145 *" binutils "*) ;;
18146 *) ok=no ;;
18147 esac
18148
18149 if test $ok = yes; then
18150 # An in-tree tool is available and we can use it
18151 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18153 $as_echo "just compiled" >&6; }
18154 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18158 $as_echo "pre-installed in $ac_dir" >&6; }
18159 elif test "x$target" = "x$host"; then
18160 # We can use an host tool
18161 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18163 $as_echo "host tool" >&6; }
18164 else
18165 # We need a cross tool
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18167 $as_echo "pre-installed" >&6; }
18168 fi
18169 fi
18170
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18172 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18173 if test "x${build}" != "x${host}" ; then
18174 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18175 # We already found the complete path
18176 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18178 $as_echo "pre-installed in $ac_dir" >&6; }
18179 else
18180 # Canadian cross, just use what we found
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18182 $as_echo "pre-installed" >&6; }
18183 fi
18184 else
18185 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18189 $as_echo "pre-installed in $ac_dir" >&6; }
18190 elif test "x$target" = "x$host"; then
18191 # We can use an host tool
18192 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18194 $as_echo "host tool" >&6; }
18195 else
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18198 $as_echo "pre-installed" >&6; }
18199 fi
18200 fi
18201
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18203 $as_echo_n "checking where to find the target gcc... " >&6; }
18204 if test "x${build}" != "x${host}" ; then
18205 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18206 # We already found the complete path
18207 ac_dir=`dirname $GCC_FOR_TARGET`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18209 $as_echo "pre-installed in $ac_dir" >&6; }
18210 else
18211 # Canadian cross, just use what we found
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213 $as_echo "pre-installed" >&6; }
18214 fi
18215 else
18216 ok=yes
18217 case " ${configdirs} " in
18218 *" gcc "*) ;;
18219 *) ok=no ;;
18220 esac
18221
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18226 $as_echo "just compiled" >&6; }
18227 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $GCC_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18231 $as_echo "pre-installed in $ac_dir" >&6; }
18232 elif test "x$target" = "x$host"; then
18233 # We can use an host tool
18234 GCC_FOR_TARGET='$()'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18236 $as_echo "host tool" >&6; }
18237 else
18238 # We need a cross tool
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18240 $as_echo "pre-installed" >&6; }
18241 fi
18242 fi
18243
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18245 $as_echo_n "checking where to find the target gfortran... " >&6; }
18246 if test "x${build}" != "x${host}" ; then
18247 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18251 $as_echo "pre-installed in $ac_dir" >&6; }
18252 else
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255 $as_echo "pre-installed" >&6; }
18256 fi
18257 else
18258 ok=yes
18259 case " ${configdirs} " in
18260 *" gcc "*) ;;
18261 *) ok=no ;;
18262 esac
18263 case ,${enable_languages}, in
18264 *,fortran,*) ;;
18265 *) ok=no ;;
18266 esac
18267 if test $ok = yes; then
18268 # An in-tree tool is available and we can use it
18269 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18271 $as_echo "just compiled" >&6; }
18272 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18273 # We already found the complete path
18274 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18276 $as_echo "pre-installed in $ac_dir" >&6; }
18277 elif test "x$target" = "x$host"; then
18278 # We can use an host tool
18279 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18281 $as_echo "host tool" >&6; }
18282 else
18283 # We need a cross tool
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18285 $as_echo "pre-installed" >&6; }
18286 fi
18287 fi
18288
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18290 $as_echo_n "checking where to find the target gccgo... " >&6; }
18291 if test "x${build}" != "x${host}" ; then
18292 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18293 # We already found the complete path
18294 ac_dir=`dirname $GOC_FOR_TARGET`
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18296 $as_echo "pre-installed in $ac_dir" >&6; }
18297 else
18298 # Canadian cross, just use what we found
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18300 $as_echo "pre-installed" >&6; }
18301 fi
18302 else
18303 ok=yes
18304 case " ${configdirs} " in
18305 *" gcc "*) ;;
18306 *) ok=no ;;
18307 esac
18308 case ,${enable_languages}, in
18309 *,go,*) ;;
18310 *) ok=no ;;
18311 esac
18312 if test $ok = yes; then
18313 # An in-tree tool is available and we can use it
18314 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18316 $as_echo "just compiled" >&6; }
18317 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18318 # We already found the complete path
18319 ac_dir=`dirname $GOC_FOR_TARGET`
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18321 $as_echo "pre-installed in $ac_dir" >&6; }
18322 elif test "x$target" = "x$host"; then
18323 # We can use an host tool
18324 GOC_FOR_TARGET='$(GOC)'
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18326 $as_echo "host tool" >&6; }
18327 else
18328 # We need a cross tool
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18330 $as_echo "pre-installed" >&6; }
18331 fi
18332 fi
18333
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18335 $as_echo_n "checking where to find the target gdc... " >&6; }
18336 if test "x${build}" != "x${host}" ; then
18337 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18338 # We already found the complete path
18339 ac_dir=`dirname $GDC_FOR_TARGET`
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18341 $as_echo "pre-installed in $ac_dir" >&6; }
18342 else
18343 # Canadian cross, just use what we found
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18345 $as_echo "pre-installed" >&6; }
18346 fi
18347 else
18348 ok=yes
18349 case " ${configdirs} " in
18350 *" gcc "*) ;;
18351 *) ok=no ;;
18352 esac
18353 case ,${enable_languages}, in
18354 *,d,*) ;;
18355 *) ok=no ;;
18356 esac
18357 if test $ok = yes; then
18358 # An in-tree tool is available and we can use it
18359 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18361 $as_echo "just compiled" >&6; }
18362 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18363 # We already found the complete path
18364 ac_dir=`dirname $GDC_FOR_TARGET`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18366 $as_echo "pre-installed in $ac_dir" >&6; }
18367 elif test "x$target" = "x$host"; then
18368 # We can use an host tool
18369 GDC_FOR_TARGET='$(GDC)'
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18371 $as_echo "host tool" >&6; }
18372 else
18373 # We need a cross tool
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18375 $as_echo "pre-installed" >&6; }
18376 fi
18377 fi
18378
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18380 $as_echo_n "checking where to find the target gm2... " >&6; }
18381 if test "x${build}" != "x${host}" ; then
18382 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18383 # We already found the complete path
18384 ac_dir=`dirname $GM2_FOR_TARGET`
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18386 $as_echo "pre-installed in $ac_dir" >&6; }
18387 else
18388 # Canadian cross, just use what we found
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18390 $as_echo "pre-installed" >&6; }
18391 fi
18392 else
18393 ok=yes
18394 case " ${configdirs} " in
18395 *" gcc "*) ;;
18396 *) ok=no ;;
18397 esac
18398 case ,${enable_languages}, in
18399 *,m2,*) ;;
18400 *) ok=no ;;
18401 esac
18402 if test $ok = yes; then
18403 # An in-tree tool is available and we can use it
18404 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18406 $as_echo "just compiled" >&6; }
18407 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18408 # We already found the complete path
18409 ac_dir=`dirname $GM2_FOR_TARGET`
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18411 $as_echo "pre-installed in $ac_dir" >&6; }
18412 elif test "x$target" = "x$host"; then
18413 # We can use an host tool
18414 GM2_FOR_TARGET='$(GM2)'
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18416 $as_echo "host tool" >&6; }
18417 else
18418 # We need a cross tool
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18420 $as_echo "pre-installed" >&6; }
18421 fi
18422 fi
18423
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18425 $as_echo_n "checking where to find the target ld... " >&6; }
18426 if test "x${build}" != "x${host}" ; then
18427 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18428 # We already found the complete path
18429 ac_dir=`dirname $LD_FOR_TARGET`
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18431 $as_echo "pre-installed in $ac_dir" >&6; }
18432 else
18433 # Canadian cross, just use what we found
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18435 $as_echo "pre-installed" >&6; }
18436 fi
18437 else
18438 ok=yes
18439 case " ${configdirs} " in
18440 *" ld "*) ;;
18441 *) ok=no ;;
18442 esac
18443
18444 if test $ok = yes; then
18445 # An in-tree tool is available and we can use it
18446 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18448 $as_echo "just compiled" >&6; }
18449 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18450 # We already found the complete path
18451 ac_dir=`dirname $LD_FOR_TARGET`
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18453 $as_echo "pre-installed in $ac_dir" >&6; }
18454 elif test "x$target" = "x$host"; then
18455 # We can use an host tool
18456 LD_FOR_TARGET='$(LD)'
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18458 $as_echo "host tool" >&6; }
18459 else
18460 # We need a cross tool
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18462 $as_echo "pre-installed" >&6; }
18463 fi
18464 fi
18465
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18467 $as_echo_n "checking where to find the target lipo... " >&6; }
18468 if test "x${build}" != "x${host}" ; then
18469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18470 # We already found the complete path
18471 ac_dir=`dirname $LIPO_FOR_TARGET`
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18473 $as_echo "pre-installed in $ac_dir" >&6; }
18474 else
18475 # Canadian cross, just use what we found
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18477 $as_echo "pre-installed" >&6; }
18478 fi
18479 else
18480 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18481 # We already found the complete path
18482 ac_dir=`dirname $LIPO_FOR_TARGET`
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18484 $as_echo "pre-installed in $ac_dir" >&6; }
18485 elif test "x$target" = "x$host"; then
18486 # We can use an host tool
18487 LIPO_FOR_TARGET='$(LIPO)'
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18489 $as_echo "host tool" >&6; }
18490 else
18491 # We need a cross tool
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18493 $as_echo "pre-installed" >&6; }
18494 fi
18495 fi
18496
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18498 $as_echo_n "checking where to find the target nm... " >&6; }
18499 if test "x${build}" != "x${host}" ; then
18500 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18501 # We already found the complete path
18502 ac_dir=`dirname $NM_FOR_TARGET`
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18504 $as_echo "pre-installed in $ac_dir" >&6; }
18505 else
18506 # Canadian cross, just use what we found
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18508 $as_echo "pre-installed" >&6; }
18509 fi
18510 else
18511 ok=yes
18512 case " ${configdirs} " in
18513 *" binutils "*) ;;
18514 *) ok=no ;;
18515 esac
18516
18517 if test $ok = yes; then
18518 # An in-tree tool is available and we can use it
18519 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18521 $as_echo "just compiled" >&6; }
18522 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18523 # We already found the complete path
18524 ac_dir=`dirname $NM_FOR_TARGET`
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18526 $as_echo "pre-installed in $ac_dir" >&6; }
18527 elif test "x$target" = "x$host"; then
18528 # We can use an host tool
18529 NM_FOR_TARGET='$(NM)'
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18531 $as_echo "host tool" >&6; }
18532 else
18533 # We need a cross tool
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18535 $as_echo "pre-installed" >&6; }
18536 fi
18537 fi
18538
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18540 $as_echo_n "checking where to find the target objcopy... " >&6; }
18541 if test "x${build}" != "x${host}" ; then
18542 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18543 # We already found the complete path
18544 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18546 $as_echo "pre-installed in $ac_dir" >&6; }
18547 else
18548 # Canadian cross, just use what we found
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18550 $as_echo "pre-installed" >&6; }
18551 fi
18552 else
18553 ok=yes
18554 case " ${configdirs} " in
18555 *" binutils "*) ;;
18556 *) ok=no ;;
18557 esac
18558
18559 if test $ok = yes; then
18560 # An in-tree tool is available and we can use it
18561 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18563 $as_echo "just compiled" >&6; }
18564 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18565 # We already found the complete path
18566 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18568 $as_echo "pre-installed in $ac_dir" >&6; }
18569 elif test "x$target" = "x$host"; then
18570 # We can use an host tool
18571 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18573 $as_echo "host tool" >&6; }
18574 else
18575 # We need a cross tool
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18577 $as_echo "pre-installed" >&6; }
18578 fi
18579 fi
18580
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18582 $as_echo_n "checking where to find the target objdump... " >&6; }
18583 if test "x${build}" != "x${host}" ; then
18584 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18585 # We already found the complete path
18586 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18588 $as_echo "pre-installed in $ac_dir" >&6; }
18589 else
18590 # Canadian cross, just use what we found
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18592 $as_echo "pre-installed" >&6; }
18593 fi
18594 else
18595 ok=yes
18596 case " ${configdirs} " in
18597 *" binutils "*) ;;
18598 *) ok=no ;;
18599 esac
18600
18601 if test $ok = yes; then
18602 # An in-tree tool is available and we can use it
18603 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18605 $as_echo "just compiled" >&6; }
18606 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18607 # We already found the complete path
18608 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18610 $as_echo "pre-installed in $ac_dir" >&6; }
18611 elif test "x$target" = "x$host"; then
18612 # We can use an host tool
18613 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18615 $as_echo "host tool" >&6; }
18616 else
18617 # We need a cross tool
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18619 $as_echo "pre-installed" >&6; }
18620 fi
18621 fi
18622
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18624 $as_echo_n "checking where to find the target otool... " >&6; }
18625 if test "x${build}" != "x${host}" ; then
18626 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18627 # We already found the complete path
18628 ac_dir=`dirname $OTOOL_FOR_TARGET`
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18630 $as_echo "pre-installed in $ac_dir" >&6; }
18631 else
18632 # Canadian cross, just use what we found
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18634 $as_echo "pre-installed" >&6; }
18635 fi
18636 else
18637 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18638 # We already found the complete path
18639 ac_dir=`dirname $OTOOL_FOR_TARGET`
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18641 $as_echo "pre-installed in $ac_dir" >&6; }
18642 elif test "x$target" = "x$host"; then
18643 # We can use an host tool
18644 OTOOL_FOR_TARGET='$(OTOOL)'
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18646 $as_echo "host tool" >&6; }
18647 else
18648 # We need a cross tool
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18650 $as_echo "pre-installed" >&6; }
18651 fi
18652 fi
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18655 $as_echo_n "checking where to find the target ranlib... " >&6; }
18656 if test "x${build}" != "x${host}" ; then
18657 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18658 # We already found the complete path
18659 ac_dir=`dirname $RANLIB_FOR_TARGET`
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18661 $as_echo "pre-installed in $ac_dir" >&6; }
18662 else
18663 # Canadian cross, just use what we found
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18665 $as_echo "pre-installed" >&6; }
18666 fi
18667 else
18668 ok=yes
18669 case " ${configdirs} " in
18670 *" binutils "*) ;;
18671 *) ok=no ;;
18672 esac
18673
18674 if test $ok = yes; then
18675 # An in-tree tool is available and we can use it
18676 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18678 $as_echo "just compiled" >&6; }
18679 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18680 # We already found the complete path
18681 ac_dir=`dirname $RANLIB_FOR_TARGET`
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18683 $as_echo "pre-installed in $ac_dir" >&6; }
18684 elif test "x$target" = "x$host"; then
18685 # We can use an host tool
18686 RANLIB_FOR_TARGET='$(RANLIB)'
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18688 $as_echo "host tool" >&6; }
18689 else
18690 # We need a cross tool
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18692 $as_echo "pre-installed" >&6; }
18693 fi
18694 fi
18695
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18697 $as_echo_n "checking where to find the target readelf... " >&6; }
18698 if test "x${build}" != "x${host}" ; then
18699 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18700 # We already found the complete path
18701 ac_dir=`dirname $READELF_FOR_TARGET`
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18703 $as_echo "pre-installed in $ac_dir" >&6; }
18704 else
18705 # Canadian cross, just use what we found
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18707 $as_echo "pre-installed" >&6; }
18708 fi
18709 else
18710 ok=yes
18711 case " ${configdirs} " in
18712 *" binutils "*) ;;
18713 *) ok=no ;;
18714 esac
18715
18716 if test $ok = yes; then
18717 # An in-tree tool is available and we can use it
18718 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18720 $as_echo "just compiled" >&6; }
18721 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18722 # We already found the complete path
18723 ac_dir=`dirname $READELF_FOR_TARGET`
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18725 $as_echo "pre-installed in $ac_dir" >&6; }
18726 elif test "x$target" = "x$host"; then
18727 # We can use an host tool
18728 READELF_FOR_TARGET='$(READELF)'
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18730 $as_echo "host tool" >&6; }
18731 else
18732 # We need a cross tool
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18734 $as_echo "pre-installed" >&6; }
18735 fi
18736 fi
18737
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18739 $as_echo_n "checking where to find the target strip... " >&6; }
18740 if test "x${build}" != "x${host}" ; then
18741 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18742 # We already found the complete path
18743 ac_dir=`dirname $STRIP_FOR_TARGET`
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18745 $as_echo "pre-installed in $ac_dir" >&6; }
18746 else
18747 # Canadian cross, just use what we found
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18749 $as_echo "pre-installed" >&6; }
18750 fi
18751 else
18752 ok=yes
18753 case " ${configdirs} " in
18754 *" binutils "*) ;;
18755 *) ok=no ;;
18756 esac
18757
18758 if test $ok = yes; then
18759 # An in-tree tool is available and we can use it
18760 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18762 $as_echo "just compiled" >&6; }
18763 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18764 # We already found the complete path
18765 ac_dir=`dirname $STRIP_FOR_TARGET`
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18767 $as_echo "pre-installed in $ac_dir" >&6; }
18768 elif test "x$target" = "x$host"; then
18769 # We can use an host tool
18770 STRIP_FOR_TARGET='$(STRIP)'
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18772 $as_echo "host tool" >&6; }
18773 else
18774 # We need a cross tool
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18776 $as_echo "pre-installed" >&6; }
18777 fi
18778 fi
18779
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18781 $as_echo_n "checking where to find the target windres... " >&6; }
18782 if test "x${build}" != "x${host}" ; then
18783 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18784 # We already found the complete path
18785 ac_dir=`dirname $WINDRES_FOR_TARGET`
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18787 $as_echo "pre-installed in $ac_dir" >&6; }
18788 else
18789 # Canadian cross, just use what we found
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18791 $as_echo "pre-installed" >&6; }
18792 fi
18793 else
18794 ok=yes
18795 case " ${configdirs} " in
18796 *" binutils "*) ;;
18797 *) ok=no ;;
18798 esac
18799
18800 if test $ok = yes; then
18801 # An in-tree tool is available and we can use it
18802 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18804 $as_echo "just compiled" >&6; }
18805 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18806 # We already found the complete path
18807 ac_dir=`dirname $WINDRES_FOR_TARGET`
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18809 $as_echo "pre-installed in $ac_dir" >&6; }
18810 elif test "x$target" = "x$host"; then
18811 # We can use an host tool
18812 WINDRES_FOR_TARGET='$(WINDRES)'
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18814 $as_echo "host tool" >&6; }
18815 else
18816 # We need a cross tool
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18818 $as_echo "pre-installed" >&6; }
18819 fi
18820 fi
18821
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18823 $as_echo_n "checking where to find the target windmc... " >&6; }
18824 if test "x${build}" != "x${host}" ; then
18825 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18826 # We already found the complete path
18827 ac_dir=`dirname $WINDMC_FOR_TARGET`
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18829 $as_echo "pre-installed in $ac_dir" >&6; }
18830 else
18831 # Canadian cross, just use what we found
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18833 $as_echo "pre-installed" >&6; }
18834 fi
18835 else
18836 ok=yes
18837 case " ${configdirs} " in
18838 *" binutils "*) ;;
18839 *) ok=no ;;
18840 esac
18841
18842 if test $ok = yes; then
18843 # An in-tree tool is available and we can use it
18844 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18846 $as_echo "just compiled" >&6; }
18847 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18848 # We already found the complete path
18849 ac_dir=`dirname $WINDMC_FOR_TARGET`
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18851 $as_echo "pre-installed in $ac_dir" >&6; }
18852 elif test "x$target" = "x$host"; then
18853 # We can use an host tool
18854 WINDMC_FOR_TARGET='$(WINDMC)'
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18856 $as_echo "host tool" >&6; }
18857 else
18858 # We need a cross tool
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18860 $as_echo "pre-installed" >&6; }
18861 fi
18862 fi
18863
18864
18865
18866
18867
18868 # Certain tools may need extra flags.
18869 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18870 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18871 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18872
18873 # When building target libraries, except in a Canadian cross, we use
18874 # the same toolchain as the compiler we just built.
18875 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18876 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18877 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18878 if test $host = $build; then
18879 case " $configdirs " in
18880 *" gcc "*)
18881 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18882 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18883 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18884 ;;
18885 esac
18886 fi
18887
18888
18889
18890
18891
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18893 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18894 # Check whether --enable-maintainer-mode was given.
18895 if test "${enable_maintainer_mode+set}" = set; then :
18896 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18897 else
18898 USE_MAINTAINER_MODE=no
18899 fi
18900
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18902 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18903
18904
18905 if test "$USE_MAINTAINER_MODE" = yes; then
18906 MAINTAINER_MODE_TRUE=
18907 MAINTAINER_MODE_FALSE='#'
18908 else
18909 MAINTAINER_MODE_TRUE='#'
18910 MAINTAINER_MODE_FALSE=
18911 fi
18912 MAINT=$MAINTAINER_MODE_TRUE
18913
18914 # ---------------------
18915 # GCC bootstrap support
18916 # ---------------------
18917
18918 # Stage specific cflags for build.
18919 stage1_cflags="-g"
18920 case $build in
18921 vax-*-*)
18922 case ${GCC} in
18923 yes) stage1_cflags="-g -Wa,-J" ;;
18924 *) stage1_cflags="-g -J" ;;
18925 esac ;;
18926 esac
18927
18928
18929
18930 # Enable --enable-checking in stage1 of the compiler.
18931 # Check whether --enable-stage1-checking was given.
18932 if test "${enable_stage1_checking+set}" = set; then :
18933 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18934 else
18935 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18936 # For --disable-checking or implicit --enable-checking=release, avoid
18937 # setting --enable-checking=gc in the default stage1 checking for LTO
18938 # bootstraps. See PR62077.
18939 case $BUILD_CONFIG in
18940 *lto*)
18941 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18942 *)
18943 stage1_checking=--enable-checking=yes,types;;
18944 esac
18945 if test "x$enable_checking" = x && \
18946 test -d ${srcdir}/gcc && \
18947 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18948 stage1_checking=--enable-checking=yes,types,extra
18949 fi
18950 else
18951 stage1_checking=--enable-checking=$enable_checking,types
18952 fi
18953 fi
18954
18955
18956
18957 # Enable -Werror in bootstrap stage2 and later.
18958 # Check whether --enable-werror was given.
18959 if test "${enable_werror+set}" = set; then :
18960 enableval=$enable_werror;
18961 case ${enable_werror} in
18962 yes) stage2_werror_flag="--enable-werror-always" ;;
18963 *) stage2_werror_flag="" ;;
18964 esac
18965
18966 else
18967
18968 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18969 case $BUILD_CONFIG in
18970 bootstrap-debug)
18971 stage2_werror_flag="--enable-werror-always" ;;
18972 "")
18973 stage2_werror_flag="--enable-werror-always" ;;
18974 esac
18975 fi
18976
18977 fi
18978
18979
18980
18981
18982 # Specify what files to not compare during bootstrap.
18983
18984 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18985 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18986 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18987 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18988 case "$target" in
18989 hppa*64*-*-hpux*) ;;
18990 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18991 esac
18992
18993
18994 ac_config_files="$ac_config_files Makefile"
18995
18996 cat >confcache <<\_ACEOF
18997 # This file is a shell script that caches the results of configure
18998 # tests run on this system so they can be shared between configure
18999 # scripts and configure runs, see configure's option --config-cache.
19000 # It is not useful on other systems. If it contains results you don't
19001 # want to keep, you may remove or edit it.
19002 #
19003 # config.status only pays attention to the cache file if you give it
19004 # the --recheck option to rerun configure.
19005 #
19006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19008 # following values.
19009
19010 _ACEOF
19011
19012 # The following way of writing the cache mishandles newlines in values,
19013 # but we know of no workaround that is simple, portable, and efficient.
19014 # So, we kill variables containing newlines.
19015 # Ultrix sh set writes to stderr and can't be redirected directly,
19016 # and sets the high bit in the cache file unless we assign to the vars.
19017 (
19018 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19019 eval ac_val=\$$ac_var
19020 case $ac_val in #(
19021 *${as_nl}*)
19022 case $ac_var in #(
19023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19025 esac
19026 case $ac_var in #(
19027 _ | IFS | as_nl) ;; #(
19028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19029 *) { eval $ac_var=; unset $ac_var;} ;;
19030 esac ;;
19031 esac
19032 done
19033
19034 (set) 2>&1 |
19035 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19036 *${as_nl}ac_space=\ *)
19037 # `set' does not quote correctly, so add quotes: double-quote
19038 # substitution turns \\\\ into \\, and sed turns \\ into \.
19039 sed -n \
19040 "s/'/'\\\\''/g;
19041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19042 ;; #(
19043 *)
19044 # `set' quotes correctly as required by POSIX, so do not add quotes.
19045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19046 ;;
19047 esac |
19048 sort
19049 ) |
19050 sed '
19051 /^ac_cv_env_/b end
19052 t clear
19053 :clear
19054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19055 t end
19056 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19057 :end' >>confcache
19058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19059 if test -w "$cache_file"; then
19060 if test "x$cache_file" != "x/dev/null"; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19062 $as_echo "$as_me: updating cache $cache_file" >&6;}
19063 if test ! -f "$cache_file" || test -h "$cache_file"; then
19064 cat confcache >"$cache_file"
19065 else
19066 case $cache_file in #(
19067 */* | ?:*)
19068 mv -f confcache "$cache_file"$$ &&
19069 mv -f "$cache_file"$$ "$cache_file" ;; #(
19070 *)
19071 mv -f confcache "$cache_file" ;;
19072 esac
19073 fi
19074 fi
19075 else
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19077 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19078 fi
19079 fi
19080 rm -f confcache
19081
19082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19083 # Let make expand exec_prefix.
19084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19085
19086 # Transform confdefs.h into DEFS.
19087 # Protect against shell expansion while executing Makefile rules.
19088 # Protect against Makefile macro expansion.
19089 #
19090 # If the first sed substitution is executed (which looks for macros that
19091 # take arguments), then branch to the quote section. Otherwise,
19092 # look for a macro that doesn't take arguments.
19093 ac_script='
19094 :mline
19095 /\\$/{
19096 N
19097 s,\\\n,,
19098 b mline
19099 }
19100 t clear
19101 :clear
19102 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19103 t quote
19104 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19105 t quote
19106 b any
19107 :quote
19108 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19109 s/\[/\\&/g
19110 s/\]/\\&/g
19111 s/\$/$$/g
19112 H
19113 :any
19114 ${
19115 g
19116 s/^\n//
19117 s/\n/ /g
19118 p
19119 }
19120 '
19121 DEFS=`sed -n "$ac_script" confdefs.h`
19122
19123
19124 ac_libobjs=
19125 ac_ltlibobjs=
19126 U=
19127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19128 # 1. Remove the extension, and $U if already installed.
19129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19132 # will be set to the directory where LIBOBJS objects are built.
19133 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19134 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19135 done
19136 LIBOBJS=$ac_libobjs
19137
19138 LTLIBOBJS=$ac_ltlibobjs
19139
19140
19141
19142 : "${CONFIG_STATUS=./config.status}"
19143 ac_write_fail=0
19144 ac_clean_files_save=$ac_clean_files
19145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19148 as_write_fail=0
19149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19150 #! $SHELL
19151 # Generated by $as_me.
19152 # Run this file to recreate the current configuration.
19153 # Compiler output produced by configure, useful for debugging
19154 # configure, is in config.log if it exists.
19155
19156 debug=false
19157 ac_cs_recheck=false
19158 ac_cs_silent=false
19159
19160 SHELL=\${CONFIG_SHELL-$SHELL}
19161 export SHELL
19162 _ASEOF
19163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19164 ## -------------------- ##
19165 ## M4sh Initialization. ##
19166 ## -------------------- ##
19167
19168 # Be more Bourne compatible
19169 DUALCASE=1; export DUALCASE # for MKS sh
19170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19171 emulate sh
19172 NULLCMD=:
19173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19174 # is contrary to our usage. Disable this feature.
19175 alias -g '${1+"$@"}'='"$@"'
19176 setopt NO_GLOB_SUBST
19177 else
19178 case `(set -o) 2>/dev/null` in #(
19179 *posix*) :
19180 set -o posix ;; #(
19181 *) :
19182 ;;
19183 esac
19184 fi
19185
19186
19187 as_nl='
19188 '
19189 export as_nl
19190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19194 # Prefer a ksh shell builtin over an external printf program on Solaris,
19195 # but without wasting forks for bash or zsh.
19196 if test -z "$BASH_VERSION$ZSH_VERSION" \
19197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19198 as_echo='print -r --'
19199 as_echo_n='print -rn --'
19200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19201 as_echo='printf %s\n'
19202 as_echo_n='printf %s'
19203 else
19204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19205 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19206 as_echo_n='/usr/ucb/echo -n'
19207 else
19208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19209 as_echo_n_body='eval
19210 arg=$1;
19211 case $arg in #(
19212 *"$as_nl"*)
19213 expr "X$arg" : "X\\(.*\\)$as_nl";
19214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19215 esac;
19216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19217 '
19218 export as_echo_n_body
19219 as_echo_n='sh -c $as_echo_n_body as_echo'
19220 fi
19221 export as_echo_body
19222 as_echo='sh -c $as_echo_body as_echo'
19223 fi
19224
19225 # The user is always right.
19226 if test "${PATH_SEPARATOR+set}" != set; then
19227 PATH_SEPARATOR=:
19228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19229 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19230 PATH_SEPARATOR=';'
19231 }
19232 fi
19233
19234
19235 # IFS
19236 # We need space, tab and new line, in precisely that order. Quoting is
19237 # there to prevent editors from complaining about space-tab.
19238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19239 # splitting by setting IFS to empty value.)
19240 IFS=" "" $as_nl"
19241
19242 # Find who we are. Look in the path if we contain no directory separator.
19243 as_myself=
19244 case $0 in #((
19245 *[\\/]* ) as_myself=$0 ;;
19246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19248 do
19249 IFS=$as_save_IFS
19250 test -z "$as_dir" && as_dir=.
19251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19252 done
19253 IFS=$as_save_IFS
19254
19255 ;;
19256 esac
19257 # We did not find ourselves, most probably we were run as `sh COMMAND'
19258 # in which case we are not to be found in the path.
19259 if test "x$as_myself" = x; then
19260 as_myself=$0
19261 fi
19262 if test ! -f "$as_myself"; then
19263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19264 exit 1
19265 fi
19266
19267 # Unset variables that we do not need and which cause bugs (e.g. in
19268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19269 # suppresses any "Segmentation fault" message there. '((' could
19270 # trigger a bug in pdksh 5.2.14.
19271 for as_var in BASH_ENV ENV MAIL MAILPATH
19272 do eval test x\${$as_var+set} = xset \
19273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19274 done
19275 PS1='$ '
19276 PS2='> '
19277 PS4='+ '
19278
19279 # NLS nuisances.
19280 LC_ALL=C
19281 export LC_ALL
19282 LANGUAGE=C
19283 export LANGUAGE
19284
19285 # CDPATH.
19286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19287
19288
19289 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19290 # ----------------------------------------
19291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19293 # script with STATUS, using 1 if that was 0.
19294 as_fn_error ()
19295 {
19296 as_status=$1; test $as_status -eq 0 && as_status=1
19297 if test "$4"; then
19298 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19300 fi
19301 $as_echo "$as_me: error: $2" >&2
19302 as_fn_exit $as_status
19303 } # as_fn_error
19304
19305
19306 # as_fn_set_status STATUS
19307 # -----------------------
19308 # Set $? to STATUS, without forking.
19309 as_fn_set_status ()
19310 {
19311 return $1
19312 } # as_fn_set_status
19313
19314 # as_fn_exit STATUS
19315 # -----------------
19316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19317 as_fn_exit ()
19318 {
19319 set +e
19320 as_fn_set_status $1
19321 exit $1
19322 } # as_fn_exit
19323
19324 # as_fn_unset VAR
19325 # ---------------
19326 # Portably unset VAR.
19327 as_fn_unset ()
19328 {
19329 { eval $1=; unset $1;}
19330 }
19331 as_unset=as_fn_unset
19332 # as_fn_append VAR VALUE
19333 # ----------------------
19334 # Append the text in VALUE to the end of the definition contained in VAR. Take
19335 # advantage of any shell optimizations that allow amortized linear growth over
19336 # repeated appends, instead of the typical quadratic growth present in naive
19337 # implementations.
19338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19339 eval 'as_fn_append ()
19340 {
19341 eval $1+=\$2
19342 }'
19343 else
19344 as_fn_append ()
19345 {
19346 eval $1=\$$1\$2
19347 }
19348 fi # as_fn_append
19349
19350 # as_fn_arith ARG...
19351 # ------------------
19352 # Perform arithmetic evaluation on the ARGs, and store the result in the
19353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19354 # must be portable across $(()) and expr.
19355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19356 eval 'as_fn_arith ()
19357 {
19358 as_val=$(( $* ))
19359 }'
19360 else
19361 as_fn_arith ()
19362 {
19363 as_val=`expr "$@" || test $? -eq 1`
19364 }
19365 fi # as_fn_arith
19366
19367
19368 if expr a : '\(a\)' >/dev/null 2>&1 &&
19369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19370 as_expr=expr
19371 else
19372 as_expr=false
19373 fi
19374
19375 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19376 as_basename=basename
19377 else
19378 as_basename=false
19379 fi
19380
19381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19382 as_dirname=dirname
19383 else
19384 as_dirname=false
19385 fi
19386
19387 as_me=`$as_basename -- "$0" ||
19388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19389 X"$0" : 'X\(//\)$' \| \
19390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19391 $as_echo X/"$0" |
19392 sed '/^.*\/\([^/][^/]*\)\/*$/{
19393 s//\1/
19394 q
19395 }
19396 /^X\/\(\/\/\)$/{
19397 s//\1/
19398 q
19399 }
19400 /^X\/\(\/\).*/{
19401 s//\1/
19402 q
19403 }
19404 s/.*/./; q'`
19405
19406 # Avoid depending upon Character Ranges.
19407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19410 as_cr_digits='0123456789'
19411 as_cr_alnum=$as_cr_Letters$as_cr_digits
19412
19413 ECHO_C= ECHO_N= ECHO_T=
19414 case `echo -n x` in #(((((
19415 -n*)
19416 case `echo 'xy\c'` in
19417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19418 xy) ECHO_C='\c';;
19419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19420 ECHO_T=' ';;
19421 esac;;
19422 *)
19423 ECHO_N='-n';;
19424 esac
19425
19426 rm -f conf$$ conf$$.exe conf$$.file
19427 if test -d conf$$.dir; then
19428 rm -f conf$$.dir/conf$$.file
19429 else
19430 rm -f conf$$.dir
19431 mkdir conf$$.dir 2>/dev/null
19432 fi
19433 if (echo >conf$$.file) 2>/dev/null; then
19434 if ln -s conf$$.file conf$$ 2>/dev/null; then
19435 as_ln_s='ln -s'
19436 # ... but there are two gotchas:
19437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19439 # In both cases, we have to default to `cp -pR'.
19440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19441 as_ln_s='cp -pR'
19442 elif ln conf$$.file conf$$ 2>/dev/null; then
19443 as_ln_s=ln
19444 else
19445 as_ln_s='cp -pR'
19446 fi
19447 else
19448 as_ln_s='cp -pR'
19449 fi
19450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19451 rmdir conf$$.dir 2>/dev/null
19452
19453
19454 # as_fn_mkdir_p
19455 # -------------
19456 # Create "$as_dir" as a directory, including parents if necessary.
19457 as_fn_mkdir_p ()
19458 {
19459
19460 case $as_dir in #(
19461 -*) as_dir=./$as_dir;;
19462 esac
19463 test -d "$as_dir" || eval $as_mkdir_p || {
19464 as_dirs=
19465 while :; do
19466 case $as_dir in #(
19467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19468 *) as_qdir=$as_dir;;
19469 esac
19470 as_dirs="'$as_qdir' $as_dirs"
19471 as_dir=`$as_dirname -- "$as_dir" ||
19472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19473 X"$as_dir" : 'X\(//\)[^/]' \| \
19474 X"$as_dir" : 'X\(//\)$' \| \
19475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19476 $as_echo X"$as_dir" |
19477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19478 s//\1/
19479 q
19480 }
19481 /^X\(\/\/\)[^/].*/{
19482 s//\1/
19483 q
19484 }
19485 /^X\(\/\/\)$/{
19486 s//\1/
19487 q
19488 }
19489 /^X\(\/\).*/{
19490 s//\1/
19491 q
19492 }
19493 s/.*/./; q'`
19494 test -d "$as_dir" && break
19495 done
19496 test -z "$as_dirs" || eval "mkdir $as_dirs"
19497 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19498
19499
19500 } # as_fn_mkdir_p
19501 if mkdir -p . 2>/dev/null; then
19502 as_mkdir_p='mkdir -p "$as_dir"'
19503 else
19504 test -d ./-p && rmdir ./-p
19505 as_mkdir_p=false
19506 fi
19507
19508
19509 # as_fn_executable_p FILE
19510 # -----------------------
19511 # Test if FILE is an executable regular file.
19512 as_fn_executable_p ()
19513 {
19514 test -f "$1" && test -x "$1"
19515 } # as_fn_executable_p
19516 as_test_x='test -x'
19517 as_executable_p=as_fn_executable_p
19518
19519 # Sed expression to map a string onto a valid CPP name.
19520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19521
19522 # Sed expression to map a string onto a valid variable name.
19523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19524
19525
19526 exec 6>&1
19527 ## ----------------------------------- ##
19528 ## Main body of $CONFIG_STATUS script. ##
19529 ## ----------------------------------- ##
19530 _ASEOF
19531 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19532
19533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19534 # Save the log message, to keep $0 and so on meaningful, and to
19535 # report actual input values of CONFIG_FILES etc. instead of their
19536 # values after options handling.
19537 ac_log="
19538 This file was extended by $as_me, which was
19539 generated by GNU Autoconf 2.69. Invocation command line was
19540
19541 CONFIG_FILES = $CONFIG_FILES
19542 CONFIG_HEADERS = $CONFIG_HEADERS
19543 CONFIG_LINKS = $CONFIG_LINKS
19544 CONFIG_COMMANDS = $CONFIG_COMMANDS
19545 $ $0 $@
19546
19547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19548 "
19549
19550 _ACEOF
19551
19552 case $ac_config_files in *"
19553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19554 esac
19555
19556
19557
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 # Files that config.status was made for.
19560 config_files="$ac_config_files"
19561
19562 _ACEOF
19563
19564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19565 ac_cs_usage="\
19566 \`$as_me' instantiates files and other configuration actions
19567 from templates according to the current configuration. Unless the files
19568 and actions are specified as TAGs, all are instantiated by default.
19569
19570 Usage: $0 [OPTION]... [TAG]...
19571
19572 -h, --help print this help, then exit
19573 -V, --version print version number and configuration settings, then exit
19574 --config print configuration, then exit
19575 -q, --quiet, --silent
19576 do not print progress messages
19577 -d, --debug don't remove temporary files
19578 --recheck update $as_me by reconfiguring in the same conditions
19579 --file=FILE[:TEMPLATE]
19580 instantiate the configuration file FILE
19581
19582 Configuration files:
19583 $config_files
19584
19585 Report bugs to the package provider."
19586
19587 _ACEOF
19588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19590 ac_cs_version="\\
19591 config.status
19592 configured by $0, generated by GNU Autoconf 2.69,
19593 with options \\"\$ac_cs_config\\"
19594
19595 Copyright (C) 2012 Free Software Foundation, Inc.
19596 This config.status script is free software; the Free Software Foundation
19597 gives unlimited permission to copy, distribute and modify it."
19598
19599 ac_pwd='$ac_pwd'
19600 srcdir='$srcdir'
19601 INSTALL='$INSTALL'
19602 AWK='$AWK'
19603 test -n "\$AWK" || AWK=awk
19604 _ACEOF
19605
19606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19607 # The default lists apply if the user does not specify any file.
19608 ac_need_defaults=:
19609 while test $# != 0
19610 do
19611 case $1 in
19612 --*=?*)
19613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19615 ac_shift=:
19616 ;;
19617 --*=)
19618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19619 ac_optarg=
19620 ac_shift=:
19621 ;;
19622 *)
19623 ac_option=$1
19624 ac_optarg=$2
19625 ac_shift=shift
19626 ;;
19627 esac
19628
19629 case $ac_option in
19630 # Handling of the options.
19631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19632 ac_cs_recheck=: ;;
19633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19634 $as_echo "$ac_cs_version"; exit ;;
19635 --config | --confi | --conf | --con | --co | --c )
19636 $as_echo "$ac_cs_config"; exit ;;
19637 --debug | --debu | --deb | --de | --d | -d )
19638 debug=: ;;
19639 --file | --fil | --fi | --f )
19640 $ac_shift
19641 case $ac_optarg in
19642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19643 '') as_fn_error $? "missing file argument" ;;
19644 esac
19645 as_fn_append CONFIG_FILES " '$ac_optarg'"
19646 ac_need_defaults=false;;
19647 --he | --h | --help | --hel | -h )
19648 $as_echo "$ac_cs_usage"; exit ;;
19649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19651 ac_cs_silent=: ;;
19652
19653 # This is an error.
19654 -*) as_fn_error $? "unrecognized option: \`$1'
19655 Try \`$0 --help' for more information." ;;
19656
19657 *) as_fn_append ac_config_targets " $1"
19658 ac_need_defaults=false ;;
19659
19660 esac
19661 shift
19662 done
19663
19664 ac_configure_extra_args=
19665
19666 if $ac_cs_silent; then
19667 exec 6>/dev/null
19668 ac_configure_extra_args="$ac_configure_extra_args --silent"
19669 fi
19670
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 if \$ac_cs_recheck; then
19674 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19675 shift
19676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19677 CONFIG_SHELL='$SHELL'
19678 export CONFIG_SHELL
19679 exec "\$@"
19680 fi
19681
19682 _ACEOF
19683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19684 exec 5>>config.log
19685 {
19686 echo
19687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19688 ## Running $as_me. ##
19689 _ASBOX
19690 $as_echo "$ac_log"
19691 } >&5
19692
19693 _ACEOF
19694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19695 #
19696 # INIT-COMMANDS
19697 #
19698 extrasub_build="$extrasub_build"
19699 extrasub_host="$extrasub_host"
19700 extrasub_target="$extrasub_target"
19701
19702 _ACEOF
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705
19706 # Handling of arguments.
19707 for ac_config_target in $ac_config_targets
19708 do
19709 case $ac_config_target in
19710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19711
19712 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19713 esac
19714 done
19715
19716
19717 # If the user did not use the arguments to specify the items to instantiate,
19718 # then the envvar interface is used. Set only those that are not.
19719 # We use the long form for the default assignment because of an extremely
19720 # bizarre bug on SunOS 4.1.3.
19721 if $ac_need_defaults; then
19722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19723 fi
19724
19725 # Have a temporary directory for convenience. Make it in the build tree
19726 # simply because there is no reason against having it here, and in addition,
19727 # creating and moving files from /tmp can sometimes cause problems.
19728 # Hook for its removal unless debugging.
19729 # Note that there is a small window in which the directory will not be cleaned:
19730 # after its creation but before its name has been assigned to `$tmp'.
19731 $debug ||
19732 {
19733 tmp= ac_tmp=
19734 trap 'exit_status=$?
19735 : "${ac_tmp:=$tmp}"
19736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19737 ' 0
19738 trap 'as_fn_exit 1' 1 2 13 15
19739 }
19740 # Create a (secure) tmp directory for tmp files.
19741
19742 {
19743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19744 test -d "$tmp"
19745 } ||
19746 {
19747 tmp=./conf$$-$RANDOM
19748 (umask 077 && mkdir "$tmp")
19749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19750 ac_tmp=$tmp
19751
19752 # Set up the scripts for CONFIG_FILES section.
19753 # No need to generate them if there are no CONFIG_FILES.
19754 # This happens for instance with `./config.status config.h'.
19755 if test -n "$CONFIG_FILES"; then
19756
19757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19758 ac_cs_awk_getline=:
19759 ac_cs_awk_pipe_init=
19760 ac_cs_awk_read_file='
19761 while ((getline aline < (F[key])) > 0)
19762 print(aline)
19763 close(F[key])'
19764 ac_cs_awk_pipe_fini=
19765 else
19766 ac_cs_awk_getline=false
19767 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19768 ac_cs_awk_read_file='
19769 print "|#_!!_#|"
19770 print "cat " F[key] " &&"
19771 '$ac_cs_awk_pipe_init
19772 # The final `:' finishes the AND list.
19773 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19774 fi
19775 ac_cr=`echo X | tr X '\015'`
19776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19777 # But we know of no other shell where ac_cr would be empty at this
19778 # point, so we can use a bashism as a fallback.
19779 if test "x$ac_cr" = x; then
19780 eval ac_cr=\$\'\\r\'
19781 fi
19782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19784 ac_cs_awk_cr='\\r'
19785 else
19786 ac_cs_awk_cr=$ac_cr
19787 fi
19788
19789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19790 _ACEOF
19791
19792 # Create commands to substitute file output variables.
19793 {
19794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19795 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19796 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19797 echo "_ACAWK" &&
19798 echo "_ACEOF"
19799 } >conf$$files.sh &&
19800 . ./conf$$files.sh ||
19801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19802 rm -f conf$$files.sh
19803
19804 {
19805 echo "cat >conf$$subs.awk <<_ACEOF" &&
19806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19807 echo "_ACEOF"
19808 } >conf$$subs.sh ||
19809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19811 ac_delim='%!_!# '
19812 for ac_last_try in false false false false false :; do
19813 . ./conf$$subs.sh ||
19814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19815
19816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19817 if test $ac_delim_n = $ac_delim_num; then
19818 break
19819 elif $ac_last_try; then
19820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19821 else
19822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19823 fi
19824 done
19825 rm -f conf$$subs.sh
19826
19827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19828 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19829 _ACEOF
19830 sed -n '
19831 h
19832 s/^/S["/; s/!.*/"]=/
19833 p
19834 g
19835 s/^[^!]*!//
19836 :repl
19837 t repl
19838 s/'"$ac_delim"'$//
19839 t delim
19840 :nl
19841 h
19842 s/\(.\{148\}\)..*/\1/
19843 t more1
19844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19845 p
19846 n
19847 b repl
19848 :more1
19849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19850 p
19851 g
19852 s/.\{148\}//
19853 t nl
19854 :delim
19855 h
19856 s/\(.\{148\}\)..*/\1/
19857 t more2
19858 s/["\\]/\\&/g; s/^/"/; s/$/"/
19859 p
19860 b
19861 :more2
19862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19863 p
19864 g
19865 s/.\{148\}//
19866 t delim
19867 ' <conf$$subs.awk | sed '
19868 /^[^""]/{
19869 N
19870 s/\n//
19871 }
19872 ' >>$CONFIG_STATUS || ac_write_fail=1
19873 rm -f conf$$subs.awk
19874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19875 _ACAWK
19876 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19877 for (key in S) S_is_set[key] = 1
19878 FS = "\a"
19879 \$ac_cs_awk_pipe_init
19880 }
19881 {
19882 line = $ 0
19883 nfields = split(line, field, "@")
19884 substed = 0
19885 len = length(field[1])
19886 for (i = 2; i < nfields; i++) {
19887 key = field[i]
19888 keylen = length(key)
19889 if (S_is_set[key]) {
19890 value = S[key]
19891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19892 len += length(value) + length(field[++i])
19893 substed = 1
19894 } else
19895 len += 1 + keylen
19896 }
19897 if (nfields == 3 && !substed) {
19898 key = field[2]
19899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19900 \$ac_cs_awk_read_file
19901 next
19902 }
19903 }
19904 print line
19905 }
19906 \$ac_cs_awk_pipe_fini
19907 _ACAWK
19908 _ACEOF
19909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19912 else
19913 cat
19914 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19915 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19916 _ACEOF
19917
19918 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19919 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19920 # trailing colons and then remove the whole line if VPATH becomes empty
19921 # (actually we leave an empty line to preserve line numbers).
19922 if test "x$srcdir" = x.; then
19923 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19924 h
19925 s///
19926 s/^/:/
19927 s/[ ]*$/:/
19928 s/:\$(srcdir):/:/g
19929 s/:\${srcdir}:/:/g
19930 s/:@srcdir@:/:/g
19931 s/^:*//
19932 s/:*$//
19933 x
19934 s/\(=[ ]*\).*/\1/
19935 G
19936 s/\n//
19937 s/^[^=]*=[ ]*$//
19938 }'
19939 fi
19940
19941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942 fi # test -n "$CONFIG_FILES"
19943
19944
19945 eval set X " :F $CONFIG_FILES "
19946 shift
19947 for ac_tag
19948 do
19949 case $ac_tag in
19950 :[FHLC]) ac_mode=$ac_tag; continue;;
19951 esac
19952 case $ac_mode$ac_tag in
19953 :[FHL]*:*);;
19954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19955 :[FH]-) ac_tag=-:-;;
19956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19957 esac
19958 ac_save_IFS=$IFS
19959 IFS=:
19960 set x $ac_tag
19961 IFS=$ac_save_IFS
19962 shift
19963 ac_file=$1
19964 shift
19965
19966 case $ac_mode in
19967 :L) ac_source=$1;;
19968 :[FH])
19969 ac_file_inputs=
19970 for ac_f
19971 do
19972 case $ac_f in
19973 -) ac_f="$ac_tmp/stdin";;
19974 *) # Look for the file first in the build tree, then in the source tree
19975 # (if the path is not absolute). The absolute path cannot be DOS-style,
19976 # because $ac_f cannot contain `:'.
19977 test -f "$ac_f" ||
19978 case $ac_f in
19979 [\\/$]*) false;;
19980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19981 esac ||
19982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19983 esac
19984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19985 as_fn_append ac_file_inputs " '$ac_f'"
19986 done
19987
19988 # Let's still pretend it is `configure' which instantiates (i.e., don't
19989 # use $as_me), people would be surprised to read:
19990 # /* config.h. Generated by config.status. */
19991 configure_input='Generated from '`
19992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19993 `' by configure.'
19994 if test x"$ac_file" != x-; then
19995 configure_input="$ac_file. $configure_input"
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19997 $as_echo "$as_me: creating $ac_file" >&6;}
19998 fi
19999 # Neutralize special characters interpreted by sed in replacement strings.
20000 case $configure_input in #(
20001 *\&* | *\|* | *\\* )
20002 ac_sed_conf_input=`$as_echo "$configure_input" |
20003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20004 *) ac_sed_conf_input=$configure_input;;
20005 esac
20006
20007 case $ac_tag in
20008 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20010 esac
20011 ;;
20012 esac
20013
20014 ac_dir=`$as_dirname -- "$ac_file" ||
20015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20016 X"$ac_file" : 'X\(//\)[^/]' \| \
20017 X"$ac_file" : 'X\(//\)$' \| \
20018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20019 $as_echo X"$ac_file" |
20020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20021 s//\1/
20022 q
20023 }
20024 /^X\(\/\/\)[^/].*/{
20025 s//\1/
20026 q
20027 }
20028 /^X\(\/\/\)$/{
20029 s//\1/
20030 q
20031 }
20032 /^X\(\/\).*/{
20033 s//\1/
20034 q
20035 }
20036 s/.*/./; q'`
20037 as_dir="$ac_dir"; as_fn_mkdir_p
20038 ac_builddir=.
20039
20040 case "$ac_dir" in
20041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20042 *)
20043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20044 # A ".." for each directory in $ac_dir_suffix.
20045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20046 case $ac_top_builddir_sub in
20047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20049 esac ;;
20050 esac
20051 ac_abs_top_builddir=$ac_pwd
20052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20053 # for backward compatibility:
20054 ac_top_builddir=$ac_top_build_prefix
20055
20056 case $srcdir in
20057 .) # We are building in place.
20058 ac_srcdir=.
20059 ac_top_srcdir=$ac_top_builddir_sub
20060 ac_abs_top_srcdir=$ac_pwd ;;
20061 [\\/]* | ?:[\\/]* ) # Absolute name.
20062 ac_srcdir=$srcdir$ac_dir_suffix;
20063 ac_top_srcdir=$srcdir
20064 ac_abs_top_srcdir=$srcdir ;;
20065 *) # Relative name.
20066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20067 ac_top_srcdir=$ac_top_build_prefix$srcdir
20068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20069 esac
20070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20071
20072
20073 case $ac_mode in
20074 :F)
20075 #
20076 # CONFIG_FILE
20077 #
20078
20079 case $INSTALL in
20080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20082 esac
20083 _ACEOF
20084
20085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20086 # If the template does not know about datarootdir, expand it.
20087 # FIXME: This hack should be removed a few years after 2.60.
20088 ac_datarootdir_hack=; ac_datarootdir_seen=
20089 ac_sed_dataroot='
20090 /datarootdir/ {
20091 p
20092 q
20093 }
20094 /@datadir@/p
20095 /@docdir@/p
20096 /@infodir@/p
20097 /@localedir@/p
20098 /@mandir@/p'
20099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20100 *datarootdir*) ac_datarootdir_seen=yes;;
20101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20104 _ACEOF
20105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106 ac_datarootdir_hack='
20107 s&@datadir@&$datadir&g
20108 s&@docdir@&$docdir&g
20109 s&@infodir@&$infodir&g
20110 s&@localedir@&$localedir&g
20111 s&@mandir@&$mandir&g
20112 s&\\\${datarootdir}&$datarootdir&g' ;;
20113 esac
20114 _ACEOF
20115
20116 # Neutralize VPATH when `$srcdir' = `.'.
20117 # Shell code in configure.ac might set extrasub.
20118 # FIXME: do we really want to maintain this feature?
20119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20120 ac_sed_extra="$ac_vpsub
20121 $extrasub
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20124 :t
20125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20126 s|@configure_input@|$ac_sed_conf_input|;t t
20127 s&@top_builddir@&$ac_top_builddir_sub&;t t
20128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20129 s&@srcdir@&$ac_srcdir&;t t
20130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20131 s&@top_srcdir@&$ac_top_srcdir&;t t
20132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20133 s&@builddir@&$ac_builddir&;t t
20134 s&@abs_builddir@&$ac_abs_builddir&;t t
20135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20136 s&@INSTALL@&$ac_INSTALL&;t t
20137 $ac_datarootdir_hack
20138 "
20139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20140 if $ac_cs_awk_getline; then
20141 $AWK -f "$ac_tmp/subs.awk"
20142 else
20143 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20144 fi \
20145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20146
20147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20152 which seems to be undefined. Please make sure it is defined" >&5
20153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20154 which seems to be undefined. Please make sure it is defined" >&2;}
20155
20156 rm -f "$ac_tmp/stdin"
20157 case $ac_file in
20158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20160 esac \
20161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20162 ;;
20163
20164
20165
20166 esac
20167
20168
20169 case $ac_file$ac_mode in
20170 "Makefile":F) sed "$extrasub_build" Makefile |
20171 sed "$extrasub_host" |
20172 sed "$extrasub_target" > mf$$
20173 mv -f mf$$ Makefile ;;
20174
20175 esac
20176 done # for ac_tag
20177
20178
20179 as_fn_exit 0
20180 _ACEOF
20181 ac_clean_files=$ac_clean_files_save
20182
20183 test $ac_write_fail = 0 ||
20184 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20185
20186
20187 # configure is writing to config.log, and then calls config.status.
20188 # config.status does its own redirection, appending to config.log.
20189 # Unfortunately, on DOS this fails, as config.log is still kept open
20190 # by configure, so config.status won't be able to write to it; its
20191 # output is simply discarded. So we exec the FD to /dev/null,
20192 # effectively closing config.log, so it can be properly (re)opened and
20193 # appended to by config.status. When coming back to configure, we
20194 # need to make the FD available again.
20195 if test "$no_create" != yes; then
20196 ac_cs_success=:
20197 ac_config_status_args=
20198 test "$silent" = yes &&
20199 ac_config_status_args="$ac_config_status_args --quiet"
20200 exec 5>/dev/null
20201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20202 exec 5>>config.log
20203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20204 # would make configure fail if this is the last instruction.
20205 $ac_cs_success || as_fn_exit 1
20206 fi
20207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20210 fi
20211