]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
build: Don't check for host-prefixed 'cargo' program
[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 # Disable Rust if cargo is unavailable.
9152 case ${add_this_lang}:${language}:${have_cargo} in
9153 yes:rust:no)
9154 # Specifically requested language; tell them.
9155 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
9156 ;;
9157 all:rust:no)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9159 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9160 add_this_lang=unsupported
9161 ;;
9162 *:rust:no)
9163 # Silently disable.
9164 add_this_lang=unsupported
9165 ;;
9166 esac
9167
9168
9169 # Disable a language that is unsupported by the target.
9170 case "${add_this_lang}: $unsupported_languages " in
9171 no:*) ;;
9172 unsupported:*) ;;
9173 *:*" $language "*)
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9175 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9176 add_this_lang=unsupported
9177 ;;
9178 esac
9179
9180 case $add_this_lang in
9181 unsupported)
9182 # Remove language-dependent dirs.
9183 disabled_target_libs="$disabled_target_libs $target_libs"
9184 noconfigdirs="$noconfigdirs $lang_dirs"
9185 ;;
9186 no)
9187 # Remove language-dependent dirs; still show language as supported.
9188 disabled_target_libs="$disabled_target_libs $target_libs"
9189 noconfigdirs="$noconfigdirs $lang_dirs"
9190 potential_languages="${potential_languages}${language},"
9191 ;;
9192 all|yes)
9193 new_enable_languages="${new_enable_languages}${language},"
9194 potential_languages="${potential_languages}${language},"
9195 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9196 enabled_target_libs="$enabled_target_libs $target_libs"
9197 case "${boot_language}:,$enable_stage1_languages," in
9198 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9199 # Add to (comma-separated) list of stage 1 languages.
9200 case ",$stage1_languages," in
9201 *,$language,* | ,yes, | ,all,) ;;
9202 *) stage1_languages="${stage1_languages}${language}," ;;
9203 esac
9204 # We need to bootstrap any supporting libraries.
9205 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9206 ;;
9207 esac
9208 ;;
9209 esac
9210 ;;
9211 esac
9212 done
9213
9214 # Add target libraries which are only needed for disabled languages
9215 # to noconfigdirs.
9216 if test -n "$disabled_target_libs"; then
9217 for dir in $disabled_target_libs; do
9218 case " $enabled_target_libs " in
9219 *" ${dir} "*) ;;
9220 *) noconfigdirs="$noconfigdirs $dir" ;;
9221 esac
9222 done
9223 fi
9224
9225 # Check whether --enable-stage1-languages was given.
9226 if test "${enable_stage1_languages+set}" = set; then :
9227 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9228 ,no,|,,)
9229 # Set it to something that will have no effect in the loop below
9230 enable_stage1_languages=c ;;
9231 ,yes,)
9232 enable_stage1_languages=`echo $new_enable_languages | \
9233 sed -e "s/^,//" -e "s/,$//" ` ;;
9234 *,all,*)
9235 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9236 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9237 esac
9238
9239 # Add "good" languages from enable_stage1_languages to stage1_languages,
9240 # while "bad" languages go in missing_languages. Leave no duplicates.
9241 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9242 case $potential_languages in
9243 *,$i,*)
9244 case $stage1_languages in
9245 *,$i,*) ;;
9246 *) stage1_languages="$stage1_languages$i," ;;
9247 esac ;;
9248 *)
9249 case $missing_languages in
9250 *,$i,*) ;;
9251 *) missing_languages="$missing_languages$i," ;;
9252 esac ;;
9253 esac
9254 done
9255 fi
9256
9257
9258 # Remove leading/trailing commas that were added for simplicity
9259 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9260 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9261 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9262 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9263
9264 if test "x$missing_languages" != x; then
9265 as_fn_error $? "
9266 The following requested languages could not be built: ${missing_languages}
9267 Supported languages are: ${potential_languages}" "$LINENO" 5
9268 fi
9269 if test "x$new_enable_languages" != "x$enable_languages"; then
9270 echo The following languages will be built: ${new_enable_languages}
9271 enable_languages="$new_enable_languages"
9272 fi
9273
9274
9275 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9276 fi
9277
9278 # Handle --disable-<component> generically.
9279 for dir in $configdirs $build_configdirs $target_configdirs ; do
9280 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9281 varname=`echo $dirname | sed -e s/+/_/g`
9282 if eval test x\${enable_${varname}} "=" xno ; then
9283 noconfigdirs="$noconfigdirs $dir"
9284 fi
9285 done
9286
9287 # Check for Boehm's garbage collector
9288 # Check whether --enable-objc-gc was given.
9289 if test "${enable_objc_gc+set}" = set; then :
9290 enableval=$enable_objc_gc;
9291 fi
9292
9293
9294 # Check whether --with-target-bdw-gc was given.
9295 if test "${with_target_bdw_gc+set}" = set; then :
9296 withval=$with_target_bdw_gc;
9297 fi
9298
9299
9300 # Check whether --with-target-bdw-gc-include was given.
9301 if test "${with_target_bdw_gc_include+set}" = set; then :
9302 withval=$with_target_bdw_gc_include;
9303 fi
9304
9305
9306 # Check whether --with-target-bdw-gc-lib was given.
9307 if test "${with_target_bdw_gc_lib+set}" = set; then :
9308 withval=$with_target_bdw_gc_lib;
9309 fi
9310
9311
9312 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9314 $as_echo_n "checking for bdw garbage collector... " >&6; }
9315 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9317 $as_echo "using bdw-gc in default locations" >&6; }
9318 else
9319 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9320 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9321 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9322 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9325 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9326 fi
9327 fi
9328 esac
9329
9330 # Disable libitm, libsanitizer, libvtv if we're not building C++
9331 case ,${enable_languages}, in
9332 *,c++,*)
9333 # Disable libitm, libsanitizer if we're not building libstdc++
9334 case "${noconfigdirs}" in
9335 *target-libstdc++-v3*)
9336 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9337 ;;
9338 *) ;;
9339 esac
9340 ;;
9341 *)
9342 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9343 ;;
9344 esac
9345
9346 case ,${enable_languages}, in
9347 *,rust,*)
9348 case " ${noconfigdirs} " in
9349 *\ target-libstdc++-v3\ *)
9350 # Disable target libgrust if we're not building target libstdc++.
9351 noconfigdirs="$noconfigdirs target-libgrust"
9352 ;;
9353 esac
9354 ;;
9355 esac
9356
9357 # If gcc/ is not in the source tree then we'll not be building a
9358 # target compiler, assume in that case we don't want to build any
9359 # target libraries or tools.
9360 #
9361 # This was added primarily for the benefit for binutils-gdb who reuse
9362 # this configure script, but don't always have target tools available.
9363 if test ! -d ${srcdir}/gcc; then
9364 skipdirs="${skipdirs} ${target_configdirs}"
9365 fi
9366
9367 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9368 # $build_configdirs and $target_configdirs.
9369 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9370
9371 notsupp=""
9372 for dir in . $skipdirs $noconfigdirs ; do
9373 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9374 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9375 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9376 if test -r $srcdir/$dirname/configure ; then
9377 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9378 true
9379 else
9380 notsupp="$notsupp $dir"
9381 fi
9382 fi
9383 fi
9384 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9385 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9386 if test -r $srcdir/$dirname/configure ; then
9387 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9388 true
9389 else
9390 notsupp="$notsupp $dir"
9391 fi
9392 fi
9393 fi
9394 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9395 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9396 if test -r $srcdir/$dirname/configure ; then
9397 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9398 true
9399 else
9400 notsupp="$notsupp $dir"
9401 fi
9402 fi
9403 fi
9404 done
9405
9406 # Quietly strip out all directories which aren't configurable in this tree.
9407 # This relies on all configurable subdirectories being autoconfiscated, which
9408 # is now the case.
9409 build_configdirs_all="$build_configdirs"
9410 build_configdirs=
9411 for i in ${build_configdirs_all} ; do
9412 j=`echo $i | sed -e s/build-//g`
9413 if test -f ${srcdir}/$j/configure ; then
9414 build_configdirs="${build_configdirs} $i"
9415 fi
9416 done
9417
9418 configdirs_all="$configdirs"
9419 configdirs=
9420 for i in ${configdirs_all} ; do
9421 if test -f ${srcdir}/$i/configure ; then
9422 configdirs="${configdirs} $i"
9423 fi
9424 done
9425
9426 target_configdirs_all="$target_configdirs"
9427 target_configdirs=
9428 for i in ${target_configdirs_all} ; do
9429 j=`echo $i | sed -e s/target-//g`
9430 if test -f ${srcdir}/$j/configure ; then
9431 target_configdirs="${target_configdirs} $i"
9432 fi
9433 done
9434
9435 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9436 # so we have to add it after the preceding checks.
9437 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9438 then
9439 case " $configdirs " in
9440 *" libiberty "*)
9441 # If we can build libiberty, we can also build libiberty-linker-plugin.
9442 configdirs="$configdirs libiberty-linker-plugin"
9443 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9444 --with-libiberty=../libiberty-linker-plugin";;
9445 *)
9446 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9447 esac
9448 fi
9449
9450 # Sometimes we have special requirements for the host libiberty.
9451 extra_host_libiberty_configure_flags=
9452 case " $configdirs " in
9453 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9454 # When these are to be built as shared libraries, the same applies to
9455 # libiberty.
9456 extra_host_libiberty_configure_flags=--enable-shared
9457 ;;
9458 esac
9459
9460
9461 # Sometimes we have special requirements for the host zlib.
9462 extra_host_zlib_configure_flags=
9463 case " $configdirs " in
9464 *" bfd "*)
9465 # When bfd is to be built as a shared library, the same applies to
9466 # zlib.
9467 if test "$enable_shared" = "yes"; then
9468 extra_host_zlib_configure_flags=--enable-host-shared
9469 fi
9470 ;;
9471 esac
9472
9473
9474 # Produce a warning message for the subdirs we can't configure.
9475 # This isn't especially interesting in the Cygnus tree, but in the individual
9476 # FSF releases, it's important to let people know when their machine isn't
9477 # supported by the one or two programs in a package.
9478
9479 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9480 # If $appdirs is non-empty, at least one of those directories must still
9481 # be configured, or we error out. (E.g., if the gas release supports a
9482 # specified target in some subdirs but not the gas subdir, we shouldn't
9483 # pretend that all is well.)
9484 if test -n "$appdirs" ; then
9485 for dir in $appdirs ; do
9486 if test -r $dir/Makefile.in ; then
9487 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9488 appdirs=""
9489 break
9490 fi
9491 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9492 appdirs=""
9493 break
9494 fi
9495 fi
9496 done
9497 if test -n "$appdirs" ; then
9498 echo "*** This configuration is not supported by this package." 1>&2
9499 exit 1
9500 fi
9501 fi
9502 # Okay, some application will build, or we don't care to check. Still
9503 # notify of subdirs not getting built.
9504 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9505 echo " ${notsupp}" 1>&2
9506 echo " (Any other directories should still work fine.)" 1>&2
9507 fi
9508
9509 case "$host" in
9510 *msdosdjgpp*)
9511 enable_gdbtk=no ;;
9512 esac
9513
9514 # To find our prefix, in gcc_cv_tool_prefix.
9515
9516 # The user is always right.
9517 if test "${PATH_SEPARATOR+set}" != set; then
9518 echo "#! /bin/sh" >conf$$.sh
9519 echo "exit 0" >>conf$$.sh
9520 chmod +x conf$$.sh
9521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9522 PATH_SEPARATOR=';'
9523 else
9524 PATH_SEPARATOR=:
9525 fi
9526 rm -f conf$$.sh
9527 fi
9528
9529
9530 get_gcc_base_ver="cat"
9531
9532 # Check whether --with-gcc-major-version-only was given.
9533 if test "${with_gcc_major_version_only+set}" = set; then :
9534 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9535 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9536 fi
9537
9538 fi
9539
9540
9541
9542
9543
9544
9545 if test "x$exec_prefix" = xNONE; then
9546 if test "x$prefix" = xNONE; then
9547 gcc_cv_tool_prefix=$ac_default_prefix
9548 else
9549 gcc_cv_tool_prefix=$prefix
9550 fi
9551 else
9552 gcc_cv_tool_prefix=$exec_prefix
9553 fi
9554
9555 # If there is no compiler in the tree, use the PATH only. In any
9556 # case, if there is no compiler in the tree nobody should use
9557 # AS_FOR_TARGET and LD_FOR_TARGET.
9558 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9559 if test x$with_gcc_major_version_only = xyes ; then
9560 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9561 else
9562 gcc_version=`cat $srcdir/gcc/BASE-VER`
9563 fi
9564 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9565 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9566 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9567 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9568 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9569 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9570 else
9571 gcc_cv_tool_dirs=
9572 fi
9573
9574 if test x$build = x$target && test -n "$md_exec_prefix"; then
9575 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9576 fi
9577
9578
9579
9580 copy_dirs=
9581
9582
9583 # Check whether --with-build-sysroot was given.
9584 if test "${with_build_sysroot+set}" = set; then :
9585 withval=$with_build_sysroot; if test x"$withval" != x ; then
9586 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9587 fi
9588 else
9589 SYSROOT_CFLAGS_FOR_TARGET=
9590 fi
9591
9592
9593
9594
9595 # Check whether --with-debug-prefix-map was given.
9596 if test "${with_debug_prefix_map+set}" = set; then :
9597 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9598 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9599 for debug_map in $withval; do
9600 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9601 done
9602 fi
9603 else
9604 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9605 fi
9606
9607
9608
9609 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9610 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9611 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9612 # We want to ensure that TARGET libraries (which we know are built with
9613 # gcc) are built with "-O2 -g", so include those options when setting
9614 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9615 if test "x$CFLAGS_FOR_TARGET" = x; then
9616 if test "x${is_cross_compiler}" = xyes; then
9617 CFLAGS_FOR_TARGET="-g -O2"
9618 else
9619 CFLAGS_FOR_TARGET=$CFLAGS
9620 case " $CFLAGS " in
9621 *" -O2 "*) ;;
9622 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9623 esac
9624 case " $CFLAGS " in
9625 *" -g "* | *" -g3 "*) ;;
9626 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9627 esac
9628 fi
9629 fi
9630
9631
9632 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9633 if test "x${is_cross_compiler}" = xyes; then
9634 CXXFLAGS_FOR_TARGET="-g -O2"
9635 else
9636 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9637 case " $CXXFLAGS " in
9638 *" -O2 "*) ;;
9639 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9640 esac
9641 case " $CXXFLAGS " in
9642 *" -g "* | *" -g3 "*) ;;
9643 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9644 esac
9645 fi
9646 fi
9647
9648
9649
9650
9651 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9652 # the named directory are copied to $(tooldir)/sys-include.
9653 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9654 if test x${is_cross_compiler} = xno ; then
9655 echo 1>&2 '***' --with-headers is only supported when cross compiling
9656 exit 1
9657 fi
9658 if test x"${with_headers}" != xyes ; then
9659 x=${gcc_cv_tool_prefix}
9660 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9661 fi
9662 fi
9663
9664 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9665 # the name directories are copied to $(tooldir)/lib. Multiple directories
9666 # are permitted.
9667 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9668 if test x${is_cross_compiler} = xno ; then
9669 echo 1>&2 '***' --with-libs is only supported when cross compiling
9670 exit 1
9671 fi
9672 if test x"${with_libs}" != xyes ; then
9673 # Copy the libraries in reverse order, so that files in the first named
9674 # library override files in subsequent libraries.
9675 x=${gcc_cv_tool_prefix}
9676 for l in ${with_libs}; do
9677 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9678 done
9679 fi
9680 fi
9681
9682 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9683 #
9684 # This is done by determining whether or not the appropriate directory
9685 # is available, and by checking whether or not specific configurations
9686 # have requested that this magic not happen.
9687 #
9688 # The command line options always override the explicit settings in
9689 # configure.ac, and the settings in configure.ac override this magic.
9690 #
9691 # If the default for a toolchain is to use GNU as and ld, and you don't
9692 # want to do that, then you should use the --without-gnu-as and
9693 # --without-gnu-ld options for the configure script. Similarly, if
9694 # the default is to use the included zlib and you don't want to do that,
9695 # you should use the --with-system-zlib option for the configure script.
9696
9697 if test x${use_gnu_as} = x &&
9698 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9699 with_gnu_as=yes
9700 extra_host_args="$extra_host_args --with-gnu-as"
9701 fi
9702
9703 if test x${use_gnu_ld} = x &&
9704 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9705 with_gnu_ld=yes
9706 extra_host_args="$extra_host_args --with-gnu-ld"
9707 fi
9708
9709 if test x${use_included_zlib} = x &&
9710 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9711 :
9712 else
9713 with_system_zlib=yes
9714 extra_host_args="$extra_host_args --with-system-zlib"
9715 fi
9716
9717 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9718 # can detect this case.
9719
9720 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9721 with_newlib=yes
9722 extra_host_args="$extra_host_args --with-newlib"
9723 fi
9724
9725 # Handle ${copy_dirs}
9726 set fnord ${copy_dirs}
9727 shift
9728 while test $# != 0 ; do
9729 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9730 :
9731 else
9732 echo Copying $1 to $2
9733
9734 # Use the install script to create the directory and all required
9735 # parent directories.
9736 if test -d $2 ; then
9737 :
9738 else
9739 echo >config.temp
9740 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9741 fi
9742
9743 # Copy the directory, assuming we have tar.
9744 # FIXME: Should we use B in the second tar? Not all systems support it.
9745 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9746
9747 # It is the responsibility of the user to correctly adjust all
9748 # symlinks. If somebody can figure out how to handle them correctly
9749 # here, feel free to add the code.
9750
9751 echo $1 > $2/COPIED
9752 fi
9753 shift; shift
9754 done
9755
9756 # Determine a target-dependent exec_prefix that the installed
9757 # gcc will search in. Keep this list sorted by triplet, with
9758 # the *-*-osname triplets last.
9759 md_exec_prefix=
9760 case "${target}" in
9761 i[34567]86-pc-msdosdjgpp*)
9762 md_exec_prefix=/dev/env/DJDIR/bin
9763 ;;
9764 *-*-hpux* | \
9765 *-*-nto-qnx* | \
9766 *-*-solaris2*)
9767 md_exec_prefix=/usr/ccs/bin
9768 ;;
9769 esac
9770
9771 extra_arflags_for_target=
9772 extra_nmflags_for_target=
9773 extra_ranlibflags_for_target=
9774 target_makefile_frag=/dev/null
9775 case "${target}" in
9776 spu-*-*)
9777 target_makefile_frag="config/mt-spu"
9778 ;;
9779 loongarch*-*linux* | loongarch*-*gnu*)
9780 target_makefile_frag="config/mt-loongarch-gnu"
9781 ;;
9782 loongarch*-*elf*)
9783 target_makefile_frag="config/mt-loongarch-elf"
9784 ;;
9785 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9786 target_makefile_frag="config/mt-sde"
9787 ;;
9788 mipsisa*-*-elfoabi*)
9789 target_makefile_frag="config/mt-mips-elfoabi"
9790 ;;
9791 mips*-*-*linux* | mips*-*-gnu*)
9792 target_makefile_frag="config/mt-mips-gnu"
9793 ;;
9794 nios2-*-elf*)
9795 target_makefile_frag="config/mt-nios2-elf"
9796 ;;
9797 *-*-linux-android*)
9798 target_makefile_frag="config/mt-android"
9799 ;;
9800 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9801 target_makefile_frag="config/mt-gnu"
9802 ;;
9803 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9804 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9805 # commands to handle both 32-bit and 64-bit objects. These flags are
9806 # harmless if we're using GNU nm or ar.
9807 extra_arflags_for_target=" -X32_64"
9808 extra_nmflags_for_target=" -B -X32_64"
9809 ;;
9810 esac
9811
9812 alphaieee_frag=/dev/null
9813 case $target in
9814 alpha*-*-*)
9815 # This just makes sure to use the -mieee option to build target libs.
9816 # This should probably be set individually by each library.
9817 alphaieee_frag="config/mt-alphaieee"
9818 ;;
9819 esac
9820
9821 # If --enable-target-optspace always use -Os instead of -O2 to build
9822 # the target libraries, similarly if it is not specified, use -Os
9823 # on selected platforms.
9824 ospace_frag=/dev/null
9825 case "${enable_target_optspace}:${target}" in
9826 yes:*)
9827 ospace_frag="config/mt-ospace"
9828 ;;
9829 :d30v-*)
9830 ospace_frag="config/mt-d30v"
9831 ;;
9832 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9833 ospace_frag="config/mt-ospace"
9834 ;;
9835 no:* | :*)
9836 ;;
9837 *)
9838 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9839 ;;
9840 esac
9841
9842 # Some systems (e.g., one of the i386-aix systems the gas testers are
9843 # using) don't handle "\$" correctly, so don't use it here.
9844 tooldir='${exec_prefix}'/${target_noncanonical}
9845 build_tooldir=${tooldir}
9846
9847 # Create a .gdbinit file which runs the one in srcdir
9848 # and tells GDB to look there for source files.
9849
9850 if test -r ${srcdir}/.gdbinit ; then
9851 case ${srcdir} in
9852 .) ;;
9853 *) cat > ./.gdbinit <<EOF
9854 # ${NO_EDIT}
9855 dir ${srcdir}
9856 dir .
9857 source ${srcdir}/.gdbinit
9858 EOF
9859 ;;
9860 esac
9861 fi
9862
9863 # Make sure that the compiler is able to generate an executable. If it
9864 # can't, we are probably in trouble. We don't care whether we can run the
9865 # executable--we might be using a cross compiler--we only care whether it
9866 # can be created. At this point the main configure script has set CC.
9867 we_are_ok=no
9868 echo "int main () { return 0; }" > conftest.c
9869 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9870 if test $? = 0 ; then
9871 if test -s conftest || test -s conftest.exe ; then
9872 we_are_ok=yes
9873 fi
9874 fi
9875 case $we_are_ok in
9876 no)
9877 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9878 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9879 rm -f conftest*
9880 exit 1
9881 ;;
9882 esac
9883 rm -f conftest*
9884
9885 # Decide which environment variable is used to find dynamic libraries.
9886 case "${host}" in
9887 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9888 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9889 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9890 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9891 esac
9892
9893 # On systems where the dynamic library environment variable is PATH,
9894 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9895 # built executables to PATH.
9896 if test "$RPATH_ENVVAR" = PATH; then
9897 GCC_SHLIB_SUBDIR=/shlib
9898 else
9899 GCC_SHLIB_SUBDIR=
9900 fi
9901
9902 # Adjust the toplevel makefile according to whether bootstrap was selected.
9903 case $enable_bootstrap in
9904 yes)
9905 bootstrap_suffix=bootstrap
9906 BUILD_CONFIG=bootstrap-debug
9907 ;;
9908 no)
9909 bootstrap_suffix=no-bootstrap
9910 BUILD_CONFIG=
9911 ;;
9912 esac
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9915 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9916
9917
9918 # Check whether --with-build-config was given.
9919 if test "${with_build_config+set}" = set; then :
9920 withval=$with_build_config; case $with_build_config in
9921 yes) with_build_config= ;;
9922 no) with_build_config= BUILD_CONFIG= ;;
9923 esac
9924 fi
9925
9926
9927 if test "x${with_build_config}" != x; then
9928 BUILD_CONFIG=$with_build_config
9929 else
9930 case $BUILD_CONFIG in
9931 bootstrap-debug)
9932 if echo "int f (void) { return 0; }" > conftest.c &&
9933 ${CC} -c conftest.c &&
9934 mv conftest.o conftest.o.g0 &&
9935 ${CC} -c -g conftest.c &&
9936 mv conftest.o conftest.o.g &&
9937 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9938 :
9939 else
9940 BUILD_CONFIG=
9941 fi
9942 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9943 ;;
9944 esac
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9947 $as_echo "$BUILD_CONFIG" >&6; }
9948
9949
9950 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9952 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9953 # Check whether --enable-vtable-verify was given.
9954 if test "${enable_vtable_verify+set}" = set; then :
9955 enableval=$enable_vtable_verify; case "$enableval" in
9956 yes) enable_vtable_verify=yes ;;
9957 no) enable_vtable_verify=no ;;
9958 *) enable_vtable_verify=no;;
9959 esac
9960 else
9961 enable_vtable_verify=no
9962 fi
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9965 $as_echo "$enable_vtable_verify" >&6; }
9966
9967 # Record target_configdirs and the configure arguments for target and
9968 # build configuration in Makefile.
9969 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9970 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9971 bootstrap_fixincludes=no
9972
9973 # If we are building libgomp, bootstrap it.
9974 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9975 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9976 fi
9977
9978 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9979 # or bootstrap-ubsan, bootstrap it.
9980 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9981 case "$BUILD_CONFIG" in
9982 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9983 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9984 bootstrap_fixincludes=yes
9985 ;;
9986 esac
9987 fi
9988
9989 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9990 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9991 test "$enable_vtable_verify" != no; then
9992 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9993 fi
9994
9995 # If we are building libatomic and the list of enabled languages includes the
9996 # D frontend, bootstrap it.
9997 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9998 case ,${enable_languages}, in
9999 *,d,*)
10000 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10001 ;;
10002 esac
10003 fi
10004
10005 # Determine whether gdb needs tk/tcl or not.
10006 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10007 # and in that case we want gdb to be built without tk. Ugh!
10008 # In fact I believe gdb is the *only* package directly dependent on tk,
10009 # so we should be able to put the 'maybe's in unconditionally and
10010 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10011 # 100% sure that that's safe though.
10012
10013 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10014 case "$enable_gdbtk" in
10015 no)
10016 GDB_TK="" ;;
10017 yes)
10018 GDB_TK="${gdb_tk}" ;;
10019 *)
10020 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10021 # distro. Eventually someone will fix this and move Insight, nee
10022 # gdbtk to a separate directory.
10023 if test -d ${srcdir}/gdb/gdbtk ; then
10024 GDB_TK="${gdb_tk}"
10025 else
10026 GDB_TK=""
10027 fi
10028 ;;
10029 esac
10030 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10031 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10032
10033 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10034 # else does, only include them if one of these is built. The Makefile
10035 # provides the ordering, so it's enough here to add to the list.
10036 case " ${configdirs} " in
10037 *\ gdb\ *)
10038 configdirs="${configdirs} gnulib gdbsupport"
10039 ;;
10040 *\ gdbserver\ *)
10041 configdirs="${configdirs} gnulib gdbsupport"
10042 ;;
10043 *\ sim\ *)
10044 configdirs="${configdirs} gnulib"
10045 ;;
10046 esac
10047
10048 # Strip out unwanted targets.
10049
10050 # While at that, we remove Makefiles if we were started for recursive
10051 # configuration, so that the top-level Makefile reconfigures them,
10052 # like we used to do when configure itself was recursive.
10053
10054 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10055 # but now we're fixing up the Makefile ourselves with the additional
10056 # commands passed to AC_CONFIG_FILES. Use separate variables
10057 # extrasub-{build,host,target} not because there is any reason to split
10058 # the substitutions up that way, but only to remain below the limit of
10059 # 99 commands in a script, for HP-UX sed.
10060
10061 # Do not nest @if/@endif or @unless/@endunless pairs, because
10062 # configure will not warn you at all.
10063
10064 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10065 yes:yes:*\ gold\ *:*,c++,*) ;;
10066 yes:yes:*\ gold\ *:*)
10067 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10068 ;;
10069 esac
10070
10071 extrasub_build=
10072 for module in ${build_configdirs} ; do
10073 if test -z "${no_recursion}" \
10074 && test -f ${build_subdir}/${module}/Makefile; then
10075 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10076 rm -f ${build_subdir}/${module}/Makefile
10077 fi
10078 extrasub_build="$extrasub_build
10079 /^@if build-$module\$/d
10080 /^@endif build-$module\$/d
10081 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10082 /^@if build-$module-$bootstrap_suffix\$/d
10083 /^@endif build-$module-$bootstrap_suffix\$/d
10084 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10085 done
10086 extrasub_host=
10087 for module in ${configdirs} ; do
10088 if test -z "${no_recursion}"; then
10089 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10090 if test -f ${file}; then
10091 echo 1>&2 "*** removing ${file} to force reconfigure"
10092 rm -f ${file}
10093 fi
10094 done
10095 fi
10096 case ${module},${bootstrap_fixincludes} in
10097 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10098 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10099 esac
10100 extrasub_host="$extrasub_host
10101 /^@if $module\$/d
10102 /^@endif $module\$/d
10103 /^@unless $module\$/,/^@endunless $module\$/d
10104 /^@if $module-$host_bootstrap_suffix\$/d
10105 /^@endif $module-$host_bootstrap_suffix\$/d
10106 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10107 done
10108 extrasub_target=
10109 for module in ${target_configdirs} ; do
10110 if test -z "${no_recursion}" \
10111 && test -f ${target_subdir}/${module}/Makefile; then
10112 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10113 rm -f ${target_subdir}/${module}/Makefile
10114 fi
10115
10116 # We only bootstrap target libraries listed in bootstrap_target_libs.
10117 case $bootstrap_target_libs in
10118 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10119 *) target_bootstrap_suffix=no-bootstrap ;;
10120 esac
10121
10122 extrasub_target="$extrasub_target
10123 /^@if target-$module\$/d
10124 /^@endif target-$module\$/d
10125 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10126 /^@if target-$module-$target_bootstrap_suffix\$/d
10127 /^@endif target-$module-$target_bootstrap_suffix\$/d
10128 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10129 done
10130
10131 # Do the final fixup along with target modules.
10132 extrasub_target="$extrasub_target
10133 /^@if /,/^@endif /d
10134 /^@unless /d
10135 /^@endunless /d"
10136
10137 if test "$enable_pgo_build" != "no"; then
10138 extrasub_build="$extrasub_build
10139 /^@if pgo-build\$/d
10140 /^@endif pgo-build\$/d"
10141 fi
10142
10143 # Create the serialization dependencies. This uses a temporary file.
10144
10145 # Check whether --enable-serial-configure was given.
10146 if test "${enable_serial_configure+set}" = set; then :
10147 enableval=$enable_serial_configure;
10148 fi
10149
10150
10151 case ${enable_serial_configure} in
10152 yes)
10153 enable_serial_build_configure=yes
10154 enable_serial_host_configure=yes
10155 enable_serial_target_configure=yes
10156 ;;
10157 esac
10158
10159 # These force 'configure's to be done one at a time, to avoid problems
10160 # with contention over a shared config.cache.
10161 rm -f serdep.tmp
10162 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10163 echo '# serdep.tmp' > serdep.tmp
10164 fi
10165 olditem=
10166 test "x${enable_serial_build_configure}" = xyes &&
10167 for item in ${build_configdirs} ; do
10168 case ${olditem} in
10169 "") ;;
10170 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10171 esac
10172 olditem=${item}
10173 done
10174 olditem=
10175 test "x${enable_serial_host_configure}" = xyes &&
10176 for item in ${configdirs} ; do
10177 case ${olditem} in
10178 "") ;;
10179 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10180 esac
10181 olditem=${item}
10182 done
10183 olditem=
10184 test "x${enable_serial_target_configure}" = xyes &&
10185 for item in ${target_configdirs} ; do
10186 case ${olditem} in
10187 "") ;;
10188 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10189 esac
10190 olditem=${item}
10191 done
10192 serialization_dependencies=serdep.tmp
10193
10194
10195 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10196 # target, nonopt, and variable assignments. These are the ones we
10197 # might not want to pass down to subconfigures. The exception being
10198 # --cache-file=/dev/null, which is used to turn off the use of cache
10199 # files altogether, and which should be passed on to subconfigures.
10200 # Also strip program-prefix, program-suffix, and program-transform-name,
10201 # so that we can pass down a consistent program-transform-name.
10202 hbaseargs=
10203 bbaseargs=
10204 tbaseargs=
10205 keep_next=no
10206 skip_next=no
10207 eval "set -- $ac_configure_args"
10208 for ac_arg
10209 do
10210 if test X"$skip_next" = X"yes"; then
10211 skip_next=no
10212 continue
10213 fi
10214 if test X"$keep_next" = X"yes"; then
10215 case $ac_arg in
10216 *\'*)
10217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10218 esac
10219 hbaseargs="$hbaseargs '$ac_arg'"
10220 bbaseargs="$bbaseargs '$ac_arg'"
10221 tbaseargs="$tbaseargs '$ac_arg'"
10222 keep_next=no
10223 continue
10224 fi
10225
10226 # Handle separated arguments. Based on the logic generated by
10227 # autoconf 2.59.
10228 case $ac_arg in
10229 *=* | --config-cache | -C | -disable-* | --disable-* \
10230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10232 | -with-* | --with-* | -without-* | --without-* | --x)
10233 separate_arg=no
10234 ;;
10235 -*)
10236 separate_arg=yes
10237 ;;
10238 *)
10239 separate_arg=no
10240 ;;
10241 esac
10242
10243 skip_targ=no
10244 skip_barg=no
10245 case $ac_arg in
10246
10247 --with-* | --without-*)
10248 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10249
10250 case $libopt in
10251 *[-_]include)
10252 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10253 ;;
10254 *[-_]lib)
10255 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10256 ;;
10257 *[-_]prefix)
10258 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10259 ;;
10260 *[-_]type)
10261 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10262 ;;
10263 *)
10264 lib=$libopt
10265 ;;
10266 esac
10267
10268
10269 case $lib in
10270 mpc | mpfr | gmp | isl)
10271 # If we're processing --with-$lib, --with-$lib-include or
10272 # --with-$lib-lib, for one of the libs above, and target is
10273 # different from host, don't pass the current argument to any
10274 # target library's configure.
10275 if test x$is_cross_compiler = xyes; then
10276 skip_targ=yes
10277 fi
10278 ;;
10279 libintl | libiconv)
10280 # We don't want libintl (and co.) in anything but the host arguments.
10281 skip_targ=yes
10282 skip_barg=yes
10283 ;;
10284 esac
10285 ;;
10286 esac
10287
10288 case "$ac_arg" in
10289 --cache-file=/dev/null | \
10290 -cache-file=/dev/null )
10291 # Handled here to avoid the test to skip args below.
10292 hbaseargs="$hbaseargs '$ac_arg'"
10293 bbaseargs="$bbaseargs '$ac_arg'"
10294 tbaseargs="$tbaseargs '$ac_arg'"
10295 # Assert: $separate_arg should always be no.
10296 keep_next=$separate_arg
10297 ;;
10298 --no*)
10299 continue
10300 ;;
10301 --c* | \
10302 --sr* | \
10303 --ho* | \
10304 --bu* | \
10305 --t* | \
10306 --program-* | \
10307 -cache_file* | \
10308 -srcdir* | \
10309 -host* | \
10310 -build* | \
10311 -target* | \
10312 -program-prefix* | \
10313 -program-suffix* | \
10314 -program-transform-name* )
10315 skip_next=$separate_arg
10316 continue
10317 ;;
10318 -*)
10319 # An option. Add it.
10320 case $ac_arg in
10321 *\'*)
10322 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10323 esac
10324 hbaseargs="$hbaseargs '$ac_arg'"
10325 if test X"$skip_barg" = Xno; then
10326 bbaseargs="$bbaseargs '$ac_arg'"
10327 fi
10328 if test X"$skip_targ" = Xno; then
10329 tbaseargs="$tbaseargs '$ac_arg'"
10330 fi
10331 keep_next=$separate_arg
10332 ;;
10333 *)
10334 # Either a variable assignment, or a nonopt (triplet). Don't
10335 # pass it down; let the Makefile handle this.
10336 continue
10337 ;;
10338 esac
10339 done
10340 # Remove the initial space we just introduced and, as these will be
10341 # expanded by make, quote '$'.
10342 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10343 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10344
10345 # Add in --program-transform-name, after --program-prefix and
10346 # --program-suffix have been applied to it. Autoconf has already
10347 # doubled dollar signs and backslashes in program_transform_name; we want
10348 # the backslashes un-doubled, and then the entire thing wrapped in single
10349 # quotes, because this will be expanded first by make and then by the shell.
10350 # Also, because we want to override the logic in subdir configure scripts to
10351 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10352 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10353 ${program_transform_name}
10354 EOF_SED
10355 gcc_transform_name=`cat conftestsed.out`
10356 rm -f conftestsed.out
10357 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10358 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10359 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10360 if test "$silent" = yes; then
10361 bbaseargs="$bbaseargs --silent"
10362 hbaseargs="$hbaseargs --silent"
10363 tbaseargs="$tbaseargs --silent"
10364 fi
10365
10366 bbaseargs="$bbaseargs --disable-option-checking"
10367 hbaseargs="$hbaseargs --disable-option-checking"
10368 tbaseargs="$tbaseargs --disable-option-checking"
10369
10370 if test "$enable_year2038" = no; then
10371 baseargs="$baseargs --disable-year2038"
10372 tbaseargs="$tbaseargs --disable-year2038"
10373 fi
10374
10375 # Record and document user additions to sub configure arguments.
10376
10377
10378
10379
10380 # For the build-side libraries, we just need to pretend we're native,
10381 # and not use the same cache file. Multilibs are neither needed nor
10382 # desired. We can't even use the same cache file for all build-side
10383 # libraries, as they're compiled differently; some with C, some with
10384 # C++ or with different feature-enabling options.
10385 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10386
10387 # For host modules, accept cache file option, or specification as blank.
10388 case "${cache_file}" in
10389 "") # empty
10390 cache_file_option="" ;;
10391 /* | [A-Za-z]:[\\/]* ) # absolute path
10392 cache_file_option="--cache-file=${cache_file}" ;;
10393 *) # relative path
10394 cache_file_option="--cache-file=../${cache_file}" ;;
10395 esac
10396
10397 # Host dirs don't like to share a cache file either, horribly enough.
10398 # This seems to be due to autoconf 2.5x stupidity.
10399 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10400
10401 target_configargs="$target_configargs ${tbaseargs}"
10402
10403 # Passing a --with-cross-host argument lets the target libraries know
10404 # whether they are being built with a cross-compiler or being built
10405 # native. However, it would be better to use other mechanisms to make the
10406 # sorts of decisions they want to make on this basis. Please consider
10407 # this option to be deprecated. FIXME.
10408 if test x${is_cross_compiler} = xyes ; then
10409 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10410 fi
10411
10412 # Special user-friendly check for native x86_64-linux build, if
10413 # multilib is not explicitly enabled.
10414 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10415 x86_64-*linux*:yes:$build:$build:)
10416 # Make sure we have a development environment that handles 32-bit
10417 dev64=no
10418 echo "int main () { return 0; }" > conftest.c
10419 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10420 if test $? = 0 ; then
10421 if test -s conftest || test -s conftest.exe ; then
10422 dev64=yes
10423 fi
10424 fi
10425 rm -f conftest*
10426 if test x${dev64} != xyes ; then
10427 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
10428 fi
10429 ;;
10430 esac
10431
10432 # Default to --enable-multilib.
10433 if test x${enable_multilib} = x ; then
10434 target_configargs="--enable-multilib ${target_configargs}"
10435 fi
10436
10437 # Pass --with-newlib if appropriate. Note that target_configdirs has
10438 # changed from the earlier setting of with_newlib.
10439 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10440 target_configargs="--with-newlib ${target_configargs}"
10441 fi
10442
10443 # Different target subdirs use different values of certain variables
10444 # (notably CXX). Worse, multilibs use *lots* of different values.
10445 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10446 # it doesn't automatically accept command-line overrides of them.
10447 # This means it's not safe for target subdirs to share a cache file,
10448 # which is disgusting, but there you have it. Hopefully this can be
10449 # fixed in future. It's still worthwhile to use a cache file for each
10450 # directory. I think.
10451
10452 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10453 # We need to pass --target, as newer autoconf's requires consistency
10454 # for target_alias and gcc doesn't manage it consistently.
10455 target_configargs="--cache-file=./config.cache ${target_configargs}"
10456
10457 FLAGS_FOR_TARGET=
10458 case " $target_configdirs " in
10459 *" newlib "*)
10460 case " $target_configargs " in
10461 *" --with-newlib "*)
10462 case "$target" in
10463 *-cygwin*)
10464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10465 ;;
10466 esac
10467
10468 # If we're not building GCC, don't discard standard headers.
10469 if test -d ${srcdir}/gcc; then
10470 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10471
10472 if test "${build}" != "${host}"; then
10473 # On Canadian crosses, CC_FOR_TARGET will have already been set
10474 # by `configure', so we won't have an opportunity to add -Bgcc/
10475 # to it. This is right: we don't want to search that directory
10476 # for binaries, but we want the header files in there, so add
10477 # them explicitly.
10478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10479
10480 # Someone might think of using the pre-installed headers on
10481 # Canadian crosses, in case the installed compiler is not fully
10482 # compatible with the compiler being built. In this case, it
10483 # would be better to flag an error than risking having
10484 # incompatible object files being constructed. We can't
10485 # guarantee that an error will be flagged, but let's hope the
10486 # compiler will do it, when presented with incompatible header
10487 # files.
10488 fi
10489 fi
10490
10491 case "${target}-${is_cross_compiler}" in
10492 i[3456789]86-*-linux*-no)
10493 # Here host == target, so we don't need to build gcc,
10494 # so we don't want to discard standard headers.
10495 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10496 ;;
10497 *)
10498 # If we're building newlib, use its generic headers last, but search
10499 # for any libc-related directories first (so make it the last -B
10500 # switch).
10501 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10502
10503 # If we're building libgloss, find the startup file, simulator library
10504 # and linker script.
10505 case " $target_configdirs " in
10506 *" libgloss "*)
10507 # Look for startup file, simulator library and maybe linker script.
10508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10509 # Look for libnosys.a in case the target needs it.
10510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10511 # Most targets have the linker script in the source directory.
10512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10513 ;;
10514 esac
10515 ;;
10516 esac
10517 ;;
10518 esac
10519 ;;
10520 esac
10521
10522 case "$target" in
10523 x86_64-*mingw* | *-w64-mingw*)
10524 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10525 # however, use a symlink named 'mingw' in ${prefix} .
10526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10527 ;;
10528 *-mingw*)
10529 # MinGW can't be handled as Cygwin above since it does not use newlib.
10530 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'
10531 ;;
10532 esac
10533
10534 # Allow the user to override the flags for
10535 # our build compiler if desired.
10536 if test x"${build}" = x"${host}" ; then
10537 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10538 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10539 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10540 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10541 fi
10542
10543 # On Canadian crosses, we'll be searching the right directories for
10544 # the previously-installed cross compiler, so don't bother to add
10545 # flags for directories within the install tree of the compiler
10546 # being built; programs in there won't even run.
10547 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10548 # Search for pre-installed headers if nothing else fits.
10549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10550 fi
10551
10552 if test "x${use_gnu_ld}" = x &&
10553 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10554 # Arrange for us to find uninstalled linker scripts.
10555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10556 fi
10557
10558 # Search for other target-specific linker scripts and such.
10559 case "${target}" in
10560 mep*)
10561 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10562 ;;
10563 # The VxWorks support for shared libraries is getting in
10564 # incrementally. Make sure it doesn't get activated implicitly:
10565 *vxworks*)
10566 if test "${enable_shared-unset}" = unset ; then
10567 enable_shared=no
10568 # So the build of libraries knows ...
10569 target_configargs="${target_configargs} --disable-shared"
10570 # So gcc knows ...
10571 host_configargs="${host_configargs} --disable-shared"
10572 fi
10573 ;;
10574 esac
10575
10576 # Makefile fragments.
10577 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10578 do
10579 eval fragval=\$$frag
10580 if test $fragval != /dev/null; then
10581 eval $frag=${srcdir}/$fragval
10582 fi
10583 done
10584
10585
10586
10587
10588
10589 # Miscellanea: directories, flags, etc.
10590
10591
10592
10593
10594
10595
10596
10597
10598 # Build module lists & subconfigure args.
10599
10600
10601
10602 # Host module lists & subconfigure args.
10603
10604
10605
10606
10607 # Target module lists & subconfigure args.
10608
10609
10610
10611 # Build tools.
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632 # Generate default definitions for YACC, M4, LEX and other programs that run
10633 # on the build machine. These are used if the Makefile can't locate these
10634 # programs in objdir.
10635 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10636
10637 for ac_prog in 'bison -y' byacc yacc
10638 do
10639 # Extract the first word of "$ac_prog", so it can be a program name with args.
10640 set dummy $ac_prog; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if ${ac_cv_prog_YACC+:} false; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 if test -n "$YACC"; then
10647 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_YACC="$ac_prog"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660 done
10661 done
10662 IFS=$as_save_IFS
10663
10664 fi
10665 fi
10666 YACC=$ac_cv_prog_YACC
10667 if test -n "$YACC"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10669 $as_echo "$YACC" >&6; }
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675
10676 test -n "$YACC" && break
10677 done
10678 test -n "$YACC" || YACC="$MISSING bison -y"
10679
10680 case " $build_configdirs " in
10681 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10682 esac
10683
10684 for ac_prog in bison
10685 do
10686 # Extract the first word of "$ac_prog", so it can be a program name with args.
10687 set dummy $ac_prog; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_prog_BISON+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 if test -n "$BISON"; then
10694 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10695 else
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10698 do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_BISON="$ac_prog"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10706 fi
10707 done
10708 done
10709 IFS=$as_save_IFS
10710
10711 fi
10712 fi
10713 BISON=$ac_cv_prog_BISON
10714 if test -n "$BISON"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10716 $as_echo "$BISON" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721
10722
10723 test -n "$BISON" && break
10724 done
10725 test -n "$BISON" || BISON="$MISSING bison"
10726
10727 case " $build_configdirs " in
10728 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10729 esac
10730
10731 for ac_prog in gm4 gnum4 m4
10732 do
10733 # Extract the first word of "$ac_prog", so it can be a program name with args.
10734 set dummy $ac_prog; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if ${ac_cv_prog_M4+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test -n "$M4"; then
10741 ac_cv_prog_M4="$M4" # Let the user override the test.
10742 else
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750 ac_cv_prog_M4="$ac_prog"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754 done
10755 done
10756 IFS=$as_save_IFS
10757
10758 fi
10759 fi
10760 M4=$ac_cv_prog_M4
10761 if test -n "$M4"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10763 $as_echo "$M4" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768
10769
10770 test -n "$M4" && break
10771 done
10772 test -n "$M4" || M4="$MISSING m4"
10773
10774 case " $build_configdirs " in
10775 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10776 esac
10777
10778 for ac_prog in flex lex
10779 do
10780 # Extract the first word of "$ac_prog", so it can be a program name with args.
10781 set dummy $ac_prog; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_prog_LEX+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 if test -n "$LEX"; then
10788 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10789 else
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_LEX="$ac_prog"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10800 fi
10801 done
10802 done
10803 IFS=$as_save_IFS
10804
10805 fi
10806 fi
10807 LEX=$ac_cv_prog_LEX
10808 if test -n "$LEX"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10810 $as_echo "$LEX" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815
10816
10817 test -n "$LEX" && break
10818 done
10819 test -n "$LEX" || LEX="$MISSING flex"
10820
10821 case " $build_configdirs " in
10822 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10823 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10824 esac
10825
10826 for ac_prog in flex
10827 do
10828 # Extract the first word of "$ac_prog", so it can be a program name with args.
10829 set dummy $ac_prog; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if ${ac_cv_prog_FLEX+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 if test -n "$FLEX"; then
10836 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10837 else
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10840 do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_prog_FLEX="$ac_prog"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849 done
10850 done
10851 IFS=$as_save_IFS
10852
10853 fi
10854 fi
10855 FLEX=$ac_cv_prog_FLEX
10856 if test -n "$FLEX"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10858 $as_echo "$FLEX" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863
10864
10865 test -n "$FLEX" && break
10866 done
10867 test -n "$FLEX" || FLEX="$MISSING flex"
10868
10869 case " $build_configdirs " in
10870 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10871 esac
10872
10873 for ac_prog in makeinfo
10874 do
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy $ac_prog; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_prog_MAKEINFO+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 if test -n "$MAKEINFO"; then
10883 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10887 do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_MAKEINFO="$ac_prog"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896 done
10897 done
10898 IFS=$as_save_IFS
10899
10900 fi
10901 fi
10902 MAKEINFO=$ac_cv_prog_MAKEINFO
10903 if test -n "$MAKEINFO"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10905 $as_echo "$MAKEINFO" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 fi
10910
10911
10912 test -n "$MAKEINFO" && break
10913 done
10914 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10915
10916 case " $build_configdirs " in
10917 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10918 *)
10919
10920 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10921 # higher, else we use the "missing" dummy.
10922 if ${MAKEINFO} --version \
10923 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10924 :
10925 else
10926 MAKEINFO="$MISSING makeinfo"
10927 fi
10928 ;;
10929
10930 esac
10931
10932 # FIXME: expect and dejagnu may become build tools?
10933
10934 for ac_prog in expect
10935 do
10936 # Extract the first word of "$ac_prog", so it can be a program name with args.
10937 set dummy $ac_prog; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_prog_EXPECT+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 if test -n "$EXPECT"; then
10944 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10945 else
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_prog_EXPECT="$ac_prog"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10956 fi
10957 done
10958 done
10959 IFS=$as_save_IFS
10960
10961 fi
10962 fi
10963 EXPECT=$ac_cv_prog_EXPECT
10964 if test -n "$EXPECT"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10966 $as_echo "$EXPECT" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 fi
10971
10972
10973 test -n "$EXPECT" && break
10974 done
10975 test -n "$EXPECT" || EXPECT="expect"
10976
10977 case " $configdirs " in
10978 *" expect "*)
10979 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10980 ;;
10981 esac
10982
10983 for ac_prog in runtest
10984 do
10985 # Extract the first word of "$ac_prog", so it can be a program name with args.
10986 set dummy $ac_prog; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_prog_RUNTEST+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if test -n "$RUNTEST"; then
10993 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_prog_RUNTEST="$ac_prog"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 fi
11011 fi
11012 RUNTEST=$ac_cv_prog_RUNTEST
11013 if test -n "$RUNTEST"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11015 $as_echo "$RUNTEST" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11019 fi
11020
11021
11022 test -n "$RUNTEST" && break
11023 done
11024 test -n "$RUNTEST" || RUNTEST="runtest"
11025
11026 case " $configdirs " in
11027 *" dejagnu "*)
11028 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11029 ;;
11030 esac
11031
11032
11033 # Host tools.
11034 ncn_tool_prefix=
11035 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11036 ncn_target_tool_prefix=
11037 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11038
11039
11040
11041 if test -n "$AR"; then
11042 ac_cv_prog_AR=$AR
11043 elif test -n "$ac_cv_prog_AR"; then
11044 AR=$ac_cv_prog_AR
11045 fi
11046
11047 if test -n "$ac_cv_prog_AR"; then
11048 for ncn_progname in ar; do
11049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11050 set dummy ${ncn_progname}; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_prog_AR+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 if test -n "$AR"; then
11057 ac_cv_prog_AR="$AR" # Let the user override the test.
11058 else
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11061 do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_prog_AR="${ncn_progname}"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11069 fi
11070 done
11071 done
11072 IFS=$as_save_IFS
11073
11074 fi
11075 fi
11076 AR=$ac_cv_prog_AR
11077 if test -n "$AR"; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11079 $as_echo "$AR" >&6; }
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 fi
11084
11085
11086 done
11087 fi
11088
11089 for ncn_progname in ar; do
11090 if test -n "$ncn_tool_prefix"; then
11091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if ${ac_cv_prog_AR+:} false; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 if test -n "$AR"; then
11099 ac_cv_prog_AR="$AR" # Let the user override the test.
11100 else
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11103 do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11111 fi
11112 done
11113 done
11114 IFS=$as_save_IFS
11115
11116 fi
11117 fi
11118 AR=$ac_cv_prog_AR
11119 if test -n "$AR"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11121 $as_echo "$AR" >&6; }
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 fi
11126
11127
11128 fi
11129 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131 set dummy ${ncn_progname}; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if ${ac_cv_prog_AR+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136 else
11137 if test -n "$AR"; then
11138 ac_cv_prog_AR="$AR" # Let the user override the test.
11139 else
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_AR="${ncn_progname}"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151 done
11152 done
11153 IFS=$as_save_IFS
11154
11155 fi
11156 fi
11157 AR=$ac_cv_prog_AR
11158 if test -n "$AR"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11160 $as_echo "$AR" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165
11166
11167 fi
11168 test -n "$ac_cv_prog_AR" && break
11169 done
11170
11171 if test -z "$ac_cv_prog_AR" ; then
11172 set dummy ar
11173 if test $build = $host ; then
11174 AR="$2"
11175 else
11176 AR="${ncn_tool_prefix}$2"
11177 fi
11178 fi
11179
11180
11181
11182 if test -n "$AS"; then
11183 ac_cv_prog_AS=$AS
11184 elif test -n "$ac_cv_prog_AS"; then
11185 AS=$ac_cv_prog_AS
11186 fi
11187
11188 if test -n "$ac_cv_prog_AS"; then
11189 for ncn_progname in as; do
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_prog_AS+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test -n "$AS"; then
11198 ac_cv_prog_AS="$AS" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_prog_AS="${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211 done
11212 done
11213 IFS=$as_save_IFS
11214
11215 fi
11216 fi
11217 AS=$ac_cv_prog_AS
11218 if test -n "$AS"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11220 $as_echo "$AS" >&6; }
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224 fi
11225
11226
11227 done
11228 fi
11229
11230 for ncn_progname in as; do
11231 if test -n "$ncn_tool_prefix"; then
11232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_prog_AS+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 if test -n "$AS"; then
11240 ac_cv_prog_AS="$AS" # Let the user override the test.
11241 else
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257 fi
11258 fi
11259 AS=$ac_cv_prog_AS
11260 if test -n "$AS"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11262 $as_echo "$AS" >&6; }
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 fi
11267
11268
11269 fi
11270 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11272 set dummy ${ncn_progname}; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274 $as_echo_n "checking for $ac_word... " >&6; }
11275 if ${ac_cv_prog_AS+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 if test -n "$AS"; then
11279 ac_cv_prog_AS="$AS" # Let the user override the test.
11280 else
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11283 do
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_AS="${ncn_progname}"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11291 fi
11292 done
11293 done
11294 IFS=$as_save_IFS
11295
11296 fi
11297 fi
11298 AS=$ac_cv_prog_AS
11299 if test -n "$AS"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11301 $as_echo "$AS" >&6; }
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 fi
11306
11307
11308 fi
11309 test -n "$ac_cv_prog_AS" && break
11310 done
11311
11312 if test -z "$ac_cv_prog_AS" ; then
11313 set dummy as
11314 if test $build = $host ; then
11315 AS="$2"
11316 else
11317 AS="${ncn_tool_prefix}$2"
11318 fi
11319 fi
11320
11321
11322
11323 if test -n "$DLLTOOL"; then
11324 ac_cv_prog_DLLTOOL=$DLLTOOL
11325 elif test -n "$ac_cv_prog_DLLTOOL"; then
11326 DLLTOOL=$ac_cv_prog_DLLTOOL
11327 fi
11328
11329 if test -n "$ac_cv_prog_DLLTOOL"; then
11330 for ncn_progname in dlltool; do
11331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11332 set dummy ${ncn_progname}; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if ${ac_cv_prog_DLLTOOL+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 if test -n "$DLLTOOL"; then
11339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11340 else
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11343 do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11348 ac_cv_prog_DLLTOOL="${ncn_progname}"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 break 2
11351 fi
11352 done
11353 done
11354 IFS=$as_save_IFS
11355
11356 fi
11357 fi
11358 DLLTOOL=$ac_cv_prog_DLLTOOL
11359 if test -n "$DLLTOOL"; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11361 $as_echo "$DLLTOOL" >&6; }
11362 else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366
11367
11368 done
11369 fi
11370
11371 for ncn_progname in dlltool; do
11372 if test -n "$ncn_tool_prefix"; then
11373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11374 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_DLLTOOL+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 if test -n "$DLLTOOL"; then
11381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394 done
11395 done
11396 IFS=$as_save_IFS
11397
11398 fi
11399 fi
11400 DLLTOOL=$ac_cv_prog_DLLTOOL
11401 if test -n "$DLLTOOL"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11403 $as_echo "$DLLTOOL" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410 fi
11411 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11413 set dummy ${ncn_progname}; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if ${ac_cv_prog_DLLTOOL+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 if test -n "$DLLTOOL"; then
11420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_DLLTOOL="${ncn_progname}"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433 done
11434 done
11435 IFS=$as_save_IFS
11436
11437 fi
11438 fi
11439 DLLTOOL=$ac_cv_prog_DLLTOOL
11440 if test -n "$DLLTOOL"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11442 $as_echo "$DLLTOOL" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446 fi
11447
11448
11449 fi
11450 test -n "$ac_cv_prog_DLLTOOL" && break
11451 done
11452
11453 if test -z "$ac_cv_prog_DLLTOOL" ; then
11454 set dummy dlltool
11455 if test $build = $host ; then
11456 DLLTOOL="$2"
11457 else
11458 DLLTOOL="${ncn_tool_prefix}$2"
11459 fi
11460 fi
11461
11462
11463
11464 if test -n "$DSYMUTIL"; then
11465 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11466 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11467 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11468 fi
11469
11470 if test -n "$ac_cv_prog_DSYMUTIL"; then
11471 for ncn_progname in dsymutil; do
11472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11473 set dummy ${ncn_progname}; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 if test -n "$DSYMUTIL"; then
11480 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11481 else
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11484 do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11492 fi
11493 done
11494 done
11495 IFS=$as_save_IFS
11496
11497 fi
11498 fi
11499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11500 if test -n "$DSYMUTIL"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11502 $as_echo "$DSYMUTIL" >&6; }
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11506 fi
11507
11508
11509 done
11510 fi
11511
11512 for ncn_progname in dsymutil; do
11513 if test -n "$ncn_tool_prefix"; then
11514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11515 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test -n "$DSYMUTIL"; then
11522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535 done
11536 done
11537 IFS=$as_save_IFS
11538
11539 fi
11540 fi
11541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11542 if test -n "$DSYMUTIL"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11544 $as_echo "$DSYMUTIL" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549
11550
11551 fi
11552 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11554 set dummy ${ncn_progname}; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 if test -n "$DSYMUTIL"; then
11561 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11562 else
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11565 do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574 done
11575 done
11576 IFS=$as_save_IFS
11577
11578 fi
11579 fi
11580 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11581 if test -n "$DSYMUTIL"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11583 $as_echo "$DSYMUTIL" >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11587 fi
11588
11589
11590 fi
11591 test -n "$ac_cv_prog_DSYMUTIL" && break
11592 done
11593
11594 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11595 set dummy dsymutil
11596 if test $build = $host ; then
11597 DSYMUTIL="$2"
11598 else
11599 DSYMUTIL="${ncn_tool_prefix}$2"
11600 fi
11601 fi
11602
11603
11604
11605 if test -n "$LD"; then
11606 ac_cv_prog_LD=$LD
11607 elif test -n "$ac_cv_prog_LD"; then
11608 LD=$ac_cv_prog_LD
11609 fi
11610
11611 if test -n "$ac_cv_prog_LD"; then
11612 for ncn_progname in ld; do
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614 set dummy ${ncn_progname}; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_prog_LD+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 if test -n "$LD"; then
11621 ac_cv_prog_LD="$LD" # Let the user override the test.
11622 else
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11625 do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_prog_LD="${ncn_progname}"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634 done
11635 done
11636 IFS=$as_save_IFS
11637
11638 fi
11639 fi
11640 LD=$ac_cv_prog_LD
11641 if test -n "$LD"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11643 $as_echo "$LD" >&6; }
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11647 fi
11648
11649
11650 done
11651 fi
11652
11653 for ncn_progname in ld; do
11654 if test -n "$ncn_tool_prefix"; then
11655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if ${ac_cv_prog_LD+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 if test -n "$LD"; then
11663 ac_cv_prog_LD="$LD" # Let the user override the test.
11664 else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11667 do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11675 fi
11676 done
11677 done
11678 IFS=$as_save_IFS
11679
11680 fi
11681 fi
11682 LD=$ac_cv_prog_LD
11683 if test -n "$LD"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11685 $as_echo "$LD" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 fi
11690
11691
11692 fi
11693 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_LD+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$LD"; then
11702 ac_cv_prog_LD="$LD" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_LD="${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11714 fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719 fi
11720 fi
11721 LD=$ac_cv_prog_LD
11722 if test -n "$LD"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11724 $as_echo "$LD" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731 fi
11732 test -n "$ac_cv_prog_LD" && break
11733 done
11734
11735 if test -z "$ac_cv_prog_LD" ; then
11736 set dummy ld
11737 if test $build = $host ; then
11738 LD="$2"
11739 else
11740 LD="${ncn_tool_prefix}$2"
11741 fi
11742 fi
11743
11744
11745
11746 if test -n "$LIPO"; then
11747 ac_cv_prog_LIPO=$LIPO
11748 elif test -n "$ac_cv_prog_LIPO"; then
11749 LIPO=$ac_cv_prog_LIPO
11750 fi
11751
11752 if test -n "$ac_cv_prog_LIPO"; then
11753 for ncn_progname in lipo; do
11754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11755 set dummy ${ncn_progname}; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if ${ac_cv_prog_LIPO+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 if test -n "$LIPO"; then
11762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_LIPO="${ncn_progname}"
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775 done
11776 done
11777 IFS=$as_save_IFS
11778
11779 fi
11780 fi
11781 LIPO=$ac_cv_prog_LIPO
11782 if test -n "$LIPO"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11784 $as_echo "$LIPO" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11788 fi
11789
11790
11791 done
11792 fi
11793
11794 for ncn_progname in lipo; do
11795 if test -n "$ncn_tool_prefix"; then
11796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_prog_LIPO+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 if test -n "$LIPO"; then
11804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11805 else
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11808 do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11816 fi
11817 done
11818 done
11819 IFS=$as_save_IFS
11820
11821 fi
11822 fi
11823 LIPO=$ac_cv_prog_LIPO
11824 if test -n "$LIPO"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11826 $as_echo "$LIPO" >&6; }
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831
11832
11833 fi
11834 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11836 set dummy ${ncn_progname}; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_prog_LIPO+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 if test -n "$LIPO"; then
11843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11844 else
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_prog_LIPO="${ncn_progname}"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856 done
11857 done
11858 IFS=$as_save_IFS
11859
11860 fi
11861 fi
11862 LIPO=$ac_cv_prog_LIPO
11863 if test -n "$LIPO"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11865 $as_echo "$LIPO" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870
11871
11872 fi
11873 test -n "$ac_cv_prog_LIPO" && break
11874 done
11875
11876 if test -z "$ac_cv_prog_LIPO" ; then
11877 set dummy lipo
11878 if test $build = $host ; then
11879 LIPO="$2"
11880 else
11881 LIPO="${ncn_tool_prefix}$2"
11882 fi
11883 fi
11884
11885
11886
11887 if test -n "$NM"; then
11888 ac_cv_prog_NM=$NM
11889 elif test -n "$ac_cv_prog_NM"; then
11890 NM=$ac_cv_prog_NM
11891 fi
11892
11893 if test -n "$ac_cv_prog_NM"; then
11894 for ncn_progname in nm; do
11895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11896 set dummy ${ncn_progname}; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_NM+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$NM"; then
11903 ac_cv_prog_NM="$NM" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_NM="${ncn_progname}"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916 done
11917 done
11918 IFS=$as_save_IFS
11919
11920 fi
11921 fi
11922 NM=$ac_cv_prog_NM
11923 if test -n "$NM"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11925 $as_echo "$NM" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 fi
11930
11931
11932 done
11933 fi
11934
11935 for ncn_progname in nm; do
11936 if test -n "$ncn_tool_prefix"; then
11937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_prog_NM+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 if test -n "$NM"; then
11945 ac_cv_prog_NM="$NM" # Let the user override the test.
11946 else
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11949 do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958 done
11959 done
11960 IFS=$as_save_IFS
11961
11962 fi
11963 fi
11964 NM=$ac_cv_prog_NM
11965 if test -n "$NM"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11967 $as_echo "$NM" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971 fi
11972
11973
11974 fi
11975 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11977 set dummy ${ncn_progname}; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_prog_NM+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 if test -n "$NM"; then
11984 ac_cv_prog_NM="$NM" # Let the user override the test.
11985 else
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11988 do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993 ac_cv_prog_NM="${ncn_progname}"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 break 2
11996 fi
11997 done
11998 done
11999 IFS=$as_save_IFS
12000
12001 fi
12002 fi
12003 NM=$ac_cv_prog_NM
12004 if test -n "$NM"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12006 $as_echo "$NM" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011
12012
12013 fi
12014 test -n "$ac_cv_prog_NM" && break
12015 done
12016
12017 if test -z "$ac_cv_prog_NM" ; then
12018 set dummy nm
12019 if test $build = $host ; then
12020 NM="$2"
12021 else
12022 NM="${ncn_tool_prefix}$2"
12023 fi
12024 fi
12025
12026
12027
12028 if test -n "$RANLIB"; then
12029 ac_cv_prog_RANLIB=$RANLIB
12030 elif test -n "$ac_cv_prog_RANLIB"; then
12031 RANLIB=$ac_cv_prog_RANLIB
12032 fi
12033
12034 if test -n "$ac_cv_prog_RANLIB"; then
12035 for ncn_progname in ranlib; do
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037 set dummy ${ncn_progname}; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if ${ac_cv_prog_RANLIB+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 if test -n "$RANLIB"; then
12044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12045 else
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12048 do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053 ac_cv_prog_RANLIB="${ncn_progname}"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 break 2
12056 fi
12057 done
12058 done
12059 IFS=$as_save_IFS
12060
12061 fi
12062 fi
12063 RANLIB=$ac_cv_prog_RANLIB
12064 if test -n "$RANLIB"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12066 $as_echo "$RANLIB" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12070 fi
12071
12072
12073 done
12074 fi
12075
12076 for ncn_progname in ranlib; do
12077 if test -n "$ncn_tool_prefix"; then
12078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if ${ac_cv_prog_RANLIB+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 if test -n "$RANLIB"; then
12086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099 done
12100 done
12101 IFS=$as_save_IFS
12102
12103 fi
12104 fi
12105 RANLIB=$ac_cv_prog_RANLIB
12106 if test -n "$RANLIB"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12108 $as_echo "$RANLIB" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 fi
12113
12114
12115 fi
12116 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118 set dummy ${ncn_progname}; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_prog_RANLIB+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test -n "$RANLIB"; then
12125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_RANLIB="${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138 done
12139 done
12140 IFS=$as_save_IFS
12141
12142 fi
12143 fi
12144 RANLIB=$ac_cv_prog_RANLIB
12145 if test -n "$RANLIB"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12147 $as_echo "$RANLIB" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154 fi
12155 test -n "$ac_cv_prog_RANLIB" && break
12156 done
12157
12158 if test -z "$ac_cv_prog_RANLIB" ; then
12159 RANLIB="true"
12160 fi
12161
12162
12163
12164 if test -n "$STRIP"; then
12165 ac_cv_prog_STRIP=$STRIP
12166 elif test -n "$ac_cv_prog_STRIP"; then
12167 STRIP=$ac_cv_prog_STRIP
12168 fi
12169
12170 if test -n "$ac_cv_prog_STRIP"; then
12171 for ncn_progname in strip; do
12172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12173 set dummy ${ncn_progname}; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if ${ac_cv_prog_STRIP+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 if test -n "$STRIP"; then
12180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12181 else
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12184 do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_prog_STRIP="${ncn_progname}"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193 done
12194 done
12195 IFS=$as_save_IFS
12196
12197 fi
12198 fi
12199 STRIP=$ac_cv_prog_STRIP
12200 if test -n "$STRIP"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12202 $as_echo "$STRIP" >&6; }
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206 fi
12207
12208
12209 done
12210 fi
12211
12212 for ncn_progname in strip; do
12213 if test -n "$ncn_tool_prefix"; then
12214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_prog_STRIP+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -n "$STRIP"; then
12222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12234 fi
12235 done
12236 done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 STRIP=$ac_cv_prog_STRIP
12242 if test -n "$STRIP"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12244 $as_echo "$STRIP" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12254 set dummy ${ncn_progname}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_STRIP+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 if test -n "$STRIP"; then
12261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12262 else
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_STRIP="${ncn_progname}"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12273 fi
12274 done
12275 done
12276 IFS=$as_save_IFS
12277
12278 fi
12279 fi
12280 STRIP=$ac_cv_prog_STRIP
12281 if test -n "$STRIP"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12283 $as_echo "$STRIP" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290 fi
12291 test -n "$ac_cv_prog_STRIP" && break
12292 done
12293
12294 if test -z "$ac_cv_prog_STRIP" ; then
12295 STRIP="true"
12296 fi
12297
12298
12299
12300 if test -n "$WINDRES"; then
12301 ac_cv_prog_WINDRES=$WINDRES
12302 elif test -n "$ac_cv_prog_WINDRES"; then
12303 WINDRES=$ac_cv_prog_WINDRES
12304 fi
12305
12306 if test -n "$ac_cv_prog_WINDRES"; then
12307 for ncn_progname in windres; do
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12309 set dummy ${ncn_progname}; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_prog_WINDRES+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 if test -n "$WINDRES"; then
12316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_WINDRES="${ncn_progname}"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329 done
12330 done
12331 IFS=$as_save_IFS
12332
12333 fi
12334 fi
12335 WINDRES=$ac_cv_prog_WINDRES
12336 if test -n "$WINDRES"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12338 $as_echo "$WINDRES" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343
12344
12345 done
12346 fi
12347
12348 for ncn_progname in windres; do
12349 if test -n "$ncn_tool_prefix"; then
12350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if ${ac_cv_prog_WINDRES+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 if test -n "$WINDRES"; then
12358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12362 do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12370 fi
12371 done
12372 done
12373 IFS=$as_save_IFS
12374
12375 fi
12376 fi
12377 WINDRES=$ac_cv_prog_WINDRES
12378 if test -n "$WINDRES"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12380 $as_echo "$WINDRES" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385
12386
12387 fi
12388 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_WINDRES+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$WINDRES"; then
12397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_WINDRES="${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12409 fi
12410 done
12411 done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 WINDRES=$ac_cv_prog_WINDRES
12417 if test -n "$WINDRES"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12419 $as_echo "$WINDRES" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425
12426 fi
12427 test -n "$ac_cv_prog_WINDRES" && break
12428 done
12429
12430 if test -z "$ac_cv_prog_WINDRES" ; then
12431 set dummy windres
12432 if test $build = $host ; then
12433 WINDRES="$2"
12434 else
12435 WINDRES="${ncn_tool_prefix}$2"
12436 fi
12437 fi
12438
12439
12440
12441 if test -n "$WINDMC"; then
12442 ac_cv_prog_WINDMC=$WINDMC
12443 elif test -n "$ac_cv_prog_WINDMC"; then
12444 WINDMC=$ac_cv_prog_WINDMC
12445 fi
12446
12447 if test -n "$ac_cv_prog_WINDMC"; then
12448 for ncn_progname in windmc; do
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450 set dummy ${ncn_progname}; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_prog_WINDMC+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 if test -n "$WINDMC"; then
12457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12466 ac_cv_prog_WINDMC="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 WINDMC=$ac_cv_prog_WINDMC
12477 if test -n "$WINDMC"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12479 $as_echo "$WINDMC" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485
12486 done
12487 fi
12488
12489 for ncn_progname in windmc; do
12490 if test -n "$ncn_tool_prefix"; then
12491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_prog_WINDMC+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 if test -n "$WINDMC"; then
12499 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12500 else
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12503 do
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12511 fi
12512 done
12513 done
12514 IFS=$as_save_IFS
12515
12516 fi
12517 fi
12518 WINDMC=$ac_cv_prog_WINDMC
12519 if test -n "$WINDMC"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12521 $as_echo "$WINDMC" >&6; }
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12525 fi
12526
12527
12528 fi
12529 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531 set dummy ${ncn_progname}; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533 $as_echo_n "checking for $ac_word... " >&6; }
12534 if ${ac_cv_prog_WINDMC+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 if test -n "$WINDMC"; then
12538 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12539 else
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_WINDMC="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12550 fi
12551 done
12552 done
12553 IFS=$as_save_IFS
12554
12555 fi
12556 fi
12557 WINDMC=$ac_cv_prog_WINDMC
12558 if test -n "$WINDMC"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12560 $as_echo "$WINDMC" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 fi
12565
12566
12567 fi
12568 test -n "$ac_cv_prog_WINDMC" && break
12569 done
12570
12571 if test -z "$ac_cv_prog_WINDMC" ; then
12572 set dummy windmc
12573 if test $build = $host ; then
12574 WINDMC="$2"
12575 else
12576 WINDMC="${ncn_tool_prefix}$2"
12577 fi
12578 fi
12579
12580
12581
12582 if test -n "$OBJCOPY"; then
12583 ac_cv_prog_OBJCOPY=$OBJCOPY
12584 elif test -n "$ac_cv_prog_OBJCOPY"; then
12585 OBJCOPY=$ac_cv_prog_OBJCOPY
12586 fi
12587
12588 if test -n "$ac_cv_prog_OBJCOPY"; then
12589 for ncn_progname in objcopy; do
12590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12591 set dummy ${ncn_progname}; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if ${ac_cv_prog_OBJCOPY+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 if test -n "$OBJCOPY"; then
12598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_prog_OBJCOPY="${ncn_progname}"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611 done
12612 done
12613 IFS=$as_save_IFS
12614
12615 fi
12616 fi
12617 OBJCOPY=$ac_cv_prog_OBJCOPY
12618 if test -n "$OBJCOPY"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12620 $as_echo "$OBJCOPY" >&6; }
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624 fi
12625
12626
12627 done
12628 fi
12629
12630 for ncn_progname in objcopy; do
12631 if test -n "$ncn_tool_prefix"; then
12632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_prog_OBJCOPY+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 if test -n "$OBJCOPY"; then
12640 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653 done
12654 done
12655 IFS=$as_save_IFS
12656
12657 fi
12658 fi
12659 OBJCOPY=$ac_cv_prog_OBJCOPY
12660 if test -n "$OBJCOPY"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12662 $as_echo "$OBJCOPY" >&6; }
12663 else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667
12668
12669 fi
12670 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_prog_OBJCOPY+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 if test -n "$OBJCOPY"; then
12679 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12680 else
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_OBJCOPY="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692 done
12693 done
12694 IFS=$as_save_IFS
12695
12696 fi
12697 fi
12698 OBJCOPY=$ac_cv_prog_OBJCOPY
12699 if test -n "$OBJCOPY"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12701 $as_echo "$OBJCOPY" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705 fi
12706
12707
12708 fi
12709 test -n "$ac_cv_prog_OBJCOPY" && break
12710 done
12711
12712 if test -z "$ac_cv_prog_OBJCOPY" ; then
12713 set dummy objcopy
12714 if test $build = $host ; then
12715 OBJCOPY="$2"
12716 else
12717 OBJCOPY="${ncn_tool_prefix}$2"
12718 fi
12719 fi
12720
12721
12722
12723 if test -n "$OBJDUMP"; then
12724 ac_cv_prog_OBJDUMP=$OBJDUMP
12725 elif test -n "$ac_cv_prog_OBJDUMP"; then
12726 OBJDUMP=$ac_cv_prog_OBJDUMP
12727 fi
12728
12729 if test -n "$ac_cv_prog_OBJDUMP"; then
12730 for ncn_progname in objdump; do
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12732 set dummy ${ncn_progname}; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if ${ac_cv_prog_OBJDUMP+:} false; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 if test -n "$OBJDUMP"; then
12739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748 ac_cv_prog_OBJDUMP="${ncn_progname}"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752 done
12753 done
12754 IFS=$as_save_IFS
12755
12756 fi
12757 fi
12758 OBJDUMP=$ac_cv_prog_OBJDUMP
12759 if test -n "$OBJDUMP"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12761 $as_echo "$OBJDUMP" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766
12767
12768 done
12769 fi
12770
12771 for ncn_progname in objdump; do
12772 if test -n "$ncn_tool_prefix"; then
12773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_prog_OBJDUMP+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$OBJDUMP"; then
12781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794 done
12795 done
12796 IFS=$as_save_IFS
12797
12798 fi
12799 fi
12800 OBJDUMP=$ac_cv_prog_OBJDUMP
12801 if test -n "$OBJDUMP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12803 $as_echo "$OBJDUMP" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809
12810 fi
12811 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12813 set dummy ${ncn_progname}; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if ${ac_cv_prog_OBJDUMP+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 if test -n "$OBJDUMP"; then
12820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12821 else
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12824 do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12829 ac_cv_prog_OBJDUMP="${ncn_progname}"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12832 fi
12833 done
12834 done
12835 IFS=$as_save_IFS
12836
12837 fi
12838 fi
12839 OBJDUMP=$ac_cv_prog_OBJDUMP
12840 if test -n "$OBJDUMP"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12842 $as_echo "$OBJDUMP" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 fi
12847
12848
12849 fi
12850 test -n "$ac_cv_prog_OBJDUMP" && break
12851 done
12852
12853 if test -z "$ac_cv_prog_OBJDUMP" ; then
12854 set dummy objdump
12855 if test $build = $host ; then
12856 OBJDUMP="$2"
12857 else
12858 OBJDUMP="${ncn_tool_prefix}$2"
12859 fi
12860 fi
12861
12862
12863
12864 if test -n "$OTOOL"; then
12865 ac_cv_prog_OTOOL=$OTOOL
12866 elif test -n "$ac_cv_prog_OTOOL"; then
12867 OTOOL=$ac_cv_prog_OTOOL
12868 fi
12869
12870 if test -n "$ac_cv_prog_OTOOL"; then
12871 for ncn_progname in otool; do
12872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12873 set dummy ${ncn_progname}; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if ${ac_cv_prog_OTOOL+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$OTOOL"; then
12880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12889 ac_cv_prog_OTOOL="${ncn_progname}"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 OTOOL=$ac_cv_prog_OTOOL
12900 if test -n "$OTOOL"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12902 $as_echo "$OTOOL" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908
12909 done
12910 fi
12911
12912 for ncn_progname in otool; do
12913 if test -n "$ncn_tool_prefix"; then
12914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12915 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12917 $as_echo_n "checking for $ac_word... " >&6; }
12918 if ${ac_cv_prog_OTOOL+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 if test -n "$OTOOL"; then
12922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12923 else
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12931 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12934 fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 OTOOL=$ac_cv_prog_OTOOL
12942 if test -n "$OTOOL"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12944 $as_echo "$OTOOL" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949
12950
12951 fi
12952 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12954 set dummy ${ncn_progname}; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_prog_OTOOL+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 if test -n "$OTOOL"; then
12961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12965 do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_OTOOL="${ncn_progname}"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974 done
12975 done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 OTOOL=$ac_cv_prog_OTOOL
12981 if test -n "$OTOOL"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12983 $as_echo "$OTOOL" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988
12989
12990 fi
12991 test -n "$ac_cv_prog_OTOOL" && break
12992 done
12993
12994 if test -z "$ac_cv_prog_OTOOL" ; then
12995 set dummy otool
12996 if test $build = $host ; then
12997 OTOOL="$2"
12998 else
12999 OTOOL="${ncn_tool_prefix}$2"
13000 fi
13001 fi
13002
13003
13004
13005 if test -n "$READELF"; then
13006 ac_cv_prog_READELF=$READELF
13007 elif test -n "$ac_cv_prog_READELF"; then
13008 READELF=$ac_cv_prog_READELF
13009 fi
13010
13011 if test -n "$ac_cv_prog_READELF"; then
13012 for ncn_progname in readelf; do
13013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13014 set dummy ${ncn_progname}; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016 $as_echo_n "checking for $ac_word... " >&6; }
13017 if ${ac_cv_prog_READELF+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 if test -n "$READELF"; then
13021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_prog_READELF="${ncn_progname}"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13033 fi
13034 done
13035 done
13036 IFS=$as_save_IFS
13037
13038 fi
13039 fi
13040 READELF=$ac_cv_prog_READELF
13041 if test -n "$READELF"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13043 $as_echo "$READELF" >&6; }
13044 else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048
13049
13050 done
13051 fi
13052
13053 for ncn_progname in readelf; do
13054 if test -n "$ncn_tool_prefix"; then
13055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_prog_READELF+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$READELF"; then
13063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13075 fi
13076 done
13077 done
13078 IFS=$as_save_IFS
13079
13080 fi
13081 fi
13082 READELF=$ac_cv_prog_READELF
13083 if test -n "$READELF"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13085 $as_echo "$READELF" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 fi
13090
13091
13092 fi
13093 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13095 set dummy ${ncn_progname}; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_prog_READELF+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -n "$READELF"; then
13102 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111 ac_cv_prog_READELF="${ncn_progname}"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13114 fi
13115 done
13116 done
13117 IFS=$as_save_IFS
13118
13119 fi
13120 fi
13121 READELF=$ac_cv_prog_READELF
13122 if test -n "$READELF"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13124 $as_echo "$READELF" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130
13131 fi
13132 test -n "$ac_cv_prog_READELF" && break
13133 done
13134
13135 if test -z "$ac_cv_prog_READELF" ; then
13136 set dummy readelf
13137 if test $build = $host ; then
13138 READELF="$2"
13139 else
13140 READELF="${ncn_tool_prefix}$2"
13141 fi
13142 fi
13143
13144
13145
13146
13147
13148
13149
13150 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13154 $as_echo_n "checking for -plugin option... " >&6; }
13155
13156 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13157 plugin_option=
13158 for plugin in $plugin_names; do
13159 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13160 if test x$plugin_so = x$plugin; then
13161 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13162 fi
13163 if test x$plugin_so != x$plugin; then
13164 plugin_option="--plugin $plugin_so"
13165 break
13166 fi
13167 done
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_prog_AR+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$AR"; then
13177 ac_cv_prog_AR="$AR" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186 ac_cv_prog_AR="${ac_tool_prefix}ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 AR=$ac_cv_prog_AR
13197 if test -n "$AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13199 $as_echo "$AR" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206 fi
13207 if test -z "$ac_cv_prog_AR"; then
13208 ac_ct_AR=$AR
13209 # Extract the first word of "ar", so it can be a program name with args.
13210 set dummy ar; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$ac_ct_AR"; then
13217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13226 ac_cv_prog_ac_ct_AR="ar"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230 done
13231 done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13237 if test -n "$ac_ct_AR"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13239 $as_echo "$ac_ct_AR" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245 if test "x$ac_ct_AR" = x; then
13246 AR=""
13247 else
13248 case $cross_compiling:$ac_tool_warned in
13249 yes:)
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252 ac_tool_warned=yes ;;
13253 esac
13254 AR=$ac_ct_AR
13255 fi
13256 else
13257 AR="$ac_cv_prog_AR"
13258 fi
13259
13260 if test "${AR}" = "" ; then
13261 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13262 fi
13263 touch conftest.c
13264 ${AR} $plugin_option rc conftest.a conftest.c
13265 if test "$?" != 0; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13267 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13268 plugin_option=
13269 fi
13270 rm -f conftest.*
13271 if test -n "$plugin_option"; then
13272 PLUGIN_OPTION="$plugin_option"
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13274 $as_echo "$plugin_option" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
13279
13280 AR_PLUGIN_OPTION=
13281 RANLIB_PLUGIN_OPTION=
13282 if test -n "$PLUGIN_OPTION"; then
13283 if $AR --help 2>&1 | grep -q "\--plugin"; then
13284 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13285 fi
13286 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13287 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13288 fi
13289 fi
13290
13291
13292
13293 # Target tools.
13294
13295 # Check whether --with-build-time-tools was given.
13296 if test "${with_build_time_tools+set}" = set; then :
13297 withval=$with_build_time_tools; case x"$withval" in
13298 x/*) ;;
13299 *)
13300 with_build_time_tools=
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13302 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13303 ;;
13304 esac
13305 else
13306 with_build_time_tools=
13307 fi
13308
13309
13310
13311
13312 if test -n "$CC_FOR_TARGET"; then
13313 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13314 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13315 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13316 fi
13317
13318 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13319 for ncn_progname in cc gcc; do
13320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13321 set dummy ${ncn_progname}; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 if test -n "$CC_FOR_TARGET"; then
13328 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13337 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13340 fi
13341 done
13342 done
13343 IFS=$as_save_IFS
13344
13345 fi
13346 fi
13347 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13348 if test -n "$CC_FOR_TARGET"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13350 $as_echo "$CC_FOR_TARGET" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355
13356
13357 done
13358 fi
13359
13360 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13361 for ncn_progname in cc gcc; do
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13363 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13364 if test -x $with_build_time_tools/${ncn_progname}; then
13365 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13367 $as_echo "yes" >&6; }
13368 break
13369 else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373 done
13374 fi
13375
13376 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13377 for ncn_progname in cc gcc; do
13378 if test -n "$ncn_target_tool_prefix"; then
13379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382 $as_echo_n "checking for $ac_word... " >&6; }
13383 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 if test -n "$CC_FOR_TARGET"; then
13387 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13388 else
13389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390 for as_dir in $PATH
13391 do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400 done
13401 done
13402 IFS=$as_save_IFS
13403
13404 fi
13405 fi
13406 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13407 if test -n "$CC_FOR_TARGET"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13409 $as_echo "$CC_FOR_TARGET" >&6; }
13410 else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414
13415
13416 fi
13417 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13419 set dummy ${ncn_progname}; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test -n "$CC_FOR_TARGET"; then
13426 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 break 2
13438 fi
13439 done
13440 done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13446 if test -n "$CC_FOR_TARGET"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13448 $as_echo "$CC_FOR_TARGET" >&6; }
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455 fi
13456 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13457 done
13458 fi
13459
13460 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13461 set dummy cc gcc
13462 if test $build = $target ; then
13463 CC_FOR_TARGET="$2"
13464 else
13465 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13466 fi
13467 else
13468 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13469 fi
13470
13471
13472
13473 if test -n "$CXX_FOR_TARGET"; then
13474 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13475 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13476 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13477 fi
13478
13479 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13480 for ncn_progname in c++ g++ cxx gxx; do
13481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13482 set dummy ${ncn_progname}; ac_word=$2
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484 $as_echo_n "checking for $ac_word... " >&6; }
13485 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 if test -n "$CXX_FOR_TARGET"; then
13489 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13490 else
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13493 do
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13501 fi
13502 done
13503 done
13504 IFS=$as_save_IFS
13505
13506 fi
13507 fi
13508 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13509 if test -n "$CXX_FOR_TARGET"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13511 $as_echo "$CXX_FOR_TARGET" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515 fi
13516
13517
13518 done
13519 fi
13520
13521 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13522 for ncn_progname in c++ g++ cxx gxx; do
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13525 if test -x $with_build_time_tools/${ncn_progname}; then
13526 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13528 $as_echo "yes" >&6; }
13529 break
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13533 fi
13534 done
13535 fi
13536
13537 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13538 for ncn_progname in c++ g++ cxx gxx; do
13539 if test -n "$ncn_target_tool_prefix"; then
13540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13543 $as_echo_n "checking for $ac_word... " >&6; }
13544 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 if test -n "$CXX_FOR_TARGET"; then
13548 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13549 else
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13552 do
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13560 fi
13561 done
13562 done
13563 IFS=$as_save_IFS
13564
13565 fi
13566 fi
13567 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13568 if test -n "$CXX_FOR_TARGET"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13570 $as_echo "$CXX_FOR_TARGET" >&6; }
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575
13576
13577 fi
13578 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13580 set dummy ${ncn_progname}; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 if test -n "$CXX_FOR_TARGET"; then
13587 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13588 else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13599 fi
13600 done
13601 done
13602 IFS=$as_save_IFS
13603
13604 fi
13605 fi
13606 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13607 if test -n "$CXX_FOR_TARGET"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13609 $as_echo "$CXX_FOR_TARGET" >&6; }
13610 else
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13613 fi
13614
13615
13616 fi
13617 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13618 done
13619 fi
13620
13621 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13622 set dummy c++ g++ cxx gxx
13623 if test $build = $target ; then
13624 CXX_FOR_TARGET="$2"
13625 else
13626 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13627 fi
13628 else
13629 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13630 fi
13631
13632
13633
13634 if test -n "$GCC_FOR_TARGET"; then
13635 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13636 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13637 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13638 fi
13639
13640 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13641 for ncn_progname in gcc; do
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643 set dummy ${ncn_progname}; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$GCC_FOR_TARGET"; then
13650 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13654 do
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13662 fi
13663 done
13664 done
13665 IFS=$as_save_IFS
13666
13667 fi
13668 fi
13669 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13670 if test -n "$GCC_FOR_TARGET"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13672 $as_echo "$GCC_FOR_TARGET" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677
13678
13679 done
13680 fi
13681
13682 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13683 for ncn_progname in gcc; do
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13685 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13686 if test -x $with_build_time_tools/${ncn_progname}; then
13687 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13689 $as_echo "yes" >&6; }
13690 break
13691 else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 fi
13695 done
13696 fi
13697
13698 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13699 for ncn_progname in gcc; do
13700 if test -n "$ncn_target_tool_prefix"; then
13701 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13702 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704 $as_echo_n "checking for $ac_word... " >&6; }
13705 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 if test -n "$GCC_FOR_TARGET"; then
13709 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13710 else
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13713 do
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13721 fi
13722 done
13723 done
13724 IFS=$as_save_IFS
13725
13726 fi
13727 fi
13728 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13729 if test -n "$GCC_FOR_TARGET"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13731 $as_echo "$GCC_FOR_TARGET" >&6; }
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735 fi
13736
13737
13738 fi
13739 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13741 set dummy ${ncn_progname}; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 if test -n "$GCC_FOR_TARGET"; then
13748 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13749 else
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13752 do
13753 IFS=$as_save_IFS
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13757 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13759 break 2
13760 fi
13761 done
13762 done
13763 IFS=$as_save_IFS
13764
13765 fi
13766 fi
13767 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13768 if test -n "$GCC_FOR_TARGET"; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13770 $as_echo "$GCC_FOR_TARGET" >&6; }
13771 else
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 fi
13775
13776
13777 fi
13778 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13779 done
13780 fi
13781
13782 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13783 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13784 else
13785 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13786 fi
13787
13788
13789
13790 if test -n "$GFORTRAN_FOR_TARGET"; then
13791 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13792 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13793 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13794 fi
13795
13796 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13797 for ncn_progname in gfortran; do
13798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13799 set dummy ${ncn_progname}; ac_word=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 if test -n "$GFORTRAN_FOR_TARGET"; then
13806 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 break 2
13818 fi
13819 done
13820 done
13821 IFS=$as_save_IFS
13822
13823 fi
13824 fi
13825 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13826 if test -n "$GFORTRAN_FOR_TARGET"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13828 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833
13834
13835 done
13836 fi
13837
13838 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13839 for ncn_progname in gfortran; do
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13841 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13842 if test -x $with_build_time_tools/${ncn_progname}; then
13843 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845 $as_echo "yes" >&6; }
13846 break
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851 done
13852 fi
13853
13854 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13855 for ncn_progname in gfortran; do
13856 if test -n "$ncn_target_tool_prefix"; then
13857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860 $as_echo_n "checking for $ac_word... " >&6; }
13861 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 if test -n "$GFORTRAN_FOR_TARGET"; then
13865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13869 do
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13877 fi
13878 done
13879 done
13880 IFS=$as_save_IFS
13881
13882 fi
13883 fi
13884 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13885 if test -n "$GFORTRAN_FOR_TARGET"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13887 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891 fi
13892
13893
13894 fi
13895 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897 set dummy ${ncn_progname}; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 if test -n "$GFORTRAN_FOR_TARGET"; then
13904 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13924 if test -n "$GFORTRAN_FOR_TARGET"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13926 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13930 fi
13931
13932
13933 fi
13934 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13935 done
13936 fi
13937
13938 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13939 set dummy gfortran
13940 if test $build = $target ; then
13941 GFORTRAN_FOR_TARGET="$2"
13942 else
13943 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13944 fi
13945 else
13946 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13947 fi
13948
13949
13950
13951 if test -n "$GOC_FOR_TARGET"; then
13952 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13953 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13954 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13955 fi
13956
13957 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13958 for ncn_progname in gccgo; do
13959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13960 set dummy ${ncn_progname}; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962 $as_echo_n "checking for $ac_word... " >&6; }
13963 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 if test -n "$GOC_FOR_TARGET"; then
13967 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13968 else
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13971 do
13972 IFS=$as_save_IFS
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978 break 2
13979 fi
13980 done
13981 done
13982 IFS=$as_save_IFS
13983
13984 fi
13985 fi
13986 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13987 if test -n "$GOC_FOR_TARGET"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13989 $as_echo "$GOC_FOR_TARGET" >&6; }
13990 else
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13993 fi
13994
13995
13996 done
13997 fi
13998
13999 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14000 for ncn_progname in gccgo; do
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14002 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14003 if test -x $with_build_time_tools/${ncn_progname}; then
14004 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14006 $as_echo "yes" >&6; }
14007 break
14008 else
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 $as_echo "no" >&6; }
14011 fi
14012 done
14013 fi
14014
14015 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14016 for ncn_progname in gccgo; do
14017 if test -n "$ncn_target_tool_prefix"; then
14018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14021 $as_echo_n "checking for $ac_word... " >&6; }
14022 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 if test -n "$GOC_FOR_TARGET"; then
14026 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14027 else
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14030 do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14035 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039 done
14040 done
14041 IFS=$as_save_IFS
14042
14043 fi
14044 fi
14045 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14046 if test -n "$GOC_FOR_TARGET"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14048 $as_echo "$GOC_FOR_TARGET" >&6; }
14049 else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052 fi
14053
14054
14055 fi
14056 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14058 set dummy ${ncn_progname}; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 if test -n "$GOC_FOR_TARGET"; then
14065 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14069 do
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14077 fi
14078 done
14079 done
14080 IFS=$as_save_IFS
14081
14082 fi
14083 fi
14084 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14085 if test -n "$GOC_FOR_TARGET"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14087 $as_echo "$GOC_FOR_TARGET" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14091 fi
14092
14093
14094 fi
14095 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14096 done
14097 fi
14098
14099 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14100 set dummy gccgo
14101 if test $build = $target ; then
14102 GOC_FOR_TARGET="$2"
14103 else
14104 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14105 fi
14106 else
14107 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14108 fi
14109
14110
14111
14112 if test -n "$GDC_FOR_TARGET"; then
14113 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14114 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14115 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14116 fi
14117
14118 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14119 for ncn_progname in gdc; do
14120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14121 set dummy ${ncn_progname}; ac_word=$2
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14123 $as_echo_n "checking for $ac_word... " >&6; }
14124 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14125 $as_echo_n "(cached) " >&6
14126 else
14127 if test -n "$GDC_FOR_TARGET"; then
14128 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14129 else
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14132 do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
14136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14137 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 break 2
14140 fi
14141 done
14142 done
14143 IFS=$as_save_IFS
14144
14145 fi
14146 fi
14147 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14148 if test -n "$GDC_FOR_TARGET"; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14150 $as_echo "$GDC_FOR_TARGET" >&6; }
14151 else
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14154 fi
14155
14156
14157 done
14158 fi
14159
14160 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14161 for ncn_progname in gdc; do
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14163 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14164 if test -x $with_build_time_tools/${ncn_progname}; then
14165 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14167 $as_echo "yes" >&6; }
14168 break
14169 else
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14172 fi
14173 done
14174 fi
14175
14176 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14177 for ncn_progname in gdc; do
14178 if test -n "$ncn_target_tool_prefix"; then
14179 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14180 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14182 $as_echo_n "checking for $ac_word... " >&6; }
14183 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 if test -n "$GDC_FOR_TARGET"; then
14187 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14188 else
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14191 do
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14196 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14199 fi
14200 done
14201 done
14202 IFS=$as_save_IFS
14203
14204 fi
14205 fi
14206 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14207 if test -n "$GDC_FOR_TARGET"; then
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14209 $as_echo "$GDC_FOR_TARGET" >&6; }
14210 else
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 $as_echo "no" >&6; }
14213 fi
14214
14215
14216 fi
14217 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14219 set dummy ${ncn_progname}; ac_word=$2
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14221 $as_echo_n "checking for $ac_word... " >&6; }
14222 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 if test -n "$GDC_FOR_TARGET"; then
14226 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14227 else
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14230 do
14231 IFS=$as_save_IFS
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 break 2
14238 fi
14239 done
14240 done
14241 IFS=$as_save_IFS
14242
14243 fi
14244 fi
14245 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14246 if test -n "$GDC_FOR_TARGET"; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14248 $as_echo "$GDC_FOR_TARGET" >&6; }
14249 else
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 $as_echo "no" >&6; }
14252 fi
14253
14254
14255 fi
14256 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14257 done
14258 fi
14259
14260 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14261 set dummy gdc
14262 if test $build = $target ; then
14263 GDC_FOR_TARGET="$2"
14264 else
14265 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14266 fi
14267 else
14268 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14269 fi
14270
14271
14272
14273 if test -n "$GM2_FOR_TARGET"; then
14274 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14275 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14276 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14277 fi
14278
14279 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14280 for ncn_progname in gm2; do
14281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14282 set dummy ${ncn_progname}; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$GM2_FOR_TARGET"; then
14289 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14293 do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302 done
14303 done
14304 IFS=$as_save_IFS
14305
14306 fi
14307 fi
14308 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14309 if test -n "$GM2_FOR_TARGET"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14311 $as_echo "$GM2_FOR_TARGET" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 fi
14316
14317
14318 done
14319 fi
14320
14321 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14322 for ncn_progname in gm2; do
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14324 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14325 if test -x $with_build_time_tools/${ncn_progname}; then
14326 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328 $as_echo "yes" >&6; }
14329 break
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333 fi
14334 done
14335 fi
14336
14337 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14338 for ncn_progname in gm2; do
14339 if test -n "$ncn_target_tool_prefix"; then
14340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14341 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343 $as_echo_n "checking for $ac_word... " >&6; }
14344 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 if test -n "$GM2_FOR_TARGET"; then
14348 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14357 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14360 fi
14361 done
14362 done
14363 IFS=$as_save_IFS
14364
14365 fi
14366 fi
14367 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14368 if test -n "$GM2_FOR_TARGET"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14370 $as_echo "$GM2_FOR_TARGET" >&6; }
14371 else
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 $as_echo "no" >&6; }
14374 fi
14375
14376
14377 fi
14378 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14380 set dummy ${ncn_progname}; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 if test -n "$GM2_FOR_TARGET"; then
14387 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14388 else
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14391 do
14392 IFS=$as_save_IFS
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398 break 2
14399 fi
14400 done
14401 done
14402 IFS=$as_save_IFS
14403
14404 fi
14405 fi
14406 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14407 if test -n "$GM2_FOR_TARGET"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14409 $as_echo "$GM2_FOR_TARGET" >&6; }
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14413 fi
14414
14415
14416 fi
14417 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14418 done
14419 fi
14420
14421 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14422 set dummy gm2
14423 if test $build = $target ; then
14424 GM2_FOR_TARGET="$2"
14425 else
14426 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14427 fi
14428 else
14429 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14430 fi
14431
14432
14433
14434 cat > conftest.c << \EOF
14435 #ifdef __GNUC__
14436 gcc_yay;
14437 #endif
14438 EOF
14439 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14440 have_gcc_for_target=yes
14441 else
14442 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14443 have_gcc_for_target=no
14444 fi
14445 rm conftest.c
14446
14447
14448
14449
14450 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14451 if test -n "$with_build_time_tools"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14453 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14454 if test -x $with_build_time_tools/ar; then
14455 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14456 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14458 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462 fi
14463 elif test $build != $host && test $have_gcc_for_target = yes; then
14464 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14465 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14466 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14467 fi
14468 fi
14469 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14470 # Extract the first word of "ar", so it can be a program name with args.
14471 set dummy ar; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 case $AR_FOR_TARGET in
14478 [\\/]* | ?:[\\/]*)
14479 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14480 ;;
14481 *)
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $gcc_cv_tool_dirs
14484 do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14489 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 break 2
14492 fi
14493 done
14494 done
14495 IFS=$as_save_IFS
14496
14497 ;;
14498 esac
14499 fi
14500 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14501 if test -n "$AR_FOR_TARGET"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14503 $as_echo "$AR_FOR_TARGET" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507 fi
14508
14509
14510 fi
14511 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14512
14513
14514 if test -n "$AR_FOR_TARGET"; then
14515 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14516 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14517 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14518 fi
14519
14520 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14521 for ncn_progname in ar; do
14522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14523 set dummy ${ncn_progname}; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 $as_echo_n "checking for $ac_word... " >&6; }
14526 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 if test -n "$AR_FOR_TARGET"; then
14530 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14531 else
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14534 do
14535 IFS=$as_save_IFS
14536 test -z "$as_dir" && as_dir=.
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14539 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14541 break 2
14542 fi
14543 done
14544 done
14545 IFS=$as_save_IFS
14546
14547 fi
14548 fi
14549 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14550 if test -n "$AR_FOR_TARGET"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14552 $as_echo "$AR_FOR_TARGET" >&6; }
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 fi
14557
14558
14559 done
14560 fi
14561
14562 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14563 for ncn_progname in ar; do
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14566 if test -x $with_build_time_tools/${ncn_progname}; then
14567 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14569 $as_echo "yes" >&6; }
14570 break
14571 else
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14574 fi
14575 done
14576 fi
14577
14578 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14579 for ncn_progname in ar; do
14580 if test -n "$ncn_target_tool_prefix"; then
14581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 $as_echo_n "checking for $ac_word... " >&6; }
14585 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 if test -n "$AR_FOR_TARGET"; then
14589 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14593 do
14594 IFS=$as_save_IFS
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14598 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 break 2
14601 fi
14602 done
14603 done
14604 IFS=$as_save_IFS
14605
14606 fi
14607 fi
14608 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14609 if test -n "$AR_FOR_TARGET"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14611 $as_echo "$AR_FOR_TARGET" >&6; }
14612 else
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14615 fi
14616
14617
14618 fi
14619 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14621 set dummy ${ncn_progname}; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$AR_FOR_TARGET"; then
14628 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14632 do
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14640 fi
14641 done
14642 done
14643 IFS=$as_save_IFS
14644
14645 fi
14646 fi
14647 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14648 if test -n "$AR_FOR_TARGET"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14650 $as_echo "$AR_FOR_TARGET" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655
14656
14657 fi
14658 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14659 done
14660 fi
14661
14662 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14663 set dummy ar
14664 if test $build = $target ; then
14665 AR_FOR_TARGET="$2"
14666 else
14667 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14668 fi
14669 else
14670 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14671 fi
14672
14673 else
14674 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14675 fi
14676
14677
14678
14679
14680 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14681 if test -n "$with_build_time_tools"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14683 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14684 if test -x $with_build_time_tools/as; then
14685 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14686 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14688 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693 elif test $build != $host && test $have_gcc_for_target = yes; then
14694 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14695 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14696 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14697 fi
14698 fi
14699 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14700 # Extract the first word of "as", so it can be a program name with args.
14701 set dummy as; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 case $AS_FOR_TARGET in
14708 [\\/]* | ?:[\\/]*)
14709 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14710 ;;
14711 *)
14712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $gcc_cv_tool_dirs
14714 do
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
14717 for ac_exec_ext in '' $ac_executable_extensions; do
14718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14719 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14721 break 2
14722 fi
14723 done
14724 done
14725 IFS=$as_save_IFS
14726
14727 ;;
14728 esac
14729 fi
14730 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14731 if test -n "$AS_FOR_TARGET"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14733 $as_echo "$AS_FOR_TARGET" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14737 fi
14738
14739
14740 fi
14741 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14742
14743
14744 if test -n "$AS_FOR_TARGET"; then
14745 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14746 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14747 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14748 fi
14749
14750 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14751 for ncn_progname in as; do
14752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14753 set dummy ${ncn_progname}; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if test -n "$AS_FOR_TARGET"; then
14760 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14761 else
14762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763 for as_dir in $PATH
14764 do
14765 IFS=$as_save_IFS
14766 test -z "$as_dir" && as_dir=.
14767 for ac_exec_ext in '' $ac_executable_extensions; do
14768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14769 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14771 break 2
14772 fi
14773 done
14774 done
14775 IFS=$as_save_IFS
14776
14777 fi
14778 fi
14779 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14780 if test -n "$AS_FOR_TARGET"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14782 $as_echo "$AS_FOR_TARGET" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14786 fi
14787
14788
14789 done
14790 fi
14791
14792 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14793 for ncn_progname in as; do
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14796 if test -x $with_build_time_tools/${ncn_progname}; then
14797 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14799 $as_echo "yes" >&6; }
14800 break
14801 else
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 $as_echo "no" >&6; }
14804 fi
14805 done
14806 fi
14807
14808 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14809 for ncn_progname in as; do
14810 if test -n "$ncn_target_tool_prefix"; then
14811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814 $as_echo_n "checking for $ac_word... " >&6; }
14815 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 if test -n "$AS_FOR_TARGET"; then
14819 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14820 else
14821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822 for as_dir in $PATH
14823 do
14824 IFS=$as_save_IFS
14825 test -z "$as_dir" && as_dir=.
14826 for ac_exec_ext in '' $ac_executable_extensions; do
14827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14830 break 2
14831 fi
14832 done
14833 done
14834 IFS=$as_save_IFS
14835
14836 fi
14837 fi
14838 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14839 if test -n "$AS_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14841 $as_echo "$AS_FOR_TARGET" >&6; }
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14845 fi
14846
14847
14848 fi
14849 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14851 set dummy ${ncn_progname}; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14853 $as_echo_n "checking for $ac_word... " >&6; }
14854 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 if test -n "$AS_FOR_TARGET"; then
14858 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14859 else
14860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14861 for as_dir in $PATH
14862 do
14863 IFS=$as_save_IFS
14864 test -z "$as_dir" && as_dir=.
14865 for ac_exec_ext in '' $ac_executable_extensions; do
14866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14867 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14869 break 2
14870 fi
14871 done
14872 done
14873 IFS=$as_save_IFS
14874
14875 fi
14876 fi
14877 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14878 if test -n "$AS_FOR_TARGET"; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14880 $as_echo "$AS_FOR_TARGET" >&6; }
14881 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14884 fi
14885
14886
14887 fi
14888 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14889 done
14890 fi
14891
14892 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14893 set dummy as
14894 if test $build = $target ; then
14895 AS_FOR_TARGET="$2"
14896 else
14897 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14898 fi
14899 else
14900 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14901 fi
14902
14903 else
14904 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14905 fi
14906
14907
14908
14909
14910 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14911 if test -n "$with_build_time_tools"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14913 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14914 if test -x $with_build_time_tools/dlltool; then
14915 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14916 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14918 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14922 fi
14923 elif test $build != $host && test $have_gcc_for_target = yes; then
14924 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14925 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14926 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14927 fi
14928 fi
14929 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14930 # Extract the first word of "dlltool", so it can be a program name with args.
14931 set dummy dlltool; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 case $DLLTOOL_FOR_TARGET in
14938 [\\/]* | ?:[\\/]*)
14939 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14940 ;;
14941 *)
14942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943 for as_dir in $gcc_cv_tool_dirs
14944 do
14945 IFS=$as_save_IFS
14946 test -z "$as_dir" && as_dir=.
14947 for ac_exec_ext in '' $ac_executable_extensions; do
14948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14949 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14951 break 2
14952 fi
14953 done
14954 done
14955 IFS=$as_save_IFS
14956
14957 ;;
14958 esac
14959 fi
14960 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14961 if test -n "$DLLTOOL_FOR_TARGET"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14963 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14967 fi
14968
14969
14970 fi
14971 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14972
14973
14974 if test -n "$DLLTOOL_FOR_TARGET"; then
14975 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14976 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14977 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14978 fi
14979
14980 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14981 for ncn_progname in dlltool; do
14982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14983 set dummy ${ncn_progname}; ac_word=$2
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14985 $as_echo_n "checking for $ac_word... " >&6; }
14986 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14987 $as_echo_n "(cached) " >&6
14988 else
14989 if test -n "$DLLTOOL_FOR_TARGET"; then
14990 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14991 else
14992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993 for as_dir in $PATH
14994 do
14995 IFS=$as_save_IFS
14996 test -z "$as_dir" && as_dir=.
14997 for ac_exec_ext in '' $ac_executable_extensions; do
14998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14999 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15001 break 2
15002 fi
15003 done
15004 done
15005 IFS=$as_save_IFS
15006
15007 fi
15008 fi
15009 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15010 if test -n "$DLLTOOL_FOR_TARGET"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15012 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15013 else
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 $as_echo "no" >&6; }
15016 fi
15017
15018
15019 done
15020 fi
15021
15022 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15023 for ncn_progname in dlltool; do
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15026 if test -x $with_build_time_tools/${ncn_progname}; then
15027 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029 $as_echo "yes" >&6; }
15030 break
15031 else
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035 done
15036 fi
15037
15038 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15039 for ncn_progname in dlltool; do
15040 if test -n "$ncn_target_tool_prefix"; then
15041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15044 $as_echo_n "checking for $ac_word... " >&6; }
15045 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15046 $as_echo_n "(cached) " >&6
15047 else
15048 if test -n "$DLLTOOL_FOR_TARGET"; then
15049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15050 else
15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 for as_dir in $PATH
15053 do
15054 IFS=$as_save_IFS
15055 test -z "$as_dir" && as_dir=.
15056 for ac_exec_ext in '' $ac_executable_extensions; do
15057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15060 break 2
15061 fi
15062 done
15063 done
15064 IFS=$as_save_IFS
15065
15066 fi
15067 fi
15068 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15069 if test -n "$DLLTOOL_FOR_TARGET"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15071 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15072 else
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15075 fi
15076
15077
15078 fi
15079 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15081 set dummy ${ncn_progname}; ac_word=$2
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15083 $as_echo_n "checking for $ac_word... " >&6; }
15084 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 if test -n "$DLLTOOL_FOR_TARGET"; then
15088 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15089 else
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15092 do
15093 IFS=$as_save_IFS
15094 test -z "$as_dir" && as_dir=.
15095 for ac_exec_ext in '' $ac_executable_extensions; do
15096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15099 break 2
15100 fi
15101 done
15102 done
15103 IFS=$as_save_IFS
15104
15105 fi
15106 fi
15107 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15108 if test -n "$DLLTOOL_FOR_TARGET"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15110 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15111 else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15114 fi
15115
15116
15117 fi
15118 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15119 done
15120 fi
15121
15122 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15123 set dummy dlltool
15124 if test $build = $target ; then
15125 DLLTOOL_FOR_TARGET="$2"
15126 else
15127 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15128 fi
15129 else
15130 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15131 fi
15132
15133 else
15134 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15135 fi
15136
15137
15138
15139
15140 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15141 if test -n "$with_build_time_tools"; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15143 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15144 if test -x $with_build_time_tools/dsymutil; then
15145 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15146 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15148 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15152 fi
15153 elif test $build != $host && test $have_gcc_for_target = yes; then
15154 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15155 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15156 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15157 fi
15158 fi
15159 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15160 # Extract the first word of "dsymutil", so it can be a program name with args.
15161 set dummy dsymutil; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 case $DSYMUTIL_FOR_TARGET in
15168 [\\/]* | ?:[\\/]*)
15169 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15170 ;;
15171 *)
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $gcc_cv_tool_dirs
15174 do
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15181 break 2
15182 fi
15183 done
15184 done
15185 IFS=$as_save_IFS
15186
15187 ;;
15188 esac
15189 fi
15190 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15191 if test -n "$DSYMUTIL_FOR_TARGET"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15193 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197 fi
15198
15199
15200 fi
15201 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15202
15203
15204 if test -n "$DSYMUTIL_FOR_TARGET"; then
15205 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15206 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15207 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15208 fi
15209
15210 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15211 for ncn_progname in dsymutil; do
15212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15213 set dummy ${ncn_progname}; ac_word=$2
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15215 $as_echo_n "checking for $ac_word... " >&6; }
15216 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 if test -n "$DSYMUTIL_FOR_TARGET"; then
15220 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15221 else
15222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15223 for as_dir in $PATH
15224 do
15225 IFS=$as_save_IFS
15226 test -z "$as_dir" && as_dir=.
15227 for ac_exec_ext in '' $ac_executable_extensions; do
15228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15229 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15231 break 2
15232 fi
15233 done
15234 done
15235 IFS=$as_save_IFS
15236
15237 fi
15238 fi
15239 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15240 if test -n "$DSYMUTIL_FOR_TARGET"; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15242 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15243 else
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15246 fi
15247
15248
15249 done
15250 fi
15251
15252 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15253 for ncn_progname in dsymutil; do
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15255 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15256 if test -x $with_build_time_tools/${ncn_progname}; then
15257 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15259 $as_echo "yes" >&6; }
15260 break
15261 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15264 fi
15265 done
15266 fi
15267
15268 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15269 for ncn_progname in dsymutil; do
15270 if test -n "$ncn_target_tool_prefix"; then
15271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15274 $as_echo_n "checking for $ac_word... " >&6; }
15275 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 if test -n "$DSYMUTIL_FOR_TARGET"; then
15279 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15280 else
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $PATH
15283 do
15284 IFS=$as_save_IFS
15285 test -z "$as_dir" && as_dir=.
15286 for ac_exec_ext in '' $ac_executable_extensions; do
15287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15288 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15290 break 2
15291 fi
15292 done
15293 done
15294 IFS=$as_save_IFS
15295
15296 fi
15297 fi
15298 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15299 if test -n "$DSYMUTIL_FOR_TARGET"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15301 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15302 else
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304 $as_echo "no" >&6; }
15305 fi
15306
15307
15308 fi
15309 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15311 set dummy ${ncn_progname}; ac_word=$2
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15313 $as_echo_n "checking for $ac_word... " >&6; }
15314 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 if test -n "$DSYMUTIL_FOR_TARGET"; then
15318 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15319 else
15320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15321 for as_dir in $PATH
15322 do
15323 IFS=$as_save_IFS
15324 test -z "$as_dir" && as_dir=.
15325 for ac_exec_ext in '' $ac_executable_extensions; do
15326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15327 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15329 break 2
15330 fi
15331 done
15332 done
15333 IFS=$as_save_IFS
15334
15335 fi
15336 fi
15337 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15338 if test -n "$DSYMUTIL_FOR_TARGET"; then
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15340 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15341 else
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15344 fi
15345
15346
15347 fi
15348 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15349 done
15350 fi
15351
15352 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15353 set dummy dsymutil
15354 if test $build = $target ; then
15355 DSYMUTIL_FOR_TARGET="$2"
15356 else
15357 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15358 fi
15359 else
15360 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15361 fi
15362
15363 else
15364 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15365 fi
15366
15367
15368
15369
15370 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15371 if test -n "$with_build_time_tools"; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15373 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15374 if test -x $with_build_time_tools/ld; then
15375 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15376 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15378 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15382 fi
15383 elif test $build != $host && test $have_gcc_for_target = yes; then
15384 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15385 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15386 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15387 fi
15388 fi
15389 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15390 # Extract the first word of "ld", so it can be a program name with args.
15391 set dummy ld; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 case $LD_FOR_TARGET in
15398 [\\/]* | ?:[\\/]*)
15399 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15400 ;;
15401 *)
15402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15403 for as_dir in $gcc_cv_tool_dirs
15404 do
15405 IFS=$as_save_IFS
15406 test -z "$as_dir" && as_dir=.
15407 for ac_exec_ext in '' $ac_executable_extensions; do
15408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15409 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15411 break 2
15412 fi
15413 done
15414 done
15415 IFS=$as_save_IFS
15416
15417 ;;
15418 esac
15419 fi
15420 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15421 if test -n "$LD_FOR_TARGET"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15423 $as_echo "$LD_FOR_TARGET" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15427 fi
15428
15429
15430 fi
15431 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15432
15433
15434 if test -n "$LD_FOR_TARGET"; then
15435 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15436 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15437 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15438 fi
15439
15440 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15441 for ncn_progname in ld; do
15442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15443 set dummy ${ncn_progname}; ac_word=$2
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15445 $as_echo_n "checking for $ac_word... " >&6; }
15446 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 if test -n "$LD_FOR_TARGET"; then
15450 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15451 else
15452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453 for as_dir in $PATH
15454 do
15455 IFS=$as_save_IFS
15456 test -z "$as_dir" && as_dir=.
15457 for ac_exec_ext in '' $ac_executable_extensions; do
15458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15461 break 2
15462 fi
15463 done
15464 done
15465 IFS=$as_save_IFS
15466
15467 fi
15468 fi
15469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15470 if test -n "$LD_FOR_TARGET"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15472 $as_echo "$LD_FOR_TARGET" >&6; }
15473 else
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475 $as_echo "no" >&6; }
15476 fi
15477
15478
15479 done
15480 fi
15481
15482 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15483 for ncn_progname in ld; do
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15485 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15486 if test -x $with_build_time_tools/${ncn_progname}; then
15487 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15489 $as_echo "yes" >&6; }
15490 break
15491 else
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15494 fi
15495 done
15496 fi
15497
15498 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15499 for ncn_progname in ld; do
15500 if test -n "$ncn_target_tool_prefix"; then
15501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15504 $as_echo_n "checking for $ac_word... " >&6; }
15505 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15506 $as_echo_n "(cached) " >&6
15507 else
15508 if test -n "$LD_FOR_TARGET"; then
15509 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15510 else
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15513 do
15514 IFS=$as_save_IFS
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15520 break 2
15521 fi
15522 done
15523 done
15524 IFS=$as_save_IFS
15525
15526 fi
15527 fi
15528 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15529 if test -n "$LD_FOR_TARGET"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15531 $as_echo "$LD_FOR_TARGET" >&6; }
15532 else
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 $as_echo "no" >&6; }
15535 fi
15536
15537
15538 fi
15539 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15541 set dummy ${ncn_progname}; ac_word=$2
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15543 $as_echo_n "checking for $ac_word... " >&6; }
15544 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 if test -n "$LD_FOR_TARGET"; then
15548 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15549 else
15550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551 for as_dir in $PATH
15552 do
15553 IFS=$as_save_IFS
15554 test -z "$as_dir" && as_dir=.
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15557 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15559 break 2
15560 fi
15561 done
15562 done
15563 IFS=$as_save_IFS
15564
15565 fi
15566 fi
15567 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15568 if test -n "$LD_FOR_TARGET"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15570 $as_echo "$LD_FOR_TARGET" >&6; }
15571 else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15574 fi
15575
15576
15577 fi
15578 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15579 done
15580 fi
15581
15582 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15583 set dummy ld
15584 if test $build = $target ; then
15585 LD_FOR_TARGET="$2"
15586 else
15587 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15588 fi
15589 else
15590 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15591 fi
15592
15593 else
15594 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15595 fi
15596
15597
15598
15599
15600 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15601 if test -n "$with_build_time_tools"; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15603 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15604 if test -x $with_build_time_tools/lipo; then
15605 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15606 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15608 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15612 fi
15613 elif test $build != $host && test $have_gcc_for_target = yes; then
15614 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15615 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15616 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15617 fi
15618 fi
15619 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15620 # Extract the first word of "lipo", so it can be a program name with args.
15621 set dummy lipo; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 case $LIPO_FOR_TARGET in
15628 [\\/]* | ?:[\\/]*)
15629 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15630 ;;
15631 *)
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633 for as_dir in $gcc_cv_tool_dirs
15634 do
15635 IFS=$as_save_IFS
15636 test -z "$as_dir" && as_dir=.
15637 for ac_exec_ext in '' $ac_executable_extensions; do
15638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15639 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15641 break 2
15642 fi
15643 done
15644 done
15645 IFS=$as_save_IFS
15646
15647 ;;
15648 esac
15649 fi
15650 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15651 if test -n "$LIPO_FOR_TARGET"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15653 $as_echo "$LIPO_FOR_TARGET" >&6; }
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15657 fi
15658
15659
15660 fi
15661 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15662
15663
15664 if test -n "$LIPO_FOR_TARGET"; then
15665 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15666 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15667 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15668 fi
15669
15670 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15671 for ncn_progname in lipo; do
15672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15673 set dummy ${ncn_progname}; ac_word=$2
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15675 $as_echo_n "checking for $ac_word... " >&6; }
15676 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 if test -n "$LIPO_FOR_TARGET"; then
15680 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15681 else
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15684 do
15685 IFS=$as_save_IFS
15686 test -z "$as_dir" && as_dir=.
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15689 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15691 break 2
15692 fi
15693 done
15694 done
15695 IFS=$as_save_IFS
15696
15697 fi
15698 fi
15699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15700 if test -n "$LIPO_FOR_TARGET"; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15702 $as_echo "$LIPO_FOR_TARGET" >&6; }
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705 $as_echo "no" >&6; }
15706 fi
15707
15708
15709 done
15710 fi
15711
15712 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15713 for ncn_progname in lipo; do
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15715 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15716 if test -x $with_build_time_tools/${ncn_progname}; then
15717 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15719 $as_echo "yes" >&6; }
15720 break
15721 else
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15724 fi
15725 done
15726 fi
15727
15728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15729 for ncn_progname in lipo; do
15730 if test -n "$ncn_target_tool_prefix"; then
15731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15734 $as_echo_n "checking for $ac_word... " >&6; }
15735 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738 if test -n "$LIPO_FOR_TARGET"; then
15739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15740 else
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15743 do
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750 break 2
15751 fi
15752 done
15753 done
15754 IFS=$as_save_IFS
15755
15756 fi
15757 fi
15758 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15759 if test -n "$LIPO_FOR_TARGET"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15761 $as_echo "$LIPO_FOR_TARGET" >&6; }
15762 else
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764 $as_echo "no" >&6; }
15765 fi
15766
15767
15768 fi
15769 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15771 set dummy ${ncn_progname}; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15773 $as_echo_n "checking for $ac_word... " >&6; }
15774 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 if test -n "$LIPO_FOR_TARGET"; then
15778 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15779 else
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15782 do
15783 IFS=$as_save_IFS
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 break 2
15790 fi
15791 done
15792 done
15793 IFS=$as_save_IFS
15794
15795 fi
15796 fi
15797 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15798 if test -n "$LIPO_FOR_TARGET"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15800 $as_echo "$LIPO_FOR_TARGET" >&6; }
15801 else
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15804 fi
15805
15806
15807 fi
15808 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15809 done
15810 fi
15811
15812 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15813 set dummy lipo
15814 if test $build = $target ; then
15815 LIPO_FOR_TARGET="$2"
15816 else
15817 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15818 fi
15819 else
15820 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15821 fi
15822
15823 else
15824 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15825 fi
15826
15827
15828
15829
15830 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15831 if test -n "$with_build_time_tools"; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15833 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15834 if test -x $with_build_time_tools/nm; then
15835 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15836 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15838 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15842 fi
15843 elif test $build != $host && test $have_gcc_for_target = yes; then
15844 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15845 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15846 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15847 fi
15848 fi
15849 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15850 # Extract the first word of "nm", so it can be a program name with args.
15851 set dummy nm; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 case $NM_FOR_TARGET in
15858 [\\/]* | ?:[\\/]*)
15859 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15860 ;;
15861 *)
15862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $gcc_cv_tool_dirs
15864 do
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15871 break 2
15872 fi
15873 done
15874 done
15875 IFS=$as_save_IFS
15876
15877 ;;
15878 esac
15879 fi
15880 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15881 if test -n "$NM_FOR_TARGET"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15883 $as_echo "$NM_FOR_TARGET" >&6; }
15884 else
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15887 fi
15888
15889
15890 fi
15891 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15892
15893
15894 if test -n "$NM_FOR_TARGET"; then
15895 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15896 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15897 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15898 fi
15899
15900 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15901 for ncn_progname in nm; do
15902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15903 set dummy ${ncn_progname}; ac_word=$2
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15905 $as_echo_n "checking for $ac_word... " >&6; }
15906 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 if test -n "$NM_FOR_TARGET"; then
15910 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15911 else
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15914 do
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15921 break 2
15922 fi
15923 done
15924 done
15925 IFS=$as_save_IFS
15926
15927 fi
15928 fi
15929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15930 if test -n "$NM_FOR_TARGET"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15932 $as_echo "$NM_FOR_TARGET" >&6; }
15933 else
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15936 fi
15937
15938
15939 done
15940 fi
15941
15942 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15943 for ncn_progname in nm; do
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15946 if test -x $with_build_time_tools/${ncn_progname}; then
15947 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15949 $as_echo "yes" >&6; }
15950 break
15951 else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15954 fi
15955 done
15956 fi
15957
15958 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15959 for ncn_progname in nm; do
15960 if test -n "$ncn_target_tool_prefix"; then
15961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964 $as_echo_n "checking for $ac_word... " >&6; }
15965 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15966 $as_echo_n "(cached) " >&6
15967 else
15968 if test -n "$NM_FOR_TARGET"; then
15969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15970 else
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972 for as_dir in $PATH
15973 do
15974 IFS=$as_save_IFS
15975 test -z "$as_dir" && as_dir=.
15976 for ac_exec_ext in '' $ac_executable_extensions; do
15977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15978 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15980 break 2
15981 fi
15982 done
15983 done
15984 IFS=$as_save_IFS
15985
15986 fi
15987 fi
15988 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15989 if test -n "$NM_FOR_TARGET"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15991 $as_echo "$NM_FOR_TARGET" >&6; }
15992 else
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15995 fi
15996
15997
15998 fi
15999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16001 set dummy ${ncn_progname}; ac_word=$2
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16003 $as_echo_n "checking for $ac_word... " >&6; }
16004 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 if test -n "$NM_FOR_TARGET"; then
16008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16009 else
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16012 do
16013 IFS=$as_save_IFS
16014 test -z "$as_dir" && as_dir=.
16015 for ac_exec_ext in '' $ac_executable_extensions; do
16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16019 break 2
16020 fi
16021 done
16022 done
16023 IFS=$as_save_IFS
16024
16025 fi
16026 fi
16027 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16028 if test -n "$NM_FOR_TARGET"; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16030 $as_echo "$NM_FOR_TARGET" >&6; }
16031 else
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033 $as_echo "no" >&6; }
16034 fi
16035
16036
16037 fi
16038 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16039 done
16040 fi
16041
16042 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16043 set dummy nm
16044 if test $build = $target ; then
16045 NM_FOR_TARGET="$2"
16046 else
16047 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16048 fi
16049 else
16050 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16051 fi
16052
16053 else
16054 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16055 fi
16056
16057
16058
16059
16060 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16061 if test -n "$with_build_time_tools"; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16063 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16064 if test -x $with_build_time_tools/objcopy; then
16065 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16066 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16068 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16069 else
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 $as_echo "no" >&6; }
16072 fi
16073 elif test $build != $host && test $have_gcc_for_target = yes; then
16074 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16075 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16076 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16077 fi
16078 fi
16079 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16080 # Extract the first word of "objcopy", so it can be a program name with args.
16081 set dummy objcopy; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083 $as_echo_n "checking for $ac_word... " >&6; }
16084 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 case $OBJCOPY_FOR_TARGET in
16088 [\\/]* | ?:[\\/]*)
16089 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16090 ;;
16091 *)
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $gcc_cv_tool_dirs
16094 do
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16099 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16102 fi
16103 done
16104 done
16105 IFS=$as_save_IFS
16106
16107 ;;
16108 esac
16109 fi
16110 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16111 if test -n "$OBJCOPY_FOR_TARGET"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16113 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 fi
16118
16119
16120 fi
16121 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16122
16123
16124 if test -n "$OBJCOPY_FOR_TARGET"; then
16125 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16126 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16127 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16128 fi
16129
16130 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16131 for ncn_progname in objcopy; do
16132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16133 set dummy ${ncn_progname}; ac_word=$2
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16135 $as_echo_n "checking for $ac_word... " >&6; }
16136 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139 if test -n "$OBJCOPY_FOR_TARGET"; then
16140 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16141 else
16142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16144 do
16145 IFS=$as_save_IFS
16146 test -z "$as_dir" && as_dir=.
16147 for ac_exec_ext in '' $ac_executable_extensions; do
16148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16151 break 2
16152 fi
16153 done
16154 done
16155 IFS=$as_save_IFS
16156
16157 fi
16158 fi
16159 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16160 if test -n "$OBJCOPY_FOR_TARGET"; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16162 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16163 else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165 $as_echo "no" >&6; }
16166 fi
16167
16168
16169 done
16170 fi
16171
16172 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16173 for ncn_progname in objcopy; do
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16175 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16176 if test -x $with_build_time_tools/${ncn_progname}; then
16177 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16179 $as_echo "yes" >&6; }
16180 break
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183 $as_echo "no" >&6; }
16184 fi
16185 done
16186 fi
16187
16188 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16189 for ncn_progname in objcopy; do
16190 if test -n "$ncn_target_tool_prefix"; then
16191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 if test -n "$OBJCOPY_FOR_TARGET"; then
16199 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16200 else
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16203 do
16204 IFS=$as_save_IFS
16205 test -z "$as_dir" && as_dir=.
16206 for ac_exec_ext in '' $ac_executable_extensions; do
16207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16210 break 2
16211 fi
16212 done
16213 done
16214 IFS=$as_save_IFS
16215
16216 fi
16217 fi
16218 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16219 if test -n "$OBJCOPY_FOR_TARGET"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16221 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16222 else
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16225 fi
16226
16227
16228 fi
16229 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16231 set dummy ${ncn_progname}; ac_word=$2
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16233 $as_echo_n "checking for $ac_word... " >&6; }
16234 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 if test -n "$OBJCOPY_FOR_TARGET"; then
16238 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16239 else
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16242 do
16243 IFS=$as_save_IFS
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16249 break 2
16250 fi
16251 done
16252 done
16253 IFS=$as_save_IFS
16254
16255 fi
16256 fi
16257 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16258 if test -n "$OBJCOPY_FOR_TARGET"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16260 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16264 fi
16265
16266
16267 fi
16268 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16269 done
16270 fi
16271
16272 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16273 set dummy objcopy
16274 if test $build = $target ; then
16275 OBJCOPY_FOR_TARGET="$2"
16276 else
16277 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16278 fi
16279 else
16280 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16281 fi
16282
16283 else
16284 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16285 fi
16286
16287
16288
16289
16290 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16291 if test -n "$with_build_time_tools"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16293 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16294 if test -x $with_build_time_tools/objdump; then
16295 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16296 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16298 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16302 fi
16303 elif test $build != $host && test $have_gcc_for_target = yes; then
16304 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16305 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16306 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16307 fi
16308 fi
16309 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16310 # Extract the first word of "objdump", so it can be a program name with args.
16311 set dummy objdump; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 case $OBJDUMP_FOR_TARGET in
16318 [\\/]* | ?:[\\/]*)
16319 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16320 ;;
16321 *)
16322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16323 for as_dir in $gcc_cv_tool_dirs
16324 do
16325 IFS=$as_save_IFS
16326 test -z "$as_dir" && as_dir=.
16327 for ac_exec_ext in '' $ac_executable_extensions; do
16328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16329 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16331 break 2
16332 fi
16333 done
16334 done
16335 IFS=$as_save_IFS
16336
16337 ;;
16338 esac
16339 fi
16340 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16341 if test -n "$OBJDUMP_FOR_TARGET"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16347 fi
16348
16349
16350 fi
16351 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16352
16353
16354 if test -n "$OBJDUMP_FOR_TARGET"; then
16355 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16356 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16357 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16358 fi
16359
16360 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16361 for ncn_progname in objdump; do
16362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16363 set dummy ${ncn_progname}; ac_word=$2
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16365 $as_echo_n "checking for $ac_word... " >&6; }
16366 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 if test -n "$OBJDUMP_FOR_TARGET"; then
16370 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16371 else
16372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16373 for as_dir in $PATH
16374 do
16375 IFS=$as_save_IFS
16376 test -z "$as_dir" && as_dir=.
16377 for ac_exec_ext in '' $ac_executable_extensions; do
16378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16379 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16381 break 2
16382 fi
16383 done
16384 done
16385 IFS=$as_save_IFS
16386
16387 fi
16388 fi
16389 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16390 if test -n "$OBJDUMP_FOR_TARGET"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16392 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16393 else
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16396 fi
16397
16398
16399 done
16400 fi
16401
16402 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16403 for ncn_progname in objdump; do
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16405 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16406 if test -x $with_build_time_tools/${ncn_progname}; then
16407 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409 $as_echo "yes" >&6; }
16410 break
16411 else
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413 $as_echo "no" >&6; }
16414 fi
16415 done
16416 fi
16417
16418 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16419 for ncn_progname in objdump; do
16420 if test -n "$ncn_target_tool_prefix"; then
16421 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16422 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424 $as_echo_n "checking for $ac_word... " >&6; }
16425 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 if test -n "$OBJDUMP_FOR_TARGET"; then
16429 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16430 else
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434 IFS=$as_save_IFS
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440 break 2
16441 fi
16442 done
16443 done
16444 IFS=$as_save_IFS
16445
16446 fi
16447 fi
16448 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16449 if test -n "$OBJDUMP_FOR_TARGET"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16451 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16452 else
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455 fi
16456
16457
16458 fi
16459 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16461 set dummy ${ncn_progname}; ac_word=$2
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16463 $as_echo_n "checking for $ac_word... " >&6; }
16464 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 if test -n "$OBJDUMP_FOR_TARGET"; then
16468 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16469 else
16470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471 for as_dir in $PATH
16472 do
16473 IFS=$as_save_IFS
16474 test -z "$as_dir" && as_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16477 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16479 break 2
16480 fi
16481 done
16482 done
16483 IFS=$as_save_IFS
16484
16485 fi
16486 fi
16487 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16488 if test -n "$OBJDUMP_FOR_TARGET"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16490 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16491 else
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16494 fi
16495
16496
16497 fi
16498 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16499 done
16500 fi
16501
16502 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16503 set dummy objdump
16504 if test $build = $target ; then
16505 OBJDUMP_FOR_TARGET="$2"
16506 else
16507 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16508 fi
16509 else
16510 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16511 fi
16512
16513 else
16514 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16515 fi
16516
16517
16518
16519
16520 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16521 if test -n "$with_build_time_tools"; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16523 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16524 if test -x $with_build_time_tools/otool; then
16525 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16526 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16528 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16532 fi
16533 elif test $build != $host && test $have_gcc_for_target = yes; then
16534 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16535 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16536 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16537 fi
16538 fi
16539 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16540 # Extract the first word of "otool", so it can be a program name with args.
16541 set dummy otool; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 case $OTOOL_FOR_TARGET in
16548 [\\/]* | ?:[\\/]*)
16549 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16550 ;;
16551 *)
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553 for as_dir in $gcc_cv_tool_dirs
16554 do
16555 IFS=$as_save_IFS
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16559 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16561 break 2
16562 fi
16563 done
16564 done
16565 IFS=$as_save_IFS
16566
16567 ;;
16568 esac
16569 fi
16570 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16571 if test -n "$OTOOL_FOR_TARGET"; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16573 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16574 else
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16577 fi
16578
16579
16580 fi
16581 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16582
16583
16584 if test -n "$OTOOL_FOR_TARGET"; then
16585 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16586 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16587 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16588 fi
16589
16590 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16591 for ncn_progname in otool; do
16592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16593 set dummy ${ncn_progname}; ac_word=$2
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16595 $as_echo_n "checking for $ac_word... " >&6; }
16596 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16597 $as_echo_n "(cached) " >&6
16598 else
16599 if test -n "$OTOOL_FOR_TARGET"; then
16600 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16601 else
16602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16603 for as_dir in $PATH
16604 do
16605 IFS=$as_save_IFS
16606 test -z "$as_dir" && as_dir=.
16607 for ac_exec_ext in '' $ac_executable_extensions; do
16608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16609 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16611 break 2
16612 fi
16613 done
16614 done
16615 IFS=$as_save_IFS
16616
16617 fi
16618 fi
16619 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16620 if test -n "$OTOOL_FOR_TARGET"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16622 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16623 else
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16626 fi
16627
16628
16629 done
16630 fi
16631
16632 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16633 for ncn_progname in otool; do
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16635 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16636 if test -x $with_build_time_tools/${ncn_progname}; then
16637 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639 $as_echo "yes" >&6; }
16640 break
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16644 fi
16645 done
16646 fi
16647
16648 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16649 for ncn_progname in otool; do
16650 if test -n "$ncn_target_tool_prefix"; then
16651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16652 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16654 $as_echo_n "checking for $ac_word... " >&6; }
16655 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658 if test -n "$OTOOL_FOR_TARGET"; then
16659 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16660 else
16661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16662 for as_dir in $PATH
16663 do
16664 IFS=$as_save_IFS
16665 test -z "$as_dir" && as_dir=.
16666 for ac_exec_ext in '' $ac_executable_extensions; do
16667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16668 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16670 break 2
16671 fi
16672 done
16673 done
16674 IFS=$as_save_IFS
16675
16676 fi
16677 fi
16678 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16679 if test -n "$OTOOL_FOR_TARGET"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16681 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16682 else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16685 fi
16686
16687
16688 fi
16689 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16691 set dummy ${ncn_progname}; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693 $as_echo_n "checking for $ac_word... " >&6; }
16694 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 if test -n "$OTOOL_FOR_TARGET"; then
16698 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16699 else
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701 for as_dir in $PATH
16702 do
16703 IFS=$as_save_IFS
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 break 2
16710 fi
16711 done
16712 done
16713 IFS=$as_save_IFS
16714
16715 fi
16716 fi
16717 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16718 if test -n "$OTOOL_FOR_TARGET"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16720 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16721 else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 $as_echo "no" >&6; }
16724 fi
16725
16726
16727 fi
16728 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16729 done
16730 fi
16731
16732 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16733 set dummy otool
16734 if test $build = $target ; then
16735 OTOOL_FOR_TARGET="$2"
16736 else
16737 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16738 fi
16739 else
16740 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16741 fi
16742
16743 else
16744 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16745 fi
16746
16747
16748
16749
16750 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16751 if test -n "$with_build_time_tools"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16753 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16754 if test -x $with_build_time_tools/ranlib; then
16755 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16756 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16758 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16762 fi
16763 elif test $build != $host && test $have_gcc_for_target = yes; then
16764 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16765 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16766 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16767 fi
16768 fi
16769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16770 # Extract the first word of "ranlib", so it can be a program name with args.
16771 set dummy ranlib; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 case $RANLIB_FOR_TARGET in
16778 [\\/]* | ?:[\\/]*)
16779 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16780 ;;
16781 *)
16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783 for as_dir in $gcc_cv_tool_dirs
16784 do
16785 IFS=$as_save_IFS
16786 test -z "$as_dir" && as_dir=.
16787 for ac_exec_ext in '' $ac_executable_extensions; do
16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16791 break 2
16792 fi
16793 done
16794 done
16795 IFS=$as_save_IFS
16796
16797 ;;
16798 esac
16799 fi
16800 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16801 if test -n "$RANLIB_FOR_TARGET"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16803 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16804 else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16807 fi
16808
16809
16810 fi
16811 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16812
16813
16814 if test -n "$RANLIB_FOR_TARGET"; then
16815 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16816 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16817 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16818 fi
16819
16820 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16821 for ncn_progname in ranlib; do
16822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16823 set dummy ${ncn_progname}; ac_word=$2
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16825 $as_echo_n "checking for $ac_word... " >&6; }
16826 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if test -n "$RANLIB_FOR_TARGET"; then
16830 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16831 else
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16834 do
16835 IFS=$as_save_IFS
16836 test -z "$as_dir" && as_dir=.
16837 for ac_exec_ext in '' $ac_executable_extensions; do
16838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16841 break 2
16842 fi
16843 done
16844 done
16845 IFS=$as_save_IFS
16846
16847 fi
16848 fi
16849 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16850 if test -n "$RANLIB_FOR_TARGET"; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16852 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16853 else
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855 $as_echo "no" >&6; }
16856 fi
16857
16858
16859 done
16860 fi
16861
16862 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16863 for ncn_progname in ranlib; do
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16865 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16866 if test -x $with_build_time_tools/${ncn_progname}; then
16867 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16869 $as_echo "yes" >&6; }
16870 break
16871 else
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16874 fi
16875 done
16876 fi
16877
16878 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16879 for ncn_progname in ranlib; do
16880 if test -n "$ncn_target_tool_prefix"; then
16881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16882 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884 $as_echo_n "checking for $ac_word... " >&6; }
16885 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16886 $as_echo_n "(cached) " >&6
16887 else
16888 if test -n "$RANLIB_FOR_TARGET"; then
16889 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16890 else
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16893 do
16894 IFS=$as_save_IFS
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16900 break 2
16901 fi
16902 done
16903 done
16904 IFS=$as_save_IFS
16905
16906 fi
16907 fi
16908 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16909 if test -n "$RANLIB_FOR_TARGET"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16911 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16912 else
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16915 fi
16916
16917
16918 fi
16919 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16921 set dummy ${ncn_progname}; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16923 $as_echo_n "checking for $ac_word... " >&6; }
16924 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 if test -n "$RANLIB_FOR_TARGET"; then
16928 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16929 else
16930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16931 for as_dir in $PATH
16932 do
16933 IFS=$as_save_IFS
16934 test -z "$as_dir" && as_dir=.
16935 for ac_exec_ext in '' $ac_executable_extensions; do
16936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16937 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16939 break 2
16940 fi
16941 done
16942 done
16943 IFS=$as_save_IFS
16944
16945 fi
16946 fi
16947 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16948 if test -n "$RANLIB_FOR_TARGET"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16950 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16951 else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16954 fi
16955
16956
16957 fi
16958 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16959 done
16960 fi
16961
16962 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16963 set dummy ranlib
16964 if test $build = $target ; then
16965 RANLIB_FOR_TARGET="$2"
16966 else
16967 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16968 fi
16969 else
16970 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16971 fi
16972
16973 else
16974 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16975 fi
16976
16977
16978
16979
16980 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16981 if test -n "$with_build_time_tools"; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16983 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16984 if test -x $with_build_time_tools/readelf; then
16985 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16986 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16988 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16989 else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16992 fi
16993 elif test $build != $host && test $have_gcc_for_target = yes; then
16994 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16995 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16996 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16997 fi
16998 fi
16999 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17000 # Extract the first word of "readelf", so it can be a program name with args.
17001 set dummy readelf; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 case $READELF_FOR_TARGET in
17008 [\\/]* | ?:[\\/]*)
17009 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17010 ;;
17011 *)
17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $gcc_cv_tool_dirs
17014 do
17015 IFS=$as_save_IFS
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021 break 2
17022 fi
17023 done
17024 done
17025 IFS=$as_save_IFS
17026
17027 ;;
17028 esac
17029 fi
17030 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17031 if test -n "$READELF_FOR_TARGET"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17033 $as_echo "$READELF_FOR_TARGET" >&6; }
17034 else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039
17040 fi
17041 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17042
17043
17044 if test -n "$READELF_FOR_TARGET"; then
17045 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17046 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17047 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17048 fi
17049
17050 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17051 for ncn_progname in readelf; do
17052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17053 set dummy ${ncn_progname}; ac_word=$2
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17055 $as_echo_n "checking for $ac_word... " >&6; }
17056 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058 else
17059 if test -n "$READELF_FOR_TARGET"; then
17060 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17061 else
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17064 do
17065 IFS=$as_save_IFS
17066 test -z "$as_dir" && as_dir=.
17067 for ac_exec_ext in '' $ac_executable_extensions; do
17068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17071 break 2
17072 fi
17073 done
17074 done
17075 IFS=$as_save_IFS
17076
17077 fi
17078 fi
17079 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17080 if test -n "$READELF_FOR_TARGET"; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17082 $as_echo "$READELF_FOR_TARGET" >&6; }
17083 else
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085 $as_echo "no" >&6; }
17086 fi
17087
17088
17089 done
17090 fi
17091
17092 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17093 for ncn_progname in readelf; do
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17095 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17096 if test -x $with_build_time_tools/${ncn_progname}; then
17097 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17099 $as_echo "yes" >&6; }
17100 break
17101 else
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17104 fi
17105 done
17106 fi
17107
17108 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17109 for ncn_progname in readelf; do
17110 if test -n "$ncn_target_tool_prefix"; then
17111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17116 $as_echo_n "(cached) " >&6
17117 else
17118 if test -n "$READELF_FOR_TARGET"; then
17119 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17120 else
17121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17123 do
17124 IFS=$as_save_IFS
17125 test -z "$as_dir" && as_dir=.
17126 for ac_exec_ext in '' $ac_executable_extensions; do
17127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17128 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17130 break 2
17131 fi
17132 done
17133 done
17134 IFS=$as_save_IFS
17135
17136 fi
17137 fi
17138 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17139 if test -n "$READELF_FOR_TARGET"; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17141 $as_echo "$READELF_FOR_TARGET" >&6; }
17142 else
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17144 $as_echo "no" >&6; }
17145 fi
17146
17147
17148 fi
17149 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17151 set dummy ${ncn_progname}; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17155 $as_echo_n "(cached) " >&6
17156 else
17157 if test -n "$READELF_FOR_TARGET"; then
17158 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17159 else
17160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17161 for as_dir in $PATH
17162 do
17163 IFS=$as_save_IFS
17164 test -z "$as_dir" && as_dir=.
17165 for ac_exec_ext in '' $ac_executable_extensions; do
17166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17167 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17169 break 2
17170 fi
17171 done
17172 done
17173 IFS=$as_save_IFS
17174
17175 fi
17176 fi
17177 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17178 if test -n "$READELF_FOR_TARGET"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17180 $as_echo "$READELF_FOR_TARGET" >&6; }
17181 else
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17184 fi
17185
17186
17187 fi
17188 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17189 done
17190 fi
17191
17192 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17193 set dummy readelf
17194 if test $build = $target ; then
17195 READELF_FOR_TARGET="$2"
17196 else
17197 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17198 fi
17199 else
17200 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17201 fi
17202
17203 else
17204 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17205 fi
17206
17207
17208
17209
17210 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17211 if test -n "$with_build_time_tools"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17213 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17214 if test -x $with_build_time_tools/strip; then
17215 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17216 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17218 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17219 else
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17222 fi
17223 elif test $build != $host && test $have_gcc_for_target = yes; then
17224 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17225 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17226 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17227 fi
17228 fi
17229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17230 # Extract the first word of "strip", so it can be a program name with args.
17231 set dummy strip; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17233 $as_echo_n "checking for $ac_word... " >&6; }
17234 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 case $STRIP_FOR_TARGET in
17238 [\\/]* | ?:[\\/]*)
17239 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17240 ;;
17241 *)
17242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243 for as_dir in $gcc_cv_tool_dirs
17244 do
17245 IFS=$as_save_IFS
17246 test -z "$as_dir" && as_dir=.
17247 for ac_exec_ext in '' $ac_executable_extensions; do
17248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17249 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 break 2
17252 fi
17253 done
17254 done
17255 IFS=$as_save_IFS
17256
17257 ;;
17258 esac
17259 fi
17260 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17261 if test -n "$STRIP_FOR_TARGET"; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17263 $as_echo "$STRIP_FOR_TARGET" >&6; }
17264 else
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266 $as_echo "no" >&6; }
17267 fi
17268
17269
17270 fi
17271 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17272
17273
17274 if test -n "$STRIP_FOR_TARGET"; then
17275 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17276 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17277 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17278 fi
17279
17280 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17281 for ncn_progname in strip; do
17282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17283 set dummy ${ncn_progname}; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17285 $as_echo_n "checking for $ac_word... " >&6; }
17286 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17287 $as_echo_n "(cached) " >&6
17288 else
17289 if test -n "$STRIP_FOR_TARGET"; then
17290 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17291 else
17292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17293 for as_dir in $PATH
17294 do
17295 IFS=$as_save_IFS
17296 test -z "$as_dir" && as_dir=.
17297 for ac_exec_ext in '' $ac_executable_extensions; do
17298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17299 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17301 break 2
17302 fi
17303 done
17304 done
17305 IFS=$as_save_IFS
17306
17307 fi
17308 fi
17309 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17310 if test -n "$STRIP_FOR_TARGET"; then
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17312 $as_echo "$STRIP_FOR_TARGET" >&6; }
17313 else
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315 $as_echo "no" >&6; }
17316 fi
17317
17318
17319 done
17320 fi
17321
17322 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17323 for ncn_progname in strip; do
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17325 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17326 if test -x $with_build_time_tools/${ncn_progname}; then
17327 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17329 $as_echo "yes" >&6; }
17330 break
17331 else
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17334 fi
17335 done
17336 fi
17337
17338 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17339 for ncn_progname in strip; do
17340 if test -n "$ncn_target_tool_prefix"; then
17341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17344 $as_echo_n "checking for $ac_word... " >&6; }
17345 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 if test -n "$STRIP_FOR_TARGET"; then
17349 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17350 else
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17353 do
17354 IFS=$as_save_IFS
17355 test -z "$as_dir" && as_dir=.
17356 for ac_exec_ext in '' $ac_executable_extensions; do
17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17360 break 2
17361 fi
17362 done
17363 done
17364 IFS=$as_save_IFS
17365
17366 fi
17367 fi
17368 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17369 if test -n "$STRIP_FOR_TARGET"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17371 $as_echo "$STRIP_FOR_TARGET" >&6; }
17372 else
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17374 $as_echo "no" >&6; }
17375 fi
17376
17377
17378 fi
17379 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17381 set dummy ${ncn_progname}; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17383 $as_echo_n "checking for $ac_word... " >&6; }
17384 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 if test -n "$STRIP_FOR_TARGET"; then
17388 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17389 else
17390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $PATH
17392 do
17393 IFS=$as_save_IFS
17394 test -z "$as_dir" && as_dir=.
17395 for ac_exec_ext in '' $ac_executable_extensions; do
17396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17397 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17399 break 2
17400 fi
17401 done
17402 done
17403 IFS=$as_save_IFS
17404
17405 fi
17406 fi
17407 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17408 if test -n "$STRIP_FOR_TARGET"; then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17410 $as_echo "$STRIP_FOR_TARGET" >&6; }
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 $as_echo "no" >&6; }
17414 fi
17415
17416
17417 fi
17418 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17419 done
17420 fi
17421
17422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17423 set dummy strip
17424 if test $build = $target ; then
17425 STRIP_FOR_TARGET="$2"
17426 else
17427 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17428 fi
17429 else
17430 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17431 fi
17432
17433 else
17434 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17435 fi
17436
17437
17438
17439
17440 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17441 if test -n "$with_build_time_tools"; then
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17443 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17444 if test -x $with_build_time_tools/windres; then
17445 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17446 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17448 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17449 else
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451 $as_echo "no" >&6; }
17452 fi
17453 elif test $build != $host && test $have_gcc_for_target = yes; then
17454 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17455 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17456 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17457 fi
17458 fi
17459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17460 # Extract the first word of "windres", so it can be a program name with args.
17461 set dummy windres; ac_word=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17463 $as_echo_n "checking for $ac_word... " >&6; }
17464 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 case $WINDRES_FOR_TARGET in
17468 [\\/]* | ?:[\\/]*)
17469 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17470 ;;
17471 *)
17472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17473 for as_dir in $gcc_cv_tool_dirs
17474 do
17475 IFS=$as_save_IFS
17476 test -z "$as_dir" && as_dir=.
17477 for ac_exec_ext in '' $ac_executable_extensions; do
17478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17479 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17481 break 2
17482 fi
17483 done
17484 done
17485 IFS=$as_save_IFS
17486
17487 ;;
17488 esac
17489 fi
17490 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17491 if test -n "$WINDRES_FOR_TARGET"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17493 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17494 else
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17497 fi
17498
17499
17500 fi
17501 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17502
17503
17504 if test -n "$WINDRES_FOR_TARGET"; then
17505 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17506 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17507 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17508 fi
17509
17510 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17511 for ncn_progname in windres; do
17512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17513 set dummy ${ncn_progname}; ac_word=$2
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17515 $as_echo_n "checking for $ac_word... " >&6; }
17516 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17517 $as_echo_n "(cached) " >&6
17518 else
17519 if test -n "$WINDRES_FOR_TARGET"; then
17520 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17521 else
17522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17523 for as_dir in $PATH
17524 do
17525 IFS=$as_save_IFS
17526 test -z "$as_dir" && as_dir=.
17527 for ac_exec_ext in '' $ac_executable_extensions; do
17528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17529 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17531 break 2
17532 fi
17533 done
17534 done
17535 IFS=$as_save_IFS
17536
17537 fi
17538 fi
17539 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17540 if test -n "$WINDRES_FOR_TARGET"; then
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17542 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17543 else
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17545 $as_echo "no" >&6; }
17546 fi
17547
17548
17549 done
17550 fi
17551
17552 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17553 for ncn_progname in windres; do
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17555 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17556 if test -x $with_build_time_tools/${ncn_progname}; then
17557 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17559 $as_echo "yes" >&6; }
17560 break
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17564 fi
17565 done
17566 fi
17567
17568 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17569 for ncn_progname in windres; do
17570 if test -n "$ncn_target_tool_prefix"; then
17571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17574 $as_echo_n "checking for $ac_word... " >&6; }
17575 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17578 if test -n "$WINDRES_FOR_TARGET"; then
17579 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17580 else
17581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17582 for as_dir in $PATH
17583 do
17584 IFS=$as_save_IFS
17585 test -z "$as_dir" && as_dir=.
17586 for ac_exec_ext in '' $ac_executable_extensions; do
17587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17588 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17590 break 2
17591 fi
17592 done
17593 done
17594 IFS=$as_save_IFS
17595
17596 fi
17597 fi
17598 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17599 if test -n "$WINDRES_FOR_TARGET"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17601 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17602 else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17605 fi
17606
17607
17608 fi
17609 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17611 set dummy ${ncn_progname}; ac_word=$2
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17613 $as_echo_n "checking for $ac_word... " >&6; }
17614 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 if test -n "$WINDRES_FOR_TARGET"; then
17618 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17619 else
17620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17621 for as_dir in $PATH
17622 do
17623 IFS=$as_save_IFS
17624 test -z "$as_dir" && as_dir=.
17625 for ac_exec_ext in '' $ac_executable_extensions; do
17626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17627 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17629 break 2
17630 fi
17631 done
17632 done
17633 IFS=$as_save_IFS
17634
17635 fi
17636 fi
17637 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17638 if test -n "$WINDRES_FOR_TARGET"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17640 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17641 else
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17643 $as_echo "no" >&6; }
17644 fi
17645
17646
17647 fi
17648 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17649 done
17650 fi
17651
17652 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17653 set dummy windres
17654 if test $build = $target ; then
17655 WINDRES_FOR_TARGET="$2"
17656 else
17657 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17658 fi
17659 else
17660 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17661 fi
17662
17663 else
17664 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17665 fi
17666
17667
17668
17669
17670 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17671 if test -n "$with_build_time_tools"; then
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17673 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17674 if test -x $with_build_time_tools/windmc; then
17675 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17676 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17678 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17682 fi
17683 elif test $build != $host && test $have_gcc_for_target = yes; then
17684 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17685 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17686 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17687 fi
17688 fi
17689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17690 # Extract the first word of "windmc", so it can be a program name with args.
17691 set dummy windmc; ac_word=$2
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17693 $as_echo_n "checking for $ac_word... " >&6; }
17694 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 case $WINDMC_FOR_TARGET in
17698 [\\/]* | ?:[\\/]*)
17699 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17700 ;;
17701 *)
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $gcc_cv_tool_dirs
17704 do
17705 IFS=$as_save_IFS
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17711 break 2
17712 fi
17713 done
17714 done
17715 IFS=$as_save_IFS
17716
17717 ;;
17718 esac
17719 fi
17720 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17721 if test -n "$WINDMC_FOR_TARGET"; then
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17723 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17724 else
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 $as_echo "no" >&6; }
17727 fi
17728
17729
17730 fi
17731 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17732
17733
17734 if test -n "$WINDMC_FOR_TARGET"; then
17735 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17736 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17737 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17738 fi
17739
17740 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17741 for ncn_progname in windmc; do
17742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17743 set dummy ${ncn_progname}; ac_word=$2
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17745 $as_echo_n "checking for $ac_word... " >&6; }
17746 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17749 if test -n "$WINDMC_FOR_TARGET"; then
17750 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17751 else
17752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17753 for as_dir in $PATH
17754 do
17755 IFS=$as_save_IFS
17756 test -z "$as_dir" && as_dir=.
17757 for ac_exec_ext in '' $ac_executable_extensions; do
17758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17759 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17761 break 2
17762 fi
17763 done
17764 done
17765 IFS=$as_save_IFS
17766
17767 fi
17768 fi
17769 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17770 if test -n "$WINDMC_FOR_TARGET"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17772 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17773 else
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17776 fi
17777
17778
17779 done
17780 fi
17781
17782 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17783 for ncn_progname in windmc; do
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17785 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17786 if test -x $with_build_time_tools/${ncn_progname}; then
17787 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17789 $as_echo "yes" >&6; }
17790 break
17791 else
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17794 fi
17795 done
17796 fi
17797
17798 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17799 for ncn_progname in windmc; do
17800 if test -n "$ncn_target_tool_prefix"; then
17801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17802 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17804 $as_echo_n "checking for $ac_word... " >&6; }
17805 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17806 $as_echo_n "(cached) " >&6
17807 else
17808 if test -n "$WINDMC_FOR_TARGET"; then
17809 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17810 else
17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812 for as_dir in $PATH
17813 do
17814 IFS=$as_save_IFS
17815 test -z "$as_dir" && as_dir=.
17816 for ac_exec_ext in '' $ac_executable_extensions; do
17817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17818 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17820 break 2
17821 fi
17822 done
17823 done
17824 IFS=$as_save_IFS
17825
17826 fi
17827 fi
17828 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17829 if test -n "$WINDMC_FOR_TARGET"; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17831 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17835 fi
17836
17837
17838 fi
17839 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17841 set dummy ${ncn_progname}; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17843 $as_echo_n "checking for $ac_word... " >&6; }
17844 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17845 $as_echo_n "(cached) " >&6
17846 else
17847 if test -n "$WINDMC_FOR_TARGET"; then
17848 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17849 else
17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17851 for as_dir in $PATH
17852 do
17853 IFS=$as_save_IFS
17854 test -z "$as_dir" && as_dir=.
17855 for ac_exec_ext in '' $ac_executable_extensions; do
17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17857 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17859 break 2
17860 fi
17861 done
17862 done
17863 IFS=$as_save_IFS
17864
17865 fi
17866 fi
17867 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17868 if test -n "$WINDMC_FOR_TARGET"; then
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17870 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17871 else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17874 fi
17875
17876
17877 fi
17878 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17879 done
17880 fi
17881
17882 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17883 set dummy windmc
17884 if test $build = $target ; then
17885 WINDMC_FOR_TARGET="$2"
17886 else
17887 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17888 fi
17889 else
17890 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17891 fi
17892
17893 else
17894 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17895 fi
17896
17897
17898 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17901 $as_echo_n "checking where to find the target ar... " >&6; }
17902 if test "x${build}" != "x${host}" ; then
17903 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $AR_FOR_TARGET`
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17907 $as_echo "pre-installed in $ac_dir" >&6; }
17908 else
17909 # Canadian cross, just use what we found
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17911 $as_echo "pre-installed" >&6; }
17912 fi
17913 else
17914 ok=yes
17915 case " ${configdirs} " in
17916 *" binutils "*) ;;
17917 *) ok=no ;;
17918 esac
17919
17920 if test $ok = yes; then
17921 # An in-tree tool is available and we can use it
17922 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17924 $as_echo "just compiled" >&6; }
17925 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17926 # We already found the complete path
17927 ac_dir=`dirname $AR_FOR_TARGET`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17929 $as_echo "pre-installed in $ac_dir" >&6; }
17930 elif test "x$target" = "x$host"; then
17931 # We can use an host tool
17932 AR_FOR_TARGET='$(AR)'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17934 $as_echo "host tool" >&6; }
17935 else
17936 # We need a cross tool
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17938 $as_echo "pre-installed" >&6; }
17939 fi
17940 fi
17941
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17943 $as_echo_n "checking where to find the target as... " >&6; }
17944 if test "x${build}" != "x${host}" ; then
17945 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $AS_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17949 $as_echo "pre-installed in $ac_dir" >&6; }
17950 else
17951 # Canadian cross, just use what we found
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17953 $as_echo "pre-installed" >&6; }
17954 fi
17955 else
17956 ok=yes
17957 case " ${configdirs} " in
17958 *" gas "*) ;;
17959 *) ok=no ;;
17960 esac
17961
17962 if test $ok = yes; then
17963 # An in-tree tool is available and we can use it
17964 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17966 $as_echo "just compiled" >&6; }
17967 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17968 # We already found the complete path
17969 ac_dir=`dirname $AS_FOR_TARGET`
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17971 $as_echo "pre-installed in $ac_dir" >&6; }
17972 elif test "x$target" = "x$host"; then
17973 # We can use an host tool
17974 AS_FOR_TARGET='$(AS)'
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17976 $as_echo "host tool" >&6; }
17977 else
17978 # We need a cross tool
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17980 $as_echo "pre-installed" >&6; }
17981 fi
17982 fi
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17985 $as_echo_n "checking where to find the target cc... " >&6; }
17986 if test "x${build}" != "x${host}" ; then
17987 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17988 # We already found the complete path
17989 ac_dir=`dirname $CC_FOR_TARGET`
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17991 $as_echo "pre-installed in $ac_dir" >&6; }
17992 else
17993 # Canadian cross, just use what we found
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17995 $as_echo "pre-installed" >&6; }
17996 fi
17997 else
17998 ok=yes
17999 case " ${configdirs} " in
18000 *" gcc "*) ;;
18001 *) ok=no ;;
18002 esac
18003
18004 if test $ok = yes; then
18005 # An in-tree tool is available and we can use it
18006 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18008 $as_echo "just compiled" >&6; }
18009 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18010 # We already found the complete path
18011 ac_dir=`dirname $CC_FOR_TARGET`
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18013 $as_echo "pre-installed in $ac_dir" >&6; }
18014 elif test "x$target" = "x$host"; then
18015 # We can use an host tool
18016 CC_FOR_TARGET='$(CC)'
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18018 $as_echo "host tool" >&6; }
18019 else
18020 # We need a cross tool
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18022 $as_echo "pre-installed" >&6; }
18023 fi
18024 fi
18025
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18027 $as_echo_n "checking where to find the target c++... " >&6; }
18028 if test "x${build}" != "x${host}" ; then
18029 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18030 # We already found the complete path
18031 ac_dir=`dirname $CXX_FOR_TARGET`
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18033 $as_echo "pre-installed in $ac_dir" >&6; }
18034 else
18035 # Canadian cross, just use what we found
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18037 $as_echo "pre-installed" >&6; }
18038 fi
18039 else
18040 ok=yes
18041 case " ${configdirs} " in
18042 *" gcc "*) ;;
18043 *) ok=no ;;
18044 esac
18045 case ,${enable_languages}, in
18046 *,c++,*) ;;
18047 *) ok=no ;;
18048 esac
18049 if test $ok = yes; then
18050 # An in-tree tool is available and we can use it
18051 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'
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18053 $as_echo "just compiled" >&6; }
18054 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18055 # We already found the complete path
18056 ac_dir=`dirname $CXX_FOR_TARGET`
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18058 $as_echo "pre-installed in $ac_dir" >&6; }
18059 elif test "x$target" = "x$host"; then
18060 # We can use an host tool
18061 CXX_FOR_TARGET='$(CXX)'
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18063 $as_echo "host tool" >&6; }
18064 else
18065 # We need a cross tool
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18067 $as_echo "pre-installed" >&6; }
18068 fi
18069 fi
18070
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18072 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
18073 if test "x${build}" != "x${host}" ; then
18074 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18075 # We already found the complete path
18076 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18078 $as_echo "pre-installed in $ac_dir" >&6; }
18079 else
18080 # Canadian cross, just use what we found
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18082 $as_echo "pre-installed" >&6; }
18083 fi
18084 else
18085 ok=yes
18086 case " ${configdirs} " in
18087 *" gcc "*) ;;
18088 *) ok=no ;;
18089 esac
18090 case ,${enable_languages}, in
18091 *,c++,*) ;;
18092 *) ok=no ;;
18093 esac
18094 if test $ok = yes; then
18095 # An in-tree tool is available and we can use it
18096 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'
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18098 $as_echo "just compiled" >&6; }
18099 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18100 # We already found the complete path
18101 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18103 $as_echo "pre-installed in $ac_dir" >&6; }
18104 elif test "x$target" = "x$host"; then
18105 # We can use an host tool
18106 RAW_CXX_FOR_TARGET='$(CXX)'
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18108 $as_echo "host tool" >&6; }
18109 else
18110 # We need a cross tool
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18112 $as_echo "pre-installed" >&6; }
18113 fi
18114 fi
18115
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18117 $as_echo_n "checking where to find the target dlltool... " >&6; }
18118 if test "x${build}" != "x${host}" ; then
18119 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18120 # We already found the complete path
18121 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18123 $as_echo "pre-installed in $ac_dir" >&6; }
18124 else
18125 # Canadian cross, just use what we found
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18127 $as_echo "pre-installed" >&6; }
18128 fi
18129 else
18130 ok=yes
18131 case " ${configdirs} " in
18132 *" binutils "*) ;;
18133 *) ok=no ;;
18134 esac
18135
18136 if test $ok = yes; then
18137 # An in-tree tool is available and we can use it
18138 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18140 $as_echo "just compiled" >&6; }
18141 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18142 # We already found the complete path
18143 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18145 $as_echo "pre-installed in $ac_dir" >&6; }
18146 elif test "x$target" = "x$host"; then
18147 # We can use an host tool
18148 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18150 $as_echo "host tool" >&6; }
18151 else
18152 # We need a cross tool
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18154 $as_echo "pre-installed" >&6; }
18155 fi
18156 fi
18157
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18159 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18160 if test "x${build}" != "x${host}" ; then
18161 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18162 # We already found the complete path
18163 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18165 $as_echo "pre-installed in $ac_dir" >&6; }
18166 else
18167 # Canadian cross, just use what we found
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18169 $as_echo "pre-installed" >&6; }
18170 fi
18171 else
18172 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18173 # We already found the complete path
18174 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18176 $as_echo "pre-installed in $ac_dir" >&6; }
18177 elif test "x$target" = "x$host"; then
18178 # We can use an host tool
18179 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18181 $as_echo "host tool" >&6; }
18182 else
18183 # We need a cross tool
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18185 $as_echo "pre-installed" >&6; }
18186 fi
18187 fi
18188
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18190 $as_echo_n "checking where to find the target gcc... " >&6; }
18191 if test "x${build}" != "x${host}" ; then
18192 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18193 # We already found the complete path
18194 ac_dir=`dirname $GCC_FOR_TARGET`
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18196 $as_echo "pre-installed in $ac_dir" >&6; }
18197 else
18198 # Canadian cross, just use what we found
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18200 $as_echo "pre-installed" >&6; }
18201 fi
18202 else
18203 ok=yes
18204 case " ${configdirs} " in
18205 *" gcc "*) ;;
18206 *) ok=no ;;
18207 esac
18208
18209 if test $ok = yes; then
18210 # An in-tree tool is available and we can use it
18211 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18213 $as_echo "just compiled" >&6; }
18214 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18215 # We already found the complete path
18216 ac_dir=`dirname $GCC_FOR_TARGET`
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18218 $as_echo "pre-installed in $ac_dir" >&6; }
18219 elif test "x$target" = "x$host"; then
18220 # We can use an host tool
18221 GCC_FOR_TARGET='$()'
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18223 $as_echo "host tool" >&6; }
18224 else
18225 # We need a cross tool
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18227 $as_echo "pre-installed" >&6; }
18228 fi
18229 fi
18230
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18232 $as_echo_n "checking where to find the target gfortran... " >&6; }
18233 if test "x${build}" != "x${host}" ; then
18234 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18235 # We already found the complete path
18236 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18238 $as_echo "pre-installed in $ac_dir" >&6; }
18239 else
18240 # Canadian cross, just use what we found
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18242 $as_echo "pre-installed" >&6; }
18243 fi
18244 else
18245 ok=yes
18246 case " ${configdirs} " in
18247 *" gcc "*) ;;
18248 *) ok=no ;;
18249 esac
18250 case ,${enable_languages}, in
18251 *,fortran,*) ;;
18252 *) ok=no ;;
18253 esac
18254 if test $ok = yes; then
18255 # An in-tree tool is available and we can use it
18256 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18258 $as_echo "just compiled" >&6; }
18259 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18260 # We already found the complete path
18261 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18263 $as_echo "pre-installed in $ac_dir" >&6; }
18264 elif test "x$target" = "x$host"; then
18265 # We can use an host tool
18266 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18268 $as_echo "host tool" >&6; }
18269 else
18270 # We need a cross tool
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18272 $as_echo "pre-installed" >&6; }
18273 fi
18274 fi
18275
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18277 $as_echo_n "checking where to find the target gccgo... " >&6; }
18278 if test "x${build}" != "x${host}" ; then
18279 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18280 # We already found the complete path
18281 ac_dir=`dirname $GOC_FOR_TARGET`
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18283 $as_echo "pre-installed in $ac_dir" >&6; }
18284 else
18285 # Canadian cross, just use what we found
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18287 $as_echo "pre-installed" >&6; }
18288 fi
18289 else
18290 ok=yes
18291 case " ${configdirs} " in
18292 *" gcc "*) ;;
18293 *) ok=no ;;
18294 esac
18295 case ,${enable_languages}, in
18296 *,go,*) ;;
18297 *) ok=no ;;
18298 esac
18299 if test $ok = yes; then
18300 # An in-tree tool is available and we can use it
18301 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18303 $as_echo "just compiled" >&6; }
18304 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18305 # We already found the complete path
18306 ac_dir=`dirname $GOC_FOR_TARGET`
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18308 $as_echo "pre-installed in $ac_dir" >&6; }
18309 elif test "x$target" = "x$host"; then
18310 # We can use an host tool
18311 GOC_FOR_TARGET='$(GOC)'
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18313 $as_echo "host tool" >&6; }
18314 else
18315 # We need a cross tool
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18317 $as_echo "pre-installed" >&6; }
18318 fi
18319 fi
18320
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18322 $as_echo_n "checking where to find the target gdc... " >&6; }
18323 if test "x${build}" != "x${host}" ; then
18324 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18325 # We already found the complete path
18326 ac_dir=`dirname $GDC_FOR_TARGET`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18328 $as_echo "pre-installed in $ac_dir" >&6; }
18329 else
18330 # Canadian cross, just use what we found
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18332 $as_echo "pre-installed" >&6; }
18333 fi
18334 else
18335 ok=yes
18336 case " ${configdirs} " in
18337 *" gcc "*) ;;
18338 *) ok=no ;;
18339 esac
18340 case ,${enable_languages}, in
18341 *,d,*) ;;
18342 *) ok=no ;;
18343 esac
18344 if test $ok = yes; then
18345 # An in-tree tool is available and we can use it
18346 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18348 $as_echo "just compiled" >&6; }
18349 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18350 # We already found the complete path
18351 ac_dir=`dirname $GDC_FOR_TARGET`
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18353 $as_echo "pre-installed in $ac_dir" >&6; }
18354 elif test "x$target" = "x$host"; then
18355 # We can use an host tool
18356 GDC_FOR_TARGET='$(GDC)'
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18358 $as_echo "host tool" >&6; }
18359 else
18360 # We need a cross tool
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18362 $as_echo "pre-installed" >&6; }
18363 fi
18364 fi
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18367 $as_echo_n "checking where to find the target gm2... " >&6; }
18368 if test "x${build}" != "x${host}" ; then
18369 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18370 # We already found the complete path
18371 ac_dir=`dirname $GM2_FOR_TARGET`
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18373 $as_echo "pre-installed in $ac_dir" >&6; }
18374 else
18375 # Canadian cross, just use what we found
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18377 $as_echo "pre-installed" >&6; }
18378 fi
18379 else
18380 ok=yes
18381 case " ${configdirs} " in
18382 *" gcc "*) ;;
18383 *) ok=no ;;
18384 esac
18385 case ,${enable_languages}, in
18386 *,m2,*) ;;
18387 *) ok=no ;;
18388 esac
18389 if test $ok = yes; then
18390 # An in-tree tool is available and we can use it
18391 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18393 $as_echo "just compiled" >&6; }
18394 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18395 # We already found the complete path
18396 ac_dir=`dirname $GM2_FOR_TARGET`
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18398 $as_echo "pre-installed in $ac_dir" >&6; }
18399 elif test "x$target" = "x$host"; then
18400 # We can use an host tool
18401 GM2_FOR_TARGET='$(GM2)'
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18403 $as_echo "host tool" >&6; }
18404 else
18405 # We need a cross tool
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18407 $as_echo "pre-installed" >&6; }
18408 fi
18409 fi
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18412 $as_echo_n "checking where to find the target ld... " >&6; }
18413 if test "x${build}" != "x${host}" ; then
18414 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18415 # We already found the complete path
18416 ac_dir=`dirname $LD_FOR_TARGET`
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18418 $as_echo "pre-installed in $ac_dir" >&6; }
18419 else
18420 # Canadian cross, just use what we found
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18422 $as_echo "pre-installed" >&6; }
18423 fi
18424 else
18425 ok=yes
18426 case " ${configdirs} " in
18427 *" ld "*) ;;
18428 *) ok=no ;;
18429 esac
18430
18431 if test $ok = yes; then
18432 # An in-tree tool is available and we can use it
18433 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18435 $as_echo "just compiled" >&6; }
18436 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18437 # We already found the complete path
18438 ac_dir=`dirname $LD_FOR_TARGET`
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18440 $as_echo "pre-installed in $ac_dir" >&6; }
18441 elif test "x$target" = "x$host"; then
18442 # We can use an host tool
18443 LD_FOR_TARGET='$(LD)'
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18445 $as_echo "host tool" >&6; }
18446 else
18447 # We need a cross tool
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18449 $as_echo "pre-installed" >&6; }
18450 fi
18451 fi
18452
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18454 $as_echo_n "checking where to find the target lipo... " >&6; }
18455 if test "x${build}" != "x${host}" ; then
18456 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18457 # We already found the complete path
18458 ac_dir=`dirname $LIPO_FOR_TARGET`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18460 $as_echo "pre-installed in $ac_dir" >&6; }
18461 else
18462 # Canadian cross, just use what we found
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18464 $as_echo "pre-installed" >&6; }
18465 fi
18466 else
18467 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18468 # We already found the complete path
18469 ac_dir=`dirname $LIPO_FOR_TARGET`
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18471 $as_echo "pre-installed in $ac_dir" >&6; }
18472 elif test "x$target" = "x$host"; then
18473 # We can use an host tool
18474 LIPO_FOR_TARGET='$(LIPO)'
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18476 $as_echo "host tool" >&6; }
18477 else
18478 # We need a cross tool
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18480 $as_echo "pre-installed" >&6; }
18481 fi
18482 fi
18483
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18485 $as_echo_n "checking where to find the target nm... " >&6; }
18486 if test "x${build}" != "x${host}" ; then
18487 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18488 # We already found the complete path
18489 ac_dir=`dirname $NM_FOR_TARGET`
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18491 $as_echo "pre-installed in $ac_dir" >&6; }
18492 else
18493 # Canadian cross, just use what we found
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18495 $as_echo "pre-installed" >&6; }
18496 fi
18497 else
18498 ok=yes
18499 case " ${configdirs} " in
18500 *" binutils "*) ;;
18501 *) ok=no ;;
18502 esac
18503
18504 if test $ok = yes; then
18505 # An in-tree tool is available and we can use it
18506 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18508 $as_echo "just compiled" >&6; }
18509 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18510 # We already found the complete path
18511 ac_dir=`dirname $NM_FOR_TARGET`
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18513 $as_echo "pre-installed in $ac_dir" >&6; }
18514 elif test "x$target" = "x$host"; then
18515 # We can use an host tool
18516 NM_FOR_TARGET='$(NM)'
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18518 $as_echo "host tool" >&6; }
18519 else
18520 # We need a cross tool
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18522 $as_echo "pre-installed" >&6; }
18523 fi
18524 fi
18525
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18527 $as_echo_n "checking where to find the target objcopy... " >&6; }
18528 if test "x${build}" != "x${host}" ; then
18529 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18530 # We already found the complete path
18531 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18533 $as_echo "pre-installed in $ac_dir" >&6; }
18534 else
18535 # Canadian cross, just use what we found
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18537 $as_echo "pre-installed" >&6; }
18538 fi
18539 else
18540 ok=yes
18541 case " ${configdirs} " in
18542 *" binutils "*) ;;
18543 *) ok=no ;;
18544 esac
18545
18546 if test $ok = yes; then
18547 # An in-tree tool is available and we can use it
18548 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18550 $as_echo "just compiled" >&6; }
18551 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18552 # We already found the complete path
18553 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18555 $as_echo "pre-installed in $ac_dir" >&6; }
18556 elif test "x$target" = "x$host"; then
18557 # We can use an host tool
18558 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18560 $as_echo "host tool" >&6; }
18561 else
18562 # We need a cross tool
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18564 $as_echo "pre-installed" >&6; }
18565 fi
18566 fi
18567
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18569 $as_echo_n "checking where to find the target objdump... " >&6; }
18570 if test "x${build}" != "x${host}" ; then
18571 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18572 # We already found the complete path
18573 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18575 $as_echo "pre-installed in $ac_dir" >&6; }
18576 else
18577 # Canadian cross, just use what we found
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18579 $as_echo "pre-installed" >&6; }
18580 fi
18581 else
18582 ok=yes
18583 case " ${configdirs} " in
18584 *" binutils "*) ;;
18585 *) ok=no ;;
18586 esac
18587
18588 if test $ok = yes; then
18589 # An in-tree tool is available and we can use it
18590 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18592 $as_echo "just compiled" >&6; }
18593 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18594 # We already found the complete path
18595 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18597 $as_echo "pre-installed in $ac_dir" >&6; }
18598 elif test "x$target" = "x$host"; then
18599 # We can use an host tool
18600 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18602 $as_echo "host tool" >&6; }
18603 else
18604 # We need a cross tool
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18606 $as_echo "pre-installed" >&6; }
18607 fi
18608 fi
18609
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18611 $as_echo_n "checking where to find the target otool... " >&6; }
18612 if test "x${build}" != "x${host}" ; then
18613 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18614 # We already found the complete path
18615 ac_dir=`dirname $OTOOL_FOR_TARGET`
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18617 $as_echo "pre-installed in $ac_dir" >&6; }
18618 else
18619 # Canadian cross, just use what we found
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18621 $as_echo "pre-installed" >&6; }
18622 fi
18623 else
18624 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18625 # We already found the complete path
18626 ac_dir=`dirname $OTOOL_FOR_TARGET`
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18628 $as_echo "pre-installed in $ac_dir" >&6; }
18629 elif test "x$target" = "x$host"; then
18630 # We can use an host tool
18631 OTOOL_FOR_TARGET='$(OTOOL)'
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18633 $as_echo "host tool" >&6; }
18634 else
18635 # We need a cross tool
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18637 $as_echo "pre-installed" >&6; }
18638 fi
18639 fi
18640
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18642 $as_echo_n "checking where to find the target ranlib... " >&6; }
18643 if test "x${build}" != "x${host}" ; then
18644 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18645 # We already found the complete path
18646 ac_dir=`dirname $RANLIB_FOR_TARGET`
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18648 $as_echo "pre-installed in $ac_dir" >&6; }
18649 else
18650 # Canadian cross, just use what we found
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18652 $as_echo "pre-installed" >&6; }
18653 fi
18654 else
18655 ok=yes
18656 case " ${configdirs} " in
18657 *" binutils "*) ;;
18658 *) ok=no ;;
18659 esac
18660
18661 if test $ok = yes; then
18662 # An in-tree tool is available and we can use it
18663 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18665 $as_echo "just compiled" >&6; }
18666 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18667 # We already found the complete path
18668 ac_dir=`dirname $RANLIB_FOR_TARGET`
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18670 $as_echo "pre-installed in $ac_dir" >&6; }
18671 elif test "x$target" = "x$host"; then
18672 # We can use an host tool
18673 RANLIB_FOR_TARGET='$(RANLIB)'
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18675 $as_echo "host tool" >&6; }
18676 else
18677 # We need a cross tool
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18679 $as_echo "pre-installed" >&6; }
18680 fi
18681 fi
18682
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18684 $as_echo_n "checking where to find the target readelf... " >&6; }
18685 if test "x${build}" != "x${host}" ; then
18686 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18687 # We already found the complete path
18688 ac_dir=`dirname $READELF_FOR_TARGET`
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18690 $as_echo "pre-installed in $ac_dir" >&6; }
18691 else
18692 # Canadian cross, just use what we found
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18694 $as_echo "pre-installed" >&6; }
18695 fi
18696 else
18697 ok=yes
18698 case " ${configdirs} " in
18699 *" binutils "*) ;;
18700 *) ok=no ;;
18701 esac
18702
18703 if test $ok = yes; then
18704 # An in-tree tool is available and we can use it
18705 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18707 $as_echo "just compiled" >&6; }
18708 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18709 # We already found the complete path
18710 ac_dir=`dirname $READELF_FOR_TARGET`
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18712 $as_echo "pre-installed in $ac_dir" >&6; }
18713 elif test "x$target" = "x$host"; then
18714 # We can use an host tool
18715 READELF_FOR_TARGET='$(READELF)'
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18717 $as_echo "host tool" >&6; }
18718 else
18719 # We need a cross tool
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18721 $as_echo "pre-installed" >&6; }
18722 fi
18723 fi
18724
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18726 $as_echo_n "checking where to find the target strip... " >&6; }
18727 if test "x${build}" != "x${host}" ; then
18728 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18729 # We already found the complete path
18730 ac_dir=`dirname $STRIP_FOR_TARGET`
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18732 $as_echo "pre-installed in $ac_dir" >&6; }
18733 else
18734 # Canadian cross, just use what we found
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18736 $as_echo "pre-installed" >&6; }
18737 fi
18738 else
18739 ok=yes
18740 case " ${configdirs} " in
18741 *" binutils "*) ;;
18742 *) ok=no ;;
18743 esac
18744
18745 if test $ok = yes; then
18746 # An in-tree tool is available and we can use it
18747 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18749 $as_echo "just compiled" >&6; }
18750 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18751 # We already found the complete path
18752 ac_dir=`dirname $STRIP_FOR_TARGET`
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18754 $as_echo "pre-installed in $ac_dir" >&6; }
18755 elif test "x$target" = "x$host"; then
18756 # We can use an host tool
18757 STRIP_FOR_TARGET='$(STRIP)'
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18759 $as_echo "host tool" >&6; }
18760 else
18761 # We need a cross tool
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18763 $as_echo "pre-installed" >&6; }
18764 fi
18765 fi
18766
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18768 $as_echo_n "checking where to find the target windres... " >&6; }
18769 if test "x${build}" != "x${host}" ; then
18770 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18771 # We already found the complete path
18772 ac_dir=`dirname $WINDRES_FOR_TARGET`
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18774 $as_echo "pre-installed in $ac_dir" >&6; }
18775 else
18776 # Canadian cross, just use what we found
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18778 $as_echo "pre-installed" >&6; }
18779 fi
18780 else
18781 ok=yes
18782 case " ${configdirs} " in
18783 *" binutils "*) ;;
18784 *) ok=no ;;
18785 esac
18786
18787 if test $ok = yes; then
18788 # An in-tree tool is available and we can use it
18789 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18791 $as_echo "just compiled" >&6; }
18792 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18793 # We already found the complete path
18794 ac_dir=`dirname $WINDRES_FOR_TARGET`
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18796 $as_echo "pre-installed in $ac_dir" >&6; }
18797 elif test "x$target" = "x$host"; then
18798 # We can use an host tool
18799 WINDRES_FOR_TARGET='$(WINDRES)'
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18801 $as_echo "host tool" >&6; }
18802 else
18803 # We need a cross tool
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18805 $as_echo "pre-installed" >&6; }
18806 fi
18807 fi
18808
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18810 $as_echo_n "checking where to find the target windmc... " >&6; }
18811 if test "x${build}" != "x${host}" ; then
18812 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18813 # We already found the complete path
18814 ac_dir=`dirname $WINDMC_FOR_TARGET`
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18816 $as_echo "pre-installed in $ac_dir" >&6; }
18817 else
18818 # Canadian cross, just use what we found
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18820 $as_echo "pre-installed" >&6; }
18821 fi
18822 else
18823 ok=yes
18824 case " ${configdirs} " in
18825 *" binutils "*) ;;
18826 *) ok=no ;;
18827 esac
18828
18829 if test $ok = yes; then
18830 # An in-tree tool is available and we can use it
18831 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18833 $as_echo "just compiled" >&6; }
18834 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18835 # We already found the complete path
18836 ac_dir=`dirname $WINDMC_FOR_TARGET`
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18838 $as_echo "pre-installed in $ac_dir" >&6; }
18839 elif test "x$target" = "x$host"; then
18840 # We can use an host tool
18841 WINDMC_FOR_TARGET='$(WINDMC)'
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18843 $as_echo "host tool" >&6; }
18844 else
18845 # We need a cross tool
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18847 $as_echo "pre-installed" >&6; }
18848 fi
18849 fi
18850
18851
18852
18853
18854
18855 # Certain tools may need extra flags.
18856 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18857 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18858 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18859
18860 # When building target libraries, except in a Canadian cross, we use
18861 # the same toolchain as the compiler we just built.
18862 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18863 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18864 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18865 if test $host = $build; then
18866 case " $configdirs " in
18867 *" gcc "*)
18868 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18869 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18870 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18871 ;;
18872 esac
18873 fi
18874
18875
18876
18877
18878
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18880 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18881 # Check whether --enable-maintainer-mode was given.
18882 if test "${enable_maintainer_mode+set}" = set; then :
18883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18884 else
18885 USE_MAINTAINER_MODE=no
18886 fi
18887
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18890
18891
18892 if test "$USE_MAINTAINER_MODE" = yes; then
18893 MAINTAINER_MODE_TRUE=
18894 MAINTAINER_MODE_FALSE='#'
18895 else
18896 MAINTAINER_MODE_TRUE='#'
18897 MAINTAINER_MODE_FALSE=
18898 fi
18899 MAINT=$MAINTAINER_MODE_TRUE
18900
18901 # ---------------------
18902 # GCC bootstrap support
18903 # ---------------------
18904
18905 # Stage specific cflags for build.
18906 stage1_cflags="-g"
18907 case $build in
18908 vax-*-*)
18909 case ${GCC} in
18910 yes) stage1_cflags="-g -Wa,-J" ;;
18911 *) stage1_cflags="-g -J" ;;
18912 esac ;;
18913 esac
18914
18915
18916
18917 # Enable --enable-checking in stage1 of the compiler.
18918 # Check whether --enable-stage1-checking was given.
18919 if test "${enable_stage1_checking+set}" = set; then :
18920 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18921 else
18922 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18923 # For --disable-checking or implicit --enable-checking=release, avoid
18924 # setting --enable-checking=gc in the default stage1 checking for LTO
18925 # bootstraps. See PR62077.
18926 case $BUILD_CONFIG in
18927 *lto*)
18928 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18929 *)
18930 stage1_checking=--enable-checking=yes,types;;
18931 esac
18932 if test "x$enable_checking" = x && \
18933 test -d ${srcdir}/gcc && \
18934 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18935 stage1_checking=--enable-checking=yes,types,extra
18936 fi
18937 else
18938 stage1_checking=--enable-checking=$enable_checking,types
18939 fi
18940 fi
18941
18942
18943
18944 # Enable -Werror in bootstrap stage2 and later.
18945 # Check whether --enable-werror was given.
18946 if test "${enable_werror+set}" = set; then :
18947 enableval=$enable_werror;
18948 case ${enable_werror} in
18949 yes) stage2_werror_flag="--enable-werror-always" ;;
18950 *) stage2_werror_flag="" ;;
18951 esac
18952
18953 else
18954
18955 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18956 case $BUILD_CONFIG in
18957 bootstrap-debug)
18958 stage2_werror_flag="--enable-werror-always" ;;
18959 "")
18960 stage2_werror_flag="--enable-werror-always" ;;
18961 esac
18962 fi
18963
18964 fi
18965
18966
18967
18968
18969 # Specify what files to not compare during bootstrap.
18970
18971 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18972 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18973 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18974 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18975 case "$target" in
18976 hppa*64*-*-hpux*) ;;
18977 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18978 esac
18979
18980
18981 ac_config_files="$ac_config_files Makefile"
18982
18983 cat >confcache <<\_ACEOF
18984 # This file is a shell script that caches the results of configure
18985 # tests run on this system so they can be shared between configure
18986 # scripts and configure runs, see configure's option --config-cache.
18987 # It is not useful on other systems. If it contains results you don't
18988 # want to keep, you may remove or edit it.
18989 #
18990 # config.status only pays attention to the cache file if you give it
18991 # the --recheck option to rerun configure.
18992 #
18993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18995 # following values.
18996
18997 _ACEOF
18998
18999 # The following way of writing the cache mishandles newlines in values,
19000 # but we know of no workaround that is simple, portable, and efficient.
19001 # So, we kill variables containing newlines.
19002 # Ultrix sh set writes to stderr and can't be redirected directly,
19003 # and sets the high bit in the cache file unless we assign to the vars.
19004 (
19005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19006 eval ac_val=\$$ac_var
19007 case $ac_val in #(
19008 *${as_nl}*)
19009 case $ac_var in #(
19010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19012 esac
19013 case $ac_var in #(
19014 _ | IFS | as_nl) ;; #(
19015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19016 *) { eval $ac_var=; unset $ac_var;} ;;
19017 esac ;;
19018 esac
19019 done
19020
19021 (set) 2>&1 |
19022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19023 *${as_nl}ac_space=\ *)
19024 # `set' does not quote correctly, so add quotes: double-quote
19025 # substitution turns \\\\ into \\, and sed turns \\ into \.
19026 sed -n \
19027 "s/'/'\\\\''/g;
19028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19029 ;; #(
19030 *)
19031 # `set' quotes correctly as required by POSIX, so do not add quotes.
19032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19033 ;;
19034 esac |
19035 sort
19036 ) |
19037 sed '
19038 /^ac_cv_env_/b end
19039 t clear
19040 :clear
19041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19042 t end
19043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19044 :end' >>confcache
19045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19046 if test -w "$cache_file"; then
19047 if test "x$cache_file" != "x/dev/null"; then
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19049 $as_echo "$as_me: updating cache $cache_file" >&6;}
19050 if test ! -f "$cache_file" || test -h "$cache_file"; then
19051 cat confcache >"$cache_file"
19052 else
19053 case $cache_file in #(
19054 */* | ?:*)
19055 mv -f confcache "$cache_file"$$ &&
19056 mv -f "$cache_file"$$ "$cache_file" ;; #(
19057 *)
19058 mv -f confcache "$cache_file" ;;
19059 esac
19060 fi
19061 fi
19062 else
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19065 fi
19066 fi
19067 rm -f confcache
19068
19069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19070 # Let make expand exec_prefix.
19071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19072
19073 # Transform confdefs.h into DEFS.
19074 # Protect against shell expansion while executing Makefile rules.
19075 # Protect against Makefile macro expansion.
19076 #
19077 # If the first sed substitution is executed (which looks for macros that
19078 # take arguments), then branch to the quote section. Otherwise,
19079 # look for a macro that doesn't take arguments.
19080 ac_script='
19081 :mline
19082 /\\$/{
19083 N
19084 s,\\\n,,
19085 b mline
19086 }
19087 t clear
19088 :clear
19089 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19090 t quote
19091 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19092 t quote
19093 b any
19094 :quote
19095 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19096 s/\[/\\&/g
19097 s/\]/\\&/g
19098 s/\$/$$/g
19099 H
19100 :any
19101 ${
19102 g
19103 s/^\n//
19104 s/\n/ /g
19105 p
19106 }
19107 '
19108 DEFS=`sed -n "$ac_script" confdefs.h`
19109
19110
19111 ac_libobjs=
19112 ac_ltlibobjs=
19113 U=
19114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19115 # 1. Remove the extension, and $U if already installed.
19116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19119 # will be set to the directory where LIBOBJS objects are built.
19120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19122 done
19123 LIBOBJS=$ac_libobjs
19124
19125 LTLIBOBJS=$ac_ltlibobjs
19126
19127
19128
19129 : "${CONFIG_STATUS=./config.status}"
19130 ac_write_fail=0
19131 ac_clean_files_save=$ac_clean_files
19132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19135 as_write_fail=0
19136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19137 #! $SHELL
19138 # Generated by $as_me.
19139 # Run this file to recreate the current configuration.
19140 # Compiler output produced by configure, useful for debugging
19141 # configure, is in config.log if it exists.
19142
19143 debug=false
19144 ac_cs_recheck=false
19145 ac_cs_silent=false
19146
19147 SHELL=\${CONFIG_SHELL-$SHELL}
19148 export SHELL
19149 _ASEOF
19150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19151 ## -------------------- ##
19152 ## M4sh Initialization. ##
19153 ## -------------------- ##
19154
19155 # Be more Bourne compatible
19156 DUALCASE=1; export DUALCASE # for MKS sh
19157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19158 emulate sh
19159 NULLCMD=:
19160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19161 # is contrary to our usage. Disable this feature.
19162 alias -g '${1+"$@"}'='"$@"'
19163 setopt NO_GLOB_SUBST
19164 else
19165 case `(set -o) 2>/dev/null` in #(
19166 *posix*) :
19167 set -o posix ;; #(
19168 *) :
19169 ;;
19170 esac
19171 fi
19172
19173
19174 as_nl='
19175 '
19176 export as_nl
19177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19181 # Prefer a ksh shell builtin over an external printf program on Solaris,
19182 # but without wasting forks for bash or zsh.
19183 if test -z "$BASH_VERSION$ZSH_VERSION" \
19184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19185 as_echo='print -r --'
19186 as_echo_n='print -rn --'
19187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19188 as_echo='printf %s\n'
19189 as_echo_n='printf %s'
19190 else
19191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19193 as_echo_n='/usr/ucb/echo -n'
19194 else
19195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19196 as_echo_n_body='eval
19197 arg=$1;
19198 case $arg in #(
19199 *"$as_nl"*)
19200 expr "X$arg" : "X\\(.*\\)$as_nl";
19201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19202 esac;
19203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19204 '
19205 export as_echo_n_body
19206 as_echo_n='sh -c $as_echo_n_body as_echo'
19207 fi
19208 export as_echo_body
19209 as_echo='sh -c $as_echo_body as_echo'
19210 fi
19211
19212 # The user is always right.
19213 if test "${PATH_SEPARATOR+set}" != set; then
19214 PATH_SEPARATOR=:
19215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19217 PATH_SEPARATOR=';'
19218 }
19219 fi
19220
19221
19222 # IFS
19223 # We need space, tab and new line, in precisely that order. Quoting is
19224 # there to prevent editors from complaining about space-tab.
19225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19226 # splitting by setting IFS to empty value.)
19227 IFS=" "" $as_nl"
19228
19229 # Find who we are. Look in the path if we contain no directory separator.
19230 as_myself=
19231 case $0 in #((
19232 *[\\/]* ) as_myself=$0 ;;
19233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19234 for as_dir in $PATH
19235 do
19236 IFS=$as_save_IFS
19237 test -z "$as_dir" && as_dir=.
19238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19239 done
19240 IFS=$as_save_IFS
19241
19242 ;;
19243 esac
19244 # We did not find ourselves, most probably we were run as `sh COMMAND'
19245 # in which case we are not to be found in the path.
19246 if test "x$as_myself" = x; then
19247 as_myself=$0
19248 fi
19249 if test ! -f "$as_myself"; then
19250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19251 exit 1
19252 fi
19253
19254 # Unset variables that we do not need and which cause bugs (e.g. in
19255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19256 # suppresses any "Segmentation fault" message there. '((' could
19257 # trigger a bug in pdksh 5.2.14.
19258 for as_var in BASH_ENV ENV MAIL MAILPATH
19259 do eval test x\${$as_var+set} = xset \
19260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19261 done
19262 PS1='$ '
19263 PS2='> '
19264 PS4='+ '
19265
19266 # NLS nuisances.
19267 LC_ALL=C
19268 export LC_ALL
19269 LANGUAGE=C
19270 export LANGUAGE
19271
19272 # CDPATH.
19273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19274
19275
19276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19277 # ----------------------------------------
19278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19280 # script with STATUS, using 1 if that was 0.
19281 as_fn_error ()
19282 {
19283 as_status=$1; test $as_status -eq 0 && as_status=1
19284 if test "$4"; then
19285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19287 fi
19288 $as_echo "$as_me: error: $2" >&2
19289 as_fn_exit $as_status
19290 } # as_fn_error
19291
19292
19293 # as_fn_set_status STATUS
19294 # -----------------------
19295 # Set $? to STATUS, without forking.
19296 as_fn_set_status ()
19297 {
19298 return $1
19299 } # as_fn_set_status
19300
19301 # as_fn_exit STATUS
19302 # -----------------
19303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19304 as_fn_exit ()
19305 {
19306 set +e
19307 as_fn_set_status $1
19308 exit $1
19309 } # as_fn_exit
19310
19311 # as_fn_unset VAR
19312 # ---------------
19313 # Portably unset VAR.
19314 as_fn_unset ()
19315 {
19316 { eval $1=; unset $1;}
19317 }
19318 as_unset=as_fn_unset
19319 # as_fn_append VAR VALUE
19320 # ----------------------
19321 # Append the text in VALUE to the end of the definition contained in VAR. Take
19322 # advantage of any shell optimizations that allow amortized linear growth over
19323 # repeated appends, instead of the typical quadratic growth present in naive
19324 # implementations.
19325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19326 eval 'as_fn_append ()
19327 {
19328 eval $1+=\$2
19329 }'
19330 else
19331 as_fn_append ()
19332 {
19333 eval $1=\$$1\$2
19334 }
19335 fi # as_fn_append
19336
19337 # as_fn_arith ARG...
19338 # ------------------
19339 # Perform arithmetic evaluation on the ARGs, and store the result in the
19340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19341 # must be portable across $(()) and expr.
19342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19343 eval 'as_fn_arith ()
19344 {
19345 as_val=$(( $* ))
19346 }'
19347 else
19348 as_fn_arith ()
19349 {
19350 as_val=`expr "$@" || test $? -eq 1`
19351 }
19352 fi # as_fn_arith
19353
19354
19355 if expr a : '\(a\)' >/dev/null 2>&1 &&
19356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19357 as_expr=expr
19358 else
19359 as_expr=false
19360 fi
19361
19362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19363 as_basename=basename
19364 else
19365 as_basename=false
19366 fi
19367
19368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19369 as_dirname=dirname
19370 else
19371 as_dirname=false
19372 fi
19373
19374 as_me=`$as_basename -- "$0" ||
19375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19376 X"$0" : 'X\(//\)$' \| \
19377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19378 $as_echo X/"$0" |
19379 sed '/^.*\/\([^/][^/]*\)\/*$/{
19380 s//\1/
19381 q
19382 }
19383 /^X\/\(\/\/\)$/{
19384 s//\1/
19385 q
19386 }
19387 /^X\/\(\/\).*/{
19388 s//\1/
19389 q
19390 }
19391 s/.*/./; q'`
19392
19393 # Avoid depending upon Character Ranges.
19394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19397 as_cr_digits='0123456789'
19398 as_cr_alnum=$as_cr_Letters$as_cr_digits
19399
19400 ECHO_C= ECHO_N= ECHO_T=
19401 case `echo -n x` in #(((((
19402 -n*)
19403 case `echo 'xy\c'` in
19404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19405 xy) ECHO_C='\c';;
19406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19407 ECHO_T=' ';;
19408 esac;;
19409 *)
19410 ECHO_N='-n';;
19411 esac
19412
19413 rm -f conf$$ conf$$.exe conf$$.file
19414 if test -d conf$$.dir; then
19415 rm -f conf$$.dir/conf$$.file
19416 else
19417 rm -f conf$$.dir
19418 mkdir conf$$.dir 2>/dev/null
19419 fi
19420 if (echo >conf$$.file) 2>/dev/null; then
19421 if ln -s conf$$.file conf$$ 2>/dev/null; then
19422 as_ln_s='ln -s'
19423 # ... but there are two gotchas:
19424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19426 # In both cases, we have to default to `cp -pR'.
19427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19428 as_ln_s='cp -pR'
19429 elif ln conf$$.file conf$$ 2>/dev/null; then
19430 as_ln_s=ln
19431 else
19432 as_ln_s='cp -pR'
19433 fi
19434 else
19435 as_ln_s='cp -pR'
19436 fi
19437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19438 rmdir conf$$.dir 2>/dev/null
19439
19440
19441 # as_fn_mkdir_p
19442 # -------------
19443 # Create "$as_dir" as a directory, including parents if necessary.
19444 as_fn_mkdir_p ()
19445 {
19446
19447 case $as_dir in #(
19448 -*) as_dir=./$as_dir;;
19449 esac
19450 test -d "$as_dir" || eval $as_mkdir_p || {
19451 as_dirs=
19452 while :; do
19453 case $as_dir in #(
19454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19455 *) as_qdir=$as_dir;;
19456 esac
19457 as_dirs="'$as_qdir' $as_dirs"
19458 as_dir=`$as_dirname -- "$as_dir" ||
19459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19460 X"$as_dir" : 'X\(//\)[^/]' \| \
19461 X"$as_dir" : 'X\(//\)$' \| \
19462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19463 $as_echo X"$as_dir" |
19464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19465 s//\1/
19466 q
19467 }
19468 /^X\(\/\/\)[^/].*/{
19469 s//\1/
19470 q
19471 }
19472 /^X\(\/\/\)$/{
19473 s//\1/
19474 q
19475 }
19476 /^X\(\/\).*/{
19477 s//\1/
19478 q
19479 }
19480 s/.*/./; q'`
19481 test -d "$as_dir" && break
19482 done
19483 test -z "$as_dirs" || eval "mkdir $as_dirs"
19484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19485
19486
19487 } # as_fn_mkdir_p
19488 if mkdir -p . 2>/dev/null; then
19489 as_mkdir_p='mkdir -p "$as_dir"'
19490 else
19491 test -d ./-p && rmdir ./-p
19492 as_mkdir_p=false
19493 fi
19494
19495
19496 # as_fn_executable_p FILE
19497 # -----------------------
19498 # Test if FILE is an executable regular file.
19499 as_fn_executable_p ()
19500 {
19501 test -f "$1" && test -x "$1"
19502 } # as_fn_executable_p
19503 as_test_x='test -x'
19504 as_executable_p=as_fn_executable_p
19505
19506 # Sed expression to map a string onto a valid CPP name.
19507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19508
19509 # Sed expression to map a string onto a valid variable name.
19510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19511
19512
19513 exec 6>&1
19514 ## ----------------------------------- ##
19515 ## Main body of $CONFIG_STATUS script. ##
19516 ## ----------------------------------- ##
19517 _ASEOF
19518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19519
19520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19521 # Save the log message, to keep $0 and so on meaningful, and to
19522 # report actual input values of CONFIG_FILES etc. instead of their
19523 # values after options handling.
19524 ac_log="
19525 This file was extended by $as_me, which was
19526 generated by GNU Autoconf 2.69. Invocation command line was
19527
19528 CONFIG_FILES = $CONFIG_FILES
19529 CONFIG_HEADERS = $CONFIG_HEADERS
19530 CONFIG_LINKS = $CONFIG_LINKS
19531 CONFIG_COMMANDS = $CONFIG_COMMANDS
19532 $ $0 $@
19533
19534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19535 "
19536
19537 _ACEOF
19538
19539 case $ac_config_files in *"
19540 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19541 esac
19542
19543
19544
19545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546 # Files that config.status was made for.
19547 config_files="$ac_config_files"
19548
19549 _ACEOF
19550
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552 ac_cs_usage="\
19553 \`$as_me' instantiates files and other configuration actions
19554 from templates according to the current configuration. Unless the files
19555 and actions are specified as TAGs, all are instantiated by default.
19556
19557 Usage: $0 [OPTION]... [TAG]...
19558
19559 -h, --help print this help, then exit
19560 -V, --version print version number and configuration settings, then exit
19561 --config print configuration, then exit
19562 -q, --quiet, --silent
19563 do not print progress messages
19564 -d, --debug don't remove temporary files
19565 --recheck update $as_me by reconfiguring in the same conditions
19566 --file=FILE[:TEMPLATE]
19567 instantiate the configuration file FILE
19568
19569 Configuration files:
19570 $config_files
19571
19572 Report bugs to the package provider."
19573
19574 _ACEOF
19575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19577 ac_cs_version="\\
19578 config.status
19579 configured by $0, generated by GNU Autoconf 2.69,
19580 with options \\"\$ac_cs_config\\"
19581
19582 Copyright (C) 2012 Free Software Foundation, Inc.
19583 This config.status script is free software; the Free Software Foundation
19584 gives unlimited permission to copy, distribute and modify it."
19585
19586 ac_pwd='$ac_pwd'
19587 srcdir='$srcdir'
19588 INSTALL='$INSTALL'
19589 AWK='$AWK'
19590 test -n "\$AWK" || AWK=awk
19591 _ACEOF
19592
19593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19594 # The default lists apply if the user does not specify any file.
19595 ac_need_defaults=:
19596 while test $# != 0
19597 do
19598 case $1 in
19599 --*=?*)
19600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19602 ac_shift=:
19603 ;;
19604 --*=)
19605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19606 ac_optarg=
19607 ac_shift=:
19608 ;;
19609 *)
19610 ac_option=$1
19611 ac_optarg=$2
19612 ac_shift=shift
19613 ;;
19614 esac
19615
19616 case $ac_option in
19617 # Handling of the options.
19618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19619 ac_cs_recheck=: ;;
19620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19621 $as_echo "$ac_cs_version"; exit ;;
19622 --config | --confi | --conf | --con | --co | --c )
19623 $as_echo "$ac_cs_config"; exit ;;
19624 --debug | --debu | --deb | --de | --d | -d )
19625 debug=: ;;
19626 --file | --fil | --fi | --f )
19627 $ac_shift
19628 case $ac_optarg in
19629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19630 '') as_fn_error $? "missing file argument" ;;
19631 esac
19632 as_fn_append CONFIG_FILES " '$ac_optarg'"
19633 ac_need_defaults=false;;
19634 --he | --h | --help | --hel | -h )
19635 $as_echo "$ac_cs_usage"; exit ;;
19636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19638 ac_cs_silent=: ;;
19639
19640 # This is an error.
19641 -*) as_fn_error $? "unrecognized option: \`$1'
19642 Try \`$0 --help' for more information." ;;
19643
19644 *) as_fn_append ac_config_targets " $1"
19645 ac_need_defaults=false ;;
19646
19647 esac
19648 shift
19649 done
19650
19651 ac_configure_extra_args=
19652
19653 if $ac_cs_silent; then
19654 exec 6>/dev/null
19655 ac_configure_extra_args="$ac_configure_extra_args --silent"
19656 fi
19657
19658 _ACEOF
19659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19660 if \$ac_cs_recheck; then
19661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19662 shift
19663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19664 CONFIG_SHELL='$SHELL'
19665 export CONFIG_SHELL
19666 exec "\$@"
19667 fi
19668
19669 _ACEOF
19670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19671 exec 5>>config.log
19672 {
19673 echo
19674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19675 ## Running $as_me. ##
19676 _ASBOX
19677 $as_echo "$ac_log"
19678 } >&5
19679
19680 _ACEOF
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 #
19683 # INIT-COMMANDS
19684 #
19685 extrasub_build="$extrasub_build"
19686 extrasub_host="$extrasub_host"
19687 extrasub_target="$extrasub_target"
19688
19689 _ACEOF
19690
19691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19692
19693 # Handling of arguments.
19694 for ac_config_target in $ac_config_targets
19695 do
19696 case $ac_config_target in
19697 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19698
19699 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19700 esac
19701 done
19702
19703
19704 # If the user did not use the arguments to specify the items to instantiate,
19705 # then the envvar interface is used. Set only those that are not.
19706 # We use the long form for the default assignment because of an extremely
19707 # bizarre bug on SunOS 4.1.3.
19708 if $ac_need_defaults; then
19709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19710 fi
19711
19712 # Have a temporary directory for convenience. Make it in the build tree
19713 # simply because there is no reason against having it here, and in addition,
19714 # creating and moving files from /tmp can sometimes cause problems.
19715 # Hook for its removal unless debugging.
19716 # Note that there is a small window in which the directory will not be cleaned:
19717 # after its creation but before its name has been assigned to `$tmp'.
19718 $debug ||
19719 {
19720 tmp= ac_tmp=
19721 trap 'exit_status=$?
19722 : "${ac_tmp:=$tmp}"
19723 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19724 ' 0
19725 trap 'as_fn_exit 1' 1 2 13 15
19726 }
19727 # Create a (secure) tmp directory for tmp files.
19728
19729 {
19730 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19731 test -d "$tmp"
19732 } ||
19733 {
19734 tmp=./conf$$-$RANDOM
19735 (umask 077 && mkdir "$tmp")
19736 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19737 ac_tmp=$tmp
19738
19739 # Set up the scripts for CONFIG_FILES section.
19740 # No need to generate them if there are no CONFIG_FILES.
19741 # This happens for instance with `./config.status config.h'.
19742 if test -n "$CONFIG_FILES"; then
19743
19744 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19745 ac_cs_awk_getline=:
19746 ac_cs_awk_pipe_init=
19747 ac_cs_awk_read_file='
19748 while ((getline aline < (F[key])) > 0)
19749 print(aline)
19750 close(F[key])'
19751 ac_cs_awk_pipe_fini=
19752 else
19753 ac_cs_awk_getline=false
19754 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19755 ac_cs_awk_read_file='
19756 print "|#_!!_#|"
19757 print "cat " F[key] " &&"
19758 '$ac_cs_awk_pipe_init
19759 # The final `:' finishes the AND list.
19760 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19761 fi
19762 ac_cr=`echo X | tr X '\015'`
19763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19764 # But we know of no other shell where ac_cr would be empty at this
19765 # point, so we can use a bashism as a fallback.
19766 if test "x$ac_cr" = x; then
19767 eval ac_cr=\$\'\\r\'
19768 fi
19769 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19771 ac_cs_awk_cr='\\r'
19772 else
19773 ac_cs_awk_cr=$ac_cr
19774 fi
19775
19776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19777 _ACEOF
19778
19779 # Create commands to substitute file output variables.
19780 {
19781 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19782 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19783 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19784 echo "_ACAWK" &&
19785 echo "_ACEOF"
19786 } >conf$$files.sh &&
19787 . ./conf$$files.sh ||
19788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19789 rm -f conf$$files.sh
19790
19791 {
19792 echo "cat >conf$$subs.awk <<_ACEOF" &&
19793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19794 echo "_ACEOF"
19795 } >conf$$subs.sh ||
19796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19798 ac_delim='%!_!# '
19799 for ac_last_try in false false false false false :; do
19800 . ./conf$$subs.sh ||
19801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19802
19803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19804 if test $ac_delim_n = $ac_delim_num; then
19805 break
19806 elif $ac_last_try; then
19807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19808 else
19809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19810 fi
19811 done
19812 rm -f conf$$subs.sh
19813
19814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19815 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19816 _ACEOF
19817 sed -n '
19818 h
19819 s/^/S["/; s/!.*/"]=/
19820 p
19821 g
19822 s/^[^!]*!//
19823 :repl
19824 t repl
19825 s/'"$ac_delim"'$//
19826 t delim
19827 :nl
19828 h
19829 s/\(.\{148\}\)..*/\1/
19830 t more1
19831 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19832 p
19833 n
19834 b repl
19835 :more1
19836 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19837 p
19838 g
19839 s/.\{148\}//
19840 t nl
19841 :delim
19842 h
19843 s/\(.\{148\}\)..*/\1/
19844 t more2
19845 s/["\\]/\\&/g; s/^/"/; s/$/"/
19846 p
19847 b
19848 :more2
19849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19850 p
19851 g
19852 s/.\{148\}//
19853 t delim
19854 ' <conf$$subs.awk | sed '
19855 /^[^""]/{
19856 N
19857 s/\n//
19858 }
19859 ' >>$CONFIG_STATUS || ac_write_fail=1
19860 rm -f conf$$subs.awk
19861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19862 _ACAWK
19863 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19864 for (key in S) S_is_set[key] = 1
19865 FS = "\a"
19866 \$ac_cs_awk_pipe_init
19867 }
19868 {
19869 line = $ 0
19870 nfields = split(line, field, "@")
19871 substed = 0
19872 len = length(field[1])
19873 for (i = 2; i < nfields; i++) {
19874 key = field[i]
19875 keylen = length(key)
19876 if (S_is_set[key]) {
19877 value = S[key]
19878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19879 len += length(value) + length(field[++i])
19880 substed = 1
19881 } else
19882 len += 1 + keylen
19883 }
19884 if (nfields == 3 && !substed) {
19885 key = field[2]
19886 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19887 \$ac_cs_awk_read_file
19888 next
19889 }
19890 }
19891 print line
19892 }
19893 \$ac_cs_awk_pipe_fini
19894 _ACAWK
19895 _ACEOF
19896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19897 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19898 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19899 else
19900 cat
19901 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19902 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19903 _ACEOF
19904
19905 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19906 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19907 # trailing colons and then remove the whole line if VPATH becomes empty
19908 # (actually we leave an empty line to preserve line numbers).
19909 if test "x$srcdir" = x.; then
19910 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19911 h
19912 s///
19913 s/^/:/
19914 s/[ ]*$/:/
19915 s/:\$(srcdir):/:/g
19916 s/:\${srcdir}:/:/g
19917 s/:@srcdir@:/:/g
19918 s/^:*//
19919 s/:*$//
19920 x
19921 s/\(=[ ]*\).*/\1/
19922 G
19923 s/\n//
19924 s/^[^=]*=[ ]*$//
19925 }'
19926 fi
19927
19928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929 fi # test -n "$CONFIG_FILES"
19930
19931
19932 eval set X " :F $CONFIG_FILES "
19933 shift
19934 for ac_tag
19935 do
19936 case $ac_tag in
19937 :[FHLC]) ac_mode=$ac_tag; continue;;
19938 esac
19939 case $ac_mode$ac_tag in
19940 :[FHL]*:*);;
19941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19942 :[FH]-) ac_tag=-:-;;
19943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19944 esac
19945 ac_save_IFS=$IFS
19946 IFS=:
19947 set x $ac_tag
19948 IFS=$ac_save_IFS
19949 shift
19950 ac_file=$1
19951 shift
19952
19953 case $ac_mode in
19954 :L) ac_source=$1;;
19955 :[FH])
19956 ac_file_inputs=
19957 for ac_f
19958 do
19959 case $ac_f in
19960 -) ac_f="$ac_tmp/stdin";;
19961 *) # Look for the file first in the build tree, then in the source tree
19962 # (if the path is not absolute). The absolute path cannot be DOS-style,
19963 # because $ac_f cannot contain `:'.
19964 test -f "$ac_f" ||
19965 case $ac_f in
19966 [\\/$]*) false;;
19967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19968 esac ||
19969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19970 esac
19971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19972 as_fn_append ac_file_inputs " '$ac_f'"
19973 done
19974
19975 # Let's still pretend it is `configure' which instantiates (i.e., don't
19976 # use $as_me), people would be surprised to read:
19977 # /* config.h. Generated by config.status. */
19978 configure_input='Generated from '`
19979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19980 `' by configure.'
19981 if test x"$ac_file" != x-; then
19982 configure_input="$ac_file. $configure_input"
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19984 $as_echo "$as_me: creating $ac_file" >&6;}
19985 fi
19986 # Neutralize special characters interpreted by sed in replacement strings.
19987 case $configure_input in #(
19988 *\&* | *\|* | *\\* )
19989 ac_sed_conf_input=`$as_echo "$configure_input" |
19990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19991 *) ac_sed_conf_input=$configure_input;;
19992 esac
19993
19994 case $ac_tag in
19995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19997 esac
19998 ;;
19999 esac
20000
20001 ac_dir=`$as_dirname -- "$ac_file" ||
20002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20003 X"$ac_file" : 'X\(//\)[^/]' \| \
20004 X"$ac_file" : 'X\(//\)$' \| \
20005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20006 $as_echo X"$ac_file" |
20007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20008 s//\1/
20009 q
20010 }
20011 /^X\(\/\/\)[^/].*/{
20012 s//\1/
20013 q
20014 }
20015 /^X\(\/\/\)$/{
20016 s//\1/
20017 q
20018 }
20019 /^X\(\/\).*/{
20020 s//\1/
20021 q
20022 }
20023 s/.*/./; q'`
20024 as_dir="$ac_dir"; as_fn_mkdir_p
20025 ac_builddir=.
20026
20027 case "$ac_dir" in
20028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20029 *)
20030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20031 # A ".." for each directory in $ac_dir_suffix.
20032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20033 case $ac_top_builddir_sub in
20034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20036 esac ;;
20037 esac
20038 ac_abs_top_builddir=$ac_pwd
20039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20040 # for backward compatibility:
20041 ac_top_builddir=$ac_top_build_prefix
20042
20043 case $srcdir in
20044 .) # We are building in place.
20045 ac_srcdir=.
20046 ac_top_srcdir=$ac_top_builddir_sub
20047 ac_abs_top_srcdir=$ac_pwd ;;
20048 [\\/]* | ?:[\\/]* ) # Absolute name.
20049 ac_srcdir=$srcdir$ac_dir_suffix;
20050 ac_top_srcdir=$srcdir
20051 ac_abs_top_srcdir=$srcdir ;;
20052 *) # Relative name.
20053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20054 ac_top_srcdir=$ac_top_build_prefix$srcdir
20055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20056 esac
20057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20058
20059
20060 case $ac_mode in
20061 :F)
20062 #
20063 # CONFIG_FILE
20064 #
20065
20066 case $INSTALL in
20067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20069 esac
20070 _ACEOF
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 # If the template does not know about datarootdir, expand it.
20074 # FIXME: This hack should be removed a few years after 2.60.
20075 ac_datarootdir_hack=; ac_datarootdir_seen=
20076 ac_sed_dataroot='
20077 /datarootdir/ {
20078 p
20079 q
20080 }
20081 /@datadir@/p
20082 /@docdir@/p
20083 /@infodir@/p
20084 /@localedir@/p
20085 /@mandir@/p'
20086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20087 *datarootdir*) ac_datarootdir_seen=yes;;
20088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20091 _ACEOF
20092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 ac_datarootdir_hack='
20094 s&@datadir@&$datadir&g
20095 s&@docdir@&$docdir&g
20096 s&@infodir@&$infodir&g
20097 s&@localedir@&$localedir&g
20098 s&@mandir@&$mandir&g
20099 s&\\\${datarootdir}&$datarootdir&g' ;;
20100 esac
20101 _ACEOF
20102
20103 # Neutralize VPATH when `$srcdir' = `.'.
20104 # Shell code in configure.ac might set extrasub.
20105 # FIXME: do we really want to maintain this feature?
20106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20107 ac_sed_extra="$ac_vpsub
20108 $extrasub
20109 _ACEOF
20110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20111 :t
20112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20113 s|@configure_input@|$ac_sed_conf_input|;t t
20114 s&@top_builddir@&$ac_top_builddir_sub&;t t
20115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20116 s&@srcdir@&$ac_srcdir&;t t
20117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20118 s&@top_srcdir@&$ac_top_srcdir&;t t
20119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20120 s&@builddir@&$ac_builddir&;t t
20121 s&@abs_builddir@&$ac_abs_builddir&;t t
20122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20123 s&@INSTALL@&$ac_INSTALL&;t t
20124 $ac_datarootdir_hack
20125 "
20126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20127 if $ac_cs_awk_getline; then
20128 $AWK -f "$ac_tmp/subs.awk"
20129 else
20130 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20131 fi \
20132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20133
20134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20137 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20139 which seems to be undefined. Please make sure it is defined" >&5
20140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20141 which seems to be undefined. Please make sure it is defined" >&2;}
20142
20143 rm -f "$ac_tmp/stdin"
20144 case $ac_file in
20145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20147 esac \
20148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20149 ;;
20150
20151
20152
20153 esac
20154
20155
20156 case $ac_file$ac_mode in
20157 "Makefile":F) sed "$extrasub_build" Makefile |
20158 sed "$extrasub_host" |
20159 sed "$extrasub_target" > mf$$
20160 mv -f mf$$ Makefile ;;
20161
20162 esac
20163 done # for ac_tag
20164
20165
20166 as_fn_exit 0
20167 _ACEOF
20168 ac_clean_files=$ac_clean_files_save
20169
20170 test $ac_write_fail = 0 ||
20171 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20172
20173
20174 # configure is writing to config.log, and then calls config.status.
20175 # config.status does its own redirection, appending to config.log.
20176 # Unfortunately, on DOS this fails, as config.log is still kept open
20177 # by configure, so config.status won't be able to write to it; its
20178 # output is simply discarded. So we exec the FD to /dev/null,
20179 # effectively closing config.log, so it can be properly (re)opened and
20180 # appended to by config.status. When coming back to configure, we
20181 # need to make the FD available again.
20182 if test "$no_create" != yes; then
20183 ac_cs_success=:
20184 ac_config_status_args=
20185 test "$silent" = yes &&
20186 ac_config_status_args="$ac_config_status_args --quiet"
20187 exec 5>/dev/null
20188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20189 exec 5>>config.log
20190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20191 # would make configure fail if this is the last instruction.
20192 $ac_cs_success || as_fn_exit 1
20193 fi
20194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20196 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20197 fi
20198