]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
PR middle-end/105604 - ICE: in tree_to_shwi with vla in struct and sprintf
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
631 NM
632 LIPO
633 LD
634 DSYMUTIL
635 DLLTOOL
636 AS
637 AR
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
642 LEX
643 M4
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
709 GDC
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
727 AWK
728 SED
729 LN_S
730 LN
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr
815 with_mpfr_include
816 with_mpfr_lib
817 with_gmp
818 with_gmp_include
819 with_gmp_lib
820 with_stage1_libs
821 with_static_standard_libraries
822 with_stage1_ldflags
823 with_boot_libs
824 with_boot_ldflags
825 with_isl
826 with_isl_include
827 with_isl_lib
828 enable_isl_version_check
829 enable_lto
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
832 enable_host_shared
833 enable_stage1_languages
834 enable_objc_gc
835 with_target_bdw_gc
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
839 with_build_sysroot
840 with_debug_prefix_map
841 with_build_config
842 enable_vtable_verify
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
847 enable_werror
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CXX
858 CXXFLAGS
859 CCC
860 build_configargs
861 host_configargs
862 target_configargs
863 AR
864 AS
865 DLLTOOL
866 DSYMUTIL
867 LD
868 LIPO
869 NM
870 RANLIB
871 STRIP
872 WINDRES
873 WINDMC
874 OBJCOPY
875 OBJDUMP
876 OTOOL
877 READELF
878 CC_FOR_TARGET
879 CXX_FOR_TARGET
880 GCC_FOR_TARGET
881 GFORTRAN_FOR_TARGET
882 GOC_FOR_TARGET
883 GDC_FOR_TARGET
884 AR_FOR_TARGET
885 AS_FOR_TARGET
886 DLLTOOL_FOR_TARGET
887 DSYMUTIL_FOR_TARGET
888 LD_FOR_TARGET
889 LIPO_FOR_TARGET
890 NM_FOR_TARGET
891 OBJCOPY_FOR_TARGET
892 OBJDUMP_FOR_TARGET
893 OTOOL_FOR_TARGET
894 RANLIB_FOR_TARGET
895 READELF_FOR_TARGET
896 STRIP_FOR_TARGET
897 WINDRES_FOR_TARGET
898 WINDMC_FOR_TARGET'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 case $srcdir in
1426 *" "*)
1427 as_fn_error $? "path to source, $srcdir, contains spaces"
1428 ;;
1429 esac
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 \`configure' configures this package to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1471
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1499 _ACEOF
1500
1501 cat <<\_ACEOF
1502
1503 Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507
1508 System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-as-accelerator-for=ARG
1524 build as offload target compiler. Specify offload
1525 host triple by ARG
1526 --enable-offload-targets=LIST
1527 enable offloading to devices from comma-separated
1528 LIST of TARGET[=DIR]. Use optional path to find
1529 offload target compiler during the build
1530 --enable-offload-defaulted
1531 If enabled, configured but not installed offload compilers and
1532 libgomp plugins are silently ignored. Useful for distribution
1533 compilers where those are in separate optional packages.
1534
1535 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1536 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1537 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538 Enable compressed debug sections for gas, gold or ld
1539 by default
1540 --disable-libquadmath do not build libquadmath directory
1541 --disable-libquadmath-support
1542 disable libquadmath support for Fortran
1543 --enable-libada build libada directory
1544 --enable-libssp build libssp directory
1545 --disable-libstdcxx do not build libstdc++-v3 directory
1546 --enable-liboffloadmic=ARG
1547 build liboffloadmic [ARG={no,host,target}]
1548 --enable-bootstrap enable bootstrapping [yes if native build]
1549 --enable-pgo-build[=lto]
1550 enable the PGO build
1551 --disable-isl-version-check
1552 disable check for isl version
1553 --enable-lto enable link time optimization support
1554 --enable-linker-plugin-configure-flags=FLAGS
1555 additional flags for configuring linker plugins
1556 [none]
1557 --enable-linker-plugin-flags=FLAGS
1558 additional flags for configuring and building linker
1559 plugins [none]
1560 --enable-host-shared build host code as shared libraries
1561 --enable-stage1-languages[=all]
1562 choose additional languages to build during stage1.
1563 Mostly useful for compiler development
1564 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1565 Objective-C runtime
1566 --enable-vtable-verify Enable vtable verification feature
1567 --enable-serial-[{host,target,build}-]configure
1568 force sequential configuration of sub-packages for
1569 the host, target or build machine, or all
1570 sub-packages
1571 --enable-maintainer-mode
1572 enable make rules and dependencies not useful (and
1573 sometimes confusing) to the casual installer
1574 --enable-stage1-checking[=all]
1575 choose additional checking for stage1 of the
1576 compiler
1577 --enable-werror enable -Werror in bootstrap stage2 and later
1578
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-build-libsubdir=DIR Directory where to find libraries for build system
1583 --with-system-zlib use installed libz
1584 --with-mpc=PATH specify prefix directory for installed MPC package.
1585 Equivalent to --with-mpc-include=PATH/include plus
1586 --with-mpc-lib=PATH/lib
1587 --with-mpc-include=PATH specify directory for installed MPC include files
1588 --with-mpc-lib=PATH specify directory for the installed MPC library
1589 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1590 Equivalent to --with-mpfr-include=PATH/include plus
1591 --with-mpfr-lib=PATH/lib
1592 --with-mpfr-include=PATH
1593 specify directory for installed MPFR include files
1594 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
1601 --with-stage1-libs=LIBS libraries for stage1
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1604 (default=auto)
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
1610 --with-isl=PATH Specify prefix directory for the installed isl
1611 package. Equivalent to
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1623 files
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
1628 --with-build-sysroot=SYSROOT
1629 use sysroot as the system root during the build
1630 --with-debug-prefix-map='A=B C=D ...'
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...'
1633 use config/NAME.mk build configuration
1634 --with-build-time-tools=PATH
1635 use given path to find target tools during the build
1636
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1647 build_configargs
1648 additional configure arguments for build directories
1649 host_configargs
1650 additional configure arguments for host directories
1651 target_configargs
1652 additional configure arguments for target directories
1653 AR AR for the host
1654 AS AS for the host
1655 DLLTOOL DLLTOOL for the host
1656 DSYMUTIL DSYMUTIL for the host
1657 LD LD for the host
1658 LIPO LIPO for the host
1659 NM NM for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
1663 WINDMC WINDMC for the host
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
1666 OTOOL OTOOL for the host
1667 READELF READELF for the host
1668 CC_FOR_TARGET
1669 CC for the target
1670 CXX_FOR_TARGET
1671 CXX for the target
1672 GCC_FOR_TARGET
1673 GCC for the target
1674 GFORTRAN_FOR_TARGET
1675 GFORTRAN for the target
1676 GOC_FOR_TARGET
1677 GOC for the target
1678 GDC_FOR_TARGET
1679 GDC for the target
1680 AR_FOR_TARGET
1681 AR for the target
1682 AS_FOR_TARGET
1683 AS for the target
1684 DLLTOOL_FOR_TARGET
1685 DLLTOOL for the target
1686 DSYMUTIL_FOR_TARGET
1687 DSYMUTIL for the target
1688 LD_FOR_TARGET
1689 LD for the target
1690 LIPO_FOR_TARGET
1691 LIPO for the target
1692 NM_FOR_TARGET
1693 NM for the target
1694 OBJCOPY_FOR_TARGET
1695 OBJCOPY for the target
1696 OBJDUMP_FOR_TARGET
1697 OBJDUMP for the target
1698 OTOOL_FOR_TARGET
1699 OTOOL for the target
1700 RANLIB_FOR_TARGET
1701 RANLIB for the target
1702 READELF_FOR_TARGET
1703 READELF for the target
1704 STRIP_FOR_TARGET
1705 STRIP for the target
1706 WINDRES_FOR_TARGET
1707 WINDRES for the target
1708 WINDMC_FOR_TARGET
1709 WINDMC for the target
1710
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1713
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1717 fi
1718
1719 if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1721 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 continue
1725 ac_builddir=.
1726
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *)
1730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736 esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1742
1743 case $srcdir in
1744 .) # We are building in place.
1745 ac_srcdir=.
1746 ac_top_srcdir=$ac_top_builddir_sub
1747 ac_abs_top_srcdir=$ac_pwd ;;
1748 [\\/]* | ?:[\\/]* ) # Absolute name.
1749 ac_srcdir=$srcdir$ac_dir_suffix;
1750 ac_top_srcdir=$srcdir
1751 ac_abs_top_srcdir=$srcdir ;;
1752 *) # Relative name.
1753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759 cd "$ac_dir" || { ac_status=$?; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1767 else
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 fi || ac_status=$?
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1771 done
1772 fi
1773
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776 cat <<\_ACEOF
1777 configure
1778 generated by GNU Autoconf 2.69
1779
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784 exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861 fi
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1864
1865 } # ac_fn_cxx_try_compile
1866
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1910
1911 } # ac_fn_cxx_try_link
1912
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948 fi
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1961
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1964
1965 $ $0 $@
1966
1967 _ACEOF
1968 exec 5>>config.log
1969 {
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1974
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1983
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991
1992 _ASUNAME
1993
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 $as_echo "PATH: $as_dir"
2000 done
2001 IFS=$as_save_IFS
2002
2003 } >&5
2004
2005 cat >&5 <<_ACEOF
2006
2007
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2011
2012 _ACEOF
2013
2014
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2025 do
2026 for ac_arg
2027 do
2028 case $ac_arg in
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2032 continue ;;
2033 *\'*)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 case $ac_pass in
2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038 2)
2039 as_fn_append ac_configure_args1 " '$ac_arg'"
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2042 else
2043 case $ac_arg in
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050 esac
2051 ;;
2052 -* ) ac_must_keep_next=true ;;
2053 esac
2054 fi
2055 as_fn_append ac_configure_args " '$ac_arg'"
2056 ;;
2057 esac
2058 done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2062
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2070 {
2071 echo
2072
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2078 (
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2101 *)
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 ;;
2104 esac |
2105 sort
2106 )
2107 echo
2108
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2129 do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2137 fi
2138
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2146 fi
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 $as_echo "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2190
2191
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2202 esac
2203 elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2206 else
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
2209 fi
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211 do
2212 test "x$ac_site_file" = xNONE && continue
2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2217 . "$ac_site_file" \
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2222 fi
2223 done
2224
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 case $cache_file in
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2234 esac
2235 fi
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 >$cache_file
2240 fi
2241
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2251 set,)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,set)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,);;
2260 *)
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2273 fi
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 esac
2290 fi
2291 done
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298 fi
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
2309
2310
2311
2312
2313
2314
2315
2316 progname=$0
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2319
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2324 for ac_arg
2325 do
2326 case "$ac_arg" in
2327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331 *) ;;
2332 esac
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335 done
2336 if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2338 fi
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342
2343
2344 # Find the build, host, and target systems.
2345 ac_aux_dir=
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347 if test -f "$ac_dir/install-sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2350 break
2351 elif test -f "$ac_dir/install.sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install.sh -c"
2354 break
2355 elif test -f "$ac_dir/shtool"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2358 break
2359 fi
2360 done
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 fi
2364
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2372
2373
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 case ${build_alias} in
2413 "") build_noncanonical=${build} ;;
2414 *) build_noncanonical=${build_alias} ;;
2415 esac
2416
2417
2418
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2423
2424
2425
2426 case ${target_alias} in
2427 "") target_noncanonical=${host_noncanonical} ;;
2428 *) target_noncanonical=${target_alias} ;;
2429 esac
2430
2431
2432
2433
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_transform_name=s,y,y,
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446 else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479 else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 fi
2483
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2511
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522
2523
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555 /usr/ucb/* ) ;;
2556 *)
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2559 # by default.
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563 if test $ac_prog = install &&
2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2566 :
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2570 :
2571 else
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2575 mkdir conftest.dir
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2580 then
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582 break 3
2583 fi
2584 fi
2585 fi
2586 done
2587 done
2588 ;;
2589 esac
2590
2591 done
2592 IFS=$as_save_IFS
2593
2594 rm -rf conftest.one conftest.two conftest.dir
2595
2596 fi
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL=$ac_install_sh
2605 fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2626 then
2627 acx_cv_prog_LN=ln
2628 else
2629 acx_cv_prog_LN=no
2630 fi
2631 rm -f conftestdata_f conftestdata_t
2632
2633 fi
2634 if test $acx_cv_prog_LN = no; then
2635 LN="cp"
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2638 else
2639 LN="$acx_cv_prog_LN"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642 fi
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2646 LN_S=$as_ln_s
2647 if test "$LN_S" = "ln -s"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2653 fi
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661 for ac_i in 1 2 3 4 5 6 7; do
2662 ac_script="$ac_script$as_nl$ac_script"
2663 done
2664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665 { ac_script=; unset ac_script;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in sed gsed; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677 as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2681 *GNU*)
2682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2683 *)
2684 ac_count=0
2685 $as_echo_n 0123456789 >"conftest.in"
2686 while :
2687 do
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694 as_fn_arith $ac_count + 1 && ac_count=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED="$ac_path_SED"
2698 ac_path_SED_max=$ac_count
2699 fi
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2702 done
2703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704 esac
2705
2706 $ac_path_SED_found && break 3
2707 done
2708 done
2709 done
2710 IFS=$as_save_IFS
2711 if test -z "$ac_cv_path_SED"; then
2712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2713 fi
2714 else
2715 ac_cv_path_SED=$SED
2716 fi
2717
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2722 rm -f conftest.sed
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 test -n "$AWK" && break
2764 done
2765
2766
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2768
2769 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2770 # a relative path.
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL="${srcpwd}/install-sh -c"
2773 fi
2774
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2777 pwd=`${PWDCMD-pwd}`
2778 if test "${pwd}" = "${srcpwd}" ; then
2779 srcdir=.
2780 fi
2781
2782 topsrcdir=$srcpwd
2783
2784 extra_host_args=
2785
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool. Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2789
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2792
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order. In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2796
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2799
2800 # these library is used by various programs built for the build
2801 # environment
2802 #
2803 build_libs="build-libiberty build-libcpp"
2804
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2807
2808 # these libraries are used by various programs built for the host environment
2809 #f
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2811
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2819
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824 target-libbacktrace \
2825 target-libgloss \
2826 target-newlib \
2827 target-libgomp \
2828 target-liboffloadmic \
2829 target-libatomic \
2830 target-libitm \
2831 target-libstdc++-v3 \
2832 target-libsanitizer \
2833 target-libvtv \
2834 target-libssp \
2835 target-libquadmath \
2836 target-libgfortran \
2837 target-libffi \
2838 target-libobjc \
2839 target-libada \
2840 target-libgo \
2841 target-libphobos \
2842 target-zlib"
2843
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2846 #
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2849 #
2850 target_tools="target-rda"
2851
2852 ################################################################################
2853
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines. This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2862
2863
2864
2865 ################################################################################
2866
2867 srcname="gnu development package"
2868
2869 # This gets set non-empty for some net releases of packages.
2870 appdirs=""
2871
2872 # Define is_cross_compiler to save on calls to 'test'.
2873 is_cross_compiler=
2874 if test x"${host}" = x"${target}" ; then
2875 is_cross_compiler=no
2876 else
2877 is_cross_compiler=yes
2878 fi
2879
2880 # Find the build and target subdir names.
2881
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # finishes. So:
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2890
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2893
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896 withval=$with_build_libsubdir; build_libsubdir="$withval"
2897 else
2898 build_libsubdir="$build_subdir"
2899 fi
2900
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903 || test -d $srcdir/../host-${host_noncanonical}; then
2904 host_subdir="host-${host_noncanonical}"
2905 else
2906 host_subdir=.
2907 fi
2908 # No prefix.
2909 target_subdir=${target_noncanonical}
2910
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2913 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915 fi
2916
2917 # Skipdirs are removed silently.
2918 skipdirs=
2919 # Noconfigdirs are removed loudly.
2920 noconfigdirs=""
2921
2922 use_gnu_ld=
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2925 use_gnu_ld=no
2926 noconfigdirs="$noconfigdirs ld gold"
2927 fi
2928
2929 use_gnu_as=
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2932 use_gnu_as=no
2933 noconfigdirs="$noconfigdirs gas"
2934 fi
2935
2936 use_included_zlib=
2937
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940 withval=$with_system_zlib;
2941 fi
2942
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945 use_included_zlib=no
2946 noconfigdirs="$noconfigdirs zlib"
2947 fi
2948
2949 # some tools are so dependent upon X11 that if we're not building with X,
2950 # it's not even worth trying to configure, much less build, that tool.
2951
2952 case ${with_x} in
2953 yes | "") ;; # the default value for this tree is that X11 is available
2954 no)
2955 skipdirs="${skipdirs} tk itcl libgui"
2956 # We won't be able to build gdbtk without X.
2957 enable_gdbtk=no
2958 ;;
2959 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960 esac
2961
2962 # Some are only suitable for cross toolchains.
2963 # Remove these if host=target.
2964 cross_only="target-libgloss target-newlib target-opcodes"
2965
2966 case $is_cross_compiler in
2967 no) skipdirs="${skipdirs} ${cross_only}" ;;
2968 esac
2969
2970 # If both --with-headers and --with-libs are specified, default to
2971 # --without-newlib.
2972 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974 if test x"${with_newlib}" = x ; then
2975 with_newlib=no
2976 fi
2977 fi
2978
2979 # Recognize --with-newlib/--without-newlib.
2980 case ${with_newlib} in
2981 no) skipdirs="${skipdirs} target-newlib" ;;
2982 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983 esac
2984
2985 # Check whether --enable-as-accelerator-for was given.
2986 if test "${enable_as_accelerator_for+set}" = set; then :
2987 enableval=$enable_as_accelerator_for;
2988 fi
2989
2990
2991 # Check whether --enable-offload-targets was given.
2992 if test "${enable_offload_targets+set}" = set; then :
2993 enableval=$enable_offload_targets;
2994 if test x"$enable_offload_targets" = x; then
2995 as_fn_error $? "no offload targets specified" "$LINENO" 5
2996 fi
2997
2998 else
2999 enable_offload_targets=
3000 fi
3001
3002
3003 # Check whether --enable-offload-defaulted was given.
3004 if test "${enable_offload_defaulted+set}" = set; then :
3005 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006 else
3007 enable_offload_defaulted=
3008 fi
3009
3010
3011 # Handle --enable-gold, --enable-ld.
3012 # --disable-gold [--enable-ld]
3013 # Build only ld. Default option.
3014 # --enable-gold [--enable-ld]
3015 # Build both gold and ld. Install gold as "ld.gold", install ld
3016 # as "ld.bfd" and "ld".
3017 # --enable-gold=default [--enable-ld]
3018 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3019 # install ld as "ld.bfd".
3020 # --enable-gold[=default] --disable-ld
3021 # Build only gold, which is then installed as both "ld.gold" and "ld".
3022 # --enable-gold --enable-ld=default
3023 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024 # and ld.bfd).
3025 # In other words, ld is default
3026 # --enable-gold=default --enable-ld=default
3027 # Error.
3028
3029 default_ld=
3030 # Check whether --enable-gold was given.
3031 if test "${enable_gold+set}" = set; then :
3032 enableval=$enable_gold; ENABLE_GOLD=$enableval
3033 else
3034 ENABLE_GOLD=no
3035 fi
3036
3037 case "${ENABLE_GOLD}" in
3038 yes|default)
3039 # Check for ELF target.
3040 is_elf=no
3041 case "${target}" in
3042 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3046 case "${target}" in
3047 *-*-linux*aout* | *-*-linux*oldld*)
3048 ;;
3049 *)
3050 is_elf=yes
3051 ;;
3052 esac
3053 esac
3054
3055 if test "$is_elf" = "yes"; then
3056 # Check for target supported by gold.
3057 case "${target}" in
3058 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3060 configdirs="$configdirs gold"
3061 if test x${ENABLE_GOLD} = xdefault; then
3062 default_ld=gold
3063 fi
3064 ENABLE_GOLD=yes
3065 ;;
3066 esac
3067 fi
3068 ;;
3069 no)
3070 ;;
3071 *)
3072 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3073 ;;
3074 esac
3075
3076 # Check whether --enable-ld was given.
3077 if test "${enable_ld+set}" = set; then :
3078 enableval=$enable_ld; ENABLE_LD=$enableval
3079 else
3080 ENABLE_LD=yes
3081 fi
3082
3083
3084 case "${ENABLE_LD}" in
3085 default)
3086 if test x${default_ld} != x; then
3087 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3088 fi
3089 ;;
3090 yes)
3091 ;;
3092 no)
3093 if test x${ENABLE_GOLD} != xyes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3096 fi
3097 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098 ;;
3099 *)
3100 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3101 ;;
3102 esac
3103
3104 # PR gas/19109
3105 # Decide the default method for compressing debug sections.
3106 # Provide a configure time option to override our default.
3107 # Check whether --enable-compressed_debug_sections was given.
3108 if test "${enable_compressed_debug_sections+set}" = set; then :
3109 enableval=$enable_compressed_debug_sections;
3110 if test x"$enable_compressed_debug_sections" = xyes; then
3111 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3112 fi
3113
3114 else
3115 enable_compressed_debug_sections=
3116 fi
3117
3118
3119 # Configure extra directories which are host specific
3120
3121 case "${host}" in
3122 *-cygwin*)
3123 configdirs="$configdirs libtermcap" ;;
3124 esac
3125
3126 # A target can indicate whether a language isn't supported for some reason.
3127 # Only spaces may be used in this macro; not newlines or tabs.
3128 unsupported_languages=
3129
3130 # Remove more programs from consideration, based on the host or
3131 # target this usually means that a port of the program doesn't
3132 # exist yet.
3133
3134 case "${host}" in
3135 i[3456789]86-*-msdosdjgpp*)
3136 noconfigdirs="$noconfigdirs tcl tk itcl"
3137 ;;
3138 esac
3139
3140
3141 # Check whether --enable-libquadmath was given.
3142 if test "${enable_libquadmath+set}" = set; then :
3143 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144 else
3145 ENABLE_LIBQUADMATH=yes
3146 fi
3147
3148 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149 noconfigdirs="$noconfigdirs target-libquadmath"
3150 fi
3151
3152
3153 # Check whether --enable-libquadmath-support was given.
3154 if test "${enable_libquadmath_support+set}" = set; then :
3155 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156 else
3157 ENABLE_LIBQUADMATH_SUPPORT=yes
3158 fi
3159
3160 enable_libquadmath_support=
3161 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162 enable_libquadmath_support=no
3163 fi
3164
3165
3166 # Check whether --enable-libada was given.
3167 if test "${enable_libada+set}" = set; then :
3168 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3169 else
3170 ENABLE_LIBADA=yes
3171 fi
3172
3173 if test "${ENABLE_LIBADA}" != "yes" ; then
3174 noconfigdirs="$noconfigdirs gnattools"
3175 fi
3176
3177 # Check whether --enable-libssp was given.
3178 if test "${enable_libssp+set}" = set; then :
3179 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3180 else
3181 ENABLE_LIBSSP=yes
3182 fi
3183
3184
3185 # Check whether --enable-libstdcxx was given.
3186 if test "${enable_libstdcxx+set}" = set; then :
3187 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188 else
3189 ENABLE_LIBSTDCXX=default
3190 fi
3191
3192 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 fi
3195
3196 # If this is accelerator compiler and its target is intelmic we enable
3197 # target liboffloadmic by default. If this is compiler with offloading
3198 # for intelmic we enable host liboffloadmic by default. Otherwise
3199 # liboffloadmic is disabled by default.
3200 # Check whether --enable-liboffloadmic was given.
3201 if test "${enable_liboffloadmic+set}" = set; then :
3202 enableval=$enable_liboffloadmic; case "$enableval" in
3203 no | host | target)
3204 enable_liboffloadmic=$enableval ;;
3205 *)
3206 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3207 esac
3208 else
3209 if test x"$enable_as_accelerator_for" != x; then
3210 case "${target}" in
3211 *-intelmic-* | *-intelmicemul-*)
3212 enable_liboffloadmic=target
3213 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214 ;;
3215 *)
3216 enable_liboffloadmic=no
3217 ;;
3218 esac
3219 else
3220 case "${enable_offload_targets}" in
3221 *-intelmic-* | *-intelmicemul-*)
3222 enable_liboffloadmic=host
3223 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224 ;;
3225 *)
3226 enable_liboffloadmic=no
3227 ;;
3228 esac
3229 fi
3230 fi
3231
3232
3233
3234 # Enable libgomp by default on hosted POSIX systems, and a few others.
3235 if test x$enable_libgomp = x ; then
3236 case "${target}" in
3237 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3238 ;;
3239 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3240 ;;
3241 *-*-solaris2* | *-*-hpux11*)
3242 ;;
3243 *-*-darwin* | *-*-aix*)
3244 ;;
3245 nvptx*-*-* | amdgcn*-*-*)
3246 ;;
3247 *)
3248 noconfigdirs="$noconfigdirs target-libgomp"
3249 ;;
3250 esac
3251 fi
3252
3253 # Disable libatomic on unsupported systems.
3254 if test -d ${srcdir}/libatomic; then
3255 if test x$enable_libatomic = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257 $as_echo_n "checking for libatomic support... " >&6; }
3258 if (srcdir=${srcdir}/libatomic; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libatomic"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268 fi
3269 fi
3270 fi
3271
3272 # Disable liboffloadmic on unsupported systems.
3273 if test -d ${srcdir}/liboffloadmic; then
3274 if test x$enable_liboffloadmic != xno; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276 $as_echo_n "checking for liboffloadmic support... " >&6; }
3277 if (srcdir=${srcdir}/liboffloadmic; \
3278 . ${srcdir}/configure.tgt; \
3279 test -n "$UNSUPPORTED")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-liboffloadmic"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287 fi
3288 fi
3289 fi
3290
3291 # Disable libitm on unsupported systems.
3292 if test -d ${srcdir}/libitm; then
3293 if test x$enable_libitm = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295 $as_echo_n "checking for libitm support... " >&6; }
3296 if (srcdir=${srcdir}/libitm; \
3297 . ${srcdir}/configure.tgt; \
3298 test -n "$UNSUPPORTED")
3299 then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 noconfigdirs="$noconfigdirs target-libitm"
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306 fi
3307 fi
3308 fi
3309
3310 # Disable libsanitizer on unsupported systems.
3311 if test -d ${srcdir}/libsanitizer; then
3312 if test x$enable_libsanitizer = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314 $as_echo_n "checking for libsanitizer support... " >&6; }
3315 if (srcdir=${srcdir}/libsanitizer; \
3316 . ${srcdir}/configure.tgt; \
3317 test -n "$UNSUPPORTED")
3318 then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libsanitizer"
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 fi
3326 fi
3327 fi
3328
3329 # Disable libvtv on unsupported systems.
3330 if test -d ${srcdir}/libvtv; then
3331 if test x$enable_libvtv = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333 $as_echo_n "checking for libvtv support... " >&6; }
3334 if (srcdir=${srcdir}/libvtv; \
3335 . ${srcdir}/configure.tgt; \
3336 test "$VTV_SUPPORTED" != "yes")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 noconfigdirs="$noconfigdirs target-libvtv"
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344 fi
3345 fi
3346 fi
3347
3348 # Disable libquadmath for some systems.
3349 case "${target}" in
3350 avr-*-*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353 # libquadmath is unused on AIX and libquadmath build process use of
3354 # LD_LIBRARY_PATH can break AIX bootstrap.
3355 powerpc-*-aix* | rs6000-*-aix*)
3356 noconfigdirs="$noconfigdirs target-libquadmath"
3357 ;;
3358 esac
3359
3360 # Disable libssp for some systems.
3361 case "${target}" in
3362 avr-*-*)
3363 # No hosted I/O support.
3364 noconfigdirs="$noconfigdirs target-libssp"
3365 ;;
3366 bpf-*-*)
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
3372 pru-*-*)
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3375 ;;
3376 rl78-*-*)
3377 # libssp uses a misaligned load to trigger a fault, but the RL78
3378 # doesn't fault for those - instead, it gives a build-time error
3379 # for explicit misaligned loads.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
3382 visium-*-*)
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3385 ;;
3386 esac
3387
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdcxx
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391 case "${target}" in
3392 *-*-vxworks*)
3393 # VxWorks uses the Dinkumware C++ library.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
3396 amdgcn*-*-*)
3397 # Not ported/fails to build when using newlib.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 arm*-wince-pe*)
3401 # the C++ libraries don't build on top of CE's C libraries
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
3404 avr-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
3407 bpf-*-*)
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 ;;
3410 ft32-*-*)
3411 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412 ;;
3413 esac
3414 fi
3415
3416 # Disable C++ on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=c++.
3418 case ,${enable_languages}, in
3419 *,c++,*)
3420 ;;
3421 *)
3422 case "${target}" in
3423 bpf-*-*)
3424 unsupported_languages="$unsupported_languages c++"
3425 ;;
3426 esac
3427 ;;
3428 esac
3429
3430 # Disable Objc on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=objc.
3432 case ,${enable_languages}, in
3433 *,objc,*)
3434 ;;
3435 *)
3436 case "${target}" in
3437 bpf-*-*)
3438 unsupported_languages="$unsupported_languages objc"
3439 ;;
3440 esac
3441 ;;
3442 esac
3443
3444 # Disable D on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=d.
3446 case ,${enable_languages}, in
3447 *,d,*)
3448 ;;
3449 *)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages d"
3453 ;;
3454 esac
3455 ;;
3456 esac
3457
3458 # Disable libphobos on unsupported systems.
3459 # For testing, you can override this with --enable-libphobos.
3460 if test -d ${srcdir}/libphobos; then
3461 if test x$enable_libphobos = x; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463 $as_echo_n "checking for libphobos support... " >&6; }
3464 if (srcdir=${srcdir}/libphobos; \
3465 . ${srcdir}/configure.tgt; \
3466 test "$LIBPHOBOS_SUPPORTED" != "yes")
3467 then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 noconfigdirs="$noconfigdirs target-libphobos"
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3474 fi
3475 fi
3476 fi
3477
3478 # Disable Fortran for some systems.
3479 case "${target}" in
3480 mmix-*-*)
3481 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482 unsupported_languages="$unsupported_languages fortran"
3483 ;;
3484 bpf-*-*)
3485 unsupported_languages="$unsupported_languages fortran"
3486 ;;
3487 esac
3488
3489 # Disable libffi for some systems.
3490 case "${target}" in
3491 powerpc-*-darwin*)
3492 ;;
3493 i[3456789]86-*-darwin*)
3494 ;;
3495 x86_64-*-darwin[912]*)
3496 ;;
3497 *-*-darwin*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 *-*-netware*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 *-*-phoenix*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 *-*-rtems*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 *-*-tpf*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
3512 *-*-uclinux*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
3515 *-*-vxworks*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518 aarch64*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 alpha*-*-*vms*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 arm*-*-freebsd*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 arm-wince-pe)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 arm*-*-symbianelf*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
3533 bpf-*-*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3535 ;;
3536 cris-*-* | crisv32-*-*)
3537 case "${target}" in
3538 *-*-linux*)
3539 ;;
3540 *) # See PR46792 regarding target-libffi.
3541 noconfigdirs="$noconfigdirs target-libffi";;
3542 esac
3543 ;;
3544 hppa*64*-*-hpux*)
3545 noconfigdirs="$noconfigdirs target-libffi"
3546 ;;
3547 hppa*-hp-hpux11*)
3548 ;;
3549 hppa*-*-hpux*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 ia64*-*-*vms*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 i[3456789]86-w64-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 i[3456789]86-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 x86_64-*-mingw*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 mmix-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3566 ;;
3567 powerpc-*-aix*)
3568 ;;
3569 rs6000-*-aix*)
3570 ;;
3571 ft32-*-*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 *-*-lynxos*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577 esac
3578
3579 # Disable the go frontend on systems where it is known to not work. Please keep
3580 # this in sync with contrib/config-list.mk.
3581 case "${target}" in
3582 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3583 unsupported_languages="$unsupported_languages go"
3584 ;;
3585 esac
3586
3587 # Only allow gdbserver on some systems.
3588 if test -d ${srcdir}/gdbserver; then
3589 if test x$enable_gdbserver = x; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3591 $as_echo_n "checking for gdbserver support... " >&6; }
3592 if (srcdir=${srcdir}/gdbserver; \
3593 . ${srcdir}/configure.srv; \
3594 test -n "$UNSUPPORTED")
3595 then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 noconfigdirs="$noconfigdirs gdbserver"
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3602 fi
3603 fi
3604 fi
3605
3606 # Disable libgo for some systems where it is known to not work.
3607 # For testing, you can easily override this with --enable-libgo.
3608 if test x$enable_libgo = x; then
3609 case "${target}" in
3610 *-*-darwin*)
3611 # PR 46986
3612 noconfigdirs="$noconfigdirs target-libgo"
3613 ;;
3614 *-*-cygwin* | *-*-mingw*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3616 ;;
3617 bpf-*-*)
3618 noconfigdirs="$noconfigdirs target-libgo"
3619 ;;
3620 esac
3621 fi
3622
3623 # Default libgloss CPU subdirectory.
3624 libgloss_dir="$target_cpu"
3625
3626 case "${target}" in
3627 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3628 libgloss_dir=wince
3629 ;;
3630 aarch64*-*-* )
3631 libgloss_dir=aarch64
3632 ;;
3633 arm*-*-*)
3634 libgloss_dir=arm
3635 ;;
3636 cris-*-* | crisv32-*-*)
3637 libgloss_dir=cris
3638 ;;
3639 hppa*-*-*)
3640 libgloss_dir=pa
3641 ;;
3642 i[3456789]86-*-*)
3643 libgloss_dir=i386
3644 ;;
3645 loongarch*-*-*)
3646 libgloss_dir=loongarch
3647 ;;
3648 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3649 libgloss_dir=m68hc11
3650 ;;
3651 m68*-*-* | fido-*-*)
3652 libgloss_dir=m68k
3653 ;;
3654 mips*-*-*)
3655 libgloss_dir=mips
3656 ;;
3657 powerpc*-*-*)
3658 libgloss_dir=rs6000
3659 ;;
3660 pru-*-*)
3661 libgloss_dir=pru
3662 ;;
3663 sparc*-*-*)
3664 libgloss_dir=sparc
3665 ;;
3666 esac
3667
3668 # Disable newlib and libgloss for various target OSes.
3669 case "${target}" in
3670 alpha*-dec-osf*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 i[3456789]86-*-linux*)
3674 # This section makes it possible to build newlib natively on linux.
3675 # If we are using a cross compiler then don't configure newlib.
3676 if test x${is_cross_compiler} != xno ; then
3677 noconfigdirs="$noconfigdirs target-newlib"
3678 fi
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 # If we are not using a cross compiler, do configure newlib.
3681 # Note however, that newlib will only be configured in this situation
3682 # if the --with-newlib option has been given, because otherwise
3683 # 'target-newlib' will appear in skipdirs.
3684 ;;
3685 i[3456789]86-*-rdos*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 sparc-*-sunos4*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 bpf-*-*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
3697 *-*-aix*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-beos*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-chorusos)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-dragonfly*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-freebsd*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-lynxos*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-mingw*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-netbsd*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-netware*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-tpf*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 *-*-uclinux*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 *-*-vxworks*)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 ;;
3736 esac
3737
3738 case "${target}" in
3739 *-*-chorusos)
3740 ;;
3741 aarch64-*-darwin*)
3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3743 noconfigdirs="$noconfigdirs sim target-rda"
3744 ;;
3745 amdgcn*-*-*)
3746 ;;
3747 arm-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
3751 powerpc-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3754 ;;
3755 i[3456789]86-*-darwin*)
3756 noconfigdirs="$noconfigdirs ld gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3758 ;;
3759 x86_64-*-darwin[912]*)
3760 noconfigdirs="$noconfigdirs ld gas gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
3762 ;;
3763 *-*-darwin*)
3764 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3765 noconfigdirs="$noconfigdirs sim target-rda"
3766 ;;
3767 *-*-dragonfly*)
3768 ;;
3769 *-*-freebsd*)
3770 if test "x$with_gmp" = x \
3771 && ! test -d ${srcdir}/gmp \
3772 && test -f /usr/local/include/gmp.h; then
3773 with_gmp=/usr/local
3774 fi
3775 ;;
3776 *-*-kaos*)
3777 # Remove unsupported stuff on all kaOS configurations.
3778 noconfigdirs="$noconfigdirs target-libgloss"
3779 ;;
3780 *-*-netbsd*)
3781 ;;
3782 *-*-netware*)
3783 ;;
3784 *-*-phoenix*)
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
3787 *-*-rtems*)
3788 noconfigdirs="$noconfigdirs target-libgloss"
3789 ;;
3790 # The tpf target doesn't support gdb yet.
3791 *-*-tpf*)
3792 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3793 ;;
3794 *-*-uclinux*)
3795 noconfigdirs="$noconfigdirs target-rda"
3796 ;;
3797 *-*-vxworks*)
3798 ;;
3799 alpha*-dec-osf*)
3800 # ld works, but does not support shared libraries.
3801 # gas doesn't generate exception information.
3802 noconfigdirs="$noconfigdirs gas ld"
3803 ;;
3804 alpha*-*-*vms*)
3805 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3806 ;;
3807 alpha*-*-*)
3808 # newlib is not 64 bit ready
3809 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3810 ;;
3811 bpf-*-*)
3812 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3813 ;;
3814 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3815 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3816 ;;
3817 arc*-*-*)
3818 noconfigdirs="$noconfigdirs sim"
3819 ;;
3820 arm-*-pe*)
3821 noconfigdirs="$noconfigdirs target-libgloss"
3822 ;;
3823 arm-*-riscix*)
3824 noconfigdirs="$noconfigdirs ld target-libgloss"
3825 ;;
3826 avr-*-*)
3827 if test x${with_avrlibc} != xno; then
3828 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3829 fi
3830 ;;
3831 c4x-*-* | tic4x-*-*)
3832 noconfigdirs="$noconfigdirs target-libgloss"
3833 ;;
3834 tic54x-*-*)
3835 noconfigdirs="$noconfigdirs target-libgloss gdb"
3836 ;;
3837 d10v-*-*)
3838 noconfigdirs="$noconfigdirs target-libgloss"
3839 ;;
3840 d30v-*-*)
3841 noconfigdirs="$noconfigdirs gdb"
3842 ;;
3843 fr30-*-elf*)
3844 noconfigdirs="$noconfigdirs gdb"
3845 ;;
3846 ft32-*-*)
3847 noconfigdirs="$noconfigdirs target-rda gprof"
3848 ;;
3849 moxie-*-*)
3850 noconfigdirs="$noconfigdirs"
3851 ;;
3852 h8300*-*-*)
3853 noconfigdirs="$noconfigdirs target-libgloss"
3854 ;;
3855 h8500-*-*)
3856 noconfigdirs="$noconfigdirs target-libgloss"
3857 ;;
3858 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3859 ;;
3860 hppa*64*-*-hpux*)
3861 noconfigdirs="$noconfigdirs gdb"
3862 ;;
3863 hppa*-*-hpux11*)
3864 noconfigdirs="$noconfigdirs gdb ld"
3865 ;;
3866 hppa*64*-*-linux*)
3867 ;;
3868 hppa*-*-linux*)
3869 ;;
3870 hppa*-*-*elf* | \
3871 hppa*-*-lites* | \
3872 hppa*-*-openbsd* | \
3873 hppa*64*-*-*)
3874 ;;
3875 hppa*-*-pro*)
3876 ;;
3877 hppa*-*-*)
3878 noconfigdirs="$noconfigdirs ld"
3879 ;;
3880 i960-*-*)
3881 noconfigdirs="$noconfigdirs gdb"
3882 ;;
3883 ia64*-*-elf*)
3884 # No gdb support yet.
3885 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3886 ;;
3887 ia64*-**-hpux*)
3888 # No ld support yet.
3889 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3890 ;;
3891 ia64*-*-*vms*)
3892 # No ld support yet.
3893 noconfigdirs="$noconfigdirs libgui itcl ld"
3894 ;;
3895 i[3456789]86-w64-mingw*)
3896 ;;
3897 i[3456789]86-*-mingw*)
3898 target_configdirs="$target_configdirs target-winsup"
3899 ;;
3900 *-*-cygwin*)
3901 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3902 noconfigdirs="$noconfigdirs target-libgloss"
3903 # always build newlib if winsup directory is present.
3904 if test -d "$srcdir/winsup/cygwin"; then
3905 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3906 elif test -d "$srcdir/newlib"; then
3907 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3908 fi
3909 ;;
3910 i[3456789]86-*-pe)
3911 noconfigdirs="$noconfigdirs target-libgloss"
3912 ;;
3913 i[3456789]86-*-sco3.2v5*)
3914 # The linker does not yet know about weak symbols in COFF,
3915 # and is not configured to handle mixed ELF and COFF.
3916 noconfigdirs="$noconfigdirs ld target-libgloss"
3917 ;;
3918 i[3456789]86-*-sco*)
3919 noconfigdirs="$noconfigdirs gprof target-libgloss"
3920 ;;
3921 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3922 noconfigdirs="$noconfigdirs target-libgloss"
3923 ;;
3924 i[3456789]86-*-sysv4*)
3925 noconfigdirs="$noconfigdirs target-libgloss"
3926 ;;
3927 i[3456789]86-*-beos*)
3928 noconfigdirs="$noconfigdirs gdb"
3929 ;;
3930 i[3456789]86-*-rdos*)
3931 noconfigdirs="$noconfigdirs gdb"
3932 ;;
3933 mmix-*-*)
3934 noconfigdirs="$noconfigdirs gdb"
3935 ;;
3936 mt-*-*)
3937 noconfigdirs="$noconfigdirs sim"
3938 ;;
3939 nfp-*-*)
3940 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3941 noconfigdirs="$noconfigdirs $target_libraries"
3942 ;;
3943 pdp11-*-*)
3944 noconfigdirs="$noconfigdirs gdb gprof"
3945 ;;
3946 powerpc-*-aix*)
3947 # copied from rs6000-*-* entry
3948 noconfigdirs="$noconfigdirs gprof"
3949 ;;
3950 powerpc*-*-winnt* | powerpc*-*-pe*)
3951 target_configdirs="$target_configdirs target-winsup"
3952 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3953 # always build newlib.
3954 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3955 ;;
3956 # This is temporary until we can link against shared libraries
3957 powerpcle-*-solaris*)
3958 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3959 ;;
3960 powerpc-*-beos*)
3961 noconfigdirs="$noconfigdirs gdb"
3962 ;;
3963 rs6000-*-lynxos*)
3964 noconfigdirs="$noconfigdirs gprof"
3965 ;;
3966 rs6000-*-aix*)
3967 noconfigdirs="$noconfigdirs gprof"
3968 ;;
3969 rs6000-*-*)
3970 noconfigdirs="$noconfigdirs gprof"
3971 ;;
3972 m68k-apollo-*)
3973 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3974 ;;
3975 microblaze*)
3976 noconfigdirs="$noconfigdirs gprof"
3977 ;;
3978 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3979 if test x$with_newlib = xyes; then
3980 noconfigdirs="$noconfigdirs gprof"
3981 fi
3982 ;;
3983 mips*-*-irix5*)
3984 noconfigdirs="$noconfigdirs gprof target-libgloss"
3985 ;;
3986 mips*-*-irix6*)
3987 noconfigdirs="$noconfigdirs gprof target-libgloss"
3988 ;;
3989 mips*-*-bsd*)
3990 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3991 ;;
3992 mips*-*-linux*)
3993 ;;
3994 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3995 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3996 noconfigdirs="$noconfigdirs ld gas gprof"
3997 ;;
3998 mips*-*-*)
3999 noconfigdirs="$noconfigdirs gprof"
4000 ;;
4001 nvptx*-*-*)
4002 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4003 ;;
4004 sh-*-*)
4005 case "${target}" in
4006 sh*-*-elf)
4007 ;;
4008 *)
4009 noconfigdirs="$noconfigdirs target-libgloss" ;;
4010 esac
4011 ;;
4012 sparc-*-sunos4*)
4013 if test x${is_cross_compiler} = xno ; then
4014 use_gnu_ld=no
4015 fi
4016 ;;
4017 tic6x-*-*)
4018 noconfigdirs="$noconfigdirs sim"
4019 ;;
4020 tilepro*-*-* | tilegx*-*-*)
4021 noconfigdirs="$noconfigdirs sim"
4022 ;;
4023 v810-*-*)
4024 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4025 ;;
4026 vax-*-*)
4027 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4028 ;;
4029 wasm32-*-*)
4030 noconfigdirs="$noconfigdirs ld"
4031 ;;
4032 loongarch*-*-linux*)
4033 ;;
4034 loongarch*-*-*)
4035 noconfigdirs="$noconfigdirs gprof"
4036 ;;
4037 esac
4038
4039 # If we aren't building newlib, then don't build libgloss, since libgloss
4040 # depends upon some newlib header files.
4041 case "${noconfigdirs}" in
4042 *target-libgloss*) ;;
4043 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4044 esac
4045
4046 # Work in distributions that contain no compiler tools, like Autoconf.
4047 host_makefile_frag=/dev/null
4048 if test -d ${srcdir}/config ; then
4049 case "${host}" in
4050 i[3456789]86-*-msdosdjgpp*)
4051 host_makefile_frag="config/mh-djgpp"
4052 ;;
4053 *-cygwin*)
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4056 $as_echo_n "checking to see if cat works as expected... " >&6; }
4057 echo a >cygwin-cat-check
4058 if test `cat cygwin-cat-check` = a ; then
4059 rm cygwin-cat-check
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061 $as_echo "yes" >&6; }
4062 else
4063 rm cygwin-cat-check
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 as_fn_error $? "The cat command does not ignore carriage return characters.
4067 Please either mount the build directory in binary mode or run the following
4068 commands before running any configure script:
4069 set -o igncr
4070 export SHELLOPTS
4071 " "$LINENO" 5
4072 fi
4073
4074 host_makefile_frag="config/mh-cygwin"
4075 ;;
4076 *-mingw*)
4077 host_makefile_frag="config/mh-mingw"
4078 ;;
4079 alpha*-linux*)
4080 host_makefile_frag="config/mh-alpha-linux"
4081 ;;
4082 hppa*-hp-hpux10*)
4083 host_makefile_frag="config/mh-pa-hpux10"
4084 ;;
4085 hppa*-hp-hpux*)
4086 host_makefile_frag="config/mh-pa"
4087 ;;
4088 hppa*-*)
4089 host_makefile_frag="config/mh-pa"
4090 ;;
4091 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4092 host_makefile_frag="config/mh-darwin"
4093 ;;
4094 powerpc-*-aix*)
4095 host_makefile_frag="config/mh-ppc-aix"
4096 ;;
4097 rs6000-*-aix*)
4098 host_makefile_frag="config/mh-ppc-aix"
4099 ;;
4100 esac
4101 fi
4102
4103 if test "${build}" != "${host}" ; then
4104 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4105 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4106 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4107 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4108 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4109 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4110 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4111 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4112 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4113 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4114 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4115 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4116 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4117 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4118 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4119 else
4120 AR_FOR_BUILD="\$(AR)"
4121 AS_FOR_BUILD="\$(AS)"
4122 CC_FOR_BUILD="\$(CC)"
4123 CXX_FOR_BUILD="\$(CXX)"
4124 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4125 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4126 GOC_FOR_BUILD="\$(GOC)"
4127 GDC_FOR_BUILD="\$(GDC)"
4128 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4129 LD_FOR_BUILD="\$(LD)"
4130 NM_FOR_BUILD="\$(NM)"
4131 RANLIB_FOR_BUILD="\$(RANLIB)"
4132 WINDRES_FOR_BUILD="\$(WINDRES)"
4133 WINDMC_FOR_BUILD="\$(WINDMC)"
4134 fi
4135
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 if test -n "$ac_tool_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_prog_CC+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 CC=$ac_cv_prog_CC
4170 if test -n "$CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172 $as_echo "$CC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 fi
4180 if test -z "$ac_cv_prog_CC"; then
4181 ac_ct_CC=$CC
4182 # Extract the first word of "gcc", so it can be a program name with args.
4183 set dummy gcc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$ac_ct_CC"; then
4190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_CC="gcc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4210 if test -n "$ac_ct_CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4212 $as_echo "$ac_ct_CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218 if test "x$ac_ct_CC" = x; then
4219 CC=""
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222 yes:)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 CC=$ac_ct_CC
4228 fi
4229 else
4230 CC="$ac_cv_prog_CC"
4231 fi
4232
4233 if test -z "$CC"; then
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}cc; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_CC+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_CC="${ac_tool_prefix}cc"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256 done
4257 done
4258 IFS=$as_save_IFS
4259
4260 fi
4261 fi
4262 CC=$ac_cv_prog_CC
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 fi
4270
4271
4272 fi
4273 fi
4274 if test -z "$CC"; then
4275 # Extract the first word of "cc", so it can be a program name with args.
4276 set dummy cc; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_CC+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -n "$CC"; then
4283 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 else
4285 ac_prog_rejected=no
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4294 ac_prog_rejected=yes
4295 continue
4296 fi
4297 ac_cv_prog_CC="cc"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 if test $ac_prog_rejected = yes; then
4306 # We found a bogon in the path, so make sure we never use it.
4307 set dummy $ac_cv_prog_CC
4308 shift
4309 if test $# != 0; then
4310 # We chose a different compiler from the bogus one.
4311 # However, it has the same basename, so the bogon will be chosen
4312 # first if we set CC to just the basename; use the full file name.
4313 shift
4314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4315 fi
4316 fi
4317 fi
4318 fi
4319 CC=$ac_cv_prog_CC
4320 if test -n "$CC"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322 $as_echo "$CC" >&6; }
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327
4328
4329 fi
4330 if test -z "$CC"; then
4331 if test -n "$ac_tool_prefix"; then
4332 for ac_prog in cl.exe
4333 do
4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CC+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC="$CC" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355 done
4356 done
4357 IFS=$as_save_IFS
4358
4359 fi
4360 fi
4361 CC=$ac_cv_prog_CC
4362 if test -n "$CC"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4364 $as_echo "$CC" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368 fi
4369
4370
4371 test -n "$CC" && break
4372 done
4373 fi
4374 if test -z "$CC"; then
4375 ac_ct_CC=$CC
4376 for ac_prog in cl.exe
4377 do
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -n "$ac_ct_CC"; then
4386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_ac_ct_CC="$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4406 if test -n "$ac_ct_CC"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4408 $as_echo "$ac_ct_CC" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 fi
4413
4414
4415 test -n "$ac_ct_CC" && break
4416 done
4417
4418 if test "x$ac_ct_CC" = x; then
4419 CC=""
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 CC=$ac_ct_CC
4428 fi
4429 fi
4430
4431 fi
4432
4433
4434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error $? "no acceptable C compiler found in \$PATH
4437 See \`config.log' for more details" "$LINENO" 5; }
4438
4439 # Provide some information about the compiler.
4440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4441 set X $ac_compile
4442 ac_compiler=$2
4443 for ac_option in --version -v -V -qversion; do
4444 { { ac_try="$ac_compiler $ac_option >&5"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4452 ac_status=$?
4453 if test -s conftest.err; then
4454 sed '10a\
4455 ... rest of stderr output deleted ...
4456 10q' conftest.err >conftest.er1
4457 cat conftest.er1 >&5
4458 fi
4459 rm -f conftest.er1 conftest.err
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }
4462 done
4463
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466
4467 int
4468 main ()
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 ac_clean_files_save=$ac_clean_files
4476 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4477 # Try to create an executable without -o first, disregard a.out.
4478 # It will help us diagnose broken compilers, and finding out an intuition
4479 # of exeext.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4481 $as_echo_n "checking whether the C compiler works... " >&6; }
4482 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4483
4484 # The possible output files:
4485 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4486
4487 ac_rmfiles=
4488 for ac_file in $ac_files
4489 do
4490 case $ac_file in
4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4492 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4493 esac
4494 done
4495 rm -f $ac_rmfiles
4496
4497 if { { ac_try="$ac_link_default"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_link_default") 2>&5
4505 ac_status=$?
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
4508 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4509 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4510 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4511 # so that the user can short-circuit this test for compilers unknown to
4512 # Autoconf.
4513 for ac_file in $ac_files ''
4514 do
4515 test -f "$ac_file" || continue
4516 case $ac_file in
4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4518 ;;
4519 [ab].out )
4520 # We found the default executable, but exeext='' is most
4521 # certainly right.
4522 break;;
4523 *.* )
4524 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4525 then :; else
4526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 fi
4528 # We set ac_cv_exeext here because the later test for it is not
4529 # safe: cross compilers may not add the suffix if given an `-o'
4530 # argument, so we may need to know it at that point already.
4531 # Even if this section looks crufty: it has the advantage of
4532 # actually working.
4533 break;;
4534 * )
4535 break;;
4536 esac
4537 done
4538 test "$ac_cv_exeext" = no && ac_cv_exeext=
4539
4540 else
4541 ac_file=''
4542 fi
4543 if test -z "$ac_file"; then :
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 $as_echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error 77 "C compiler cannot create executables
4552 See \`config.log' for more details" "$LINENO" 5; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4555 $as_echo "yes" >&6; }
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4558 $as_echo_n "checking for C compiler default output file name... " >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4560 $as_echo "$ac_file" >&6; }
4561 ac_exeext=$ac_cv_exeext
4562
4563 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4564 ac_clean_files=$ac_clean_files_save
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4566 $as_echo_n "checking for suffix of executables... " >&6; }
4567 if { { ac_try="$ac_link"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573 $as_echo "$ac_try_echo"; } >&5
4574 (eval "$ac_link") 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }; then :
4578 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4579 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4580 # work properly (i.e., refer to `conftest.exe'), while it won't with
4581 # `rm'.
4582 for ac_file in conftest.exe conftest conftest.*; do
4583 test -f "$ac_file" || continue
4584 case $ac_file in
4585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587 break;;
4588 * ) break;;
4589 esac
4590 done
4591 else
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4595 See \`config.log' for more details" "$LINENO" 5; }
4596 fi
4597 rm -f conftest conftest$ac_cv_exeext
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4599 $as_echo "$ac_cv_exeext" >&6; }
4600
4601 rm -f conftest.$ac_ext
4602 EXEEXT=$ac_cv_exeext
4603 ac_exeext=$EXEEXT
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #include <stdio.h>
4607 int
4608 main ()
4609 {
4610 FILE *f = fopen ("conftest.out", "w");
4611 return ferror (f) || fclose (f) != 0;
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 ac_clean_files="$ac_clean_files conftest.out"
4618 # Check that the compiler produces executables we can run. If not, either
4619 # the compiler is broken, or we cross compile.
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4621 $as_echo_n "checking whether we are cross compiling... " >&6; }
4622 if test "$cross_compiling" != yes; then
4623 { { ac_try="$ac_link"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 $as_echo "$ac_try_echo"; } >&5
4630 (eval "$ac_link") 2>&5
4631 ac_status=$?
4632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }
4634 if { ac_try='./conftest$ac_cv_exeext'
4635 { { case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641 (eval "$ac_try") 2>&5
4642 ac_status=$?
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }; }; then
4645 cross_compiling=no
4646 else
4647 if test "$cross_compiling" = maybe; then
4648 cross_compiling=yes
4649 else
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "cannot run C compiled programs.
4653 If you meant to cross compile, use \`--host'.
4654 See \`config.log' for more details" "$LINENO" 5; }
4655 fi
4656 fi
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4659 $as_echo "$cross_compiling" >&6; }
4660
4661 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4662 ac_clean_files=$ac_clean_files_save
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4664 $as_echo_n "checking for suffix of object files... " >&6; }
4665 if ${ac_cv_objext+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670
4671 int
4672 main ()
4673 {
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.o conftest.obj
4680 if { { ac_try="$ac_compile"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686 $as_echo "$ac_try_echo"; } >&5
4687 (eval "$ac_compile") 2>&5
4688 ac_status=$?
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; then :
4691 for ac_file in conftest.o conftest.obj conftest.*; do
4692 test -f "$ac_file" || continue;
4693 case $ac_file in
4694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4696 break;;
4697 esac
4698 done
4699 else
4700 $as_echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "cannot compute suffix of object files: cannot compile
4706 See \`config.log' for more details" "$LINENO" 5; }
4707 fi
4708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4711 $as_echo "$ac_cv_objext" >&6; }
4712 OBJEXT=$ac_cv_objext
4713 ac_objext=$OBJEXT
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4716 if ${ac_cv_c_compiler_gnu+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725 #ifndef __GNUC__
4726 choke me
4727 #endif
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_compiler_gnu=yes
4735 else
4736 ac_compiler_gnu=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4744 if test $ac_compiler_gnu = yes; then
4745 GCC=yes
4746 else
4747 GCC=
4748 fi
4749 ac_test_CFLAGS=${CFLAGS+set}
4750 ac_save_CFLAGS=$CFLAGS
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4753 if ${ac_cv_prog_cc_g+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 ac_save_c_werror_flag=$ac_c_werror_flag
4757 ac_c_werror_flag=yes
4758 ac_cv_prog_cc_g=no
4759 CFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main ()
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772 ac_cv_prog_cc_g=yes
4773 else
4774 CFLAGS=""
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787
4788 else
4789 ac_c_werror_flag=$ac_save_c_werror_flag
4790 CFLAGS="-g"
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793
4794 int
4795 main ()
4796 {
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_prog_cc_g=yes
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_c_werror_flag=$ac_save_c_werror_flag
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4813 $as_echo "$ac_cv_prog_cc_g" >&6; }
4814 if test "$ac_test_CFLAGS" = set; then
4815 CFLAGS=$ac_save_CFLAGS
4816 elif test $ac_cv_prog_cc_g = yes; then
4817 if test "$GCC" = yes; then
4818 CFLAGS="-g -O2"
4819 else
4820 CFLAGS="-g"
4821 fi
4822 else
4823 if test "$GCC" = yes; then
4824 CFLAGS="-O2"
4825 else
4826 CFLAGS=
4827 fi
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4831 if ${ac_cv_prog_cc_c89+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 ac_cv_prog_cc_c89=no
4835 ac_save_CC=$CC
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 #include <stdarg.h>
4839 #include <stdio.h>
4840 struct stat;
4841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4842 struct buf { int x; };
4843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4844 static char *e (p, i)
4845 char **p;
4846 int i;
4847 {
4848 return p[i];
4849 }
4850 static char *f (char * (*g) (char **, int), char **p, ...)
4851 {
4852 char *s;
4853 va_list v;
4854 va_start (v,p);
4855 s = g (p, va_arg (v,int));
4856 va_end (v);
4857 return s;
4858 }
4859
4860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4861 function prototypes and stuff, but not '\xHH' hex character constants.
4862 These don't provoke an error unfortunately, instead are silently treated
4863 as 'x'. The following induces an error, until -std is added to get
4864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4865 array size at least. It's necessary to write '\x00'==0 to get something
4866 that's true only with -std. */
4867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4868
4869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4870 inside strings and character constants. */
4871 #define FOO(x) 'x'
4872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4873
4874 int test (int i, double x);
4875 struct s1 {int (*f) (int a);};
4876 struct s2 {int (*f) (double a);};
4877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4878 int argc;
4879 char **argv;
4880 int
4881 main ()
4882 {
4883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 do
4891 CC="$ac_save_CC $ac_arg"
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 ac_cv_prog_cc_c89=$ac_arg
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext
4896 test "x$ac_cv_prog_cc_c89" != "xno" && break
4897 done
4898 rm -f conftest.$ac_ext
4899 CC=$ac_save_CC
4900
4901 fi
4902 # AC_CACHE_VAL
4903 case "x$ac_cv_prog_cc_c89" in
4904 x)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 $as_echo "none needed" >&6; } ;;
4907 xno)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4909 $as_echo "unsupported" >&6; } ;;
4910 *)
4911 CC="$CC $ac_cv_prog_cc_c89"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4914 esac
4915 if test "x$ac_cv_prog_cc_c89" != xno; then :
4916
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4926 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4927 if ${ac_cv_prog_cc_c99+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 ac_cv_prog_cc_c99=no
4931 ac_save_CC=$CC
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <stdarg.h>
4935 #include <stdbool.h>
4936 #include <stdlib.h>
4937 #include <wchar.h>
4938 #include <stdio.h>
4939
4940 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4941 #define debug(...) fprintf (stderr, __VA_ARGS__)
4942 #define showlist(...) puts (#__VA_ARGS__)
4943 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4944 static void
4945 test_varargs_macros (void)
4946 {
4947 int x = 1234;
4948 int y = 5678;
4949 debug ("Flag");
4950 debug ("X = %d\n", x);
4951 showlist (The first, second, and third items.);
4952 report (x>y, "x is %d but y is %d", x, y);
4953 }
4954
4955 // Check long long types.
4956 #define BIG64 18446744073709551615ull
4957 #define BIG32 4294967295ul
4958 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4959 #if !BIG_OK
4960 your preprocessor is broken;
4961 #endif
4962 #if BIG_OK
4963 #else
4964 your preprocessor is broken;
4965 #endif
4966 static long long int bignum = -9223372036854775807LL;
4967 static unsigned long long int ubignum = BIG64;
4968
4969 struct incomplete_array
4970 {
4971 int datasize;
4972 double data[];
4973 };
4974
4975 struct named_init {
4976 int number;
4977 const wchar_t *name;
4978 double average;
4979 };
4980
4981 typedef const char *ccp;
4982
4983 static inline int
4984 test_restrict (ccp restrict text)
4985 {
4986 // See if C++-style comments work.
4987 // Iterate through items via the restricted pointer.
4988 // Also check for declarations in for loops.
4989 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4990 continue;
4991 return 0;
4992 }
4993
4994 // Check varargs and va_copy.
4995 static void
4996 test_varargs (const char *format, ...)
4997 {
4998 va_list args;
4999 va_start (args, format);
5000 va_list args_copy;
5001 va_copy (args_copy, args);
5002
5003 const char *str;
5004 int number;
5005 float fnumber;
5006
5007 while (*format)
5008 {
5009 switch (*format++)
5010 {
5011 case 's': // string
5012 str = va_arg (args_copy, const char *);
5013 break;
5014 case 'd': // int
5015 number = va_arg (args_copy, int);
5016 break;
5017 case 'f': // float
5018 fnumber = va_arg (args_copy, double);
5019 break;
5020 default:
5021 break;
5022 }
5023 }
5024 va_end (args_copy);
5025 va_end (args);
5026 }
5027
5028 int
5029 main ()
5030 {
5031
5032 // Check bool.
5033 _Bool success = false;
5034
5035 // Check restrict.
5036 if (test_restrict ("String literal") == 0)
5037 success = true;
5038 char *restrict newvar = "Another string";
5039
5040 // Check varargs.
5041 test_varargs ("s, d' f .", "string", 65, 34.234);
5042 test_varargs_macros ();
5043
5044 // Check flexible array members.
5045 struct incomplete_array *ia =
5046 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5047 ia->datasize = 10;
5048 for (int i = 0; i < ia->datasize; ++i)
5049 ia->data[i] = i * 1.234;
5050
5051 // Check named initializers.
5052 struct named_init ni = {
5053 .number = 34,
5054 .name = L"Test wide string",
5055 .average = 543.34343,
5056 };
5057
5058 ni.number = 58;
5059
5060 int dynamic_array[ni.number];
5061 dynamic_array[ni.number - 1] = 543;
5062
5063 // work around unused variable warnings
5064 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5065 || dynamic_array[ni.number - 1] != 543);
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5072 do
5073 CC="$ac_save_CC $ac_arg"
5074 if ac_fn_c_try_compile "$LINENO"; then :
5075 ac_cv_prog_cc_c99=$ac_arg
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext
5078 test "x$ac_cv_prog_cc_c99" != "xno" && break
5079 done
5080 rm -f conftest.$ac_ext
5081 CC=$ac_save_CC
5082
5083 fi
5084 # AC_CACHE_VAL
5085 case "x$ac_cv_prog_cc_c99" in
5086 x)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5088 $as_echo "none needed" >&6; } ;;
5089 xno)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5091 $as_echo "unsupported" >&6; } ;;
5092 *)
5093 CC="$CC $ac_cv_prog_cc_c99"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5095 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5096 esac
5097 if test "x$ac_cv_prog_cc_c99" != xno; then :
5098
5099 fi
5100
5101
5102 ac_ext=cpp
5103 ac_cpp='$CXXCPP $CPPFLAGS'
5104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107 if test -z "$CXX"; then
5108 if test -n "$CCC"; then
5109 CXX=$CCC
5110 else
5111 if test -n "$ac_tool_prefix"; then
5112 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5113 do
5114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_CXX+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$CXX"; then
5122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 CXX=$ac_cv_prog_CXX
5142 if test -n "$CXX"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5144 $as_echo "$CXX" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 test -n "$CXX" && break
5152 done
5153 fi
5154 if test -z "$CXX"; then
5155 ac_ct_CXX=$CXX
5156 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5157 do
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$ac_ct_CXX"; then
5166 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_CXX="$ac_prog"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5186 if test -n "$ac_ct_CXX"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5188 $as_echo "$ac_ct_CXX" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 test -n "$ac_ct_CXX" && break
5196 done
5197
5198 if test "x$ac_ct_CXX" = x; then
5199 CXX="g++"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 CXX=$ac_ct_CXX
5208 fi
5209 fi
5210
5211 fi
5212 fi
5213 # Provide some information about the compiler.
5214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5215 set X $ac_compile
5216 ac_compiler=$2
5217 for ac_option in --version -v -V -qversion; do
5218 { { ac_try="$ac_compiler $ac_option >&5"
5219 case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 $as_echo "$ac_try_echo"; } >&5
5225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5226 ac_status=$?
5227 if test -s conftest.err; then
5228 sed '10a\
5229 ... rest of stderr output deleted ...
5230 10q' conftest.err >conftest.er1
5231 cat conftest.er1 >&5
5232 fi
5233 rm -f conftest.er1 conftest.err
5234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235 test $ac_status = 0; }
5236 done
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5239 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5240 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246 int
5247 main ()
5248 {
5249 #ifndef __GNUC__
5250 choke me
5251 #endif
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_cxx_try_compile "$LINENO"; then :
5258 ac_compiler_gnu=yes
5259 else
5260 ac_compiler_gnu=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5264
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5268 if test $ac_compiler_gnu = yes; then
5269 GXX=yes
5270 else
5271 GXX=
5272 fi
5273 ac_test_CXXFLAGS=${CXXFLAGS+set}
5274 ac_save_CXXFLAGS=$CXXFLAGS
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5277 if ${ac_cv_prog_cxx_g+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5281 ac_cxx_werror_flag=yes
5282 ac_cv_prog_cxx_g=no
5283 CXXFLAGS="-g"
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286
5287 int
5288 main ()
5289 {
5290
5291 ;
5292 return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_cxx_try_compile "$LINENO"; then :
5296 ac_cv_prog_cxx_g=yes
5297 else
5298 CXXFLAGS=""
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301
5302 int
5303 main ()
5304 {
5305
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 if ac_fn_cxx_try_compile "$LINENO"; then :
5311
5312 else
5313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5314 CXXFLAGS="-g"
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317
5318 int
5319 main ()
5320 {
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_cxx_try_compile "$LINENO"; then :
5327 ac_cv_prog_cxx_g=yes
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5337 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5338 if test "$ac_test_CXXFLAGS" = set; then
5339 CXXFLAGS=$ac_save_CXXFLAGS
5340 elif test $ac_cv_prog_cxx_g = yes; then
5341 if test "$GXX" = yes; then
5342 CXXFLAGS="-g -O2"
5343 else
5344 CXXFLAGS="-g"
5345 fi
5346 else
5347 if test "$GXX" = yes; then
5348 CXXFLAGS="-O2"
5349 else
5350 CXXFLAGS=
5351 fi
5352 fi
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 # We must set the default linker to the linker used by gcc for the correct
5361 # operation of libtool. If LD is not defined and we are using gcc, try to
5362 # set the LD default to the ld used by gcc.
5363 if test -z "$LD"; then
5364 if test "$GCC" = yes; then
5365 case $build in
5366 *-*-mingw*)
5367 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5368 *)
5369 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5370 esac
5371 case $gcc_prog_ld in
5372 # Accept absolute paths.
5373 [\\/]* | [A-Za-z]:[\\/]*)
5374 LD="$gcc_prog_ld" ;;
5375 esac
5376 fi
5377 fi
5378
5379 # Check whether -static-libstdc++ -static-libgcc is supported.
5380 have_static_libs=no
5381 if test "$GCC" = yes; then
5382 saved_LDFLAGS="$LDFLAGS"
5383
5384 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5386 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5387 ac_ext=cpp
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392
5393
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396
5397 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5398 #error -static-libstdc++ not implemented
5399 #endif
5400 int main() {}
5401 _ACEOF
5402 if ac_fn_cxx_try_link "$LINENO"; then :
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404 $as_echo "yes" >&6; }; have_static_libs=yes
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 LDFLAGS="$saved_LDFLAGS"
5419 fi
5420
5421
5422
5423
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_prog_GNATBIND+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$GNATBIND"; then
5433 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 GNATBIND=$ac_cv_prog_GNATBIND
5453 if test -n "$GNATBIND"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5455 $as_echo "$GNATBIND" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 fi
5463 if test -z "$ac_cv_prog_GNATBIND"; then
5464 ac_ct_GNATBIND=$GNATBIND
5465 # Extract the first word of "gnatbind", so it can be a program name with args.
5466 set dummy gnatbind; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_GNATBIND"; then
5473 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5493 if test -n "$ac_ct_GNATBIND"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5495 $as_echo "$ac_ct_GNATBIND" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501 if test "x$ac_ct_GNATBIND" = x; then
5502 GNATBIND="no"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 GNATBIND=$ac_ct_GNATBIND
5511 fi
5512 else
5513 GNATBIND="$ac_cv_prog_GNATBIND"
5514 fi
5515
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_GNATMAKE+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$GNATMAKE"; then
5525 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 GNATMAKE=$ac_cv_prog_GNATMAKE
5545 if test -n "$GNATMAKE"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5547 $as_echo "$GNATMAKE" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 fi
5555 if test -z "$ac_cv_prog_GNATMAKE"; then
5556 ac_ct_GNATMAKE=$GNATMAKE
5557 # Extract the first word of "gnatmake", so it can be a program name with args.
5558 set dummy gnatmake; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$ac_ct_GNATMAKE"; then
5565 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5585 if test -n "$ac_ct_GNATMAKE"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5587 $as_echo "$ac_ct_GNATMAKE" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593 if test "x$ac_ct_GNATMAKE" = x; then
5594 GNATMAKE="no"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 GNATMAKE=$ac_ct_GNATMAKE
5603 fi
5604 else
5605 GNATMAKE="$ac_cv_prog_GNATMAKE"
5606 fi
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5609 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5610 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat >conftest.adb <<EOF
5614 procedure conftest is begin null; end conftest;
5615 EOF
5616 acx_cv_cc_gcc_supports_ada=no
5617 # There is a bug in old released versions of GCC which causes the
5618 # driver to exit successfully when the appropriate language module
5619 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5620 # Therefore we must check for the error message as well as an
5621 # unsuccessful exit.
5622 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5623 # given a .adb file, but produce no object file. So we must check
5624 # if an object file was really produced to guard against this.
5625 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5626 if test x"$errors" = x && test -f conftest.$ac_objext; then
5627 acx_cv_cc_gcc_supports_ada=yes
5628 fi
5629 rm -f conftest.*
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5632 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5633
5634 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5635 have_gnat=yes
5636 else
5637 have_gnat=no
5638 fi
5639
5640
5641
5642 if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_GDC+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$GDC"; then
5651 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 GDC=$ac_cv_prog_GDC
5671 if test -n "$GDC"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5673 $as_echo "$GDC" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680 fi
5681 if test -z "$ac_cv_prog_GDC"; then
5682 ac_ct_GDC=$GDC
5683 # Extract the first word of "gdc", so it can be a program name with args.
5684 set dummy gdc; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$ac_ct_GDC"; then
5691 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_GDC="gdc"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5711 if test -n "$ac_ct_GDC"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5713 $as_echo "$ac_ct_GDC" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719 if test "x$ac_ct_GDC" = x; then
5720 GDC="no"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 GDC=$ac_ct_GDC
5729 fi
5730 else
5731 GDC="$ac_cv_prog_GDC"
5732 fi
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5735 $as_echo_n "checking whether the D compiler works... " >&6; }
5736 if ${acx_cv_d_compiler_works+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 cat >conftest.d <<EOF
5740 module conftest; int main() { return 0; }
5741 EOF
5742 acx_cv_d_compiler_works=no
5743 if test "x$GDC" != xno; then
5744 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5745 if test x"$errors" = x && test -f conftest.$ac_objext; then
5746 acx_cv_d_compiler_works=yes
5747 fi
5748 rm -f conftest.*
5749 fi
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5752 $as_echo "$acx_cv_d_compiler_works" >&6; }
5753 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5754 have_gdc=yes
5755 else
5756 have_gdc=no
5757 fi
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5760 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5761 if ${gcc_cv_prog_cmp_skip+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 echo abfoo >t1
5765 echo cdfoo >t2
5766 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5767 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5768 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5769 :
5770 else
5771 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5772 fi
5773 fi
5774 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5775 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5776 :
5777 else
5778 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5779 fi
5780 fi
5781 rm t1 t2
5782
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5785 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5786 do_compare="$gcc_cv_prog_cmp_skip"
5787
5788
5789
5790 # Check whether --enable-bootstrap was given.
5791 if test "${enable_bootstrap+set}" = set; then :
5792 enableval=$enable_bootstrap;
5793 else
5794 enable_bootstrap=default
5795 fi
5796
5797
5798 # Issue errors and warnings for invalid/strange bootstrap combinations.
5799 if test -r $srcdir/gcc/configure; then
5800 have_compiler=yes
5801 else
5802 have_compiler=no
5803 fi
5804
5805 case "$have_compiler:$host:$target:$enable_bootstrap" in
5806 *:*:*:no) ;;
5807
5808 # Default behavior. Enable bootstrap if we have a compiler
5809 # and we are in a native configuration.
5810 yes:$build:$build:default)
5811 enable_bootstrap=yes ;;
5812
5813 *:*:*:default)
5814 enable_bootstrap=no ;;
5815
5816 # We have a compiler and we are in a native configuration, bootstrap is ok
5817 yes:$build:$build:yes)
5818 ;;
5819
5820 # Other configurations, but we have a compiler. Assume the user knows
5821 # what he's doing.
5822 yes:*:*:yes)
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5824 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5825 ;;
5826
5827 # No compiler: if they passed --enable-bootstrap explicitly, fail
5828 no:*:*:yes)
5829 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5830
5831 # Fail if wrong command line
5832 *)
5833 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5834 ;;
5835 esac
5836
5837 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5838 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5839 # require C++11 (or higher).
5840 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5841 CXX="$CXX -std=c++11"
5842 elif test "$have_compiler" = yes; then
5843 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5844 ac_ext=cpp
5845 ac_cpp='$CXXCPP $CPPFLAGS'
5846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5849 ac_success=no
5850
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5852 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5853 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858
5859
5860 // If the compiler admits that it is not ready for C++11, why torture it?
5861 // Hopefully, this will speed up the test.
5862
5863 #ifndef __cplusplus
5864
5865 #error "This is not a C++ compiler"
5866
5867 #elif __cplusplus < 201103L
5868
5869 #error "This is not a C++11 compiler"
5870
5871 #else
5872
5873 namespace cxx11
5874 {
5875
5876 namespace test_static_assert
5877 {
5878
5879 template <typename T>
5880 struct check
5881 {
5882 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5883 };
5884
5885 }
5886
5887 namespace test_final_override
5888 {
5889
5890 struct Base
5891 {
5892 virtual ~Base() {}
5893 virtual void f() {}
5894 };
5895
5896 struct Derived : public Base
5897 {
5898 virtual ~Derived() override {}
5899 virtual void f() override {}
5900 };
5901
5902 }
5903
5904 namespace test_double_right_angle_brackets
5905 {
5906
5907 template < typename T >
5908 struct check {};
5909
5910 typedef check<void> single_type;
5911 typedef check<check<void>> double_type;
5912 typedef check<check<check<void>>> triple_type;
5913 typedef check<check<check<check<void>>>> quadruple_type;
5914
5915 }
5916
5917 namespace test_decltype
5918 {
5919
5920 int
5921 f()
5922 {
5923 int a = 1;
5924 decltype(a) b = 2;
5925 return a + b;
5926 }
5927
5928 }
5929
5930 namespace test_type_deduction
5931 {
5932
5933 template < typename T1, typename T2 >
5934 struct is_same
5935 {
5936 static const bool value = false;
5937 };
5938
5939 template < typename T >
5940 struct is_same<T, T>
5941 {
5942 static const bool value = true;
5943 };
5944
5945 template < typename T1, typename T2 >
5946 auto
5947 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5948 {
5949 return a1 + a2;
5950 }
5951
5952 int
5953 test(const int c, volatile int v)
5954 {
5955 static_assert(is_same<int, decltype(0)>::value == true, "");
5956 static_assert(is_same<int, decltype(c)>::value == false, "");
5957 static_assert(is_same<int, decltype(v)>::value == false, "");
5958 auto ac = c;
5959 auto av = v;
5960 auto sumi = ac + av + 'x';
5961 auto sumf = ac + av + 1.0;
5962 static_assert(is_same<int, decltype(ac)>::value == true, "");
5963 static_assert(is_same<int, decltype(av)>::value == true, "");
5964 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5965 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5966 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5967 return (sumf > 0.0) ? sumi : add(c, v);
5968 }
5969
5970 }
5971
5972 namespace test_noexcept
5973 {
5974
5975 int f() { return 0; }
5976 int g() noexcept { return 0; }
5977
5978 static_assert(noexcept(f()) == false, "");
5979 static_assert(noexcept(g()) == true, "");
5980
5981 }
5982
5983 namespace test_constexpr
5984 {
5985
5986 template < typename CharT >
5987 unsigned long constexpr
5988 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5989 {
5990 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5991 }
5992
5993 template < typename CharT >
5994 unsigned long constexpr
5995 strlen_c(const CharT *const s) noexcept
5996 {
5997 return strlen_c_r(s, 0UL);
5998 }
5999
6000 static_assert(strlen_c("") == 0UL, "");
6001 static_assert(strlen_c("1") == 1UL, "");
6002 static_assert(strlen_c("example") == 7UL, "");
6003 static_assert(strlen_c("another\0example") == 7UL, "");
6004
6005 }
6006
6007 namespace test_rvalue_references
6008 {
6009
6010 template < int N >
6011 struct answer
6012 {
6013 static constexpr int value = N;
6014 };
6015
6016 answer<1> f(int&) { return answer<1>(); }
6017 answer<2> f(const int&) { return answer<2>(); }
6018 answer<3> f(int&&) { return answer<3>(); }
6019
6020 void
6021 test()
6022 {
6023 int i = 0;
6024 const int c = 0;
6025 static_assert(decltype(f(i))::value == 1, "");
6026 static_assert(decltype(f(c))::value == 2, "");
6027 static_assert(decltype(f(0))::value == 3, "");
6028 }
6029
6030 }
6031
6032 namespace test_uniform_initialization
6033 {
6034
6035 struct test
6036 {
6037 static const int zero {};
6038 static const int one {1};
6039 };
6040
6041 static_assert(test::zero == 0, "");
6042 static_assert(test::one == 1, "");
6043
6044 }
6045
6046 namespace test_lambdas
6047 {
6048
6049 void
6050 test1()
6051 {
6052 auto lambda1 = [](){};
6053 auto lambda2 = lambda1;
6054 lambda1();
6055 lambda2();
6056 }
6057
6058 int
6059 test2()
6060 {
6061 auto a = [](int i, int j){ return i + j; }(1, 2);
6062 auto b = []() -> int { return '0'; }();
6063 auto c = [=](){ return a + b; }();
6064 auto d = [&](){ return c; }();
6065 auto e = [a, &b](int x) mutable {
6066 const auto identity = [](int y){ return y; };
6067 for (auto i = 0; i < a; ++i)
6068 a += b--;
6069 return x + identity(a + b);
6070 }(0);
6071 return a + b + c + d + e;
6072 }
6073
6074 int
6075 test3()
6076 {
6077 const auto nullary = [](){ return 0; };
6078 const auto unary = [](int x){ return x; };
6079 using nullary_t = decltype(nullary);
6080 using unary_t = decltype(unary);
6081 const auto higher1st = [](nullary_t f){ return f(); };
6082 const auto higher2nd = [unary](nullary_t f1){
6083 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6084 };
6085 return higher1st(nullary) + higher2nd(nullary)(unary);
6086 }
6087
6088 }
6089
6090 namespace test_variadic_templates
6091 {
6092
6093 template <int...>
6094 struct sum;
6095
6096 template <int N0, int... N1toN>
6097 struct sum<N0, N1toN...>
6098 {
6099 static constexpr auto value = N0 + sum<N1toN...>::value;
6100 };
6101
6102 template <>
6103 struct sum<>
6104 {
6105 static constexpr auto value = 0;
6106 };
6107
6108 static_assert(sum<>::value == 0, "");
6109 static_assert(sum<1>::value == 1, "");
6110 static_assert(sum<23>::value == 23, "");
6111 static_assert(sum<1, 2>::value == 3, "");
6112 static_assert(sum<5, 5, 11>::value == 21, "");
6113 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6114
6115 }
6116
6117 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6118 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6119 // because of this.
6120 namespace test_template_alias_sfinae
6121 {
6122
6123 struct foo {};
6124
6125 template<typename T>
6126 using member = typename T::member_type;
6127
6128 template<typename T>
6129 void func(...) {}
6130
6131 template<typename T>
6132 void func(member<T>*) {}
6133
6134 void test();
6135
6136 void test() { func<foo>(0); }
6137
6138 }
6139
6140 } // namespace cxx11
6141
6142 #endif // __cplusplus >= 201103L
6143
6144
6145
6146 _ACEOF
6147 if ac_fn_cxx_try_compile "$LINENO"; then :
6148 ax_cv_cxx_compile_cxx11=yes
6149 else
6150 ax_cv_cxx_compile_cxx11=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6155 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6156 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6157 ac_success=yes
6158 fi
6159
6160 if test x$ac_success = xno; then
6161 for alternative in ${ax_cxx_compile_alternatives}; do
6162 switch="-std=gnu++${alternative}"
6163 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6165 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6166 if eval \${$cachevar+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 ac_save_CXX="$CXX"
6170 CXX="$CXX $switch"
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173
6174
6175 // If the compiler admits that it is not ready for C++11, why torture it?
6176 // Hopefully, this will speed up the test.
6177
6178 #ifndef __cplusplus
6179
6180 #error "This is not a C++ compiler"
6181
6182 #elif __cplusplus < 201103L
6183
6184 #error "This is not a C++11 compiler"
6185
6186 #else
6187
6188 namespace cxx11
6189 {
6190
6191 namespace test_static_assert
6192 {
6193
6194 template <typename T>
6195 struct check
6196 {
6197 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6198 };
6199
6200 }
6201
6202 namespace test_final_override
6203 {
6204
6205 struct Base
6206 {
6207 virtual ~Base() {}
6208 virtual void f() {}
6209 };
6210
6211 struct Derived : public Base
6212 {
6213 virtual ~Derived() override {}
6214 virtual void f() override {}
6215 };
6216
6217 }
6218
6219 namespace test_double_right_angle_brackets
6220 {
6221
6222 template < typename T >
6223 struct check {};
6224
6225 typedef check<void> single_type;
6226 typedef check<check<void>> double_type;
6227 typedef check<check<check<void>>> triple_type;
6228 typedef check<check<check<check<void>>>> quadruple_type;
6229
6230 }
6231
6232 namespace test_decltype
6233 {
6234
6235 int
6236 f()
6237 {
6238 int a = 1;
6239 decltype(a) b = 2;
6240 return a + b;
6241 }
6242
6243 }
6244
6245 namespace test_type_deduction
6246 {
6247
6248 template < typename T1, typename T2 >
6249 struct is_same
6250 {
6251 static const bool value = false;
6252 };
6253
6254 template < typename T >
6255 struct is_same<T, T>
6256 {
6257 static const bool value = true;
6258 };
6259
6260 template < typename T1, typename T2 >
6261 auto
6262 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6263 {
6264 return a1 + a2;
6265 }
6266
6267 int
6268 test(const int c, volatile int v)
6269 {
6270 static_assert(is_same<int, decltype(0)>::value == true, "");
6271 static_assert(is_same<int, decltype(c)>::value == false, "");
6272 static_assert(is_same<int, decltype(v)>::value == false, "");
6273 auto ac = c;
6274 auto av = v;
6275 auto sumi = ac + av + 'x';
6276 auto sumf = ac + av + 1.0;
6277 static_assert(is_same<int, decltype(ac)>::value == true, "");
6278 static_assert(is_same<int, decltype(av)>::value == true, "");
6279 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6280 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6281 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6282 return (sumf > 0.0) ? sumi : add(c, v);
6283 }
6284
6285 }
6286
6287 namespace test_noexcept
6288 {
6289
6290 int f() { return 0; }
6291 int g() noexcept { return 0; }
6292
6293 static_assert(noexcept(f()) == false, "");
6294 static_assert(noexcept(g()) == true, "");
6295
6296 }
6297
6298 namespace test_constexpr
6299 {
6300
6301 template < typename CharT >
6302 unsigned long constexpr
6303 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6304 {
6305 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6306 }
6307
6308 template < typename CharT >
6309 unsigned long constexpr
6310 strlen_c(const CharT *const s) noexcept
6311 {
6312 return strlen_c_r(s, 0UL);
6313 }
6314
6315 static_assert(strlen_c("") == 0UL, "");
6316 static_assert(strlen_c("1") == 1UL, "");
6317 static_assert(strlen_c("example") == 7UL, "");
6318 static_assert(strlen_c("another\0example") == 7UL, "");
6319
6320 }
6321
6322 namespace test_rvalue_references
6323 {
6324
6325 template < int N >
6326 struct answer
6327 {
6328 static constexpr int value = N;
6329 };
6330
6331 answer<1> f(int&) { return answer<1>(); }
6332 answer<2> f(const int&) { return answer<2>(); }
6333 answer<3> f(int&&) { return answer<3>(); }
6334
6335 void
6336 test()
6337 {
6338 int i = 0;
6339 const int c = 0;
6340 static_assert(decltype(f(i))::value == 1, "");
6341 static_assert(decltype(f(c))::value == 2, "");
6342 static_assert(decltype(f(0))::value == 3, "");
6343 }
6344
6345 }
6346
6347 namespace test_uniform_initialization
6348 {
6349
6350 struct test
6351 {
6352 static const int zero {};
6353 static const int one {1};
6354 };
6355
6356 static_assert(test::zero == 0, "");
6357 static_assert(test::one == 1, "");
6358
6359 }
6360
6361 namespace test_lambdas
6362 {
6363
6364 void
6365 test1()
6366 {
6367 auto lambda1 = [](){};
6368 auto lambda2 = lambda1;
6369 lambda1();
6370 lambda2();
6371 }
6372
6373 int
6374 test2()
6375 {
6376 auto a = [](int i, int j){ return i + j; }(1, 2);
6377 auto b = []() -> int { return '0'; }();
6378 auto c = [=](){ return a + b; }();
6379 auto d = [&](){ return c; }();
6380 auto e = [a, &b](int x) mutable {
6381 const auto identity = [](int y){ return y; };
6382 for (auto i = 0; i < a; ++i)
6383 a += b--;
6384 return x + identity(a + b);
6385 }(0);
6386 return a + b + c + d + e;
6387 }
6388
6389 int
6390 test3()
6391 {
6392 const auto nullary = [](){ return 0; };
6393 const auto unary = [](int x){ return x; };
6394 using nullary_t = decltype(nullary);
6395 using unary_t = decltype(unary);
6396 const auto higher1st = [](nullary_t f){ return f(); };
6397 const auto higher2nd = [unary](nullary_t f1){
6398 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6399 };
6400 return higher1st(nullary) + higher2nd(nullary)(unary);
6401 }
6402
6403 }
6404
6405 namespace test_variadic_templates
6406 {
6407
6408 template <int...>
6409 struct sum;
6410
6411 template <int N0, int... N1toN>
6412 struct sum<N0, N1toN...>
6413 {
6414 static constexpr auto value = N0 + sum<N1toN...>::value;
6415 };
6416
6417 template <>
6418 struct sum<>
6419 {
6420 static constexpr auto value = 0;
6421 };
6422
6423 static_assert(sum<>::value == 0, "");
6424 static_assert(sum<1>::value == 1, "");
6425 static_assert(sum<23>::value == 23, "");
6426 static_assert(sum<1, 2>::value == 3, "");
6427 static_assert(sum<5, 5, 11>::value == 21, "");
6428 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6429
6430 }
6431
6432 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6433 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6434 // because of this.
6435 namespace test_template_alias_sfinae
6436 {
6437
6438 struct foo {};
6439
6440 template<typename T>
6441 using member = typename T::member_type;
6442
6443 template<typename T>
6444 void func(...) {}
6445
6446 template<typename T>
6447 void func(member<T>*) {}
6448
6449 void test();
6450
6451 void test() { func<foo>(0); }
6452
6453 }
6454
6455 } // namespace cxx11
6456
6457 #endif // __cplusplus >= 201103L
6458
6459
6460
6461 _ACEOF
6462 if ac_fn_cxx_try_compile "$LINENO"; then :
6463 eval $cachevar=yes
6464 else
6465 eval $cachevar=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 CXX="$ac_save_CXX"
6469 fi
6470 eval ac_res=\$$cachevar
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if eval test x\$$cachevar = xyes; then
6474 CXX="$CXX $switch"
6475 if test -n "$CXXCPP" ; then
6476 CXXCPP="$CXXCPP $switch"
6477 fi
6478 ac_success=yes
6479 break
6480 fi
6481 done
6482 fi
6483
6484 if test x$ac_success = xno; then
6485 for alternative in ${ax_cxx_compile_alternatives}; do
6486 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6487 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6489 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6490 if eval \${$cachevar+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 ac_save_CXX="$CXX"
6494 CXX="$CXX $switch"
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497
6498
6499 // If the compiler admits that it is not ready for C++11, why torture it?
6500 // Hopefully, this will speed up the test.
6501
6502 #ifndef __cplusplus
6503
6504 #error "This is not a C++ compiler"
6505
6506 #elif __cplusplus < 201103L
6507
6508 #error "This is not a C++11 compiler"
6509
6510 #else
6511
6512 namespace cxx11
6513 {
6514
6515 namespace test_static_assert
6516 {
6517
6518 template <typename T>
6519 struct check
6520 {
6521 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6522 };
6523
6524 }
6525
6526 namespace test_final_override
6527 {
6528
6529 struct Base
6530 {
6531 virtual ~Base() {}
6532 virtual void f() {}
6533 };
6534
6535 struct Derived : public Base
6536 {
6537 virtual ~Derived() override {}
6538 virtual void f() override {}
6539 };
6540
6541 }
6542
6543 namespace test_double_right_angle_brackets
6544 {
6545
6546 template < typename T >
6547 struct check {};
6548
6549 typedef check<void> single_type;
6550 typedef check<check<void>> double_type;
6551 typedef check<check<check<void>>> triple_type;
6552 typedef check<check<check<check<void>>>> quadruple_type;
6553
6554 }
6555
6556 namespace test_decltype
6557 {
6558
6559 int
6560 f()
6561 {
6562 int a = 1;
6563 decltype(a) b = 2;
6564 return a + b;
6565 }
6566
6567 }
6568
6569 namespace test_type_deduction
6570 {
6571
6572 template < typename T1, typename T2 >
6573 struct is_same
6574 {
6575 static const bool value = false;
6576 };
6577
6578 template < typename T >
6579 struct is_same<T, T>
6580 {
6581 static const bool value = true;
6582 };
6583
6584 template < typename T1, typename T2 >
6585 auto
6586 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6587 {
6588 return a1 + a2;
6589 }
6590
6591 int
6592 test(const int c, volatile int v)
6593 {
6594 static_assert(is_same<int, decltype(0)>::value == true, "");
6595 static_assert(is_same<int, decltype(c)>::value == false, "");
6596 static_assert(is_same<int, decltype(v)>::value == false, "");
6597 auto ac = c;
6598 auto av = v;
6599 auto sumi = ac + av + 'x';
6600 auto sumf = ac + av + 1.0;
6601 static_assert(is_same<int, decltype(ac)>::value == true, "");
6602 static_assert(is_same<int, decltype(av)>::value == true, "");
6603 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6604 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6605 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6606 return (sumf > 0.0) ? sumi : add(c, v);
6607 }
6608
6609 }
6610
6611 namespace test_noexcept
6612 {
6613
6614 int f() { return 0; }
6615 int g() noexcept { return 0; }
6616
6617 static_assert(noexcept(f()) == false, "");
6618 static_assert(noexcept(g()) == true, "");
6619
6620 }
6621
6622 namespace test_constexpr
6623 {
6624
6625 template < typename CharT >
6626 unsigned long constexpr
6627 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6628 {
6629 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6630 }
6631
6632 template < typename CharT >
6633 unsigned long constexpr
6634 strlen_c(const CharT *const s) noexcept
6635 {
6636 return strlen_c_r(s, 0UL);
6637 }
6638
6639 static_assert(strlen_c("") == 0UL, "");
6640 static_assert(strlen_c("1") == 1UL, "");
6641 static_assert(strlen_c("example") == 7UL, "");
6642 static_assert(strlen_c("another\0example") == 7UL, "");
6643
6644 }
6645
6646 namespace test_rvalue_references
6647 {
6648
6649 template < int N >
6650 struct answer
6651 {
6652 static constexpr int value = N;
6653 };
6654
6655 answer<1> f(int&) { return answer<1>(); }
6656 answer<2> f(const int&) { return answer<2>(); }
6657 answer<3> f(int&&) { return answer<3>(); }
6658
6659 void
6660 test()
6661 {
6662 int i = 0;
6663 const int c = 0;
6664 static_assert(decltype(f(i))::value == 1, "");
6665 static_assert(decltype(f(c))::value == 2, "");
6666 static_assert(decltype(f(0))::value == 3, "");
6667 }
6668
6669 }
6670
6671 namespace test_uniform_initialization
6672 {
6673
6674 struct test
6675 {
6676 static const int zero {};
6677 static const int one {1};
6678 };
6679
6680 static_assert(test::zero == 0, "");
6681 static_assert(test::one == 1, "");
6682
6683 }
6684
6685 namespace test_lambdas
6686 {
6687
6688 void
6689 test1()
6690 {
6691 auto lambda1 = [](){};
6692 auto lambda2 = lambda1;
6693 lambda1();
6694 lambda2();
6695 }
6696
6697 int
6698 test2()
6699 {
6700 auto a = [](int i, int j){ return i + j; }(1, 2);
6701 auto b = []() -> int { return '0'; }();
6702 auto c = [=](){ return a + b; }();
6703 auto d = [&](){ return c; }();
6704 auto e = [a, &b](int x) mutable {
6705 const auto identity = [](int y){ return y; };
6706 for (auto i = 0; i < a; ++i)
6707 a += b--;
6708 return x + identity(a + b);
6709 }(0);
6710 return a + b + c + d + e;
6711 }
6712
6713 int
6714 test3()
6715 {
6716 const auto nullary = [](){ return 0; };
6717 const auto unary = [](int x){ return x; };
6718 using nullary_t = decltype(nullary);
6719 using unary_t = decltype(unary);
6720 const auto higher1st = [](nullary_t f){ return f(); };
6721 const auto higher2nd = [unary](nullary_t f1){
6722 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6723 };
6724 return higher1st(nullary) + higher2nd(nullary)(unary);
6725 }
6726
6727 }
6728
6729 namespace test_variadic_templates
6730 {
6731
6732 template <int...>
6733 struct sum;
6734
6735 template <int N0, int... N1toN>
6736 struct sum<N0, N1toN...>
6737 {
6738 static constexpr auto value = N0 + sum<N1toN...>::value;
6739 };
6740
6741 template <>
6742 struct sum<>
6743 {
6744 static constexpr auto value = 0;
6745 };
6746
6747 static_assert(sum<>::value == 0, "");
6748 static_assert(sum<1>::value == 1, "");
6749 static_assert(sum<23>::value == 23, "");
6750 static_assert(sum<1, 2>::value == 3, "");
6751 static_assert(sum<5, 5, 11>::value == 21, "");
6752 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6753
6754 }
6755
6756 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6757 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6758 // because of this.
6759 namespace test_template_alias_sfinae
6760 {
6761
6762 struct foo {};
6763
6764 template<typename T>
6765 using member = typename T::member_type;
6766
6767 template<typename T>
6768 void func(...) {}
6769
6770 template<typename T>
6771 void func(member<T>*) {}
6772
6773 void test();
6774
6775 void test() { func<foo>(0); }
6776
6777 }
6778
6779 } // namespace cxx11
6780
6781 #endif // __cplusplus >= 201103L
6782
6783
6784
6785 _ACEOF
6786 if ac_fn_cxx_try_compile "$LINENO"; then :
6787 eval $cachevar=yes
6788 else
6789 eval $cachevar=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 CXX="$ac_save_CXX"
6793 fi
6794 eval ac_res=\$$cachevar
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if eval test x\$$cachevar = xyes; then
6798 CXX="$CXX $switch"
6799 if test -n "$CXXCPP" ; then
6800 CXXCPP="$CXXCPP $switch"
6801 fi
6802 ac_success=yes
6803 break
6804 fi
6805 done
6806 if test x$ac_success = xyes; then
6807 break
6808 fi
6809 done
6810 fi
6811
6812 ac_ext=c
6813 ac_cpp='$CPP $CPPFLAGS'
6814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817
6818 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6819 if test x$ac_success = xno; then
6820 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6821 fi
6822 fi
6823 if test x$ac_success = xno; then
6824 HAVE_CXX11=0
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6826 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6827 else
6828 HAVE_CXX11=1
6829
6830 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6831
6832 fi
6833
6834
6835
6836 if test "${build}" != "${host}"; then
6837 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6838 ac_ext=cpp
6839 ac_cpp='$CXXCPP $CPPFLAGS'
6840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6843 ac_success=no
6844 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6845 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6846 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6847 CXX="$CXX_FOR_BUILD"
6848 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6849 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6851 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6852 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857
6858
6859 // If the compiler admits that it is not ready for C++11, why torture it?
6860 // Hopefully, this will speed up the test.
6861
6862 #ifndef __cplusplus
6863
6864 #error "This is not a C++ compiler"
6865
6866 #elif __cplusplus < 201103L
6867
6868 #error "This is not a C++11 compiler"
6869
6870 #else
6871
6872 namespace cxx11
6873 {
6874
6875 namespace test_static_assert
6876 {
6877
6878 template <typename T>
6879 struct check
6880 {
6881 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6882 };
6883
6884 }
6885
6886 namespace test_final_override
6887 {
6888
6889 struct Base
6890 {
6891 virtual ~Base() {}
6892 virtual void f() {}
6893 };
6894
6895 struct Derived : public Base
6896 {
6897 virtual ~Derived() override {}
6898 virtual void f() override {}
6899 };
6900
6901 }
6902
6903 namespace test_double_right_angle_brackets
6904 {
6905
6906 template < typename T >
6907 struct check {};
6908
6909 typedef check<void> single_type;
6910 typedef check<check<void>> double_type;
6911 typedef check<check<check<void>>> triple_type;
6912 typedef check<check<check<check<void>>>> quadruple_type;
6913
6914 }
6915
6916 namespace test_decltype
6917 {
6918
6919 int
6920 f()
6921 {
6922 int a = 1;
6923 decltype(a) b = 2;
6924 return a + b;
6925 }
6926
6927 }
6928
6929 namespace test_type_deduction
6930 {
6931
6932 template < typename T1, typename T2 >
6933 struct is_same
6934 {
6935 static const bool value = false;
6936 };
6937
6938 template < typename T >
6939 struct is_same<T, T>
6940 {
6941 static const bool value = true;
6942 };
6943
6944 template < typename T1, typename T2 >
6945 auto
6946 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6947 {
6948 return a1 + a2;
6949 }
6950
6951 int
6952 test(const int c, volatile int v)
6953 {
6954 static_assert(is_same<int, decltype(0)>::value == true, "");
6955 static_assert(is_same<int, decltype(c)>::value == false, "");
6956 static_assert(is_same<int, decltype(v)>::value == false, "");
6957 auto ac = c;
6958 auto av = v;
6959 auto sumi = ac + av + 'x';
6960 auto sumf = ac + av + 1.0;
6961 static_assert(is_same<int, decltype(ac)>::value == true, "");
6962 static_assert(is_same<int, decltype(av)>::value == true, "");
6963 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6964 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6965 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6966 return (sumf > 0.0) ? sumi : add(c, v);
6967 }
6968
6969 }
6970
6971 namespace test_noexcept
6972 {
6973
6974 int f() { return 0; }
6975 int g() noexcept { return 0; }
6976
6977 static_assert(noexcept(f()) == false, "");
6978 static_assert(noexcept(g()) == true, "");
6979
6980 }
6981
6982 namespace test_constexpr
6983 {
6984
6985 template < typename CharT >
6986 unsigned long constexpr
6987 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6988 {
6989 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6990 }
6991
6992 template < typename CharT >
6993 unsigned long constexpr
6994 strlen_c(const CharT *const s) noexcept
6995 {
6996 return strlen_c_r(s, 0UL);
6997 }
6998
6999 static_assert(strlen_c("") == 0UL, "");
7000 static_assert(strlen_c("1") == 1UL, "");
7001 static_assert(strlen_c("example") == 7UL, "");
7002 static_assert(strlen_c("another\0example") == 7UL, "");
7003
7004 }
7005
7006 namespace test_rvalue_references
7007 {
7008
7009 template < int N >
7010 struct answer
7011 {
7012 static constexpr int value = N;
7013 };
7014
7015 answer<1> f(int&) { return answer<1>(); }
7016 answer<2> f(const int&) { return answer<2>(); }
7017 answer<3> f(int&&) { return answer<3>(); }
7018
7019 void
7020 test()
7021 {
7022 int i = 0;
7023 const int c = 0;
7024 static_assert(decltype(f(i))::value == 1, "");
7025 static_assert(decltype(f(c))::value == 2, "");
7026 static_assert(decltype(f(0))::value == 3, "");
7027 }
7028
7029 }
7030
7031 namespace test_uniform_initialization
7032 {
7033
7034 struct test
7035 {
7036 static const int zero {};
7037 static const int one {1};
7038 };
7039
7040 static_assert(test::zero == 0, "");
7041 static_assert(test::one == 1, "");
7042
7043 }
7044
7045 namespace test_lambdas
7046 {
7047
7048 void
7049 test1()
7050 {
7051 auto lambda1 = [](){};
7052 auto lambda2 = lambda1;
7053 lambda1();
7054 lambda2();
7055 }
7056
7057 int
7058 test2()
7059 {
7060 auto a = [](int i, int j){ return i + j; }(1, 2);
7061 auto b = []() -> int { return '0'; }();
7062 auto c = [=](){ return a + b; }();
7063 auto d = [&](){ return c; }();
7064 auto e = [a, &b](int x) mutable {
7065 const auto identity = [](int y){ return y; };
7066 for (auto i = 0; i < a; ++i)
7067 a += b--;
7068 return x + identity(a + b);
7069 }(0);
7070 return a + b + c + d + e;
7071 }
7072
7073 int
7074 test3()
7075 {
7076 const auto nullary = [](){ return 0; };
7077 const auto unary = [](int x){ return x; };
7078 using nullary_t = decltype(nullary);
7079 using unary_t = decltype(unary);
7080 const auto higher1st = [](nullary_t f){ return f(); };
7081 const auto higher2nd = [unary](nullary_t f1){
7082 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7083 };
7084 return higher1st(nullary) + higher2nd(nullary)(unary);
7085 }
7086
7087 }
7088
7089 namespace test_variadic_templates
7090 {
7091
7092 template <int...>
7093 struct sum;
7094
7095 template <int N0, int... N1toN>
7096 struct sum<N0, N1toN...>
7097 {
7098 static constexpr auto value = N0 + sum<N1toN...>::value;
7099 };
7100
7101 template <>
7102 struct sum<>
7103 {
7104 static constexpr auto value = 0;
7105 };
7106
7107 static_assert(sum<>::value == 0, "");
7108 static_assert(sum<1>::value == 1, "");
7109 static_assert(sum<23>::value == 23, "");
7110 static_assert(sum<1, 2>::value == 3, "");
7111 static_assert(sum<5, 5, 11>::value == 21, "");
7112 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7113
7114 }
7115
7116 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7117 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7118 // because of this.
7119 namespace test_template_alias_sfinae
7120 {
7121
7122 struct foo {};
7123
7124 template<typename T>
7125 using member = typename T::member_type;
7126
7127 template<typename T>
7128 void func(...) {}
7129
7130 template<typename T>
7131 void func(member<T>*) {}
7132
7133 void test();
7134
7135 void test() { func<foo>(0); }
7136
7137 }
7138
7139 } // namespace cxx11
7140
7141 #endif // __cplusplus >= 201103L
7142
7143
7144
7145 _ACEOF
7146 if ac_fn_cxx_try_compile "$LINENO"; then :
7147 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7148 else
7149 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7154 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7155 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7156 ac_success=yes
7157 fi
7158
7159 if test x$ac_success = xno; then
7160 for alternative in ${ax_cxx_compile_alternatives}; do
7161 switch="-std=gnu++${alternative}"
7162 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7164 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7165 if eval \${$cachevar+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 ac_save_CXX="$CXX"
7169 CXX="$CXX $switch"
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172
7173
7174 // If the compiler admits that it is not ready for C++11, why torture it?
7175 // Hopefully, this will speed up the test.
7176
7177 #ifndef __cplusplus
7178
7179 #error "This is not a C++ compiler"
7180
7181 #elif __cplusplus < 201103L
7182
7183 #error "This is not a C++11 compiler"
7184
7185 #else
7186
7187 namespace cxx11
7188 {
7189
7190 namespace test_static_assert
7191 {
7192
7193 template <typename T>
7194 struct check
7195 {
7196 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7197 };
7198
7199 }
7200
7201 namespace test_final_override
7202 {
7203
7204 struct Base
7205 {
7206 virtual ~Base() {}
7207 virtual void f() {}
7208 };
7209
7210 struct Derived : public Base
7211 {
7212 virtual ~Derived() override {}
7213 virtual void f() override {}
7214 };
7215
7216 }
7217
7218 namespace test_double_right_angle_brackets
7219 {
7220
7221 template < typename T >
7222 struct check {};
7223
7224 typedef check<void> single_type;
7225 typedef check<check<void>> double_type;
7226 typedef check<check<check<void>>> triple_type;
7227 typedef check<check<check<check<void>>>> quadruple_type;
7228
7229 }
7230
7231 namespace test_decltype
7232 {
7233
7234 int
7235 f()
7236 {
7237 int a = 1;
7238 decltype(a) b = 2;
7239 return a + b;
7240 }
7241
7242 }
7243
7244 namespace test_type_deduction
7245 {
7246
7247 template < typename T1, typename T2 >
7248 struct is_same
7249 {
7250 static const bool value = false;
7251 };
7252
7253 template < typename T >
7254 struct is_same<T, T>
7255 {
7256 static const bool value = true;
7257 };
7258
7259 template < typename T1, typename T2 >
7260 auto
7261 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7262 {
7263 return a1 + a2;
7264 }
7265
7266 int
7267 test(const int c, volatile int v)
7268 {
7269 static_assert(is_same<int, decltype(0)>::value == true, "");
7270 static_assert(is_same<int, decltype(c)>::value == false, "");
7271 static_assert(is_same<int, decltype(v)>::value == false, "");
7272 auto ac = c;
7273 auto av = v;
7274 auto sumi = ac + av + 'x';
7275 auto sumf = ac + av + 1.0;
7276 static_assert(is_same<int, decltype(ac)>::value == true, "");
7277 static_assert(is_same<int, decltype(av)>::value == true, "");
7278 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7279 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7280 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7281 return (sumf > 0.0) ? sumi : add(c, v);
7282 }
7283
7284 }
7285
7286 namespace test_noexcept
7287 {
7288
7289 int f() { return 0; }
7290 int g() noexcept { return 0; }
7291
7292 static_assert(noexcept(f()) == false, "");
7293 static_assert(noexcept(g()) == true, "");
7294
7295 }
7296
7297 namespace test_constexpr
7298 {
7299
7300 template < typename CharT >
7301 unsigned long constexpr
7302 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7303 {
7304 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7305 }
7306
7307 template < typename CharT >
7308 unsigned long constexpr
7309 strlen_c(const CharT *const s) noexcept
7310 {
7311 return strlen_c_r(s, 0UL);
7312 }
7313
7314 static_assert(strlen_c("") == 0UL, "");
7315 static_assert(strlen_c("1") == 1UL, "");
7316 static_assert(strlen_c("example") == 7UL, "");
7317 static_assert(strlen_c("another\0example") == 7UL, "");
7318
7319 }
7320
7321 namespace test_rvalue_references
7322 {
7323
7324 template < int N >
7325 struct answer
7326 {
7327 static constexpr int value = N;
7328 };
7329
7330 answer<1> f(int&) { return answer<1>(); }
7331 answer<2> f(const int&) { return answer<2>(); }
7332 answer<3> f(int&&) { return answer<3>(); }
7333
7334 void
7335 test()
7336 {
7337 int i = 0;
7338 const int c = 0;
7339 static_assert(decltype(f(i))::value == 1, "");
7340 static_assert(decltype(f(c))::value == 2, "");
7341 static_assert(decltype(f(0))::value == 3, "");
7342 }
7343
7344 }
7345
7346 namespace test_uniform_initialization
7347 {
7348
7349 struct test
7350 {
7351 static const int zero {};
7352 static const int one {1};
7353 };
7354
7355 static_assert(test::zero == 0, "");
7356 static_assert(test::one == 1, "");
7357
7358 }
7359
7360 namespace test_lambdas
7361 {
7362
7363 void
7364 test1()
7365 {
7366 auto lambda1 = [](){};
7367 auto lambda2 = lambda1;
7368 lambda1();
7369 lambda2();
7370 }
7371
7372 int
7373 test2()
7374 {
7375 auto a = [](int i, int j){ return i + j; }(1, 2);
7376 auto b = []() -> int { return '0'; }();
7377 auto c = [=](){ return a + b; }();
7378 auto d = [&](){ return c; }();
7379 auto e = [a, &b](int x) mutable {
7380 const auto identity = [](int y){ return y; };
7381 for (auto i = 0; i < a; ++i)
7382 a += b--;
7383 return x + identity(a + b);
7384 }(0);
7385 return a + b + c + d + e;
7386 }
7387
7388 int
7389 test3()
7390 {
7391 const auto nullary = [](){ return 0; };
7392 const auto unary = [](int x){ return x; };
7393 using nullary_t = decltype(nullary);
7394 using unary_t = decltype(unary);
7395 const auto higher1st = [](nullary_t f){ return f(); };
7396 const auto higher2nd = [unary](nullary_t f1){
7397 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7398 };
7399 return higher1st(nullary) + higher2nd(nullary)(unary);
7400 }
7401
7402 }
7403
7404 namespace test_variadic_templates
7405 {
7406
7407 template <int...>
7408 struct sum;
7409
7410 template <int N0, int... N1toN>
7411 struct sum<N0, N1toN...>
7412 {
7413 static constexpr auto value = N0 + sum<N1toN...>::value;
7414 };
7415
7416 template <>
7417 struct sum<>
7418 {
7419 static constexpr auto value = 0;
7420 };
7421
7422 static_assert(sum<>::value == 0, "");
7423 static_assert(sum<1>::value == 1, "");
7424 static_assert(sum<23>::value == 23, "");
7425 static_assert(sum<1, 2>::value == 3, "");
7426 static_assert(sum<5, 5, 11>::value == 21, "");
7427 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7428
7429 }
7430
7431 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7432 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7433 // because of this.
7434 namespace test_template_alias_sfinae
7435 {
7436
7437 struct foo {};
7438
7439 template<typename T>
7440 using member = typename T::member_type;
7441
7442 template<typename T>
7443 void func(...) {}
7444
7445 template<typename T>
7446 void func(member<T>*) {}
7447
7448 void test();
7449
7450 void test() { func<foo>(0); }
7451
7452 }
7453
7454 } // namespace cxx11
7455
7456 #endif // __cplusplus >= 201103L
7457
7458
7459
7460 _ACEOF
7461 if ac_fn_cxx_try_compile "$LINENO"; then :
7462 eval $cachevar=yes
7463 else
7464 eval $cachevar=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CXX="$ac_save_CXX"
7468 fi
7469 eval ac_res=\$$cachevar
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7471 $as_echo "$ac_res" >&6; }
7472 if eval test x\$$cachevar = xyes; then
7473 CXX="$CXX $switch"
7474 if test -n "$CXXCPP" ; then
7475 CXXCPP="$CXXCPP $switch"
7476 fi
7477 ac_success=yes
7478 break
7479 fi
7480 done
7481 fi
7482
7483 if test x$ac_success = xno; then
7484 for alternative in ${ax_cxx_compile_alternatives}; do
7485 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7486 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7488 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7489 if eval \${$cachevar+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 ac_save_CXX="$CXX"
7493 CXX="$CXX $switch"
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496
7497
7498 // If the compiler admits that it is not ready for C++11, why torture it?
7499 // Hopefully, this will speed up the test.
7500
7501 #ifndef __cplusplus
7502
7503 #error "This is not a C++ compiler"
7504
7505 #elif __cplusplus < 201103L
7506
7507 #error "This is not a C++11 compiler"
7508
7509 #else
7510
7511 namespace cxx11
7512 {
7513
7514 namespace test_static_assert
7515 {
7516
7517 template <typename T>
7518 struct check
7519 {
7520 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7521 };
7522
7523 }
7524
7525 namespace test_final_override
7526 {
7527
7528 struct Base
7529 {
7530 virtual ~Base() {}
7531 virtual void f() {}
7532 };
7533
7534 struct Derived : public Base
7535 {
7536 virtual ~Derived() override {}
7537 virtual void f() override {}
7538 };
7539
7540 }
7541
7542 namespace test_double_right_angle_brackets
7543 {
7544
7545 template < typename T >
7546 struct check {};
7547
7548 typedef check<void> single_type;
7549 typedef check<check<void>> double_type;
7550 typedef check<check<check<void>>> triple_type;
7551 typedef check<check<check<check<void>>>> quadruple_type;
7552
7553 }
7554
7555 namespace test_decltype
7556 {
7557
7558 int
7559 f()
7560 {
7561 int a = 1;
7562 decltype(a) b = 2;
7563 return a + b;
7564 }
7565
7566 }
7567
7568 namespace test_type_deduction
7569 {
7570
7571 template < typename T1, typename T2 >
7572 struct is_same
7573 {
7574 static const bool value = false;
7575 };
7576
7577 template < typename T >
7578 struct is_same<T, T>
7579 {
7580 static const bool value = true;
7581 };
7582
7583 template < typename T1, typename T2 >
7584 auto
7585 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7586 {
7587 return a1 + a2;
7588 }
7589
7590 int
7591 test(const int c, volatile int v)
7592 {
7593 static_assert(is_same<int, decltype(0)>::value == true, "");
7594 static_assert(is_same<int, decltype(c)>::value == false, "");
7595 static_assert(is_same<int, decltype(v)>::value == false, "");
7596 auto ac = c;
7597 auto av = v;
7598 auto sumi = ac + av + 'x';
7599 auto sumf = ac + av + 1.0;
7600 static_assert(is_same<int, decltype(ac)>::value == true, "");
7601 static_assert(is_same<int, decltype(av)>::value == true, "");
7602 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7603 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7604 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7605 return (sumf > 0.0) ? sumi : add(c, v);
7606 }
7607
7608 }
7609
7610 namespace test_noexcept
7611 {
7612
7613 int f() { return 0; }
7614 int g() noexcept { return 0; }
7615
7616 static_assert(noexcept(f()) == false, "");
7617 static_assert(noexcept(g()) == true, "");
7618
7619 }
7620
7621 namespace test_constexpr
7622 {
7623
7624 template < typename CharT >
7625 unsigned long constexpr
7626 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7627 {
7628 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7629 }
7630
7631 template < typename CharT >
7632 unsigned long constexpr
7633 strlen_c(const CharT *const s) noexcept
7634 {
7635 return strlen_c_r(s, 0UL);
7636 }
7637
7638 static_assert(strlen_c("") == 0UL, "");
7639 static_assert(strlen_c("1") == 1UL, "");
7640 static_assert(strlen_c("example") == 7UL, "");
7641 static_assert(strlen_c("another\0example") == 7UL, "");
7642
7643 }
7644
7645 namespace test_rvalue_references
7646 {
7647
7648 template < int N >
7649 struct answer
7650 {
7651 static constexpr int value = N;
7652 };
7653
7654 answer<1> f(int&) { return answer<1>(); }
7655 answer<2> f(const int&) { return answer<2>(); }
7656 answer<3> f(int&&) { return answer<3>(); }
7657
7658 void
7659 test()
7660 {
7661 int i = 0;
7662 const int c = 0;
7663 static_assert(decltype(f(i))::value == 1, "");
7664 static_assert(decltype(f(c))::value == 2, "");
7665 static_assert(decltype(f(0))::value == 3, "");
7666 }
7667
7668 }
7669
7670 namespace test_uniform_initialization
7671 {
7672
7673 struct test
7674 {
7675 static const int zero {};
7676 static const int one {1};
7677 };
7678
7679 static_assert(test::zero == 0, "");
7680 static_assert(test::one == 1, "");
7681
7682 }
7683
7684 namespace test_lambdas
7685 {
7686
7687 void
7688 test1()
7689 {
7690 auto lambda1 = [](){};
7691 auto lambda2 = lambda1;
7692 lambda1();
7693 lambda2();
7694 }
7695
7696 int
7697 test2()
7698 {
7699 auto a = [](int i, int j){ return i + j; }(1, 2);
7700 auto b = []() -> int { return '0'; }();
7701 auto c = [=](){ return a + b; }();
7702 auto d = [&](){ return c; }();
7703 auto e = [a, &b](int x) mutable {
7704 const auto identity = [](int y){ return y; };
7705 for (auto i = 0; i < a; ++i)
7706 a += b--;
7707 return x + identity(a + b);
7708 }(0);
7709 return a + b + c + d + e;
7710 }
7711
7712 int
7713 test3()
7714 {
7715 const auto nullary = [](){ return 0; };
7716 const auto unary = [](int x){ return x; };
7717 using nullary_t = decltype(nullary);
7718 using unary_t = decltype(unary);
7719 const auto higher1st = [](nullary_t f){ return f(); };
7720 const auto higher2nd = [unary](nullary_t f1){
7721 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7722 };
7723 return higher1st(nullary) + higher2nd(nullary)(unary);
7724 }
7725
7726 }
7727
7728 namespace test_variadic_templates
7729 {
7730
7731 template <int...>
7732 struct sum;
7733
7734 template <int N0, int... N1toN>
7735 struct sum<N0, N1toN...>
7736 {
7737 static constexpr auto value = N0 + sum<N1toN...>::value;
7738 };
7739
7740 template <>
7741 struct sum<>
7742 {
7743 static constexpr auto value = 0;
7744 };
7745
7746 static_assert(sum<>::value == 0, "");
7747 static_assert(sum<1>::value == 1, "");
7748 static_assert(sum<23>::value == 23, "");
7749 static_assert(sum<1, 2>::value == 3, "");
7750 static_assert(sum<5, 5, 11>::value == 21, "");
7751 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7752
7753 }
7754
7755 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7756 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7757 // because of this.
7758 namespace test_template_alias_sfinae
7759 {
7760
7761 struct foo {};
7762
7763 template<typename T>
7764 using member = typename T::member_type;
7765
7766 template<typename T>
7767 void func(...) {}
7768
7769 template<typename T>
7770 void func(member<T>*) {}
7771
7772 void test();
7773
7774 void test() { func<foo>(0); }
7775
7776 }
7777
7778 } // namespace cxx11
7779
7780 #endif // __cplusplus >= 201103L
7781
7782
7783
7784 _ACEOF
7785 if ac_fn_cxx_try_compile "$LINENO"; then :
7786 eval $cachevar=yes
7787 else
7788 eval $cachevar=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 CXX="$ac_save_CXX"
7792 fi
7793 eval ac_res=\$$cachevar
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7795 $as_echo "$ac_res" >&6; }
7796 if eval test x\$$cachevar = xyes; then
7797 CXX="$CXX $switch"
7798 if test -n "$CXXCPP" ; then
7799 CXXCPP="$CXXCPP $switch"
7800 fi
7801 ac_success=yes
7802 break
7803 fi
7804 done
7805 if test x$ac_success = xyes; then
7806 break
7807 fi
7808 done
7809 fi
7810 CXX_FOR_BUILD="$CXX"
7811 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7812 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7813 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7814 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7815 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7816 ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7823 if test x$ac_success = xno; then
7824 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7825 fi
7826 fi
7827 if test x$ac_success = xno; then
7828 HAVE_CXX11_FOR_BUILD=0
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7830 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7831 else
7832 HAVE_CXX11_FOR_BUILD=1
7833
7834 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7835
7836 fi
7837
7838
7839 fi
7840 fi
7841
7842 # Check whether --enable-pgo-build was given.
7843 if test "${enable_pgo_build+set}" = set; then :
7844 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7845 else
7846 enable_pgo_build=no
7847 fi
7848
7849
7850 # Issue errors and warnings for invalid/strange PGO build combinations.
7851 case "$have_compiler:$host:$target:$enable_pgo_build" in
7852 *:*:*:no) ;;
7853
7854 # Allow the PGO build only if we aren't building a compiler and
7855 # we are in a native configuration.
7856 no:$build:$build:yes | no:$build:$build:lto) ;;
7857
7858 # Disallow the PGO bootstrap if we are building a compiler.
7859 yes:*:*:yes | yes:*:*:lto)
7860 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7861
7862 *)
7863 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7864 ;;
7865 esac
7866
7867 if test "$enable_pgo_build" != "no"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7869 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7870 old_CFLAGS="$CFLAGS"
7871 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7872 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7873
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 int foo;
7877 _ACEOF
7878 if ac_fn_c_try_compile "$LINENO"; then :
7879
7880 else
7881 PGO_BUILD_GEN_CFLAGS=
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 CFLAGS="$old_CFLAGS"
7885 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7887 $as_echo "yes" >&6; }
7888 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7893 fi
7894
7895 if test "$enable_pgo_build" = "lto"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7897 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7898 old_CFLAGS="$CFLAGS"
7899 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7900 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 int foo;
7904 _ACEOF
7905 if ac_fn_c_try_compile "$LINENO"; then :
7906
7907 else
7908 PGO_BUILD_LTO_CFLAGS=
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 CFLAGS="$old_CFLAGS"
7912 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7919 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7920 fi
7921 fi
7922 fi
7923
7924
7925
7926
7927 # Used for setting $lt_cv_objdir
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7929 $as_echo_n "checking for objdir... " >&6; }
7930 if ${lt_cv_objdir+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 rm -f .libs 2>/dev/null
7934 mkdir .libs 2>/dev/null
7935 if test -d .libs; then
7936 lt_cv_objdir=.libs
7937 else
7938 # MS-DOS does not allow filenames that begin with a dot.
7939 lt_cv_objdir=_libs
7940 fi
7941 rmdir .libs 2>/dev/null
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7944 $as_echo "$lt_cv_objdir" >&6; }
7945 objdir=$lt_cv_objdir
7946
7947
7948
7949
7950
7951 cat >>confdefs.h <<_ACEOF
7952 #define LT_OBJDIR "$lt_cv_objdir/"
7953 _ACEOF
7954
7955
7956
7957 # Check for GMP, MPFR and MPC
7958 gmplibs="-lmpc -lmpfr -lgmp"
7959 gmpinc=
7960 have_gmp=no
7961
7962 # Specify a location for mpc
7963 # check for this first so it ends up on the link line before mpfr.
7964
7965 # Check whether --with-mpc was given.
7966 if test "${with_mpc+set}" = set; then :
7967 withval=$with_mpc;
7968 fi
7969
7970
7971 # Check whether --with-mpc-include was given.
7972 if test "${with_mpc_include+set}" = set; then :
7973 withval=$with_mpc_include;
7974 fi
7975
7976
7977 # Check whether --with-mpc-lib was given.
7978 if test "${with_mpc_lib+set}" = set; then :
7979 withval=$with_mpc_lib;
7980 fi
7981
7982
7983 if test "x$with_mpc" != x; then
7984 gmplibs="-L$with_mpc/lib $gmplibs"
7985 gmpinc="-I$with_mpc/include $gmpinc"
7986 fi
7987 if test "x$with_mpc_include" != x; then
7988 gmpinc="-I$with_mpc_include $gmpinc"
7989 fi
7990 if test "x$with_mpc_lib" != x; then
7991 gmplibs="-L$with_mpc_lib $gmplibs"
7992 fi
7993 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7994 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7995 gmpinc='-I$$s/mpc/src '"$gmpinc"
7996 # Do not test the mpc version. Assume that it is sufficient, since
7997 # it is in the source tree, and the library has not been built yet
7998 # but it would be included on the link line in the version check below
7999 # hence making the test fail.
8000 have_gmp=yes
8001 fi
8002
8003 # Specify a location for mpfr
8004 # check for this first so it ends up on the link line before gmp.
8005
8006 # Check whether --with-mpfr was given.
8007 if test "${with_mpfr+set}" = set; then :
8008 withval=$with_mpfr;
8009 fi
8010
8011
8012 # Check whether --with-mpfr-include was given.
8013 if test "${with_mpfr_include+set}" = set; then :
8014 withval=$with_mpfr_include;
8015 fi
8016
8017
8018 # Check whether --with-mpfr-lib was given.
8019 if test "${with_mpfr_lib+set}" = set; then :
8020 withval=$with_mpfr_lib;
8021 fi
8022
8023
8024 if test "x$with_mpfr" != x; then
8025 gmplibs="-L$with_mpfr/lib $gmplibs"
8026 gmpinc="-I$with_mpfr/include $gmpinc"
8027 fi
8028 if test "x$with_mpfr_include" != x; then
8029 gmpinc="-I$with_mpfr_include $gmpinc"
8030 fi
8031 if test "x$with_mpfr_lib" != x; then
8032 gmplibs="-L$with_mpfr_lib $gmplibs"
8033 fi
8034 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8035 # MPFR v3.1.0 moved the sources into a src sub-directory.
8036 if ! test -d ${srcdir}/mpfr/src; then
8037 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8038 fi
8039 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8040 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8041 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8042 # Do not test the mpfr version. Assume that it is sufficient, since
8043 # it is in the source tree, and the library has not been built yet
8044 # but it would be included on the link line in the version check below
8045 # hence making the test fail.
8046 have_gmp=yes
8047 fi
8048
8049 # Specify a location for gmp
8050
8051 # Check whether --with-gmp was given.
8052 if test "${with_gmp+set}" = set; then :
8053 withval=$with_gmp;
8054 fi
8055
8056
8057 # Check whether --with-gmp-include was given.
8058 if test "${with_gmp_include+set}" = set; then :
8059 withval=$with_gmp_include;
8060 fi
8061
8062
8063 # Check whether --with-gmp-lib was given.
8064 if test "${with_gmp_lib+set}" = set; then :
8065 withval=$with_gmp_lib;
8066 fi
8067
8068
8069
8070 if test "x$with_gmp" != x; then
8071 gmplibs="-L$with_gmp/lib $gmplibs"
8072 gmpinc="-I$with_gmp/include $gmpinc"
8073 fi
8074 if test "x$with_gmp_include" != x; then
8075 gmpinc="-I$with_gmp_include $gmpinc"
8076 fi
8077 if test "x$with_gmp_lib" != x; then
8078 gmplibs="-L$with_gmp_lib $gmplibs"
8079 fi
8080 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8081 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8082 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8083 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8084 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8085 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8086 # Do not test the gmp version. Assume that it is sufficient, since
8087 # it is in the source tree, and the library has not been built yet
8088 # but it would be included on the link line in the version check below
8089 # hence making the test fail.
8090 have_gmp=yes
8091 fi
8092
8093 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8094 have_gmp=yes
8095 saved_CFLAGS="$CFLAGS"
8096 CFLAGS="$CFLAGS $gmpinc"
8097 # Check for the recommended and required versions of GMP.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8099 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #include "gmp.h"
8103 int
8104 main ()
8105 {
8106
8107 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8108 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8109 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8110 choke me
8111 #endif
8112
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <gmp.h>
8121 int
8122 main ()
8123 {
8124
8125 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8126 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8127 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8128 choke me
8129 #endif
8130
8131 ;
8132 return 0;
8133 }
8134 _ACEOF
8135 if ac_fn_c_try_compile "$LINENO"; then :
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 $as_echo "yes" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8140 $as_echo "buggy but acceptable" >&6; }
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }; have_gmp=no
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148
8149 # If we have GMP, check the MPFR version.
8150 if test x"$have_gmp" = xyes; then
8151 # Check for the recommended and required versions of MPFR.
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8153 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <gmp.h>
8157 #include <mpfr.h>
8158 int
8159 main ()
8160 {
8161
8162 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8163 choke me
8164 #endif
8165
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 #include <gmp.h>
8174 #include <mpfr.h>
8175 int
8176 main ()
8177 {
8178
8179 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8180 choke me
8181 #endif
8182
8183 ;
8184 return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8189 $as_echo "yes" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8192 $as_echo "buggy but acceptable" >&6; }
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }; have_gmp=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 fi
8201
8202 # Check for the MPC header version.
8203 if test x"$have_gmp" = xyes ; then
8204 # Check for the recommended and required versions of MPC.
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8206 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <mpc.h>
8210 int
8211 main ()
8212 {
8213
8214 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8215 choke me
8216 #endif
8217
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_compile "$LINENO"; then :
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #include <mpc.h>
8226 int
8227 main ()
8228 {
8229
8230 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8231 choke me
8232 #endif
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8240 $as_echo "yes" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8243 $as_echo "buggy but acceptable" >&6; }
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }; have_gmp=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252
8253 # Now check the MPFR library.
8254 if test x"$have_gmp" = xyes; then
8255 saved_LIBS="$LIBS"
8256 LIBS="$LIBS $gmplibs"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8258 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 #include <mpc.h>
8262 int
8263 main ()
8264 {
8265
8266 mpfr_t n;
8267 mpfr_t x;
8268 mpc_t c;
8269 int t;
8270 mpfr_init (n);
8271 mpfr_init (x);
8272 mpfr_atan2 (n, n, x, MPFR_RNDN);
8273 mpfr_erfc (n, x, MPFR_RNDN);
8274 mpfr_subnormalize (x, t, MPFR_RNDN);
8275 mpfr_clear(n);
8276 mpfr_clear(x);
8277 mpc_init2 (c, 53);
8278 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8279 mpc_cosh (c, c, MPC_RNDNN);
8280 mpc_pow (c, c, c, MPC_RNDNN);
8281 mpc_acosh (c, c, MPC_RNDNN);
8282 mpc_clear (c);
8283
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290 $as_echo "yes" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }; have_gmp=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 LIBS="$saved_LIBS"
8298 fi
8299
8300 CFLAGS="$saved_CFLAGS"
8301
8302 # The library versions listed in the error message below should match
8303 # the HARD-minimums enforced above.
8304 if test x$have_gmp != xyes; then
8305 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8306 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8307 their locations. Source code for these libraries can be found at
8308 their respective hosting sites as well as at
8309 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8310 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8311 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8312 make sure that you have installed both the libraries and the header
8313 files. They may be located in separate packages." "$LINENO" 5
8314 fi
8315 fi
8316
8317 # Flags needed for both GMP, MPFR and/or MPC.
8318
8319
8320
8321
8322
8323
8324
8325 # Libraries to use for stage1 or when not bootstrapping.
8326
8327 # Check whether --with-stage1-libs was given.
8328 if test "${with_stage1_libs+set}" = set; then :
8329 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8330 stage1_libs=
8331 else
8332 stage1_libs=$withval
8333 fi
8334 else
8335 stage1_libs=
8336 fi
8337
8338
8339
8340 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8341 # default is yes if gcc is being built; no otherwise. The reason for
8342 # this default is that gdb is sometimes linked against GNU Source
8343 # Highlight, which is a shared library that uses C++ exceptions. In
8344 # this case, -static-libstdc++ will cause crashes.
8345
8346 # Check whether --with-static-standard-libraries was given.
8347 if test "${with_static_standard_libraries+set}" = set; then :
8348 withval=$with_static_standard_libraries;
8349 else
8350 with_static_standard_libraries=auto
8351 fi
8352
8353 if test "$with_static_standard_libraries" = auto; then
8354 with_static_standard_libraries=$have_compiler
8355 fi
8356
8357 # Linker flags to use for stage1 or when not bootstrapping.
8358
8359 # Check whether --with-stage1-ldflags was given.
8360 if test "${with_stage1_ldflags+set}" = set; then :
8361 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8362 stage1_ldflags=
8363 else
8364 stage1_ldflags=$withval
8365 fi
8366 else
8367 stage1_ldflags=
8368 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8369 # if supported. But if the user explicitly specified the libraries to use,
8370 # trust that they are doing what they want.
8371 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8372 -a "$have_static_libs" = yes; then
8373 stage1_ldflags="-static-libstdc++ -static-libgcc"
8374 fi
8375 fi
8376
8377
8378
8379 # Libraries to use for stage2 and later builds.
8380
8381 # Check whether --with-boot-libs was given.
8382 if test "${with_boot_libs+set}" = set; then :
8383 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8384 poststage1_libs=
8385 else
8386 poststage1_libs=$withval
8387 fi
8388 else
8389 poststage1_libs=
8390 fi
8391
8392
8393
8394 # Linker flags to use for stage2 and later builds.
8395
8396 # Check whether --with-boot-ldflags was given.
8397 if test "${with_boot_ldflags+set}" = set; then :
8398 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8399 poststage1_ldflags=
8400 else
8401 poststage1_ldflags=$withval
8402 fi
8403 else
8404 poststage1_ldflags=
8405 # In stages 2 and 3, default to linking libstdc++ and libgcc
8406 # statically. But if the user explicitly specified the libraries to
8407 # use, trust that they are doing what they want.
8408 if test "$poststage1_libs" = ""; then
8409 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8410 fi
8411 fi
8412
8413
8414
8415 # GCC GRAPHITE dependency isl.
8416 # Basic setup is inlined here, actual checks are in config/isl.m4
8417
8418
8419 # Check whether --with-isl was given.
8420 if test "${with_isl+set}" = set; then :
8421 withval=$with_isl;
8422 fi
8423
8424
8425 # Treat --without-isl as a request to disable
8426 # GRAPHITE support and skip all following checks.
8427 if test "x$with_isl" != "xno"; then
8428 # Check for isl
8429
8430
8431 # Check whether --with-isl-include was given.
8432 if test "${with_isl_include+set}" = set; then :
8433 withval=$with_isl_include;
8434 fi
8435
8436
8437 # Check whether --with-isl-lib was given.
8438 if test "${with_isl_lib+set}" = set; then :
8439 withval=$with_isl_lib;
8440 fi
8441
8442
8443 # Check whether --enable-isl-version-check was given.
8444 if test "${enable_isl_version_check+set}" = set; then :
8445 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8446 else
8447 ENABLE_ISL_CHECK=yes
8448 fi
8449
8450
8451 # Initialize isllibs and islinc.
8452 case $with_isl in
8453 no)
8454 isllibs=
8455 islinc=
8456 ;;
8457 "" | yes)
8458 ;;
8459 *)
8460 isllibs="-L$with_isl/lib"
8461 islinc="-I$with_isl/include"
8462 ;;
8463 esac
8464 if test "x${with_isl_include}" != x ; then
8465 islinc="-I$with_isl_include"
8466 fi
8467 if test "x${with_isl_lib}" != x; then
8468 isllibs="-L$with_isl_lib"
8469 fi
8470 if test "x${islinc}" = x && test "x${isllibs}" = x \
8471 && test -d ${srcdir}/isl; then
8472 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8473 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8474 ENABLE_ISL_CHECK=no
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8476 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8477 fi
8478
8479 isllibs="${isllibs} -lisl"
8480
8481
8482
8483 if test "${ENABLE_ISL_CHECK}" = yes ; then
8484 _isl_saved_CFLAGS=$CFLAGS
8485 _isl_saved_LDFLAGS=$LDFLAGS
8486 _isl_saved_LIBS=$LIBS
8487
8488 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8489 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8490 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8493 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <isl/schedule.h>
8497 int
8498 main ()
8499 {
8500 isl_options_set_schedule_serialize_sccs (NULL, 0);
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 gcc_cv_isl=yes
8507 else
8508 gcc_cv_isl=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8513 $as_echo "$gcc_cv_isl" >&6; }
8514
8515 if test "${gcc_cv_isl}" = no ; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8517 $as_echo "required isl version is 0.15 or later" >&6; }
8518 fi
8519
8520 CFLAGS=$_isl_saved_CFLAGS
8521 LDFLAGS=$_isl_saved_LDFLAGS
8522 LIBS=$_isl_saved_LIBS
8523 fi
8524
8525
8526
8527
8528
8529
8530 if test "x${with_isl}" = xno; then
8531 graphite_requested=no
8532 elif test "x${with_isl}" != x \
8533 || test "x${with_isl_include}" != x \
8534 || test "x${with_isl_lib}" != x ; then
8535 graphite_requested=yes
8536 else
8537 graphite_requested=no
8538 fi
8539
8540
8541
8542 if test "${gcc_cv_isl}" = no ; then
8543 isllibs=
8544 islinc=
8545 fi
8546
8547 if test "${graphite_requested}" = yes \
8548 && test "x${isllibs}" = x \
8549 && test "x${islinc}" = x ; then
8550
8551 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8552 fi
8553
8554
8555 fi
8556
8557 # If the isl check failed, disable builds of in-tree variant of isl
8558 if test "x$with_isl" = xno ||
8559 test "x$gcc_cv_isl" = xno; then
8560 noconfigdirs="$noconfigdirs isl"
8561 islinc=
8562 fi
8563
8564
8565
8566
8567 # Check for LTO support.
8568 # Check whether --enable-lto was given.
8569 if test "${enable_lto+set}" = set; then :
8570 enableval=$enable_lto; enable_lto=$enableval
8571 else
8572 enable_lto=yes; default_enable_lto=yes
8573 fi
8574
8575
8576
8577
8578
8579 target_elf=no
8580 case $target in
8581 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8582 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8583 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8584 nvptx-*-none)
8585 target_elf=no
8586 ;;
8587 *)
8588 target_elf=yes
8589 ;;
8590 esac
8591
8592 if test $target_elf = yes; then :
8593 # ELF platforms build the lto-plugin always.
8594 build_lto_plugin=yes
8595
8596 else
8597 if test x"$default_enable_lto" = x"yes" ; then
8598 case $target in
8599 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8600 # On other non-ELF platforms, LTO has yet to be validated.
8601 *) enable_lto=no ;;
8602 esac
8603 else
8604 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8605 # It would also be nice to check the binutils support, but we don't
8606 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8607 # warn during gcc/ subconfigure; unless you're bootstrapping with
8608 # -flto it won't be needed until after installation anyway.
8609 case $target in
8610 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8611 *) if test x"$enable_lto" = x"yes"; then
8612 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8613 fi
8614 ;;
8615 esac
8616 fi
8617 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8618 # Build it unless LTO was explicitly disabled.
8619 case $target in
8620 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8621 *) ;;
8622 esac
8623
8624 fi
8625
8626
8627 # Check whether --enable-linker-plugin-configure-flags was given.
8628 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8629 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8630 else
8631 extra_linker_plugin_configure_flags=
8632 fi
8633
8634
8635 # Check whether --enable-linker-plugin-flags was given.
8636 if test "${enable_linker_plugin_flags+set}" = set; then :
8637 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8638 else
8639 extra_linker_plugin_flags=
8640 fi
8641
8642
8643
8644 # Enable --enable-host-shared.
8645 # Checked early to determine whether jit is an 'all' language
8646 # Check whether --enable-host-shared was given.
8647 if test "${enable_host_shared+set}" = set; then :
8648 enableval=$enable_host_shared; host_shared=$enableval
8649 case $target in
8650 x86_64-*-darwin* | aarch64-*-darwin*)
8651 if test x$host_shared != xyes ; then
8652 # PIC is the default, and actually cannot be switched off.
8653 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8654 host_shared=yes
8655 fi ;;
8656 *) ;;
8657 esac
8658 else
8659 case $target in
8660 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8661 *) host_shared=no ;;
8662 esac
8663 fi
8664
8665
8666
8667 # By default, C and C++ are the only stage 1 languages.
8668 stage1_languages=,c,
8669
8670 # Target libraries that we bootstrap.
8671 bootstrap_target_libs=,target-libgcc,
8672
8673 # Figure out what language subdirectories are present.
8674 # Look if the user specified --enable-languages="..."; if not, use
8675 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8676 # go away some day.
8677 # NB: embedded tabs in this IF block -- do not untabify
8678 if test -d ${srcdir}/gcc; then
8679 if test x"${enable_languages+set}" != xset; then
8680 if test x"${LANGUAGES+set}" = xset; then
8681 enable_languages="${LANGUAGES}"
8682 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8683 else
8684 enable_languages=default
8685 fi
8686 else
8687 if test x"${enable_languages}" = x ||
8688 test x"${enable_languages}" = xyes;
8689 then
8690 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8691 exit 1
8692 fi
8693 fi
8694 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8695
8696 # 'f95' is the old name for the 'fortran' language. We issue a warning
8697 # and make the substitution.
8698 case ,${enable_languages}, in
8699 *,f95,*)
8700 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8701 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8702 ;;
8703 esac
8704
8705 # If bootstrapping, C++ must be enabled.
8706 case ",$enable_languages,:$enable_bootstrap" in
8707 *,c++,*:*) ;;
8708 *:yes)
8709 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8710 enable_languages="${enable_languages},c++"
8711 else
8712 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8713 fi
8714 ;;
8715 esac
8716
8717 # First scan to see if an enabled language requires some other language.
8718 # We assume that a given config-lang.in will list all the language
8719 # front ends it requires, even if some are required indirectly.
8720 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8721 case ${lang_frag} in
8722 ..) ;;
8723 # The odd quoting in the next line works around
8724 # an apparent bug in bash 1.12 on linux.
8725 ${srcdir}/gcc/[*]/config-lang.in) ;;
8726 *)
8727 # From the config-lang.in, get $language, $lang_requires, and
8728 # $lang_requires_boot_languages.
8729 language=
8730 lang_requires=
8731 lang_requires_boot_languages=
8732 # set srcdir during sourcing lang_frag to the gcc dir.
8733 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8734 # polutes this shell
8735 saved_srcdir=${srcdir}
8736 srcdir=${srcdir}/gcc . ${lang_frag}
8737 srcdir=${saved_srcdir}
8738 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8739 case ,${enable_languages}, in
8740 *,$other,*) ;;
8741 *,default,*) ;;
8742 *,all,*) ;;
8743 *,$language,*)
8744 echo " \`$other' language required by \`$language'; enabling" 1>&2
8745 enable_languages="${enable_languages},${other}"
8746 ;;
8747 esac
8748 done
8749 for other in ${lang_requires_boot_languages} ; do
8750 if test "$other" != "c"; then
8751 case ,${enable_stage1_languages}, in
8752 *,$other,*) ;;
8753 *,default,*) ;;
8754 *,all,*) ;;
8755 *)
8756 case ,${enable_languages}, in
8757 *,$language,*)
8758 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8759 enable_stage1_languages="$enable_stage1_languages,${other}"
8760 ;;
8761 esac
8762 ;;
8763 esac
8764 fi
8765 done
8766 ;;
8767 esac
8768 done
8769
8770 new_enable_languages=,c,
8771
8772 # If LTO is enabled, add the LTO front end.
8773 if test "$enable_lto" = "yes" ; then
8774 case ,${enable_languages}, in
8775 *,lto,*) ;;
8776 *) enable_languages="${enable_languages},lto" ;;
8777 esac
8778 if test "${build_lto_plugin}" = "yes" ; then
8779 configdirs="$configdirs lto-plugin"
8780 fi
8781 fi
8782
8783 # If we're building an offloading compiler, add the LTO front end.
8784 if test x"$enable_as_accelerator_for" != x ; then
8785 case ,${enable_languages}, in
8786 *,lto,*) ;;
8787 *) enable_languages="${enable_languages},lto" ;;
8788 esac
8789 fi
8790
8791 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8792 potential_languages=,c,
8793
8794 enabled_target_libs=
8795 disabled_target_libs=
8796
8797 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8798 case ${lang_frag} in
8799 ..) ;;
8800 # The odd quoting in the next line works around
8801 # an apparent bug in bash 1.12 on linux.
8802 ${srcdir}/gcc/[*]/config-lang.in) ;;
8803 *)
8804 # From the config-lang.in, get $language, $target_libs,
8805 # $lang_dirs, $boot_language, and $build_by_default
8806 language=
8807 target_libs=
8808 lang_dirs=
8809 subdir_requires=
8810 boot_language=no
8811 build_by_default=yes
8812 # set srcdir during sourcing. See above about save & restore
8813 saved_srcdir=${srcdir}
8814 srcdir=${srcdir}/gcc . ${lang_frag}
8815 srcdir=${saved_srcdir}
8816 if test x${language} = x; then
8817 echo "${lang_frag} doesn't set \$language." 1>&2
8818 exit 1
8819 fi
8820
8821 if test "$language" = "c++"; then
8822 boot_language=yes
8823 fi
8824
8825 add_this_lang=no
8826 # C is always enabled, so no need to add it again
8827 if test "$language" != "c"; then
8828 case ,${enable_languages}, in
8829 *,${language},*)
8830 # Language was explicitly selected; include it
8831 add_this_lang=yes
8832 ;;
8833 *,all,*)
8834 # All languages are enabled
8835 add_this_lang=all
8836 ;;
8837 *,default,*)
8838 # 'default' was selected, select it if it is a default language
8839 add_this_lang=${build_by_default}
8840 ;;
8841 esac
8842 fi
8843
8844 # Disable languages that need other directories if these aren't available.
8845 for i in $subdir_requires; do
8846 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8847 case ${add_this_lang} in
8848 yes)
8849 # Specifically requested language; tell them.
8850 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8851 ;;
8852 all)
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8854 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8855 add_this_lang=unsupported
8856 ;;
8857 *)
8858 # Silently disable.
8859 add_this_lang=unsupported
8860 ;;
8861 esac
8862 done
8863
8864 # Disable Ada if no preexisting GNAT is available.
8865 case ${add_this_lang}:${language}:${have_gnat} in
8866 yes:ada:no)
8867 # Specifically requested language; tell them.
8868 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8869 ;;
8870 all:ada:no)
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8872 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8873 add_this_lang=unsupported
8874 ;;
8875 *:ada:no)
8876 # Silently disable.
8877 add_this_lang=unsupported
8878 ;;
8879 esac
8880
8881 # Disable D if no preexisting GDC is available.
8882 case ${add_this_lang}:${language}:${have_gdc} in
8883 yes:d:no)
8884 # Specifically requested language; tell them.
8885 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8886 ;;
8887 all:d:no)
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8889 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8890 add_this_lang=unsupported
8891 ;;
8892 *:d:no)
8893 # Silently disable.
8894 add_this_lang=unsupported
8895 ;;
8896 esac
8897
8898 # Disable jit if -enable-host-shared not specified
8899 # but not if building for Mingw. All code in Windows
8900 # is position independent code (PIC).
8901 case $target in
8902 *mingw*) ;;
8903 *)
8904 case ${add_this_lang}:${language}:${host_shared} in
8905 yes:jit:no)
8906 # PR jit/64780: explicitly specify --enable-host-shared
8907 as_fn_error $? "
8908 Enabling language \"jit\" requires --enable-host-shared.
8909
8910 --enable-host-shared typically slows the rest of the compiler down by
8911 a few %, so you must explicitly enable it.
8912
8913 If you want to build both the jit and the regular compiler, it is often
8914 best to do this via two separate configure/builds, in separate
8915 directories, to avoid imposing the performance cost of
8916 --enable-host-shared on the regular compiler." "$LINENO" 5
8917 ;;
8918 all:jit:no)
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8920 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8921 add_this_lang=unsupported
8922 ;;
8923 *:jit:no)
8924 # Silently disable.
8925 add_this_lang=unsupported
8926 ;;
8927 esac
8928 ;;
8929 esac
8930
8931 # Disable a language that is unsupported by the target.
8932 case "${add_this_lang}: $unsupported_languages " in
8933 no:*) ;;
8934 unsupported:*) ;;
8935 *:*" $language "*)
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8937 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8938 add_this_lang=unsupported
8939 ;;
8940 esac
8941
8942 case $add_this_lang in
8943 unsupported)
8944 # Remove language-dependent dirs.
8945 disabled_target_libs="$disabled_target_libs $target_libs"
8946 noconfigdirs="$noconfigdirs $lang_dirs"
8947 ;;
8948 no)
8949 # Remove language-dependent dirs; still show language as supported.
8950 disabled_target_libs="$disabled_target_libs $target_libs"
8951 noconfigdirs="$noconfigdirs $lang_dirs"
8952 potential_languages="${potential_languages}${language},"
8953 ;;
8954 all|yes)
8955 new_enable_languages="${new_enable_languages}${language},"
8956 potential_languages="${potential_languages}${language},"
8957 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8958 enabled_target_libs="$enabled_target_libs $target_libs"
8959 case "${boot_language}:,$enable_stage1_languages," in
8960 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8961 # Add to (comma-separated) list of stage 1 languages.
8962 case ",$stage1_languages," in
8963 *,$language,* | ,yes, | ,all,) ;;
8964 *) stage1_languages="${stage1_languages}${language}," ;;
8965 esac
8966 # We need to bootstrap any supporting libraries.
8967 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8968 ;;
8969 esac
8970 ;;
8971 esac
8972 ;;
8973 esac
8974 done
8975
8976 # Add target libraries which are only needed for disabled languages
8977 # to noconfigdirs.
8978 if test -n "$disabled_target_libs"; then
8979 for dir in $disabled_target_libs; do
8980 case " $enabled_target_libs " in
8981 *" ${dir} "*) ;;
8982 *) noconfigdirs="$noconfigdirs $dir" ;;
8983 esac
8984 done
8985 fi
8986
8987 # Check whether --enable-stage1-languages was given.
8988 if test "${enable_stage1_languages+set}" = set; then :
8989 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8990 ,no,|,,)
8991 # Set it to something that will have no effect in the loop below
8992 enable_stage1_languages=c ;;
8993 ,yes,)
8994 enable_stage1_languages=`echo $new_enable_languages | \
8995 sed -e "s/^,//" -e "s/,$//" ` ;;
8996 *,all,*)
8997 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8998 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8999 esac
9000
9001 # Add "good" languages from enable_stage1_languages to stage1_languages,
9002 # while "bad" languages go in missing_languages. Leave no duplicates.
9003 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9004 case $potential_languages in
9005 *,$i,*)
9006 case $stage1_languages in
9007 *,$i,*) ;;
9008 *) stage1_languages="$stage1_languages$i," ;;
9009 esac ;;
9010 *)
9011 case $missing_languages in
9012 *,$i,*) ;;
9013 *) missing_languages="$missing_languages$i," ;;
9014 esac ;;
9015 esac
9016 done
9017 fi
9018
9019
9020 # Remove leading/trailing commas that were added for simplicity
9021 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9022 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9023 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9024 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9025
9026 if test "x$missing_languages" != x; then
9027 as_fn_error $? "
9028 The following requested languages could not be built: ${missing_languages}
9029 Supported languages are: ${potential_languages}" "$LINENO" 5
9030 fi
9031 if test "x$new_enable_languages" != "x$enable_languages"; then
9032 echo The following languages will be built: ${new_enable_languages}
9033 enable_languages="$new_enable_languages"
9034 fi
9035
9036
9037 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9038 fi
9039
9040 # Handle --disable-<component> generically.
9041 for dir in $configdirs $build_configdirs $target_configdirs ; do
9042 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9043 varname=`echo $dirname | sed -e s/+/_/g`
9044 if eval test x\${enable_${varname}} "=" xno ; then
9045 noconfigdirs="$noconfigdirs $dir"
9046 fi
9047 done
9048
9049 # Check for Boehm's garbage collector
9050 # Check whether --enable-objc-gc was given.
9051 if test "${enable_objc_gc+set}" = set; then :
9052 enableval=$enable_objc_gc;
9053 fi
9054
9055
9056 # Check whether --with-target-bdw-gc was given.
9057 if test "${with_target_bdw_gc+set}" = set; then :
9058 withval=$with_target_bdw_gc;
9059 fi
9060
9061
9062 # Check whether --with-target-bdw-gc-include was given.
9063 if test "${with_target_bdw_gc_include+set}" = set; then :
9064 withval=$with_target_bdw_gc_include;
9065 fi
9066
9067
9068 # Check whether --with-target-bdw-gc-lib was given.
9069 if test "${with_target_bdw_gc_lib+set}" = set; then :
9070 withval=$with_target_bdw_gc_lib;
9071 fi
9072
9073
9074 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9076 $as_echo_n "checking for bdw garbage collector... " >&6; }
9077 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9079 $as_echo "using bdw-gc in default locations" >&6; }
9080 else
9081 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9082 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9083 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9084 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9087 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9088 fi
9089 fi
9090 esac
9091
9092 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9093 case ,${enable_languages}, in
9094 *,c++,*)
9095 # Disable libitm, libsanitizer if we're not building libstdc++
9096 case "${noconfigdirs}" in
9097 *target-libstdc++-v3*)
9098 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9099 ;;
9100 *) ;;
9101 esac
9102 ;;
9103 *)
9104 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9105 ;;
9106 esac
9107
9108 # If gcc/ is not in the source tree then we'll not be building a
9109 # target compiler, assume in that case we don't want to build any
9110 # target libraries or tools.
9111 #
9112 # This was added primarily for the benefit for binutils-gdb who reuse
9113 # this configure script, but don't always have target tools available.
9114 if test ! -d ${srcdir}/gcc; then
9115 skipdirs="${skipdirs} ${target_configdirs}"
9116 fi
9117
9118 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9119 # $build_configdirs and $target_configdirs.
9120 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9121
9122 notsupp=""
9123 for dir in . $skipdirs $noconfigdirs ; do
9124 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9125 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9126 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9127 if test -r $srcdir/$dirname/configure ; then
9128 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9129 true
9130 else
9131 notsupp="$notsupp $dir"
9132 fi
9133 fi
9134 fi
9135 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9136 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9137 if test -r $srcdir/$dirname/configure ; then
9138 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9139 true
9140 else
9141 notsupp="$notsupp $dir"
9142 fi
9143 fi
9144 fi
9145 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9146 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9147 if test -r $srcdir/$dirname/configure ; then
9148 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9149 true
9150 else
9151 notsupp="$notsupp $dir"
9152 fi
9153 fi
9154 fi
9155 done
9156
9157 # Quietly strip out all directories which aren't configurable in this tree.
9158 # This relies on all configurable subdirectories being autoconfiscated, which
9159 # is now the case.
9160 build_configdirs_all="$build_configdirs"
9161 build_configdirs=
9162 for i in ${build_configdirs_all} ; do
9163 j=`echo $i | sed -e s/build-//g`
9164 if test -f ${srcdir}/$j/configure ; then
9165 build_configdirs="${build_configdirs} $i"
9166 fi
9167 done
9168
9169 configdirs_all="$configdirs"
9170 configdirs=
9171 for i in ${configdirs_all} ; do
9172 if test -f ${srcdir}/$i/configure ; then
9173 configdirs="${configdirs} $i"
9174 fi
9175 done
9176
9177 target_configdirs_all="$target_configdirs"
9178 target_configdirs=
9179 for i in ${target_configdirs_all} ; do
9180 j=`echo $i | sed -e s/target-//g`
9181 if test -f ${srcdir}/$j/configure ; then
9182 target_configdirs="${target_configdirs} $i"
9183 fi
9184 done
9185
9186 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9187 # so we have to add it after the preceding checks.
9188 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9189 then
9190 case " $configdirs " in
9191 *" libiberty "*)
9192 # If we can build libiberty, we can also build libiberty-linker-plugin.
9193 configdirs="$configdirs libiberty-linker-plugin"
9194 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9195 --with-libiberty=../libiberty-linker-plugin";;
9196 *)
9197 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9198 esac
9199 fi
9200
9201 # Sometimes we have special requirements for the host libiberty.
9202 extra_host_libiberty_configure_flags=
9203 extra_host_zlib_configure_flags=
9204 case " $configdirs " in
9205 *" lto-plugin "* | *" libcc1 "*)
9206 # When these are to be built as shared libraries, the same applies to
9207 # libiberty.
9208 extra_host_libiberty_configure_flags=--enable-shared
9209 ;;
9210 *" bfd "*)
9211 # When bfd is to be built as a shared library, the same applies to
9212 # zlib.
9213 if test "$enable_shared" = "yes"; then
9214 extra_host_zlib_configure_flags=--enable-host-shared
9215 fi
9216 ;;
9217 esac
9218
9219
9220
9221 # Produce a warning message for the subdirs we can't configure.
9222 # This isn't especially interesting in the Cygnus tree, but in the individual
9223 # FSF releases, it's important to let people know when their machine isn't
9224 # supported by the one or two programs in a package.
9225
9226 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9227 # If $appdirs is non-empty, at least one of those directories must still
9228 # be configured, or we error out. (E.g., if the gas release supports a
9229 # specified target in some subdirs but not the gas subdir, we shouldn't
9230 # pretend that all is well.)
9231 if test -n "$appdirs" ; then
9232 for dir in $appdirs ; do
9233 if test -r $dir/Makefile.in ; then
9234 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9235 appdirs=""
9236 break
9237 fi
9238 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9239 appdirs=""
9240 break
9241 fi
9242 fi
9243 done
9244 if test -n "$appdirs" ; then
9245 echo "*** This configuration is not supported by this package." 1>&2
9246 exit 1
9247 fi
9248 fi
9249 # Okay, some application will build, or we don't care to check. Still
9250 # notify of subdirs not getting built.
9251 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9252 echo " ${notsupp}" 1>&2
9253 echo " (Any other directories should still work fine.)" 1>&2
9254 fi
9255
9256 case "$host" in
9257 *msdosdjgpp*)
9258 enable_gdbtk=no ;;
9259 esac
9260
9261 # To find our prefix, in gcc_cv_tool_prefix.
9262
9263 # The user is always right.
9264 if test "${PATH_SEPARATOR+set}" != set; then
9265 echo "#! /bin/sh" >conf$$.sh
9266 echo "exit 0" >>conf$$.sh
9267 chmod +x conf$$.sh
9268 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9269 PATH_SEPARATOR=';'
9270 else
9271 PATH_SEPARATOR=:
9272 fi
9273 rm -f conf$$.sh
9274 fi
9275
9276
9277 get_gcc_base_ver="cat"
9278
9279 # Check whether --with-gcc-major-version-only was given.
9280 if test "${with_gcc_major_version_only+set}" = set; then :
9281 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9282 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9283 fi
9284
9285 fi
9286
9287
9288
9289
9290
9291
9292 if test "x$exec_prefix" = xNONE; then
9293 if test "x$prefix" = xNONE; then
9294 gcc_cv_tool_prefix=$ac_default_prefix
9295 else
9296 gcc_cv_tool_prefix=$prefix
9297 fi
9298 else
9299 gcc_cv_tool_prefix=$exec_prefix
9300 fi
9301
9302 # If there is no compiler in the tree, use the PATH only. In any
9303 # case, if there is no compiler in the tree nobody should use
9304 # AS_FOR_TARGET and LD_FOR_TARGET.
9305 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9306 if test x$with_gcc_major_version_only = xyes ; then
9307 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9308 else
9309 gcc_version=`cat $srcdir/gcc/BASE-VER`
9310 fi
9311 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9312 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9313 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9314 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9315 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9316 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9317 else
9318 gcc_cv_tool_dirs=
9319 fi
9320
9321 if test x$build = x$target && test -n "$md_exec_prefix"; then
9322 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9323 fi
9324
9325
9326
9327 copy_dirs=
9328
9329
9330 # Check whether --with-build-sysroot was given.
9331 if test "${with_build_sysroot+set}" = set; then :
9332 withval=$with_build_sysroot; if test x"$withval" != x ; then
9333 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9334 fi
9335 else
9336 SYSROOT_CFLAGS_FOR_TARGET=
9337 fi
9338
9339
9340
9341
9342 # Check whether --with-debug-prefix-map was given.
9343 if test "${with_debug_prefix_map+set}" = set; then :
9344 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9345 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9346 for debug_map in $withval; do
9347 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9348 done
9349 fi
9350 else
9351 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9352 fi
9353
9354
9355
9356 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9357 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9358 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9359 # We want to ensure that TARGET libraries (which we know are built with
9360 # gcc) are built with "-O2 -g", so include those options when setting
9361 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9362 if test "x$CFLAGS_FOR_TARGET" = x; then
9363 if test "x${is_cross_compiler}" = xyes; then
9364 CFLAGS_FOR_TARGET="-g -O2"
9365 else
9366 CFLAGS_FOR_TARGET=$CFLAGS
9367 case " $CFLAGS " in
9368 *" -O2 "*) ;;
9369 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9370 esac
9371 case " $CFLAGS " in
9372 *" -g "* | *" -g3 "*) ;;
9373 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9374 esac
9375 fi
9376 fi
9377
9378
9379 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9380 if test "x${is_cross_compiler}" = xyes; then
9381 CXXFLAGS_FOR_TARGET="-g -O2"
9382 else
9383 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9384 case " $CXXFLAGS " in
9385 *" -O2 "*) ;;
9386 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9387 esac
9388 case " $CXXFLAGS " in
9389 *" -g "* | *" -g3 "*) ;;
9390 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9391 esac
9392 fi
9393 fi
9394
9395
9396
9397
9398 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9399 # the named directory are copied to $(tooldir)/sys-include.
9400 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9401 if test x${is_cross_compiler} = xno ; then
9402 echo 1>&2 '***' --with-headers is only supported when cross compiling
9403 exit 1
9404 fi
9405 if test x"${with_headers}" != xyes ; then
9406 x=${gcc_cv_tool_prefix}
9407 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9408 fi
9409 fi
9410
9411 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9412 # the name directories are copied to $(tooldir)/lib. Multiple directories
9413 # are permitted.
9414 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9415 if test x${is_cross_compiler} = xno ; then
9416 echo 1>&2 '***' --with-libs is only supported when cross compiling
9417 exit 1
9418 fi
9419 if test x"${with_libs}" != xyes ; then
9420 # Copy the libraries in reverse order, so that files in the first named
9421 # library override files in subsequent libraries.
9422 x=${gcc_cv_tool_prefix}
9423 for l in ${with_libs}; do
9424 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9425 done
9426 fi
9427 fi
9428
9429 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9430 #
9431 # This is done by determining whether or not the appropriate directory
9432 # is available, and by checking whether or not specific configurations
9433 # have requested that this magic not happen.
9434 #
9435 # The command line options always override the explicit settings in
9436 # configure.ac, and the settings in configure.ac override this magic.
9437 #
9438 # If the default for a toolchain is to use GNU as and ld, and you don't
9439 # want to do that, then you should use the --without-gnu-as and
9440 # --without-gnu-ld options for the configure script. Similarly, if
9441 # the default is to use the included zlib and you don't want to do that,
9442 # you should use the --with-system-zlib option for the configure script.
9443
9444 if test x${use_gnu_as} = x &&
9445 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9446 with_gnu_as=yes
9447 extra_host_args="$extra_host_args --with-gnu-as"
9448 fi
9449
9450 if test x${use_gnu_ld} = x &&
9451 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9452 with_gnu_ld=yes
9453 extra_host_args="$extra_host_args --with-gnu-ld"
9454 fi
9455
9456 if test x${use_included_zlib} = x &&
9457 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9458 :
9459 else
9460 with_system_zlib=yes
9461 extra_host_args="$extra_host_args --with-system-zlib"
9462 fi
9463
9464 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9465 # can detect this case.
9466
9467 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9468 with_newlib=yes
9469 extra_host_args="$extra_host_args --with-newlib"
9470 fi
9471
9472 # Handle ${copy_dirs}
9473 set fnord ${copy_dirs}
9474 shift
9475 while test $# != 0 ; do
9476 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9477 :
9478 else
9479 echo Copying $1 to $2
9480
9481 # Use the install script to create the directory and all required
9482 # parent directories.
9483 if test -d $2 ; then
9484 :
9485 else
9486 echo >config.temp
9487 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9488 fi
9489
9490 # Copy the directory, assuming we have tar.
9491 # FIXME: Should we use B in the second tar? Not all systems support it.
9492 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9493
9494 # It is the responsibility of the user to correctly adjust all
9495 # symlinks. If somebody can figure out how to handle them correctly
9496 # here, feel free to add the code.
9497
9498 echo $1 > $2/COPIED
9499 fi
9500 shift; shift
9501 done
9502
9503 # Determine a target-dependent exec_prefix that the installed
9504 # gcc will search in. Keep this list sorted by triplet, with
9505 # the *-*-osname triplets last.
9506 md_exec_prefix=
9507 case "${target}" in
9508 i[34567]86-pc-msdosdjgpp*)
9509 md_exec_prefix=/dev/env/DJDIR/bin
9510 ;;
9511 *-*-hpux* | \
9512 *-*-nto-qnx* | \
9513 *-*-solaris2*)
9514 md_exec_prefix=/usr/ccs/bin
9515 ;;
9516 esac
9517
9518 extra_arflags_for_target=
9519 extra_nmflags_for_target=
9520 extra_ranlibflags_for_target=
9521 target_makefile_frag=/dev/null
9522 case "${target}" in
9523 spu-*-*)
9524 target_makefile_frag="config/mt-spu"
9525 ;;
9526 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9527 target_makefile_frag="config/mt-sde"
9528 ;;
9529 mipsisa*-*-elfoabi*)
9530 target_makefile_frag="config/mt-mips-elfoabi"
9531 ;;
9532 mips*-*-*linux* | mips*-*-gnu*)
9533 target_makefile_frag="config/mt-mips-gnu"
9534 ;;
9535 nios2-*-elf*)
9536 target_makefile_frag="config/mt-nios2-elf"
9537 ;;
9538 *-*-linux-android*)
9539 target_makefile_frag="config/mt-android"
9540 ;;
9541 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9542 target_makefile_frag="config/mt-gnu"
9543 ;;
9544 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9545 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9546 # commands to handle both 32-bit and 64-bit objects. These flags are
9547 # harmless if we're using GNU nm or ar.
9548 extra_arflags_for_target=" -X32_64"
9549 extra_nmflags_for_target=" -B -X32_64"
9550 ;;
9551 esac
9552
9553 alphaieee_frag=/dev/null
9554 case $target in
9555 alpha*-*-*)
9556 # This just makes sure to use the -mieee option to build target libs.
9557 # This should probably be set individually by each library.
9558 alphaieee_frag="config/mt-alphaieee"
9559 ;;
9560 esac
9561
9562 # If --enable-target-optspace always use -Os instead of -O2 to build
9563 # the target libraries, similarly if it is not specified, use -Os
9564 # on selected platforms.
9565 ospace_frag=/dev/null
9566 case "${enable_target_optspace}:${target}" in
9567 yes:*)
9568 ospace_frag="config/mt-ospace"
9569 ;;
9570 :d30v-*)
9571 ospace_frag="config/mt-d30v"
9572 ;;
9573 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9574 ospace_frag="config/mt-ospace"
9575 ;;
9576 no:* | :*)
9577 ;;
9578 *)
9579 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9580 ;;
9581 esac
9582
9583 # Some systems (e.g., one of the i386-aix systems the gas testers are
9584 # using) don't handle "\$" correctly, so don't use it here.
9585 tooldir='${exec_prefix}'/${target_noncanonical}
9586 build_tooldir=${tooldir}
9587
9588 # Create a .gdbinit file which runs the one in srcdir
9589 # and tells GDB to look there for source files.
9590
9591 if test -r ${srcdir}/.gdbinit ; then
9592 case ${srcdir} in
9593 .) ;;
9594 *) cat > ./.gdbinit <<EOF
9595 # ${NO_EDIT}
9596 dir ${srcdir}
9597 dir .
9598 source ${srcdir}/.gdbinit
9599 EOF
9600 ;;
9601 esac
9602 fi
9603
9604 # Make sure that the compiler is able to generate an executable. If it
9605 # can't, we are probably in trouble. We don't care whether we can run the
9606 # executable--we might be using a cross compiler--we only care whether it
9607 # can be created. At this point the main configure script has set CC.
9608 we_are_ok=no
9609 echo "int main () { return 0; }" > conftest.c
9610 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9611 if test $? = 0 ; then
9612 if test -s conftest || test -s conftest.exe ; then
9613 we_are_ok=yes
9614 fi
9615 fi
9616 case $we_are_ok in
9617 no)
9618 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9619 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9620 rm -f conftest*
9621 exit 1
9622 ;;
9623 esac
9624 rm -f conftest*
9625
9626 # Decide which environment variable is used to find dynamic libraries.
9627 case "${host}" in
9628 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9629 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9630 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9631 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9632 esac
9633
9634 # On systems where the dynamic library environment variable is PATH,
9635 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9636 # built executables to PATH.
9637 if test "$RPATH_ENVVAR" = PATH; then
9638 GCC_SHLIB_SUBDIR=/shlib
9639 else
9640 GCC_SHLIB_SUBDIR=
9641 fi
9642
9643 # Adjust the toplevel makefile according to whether bootstrap was selected.
9644 case $enable_bootstrap in
9645 yes)
9646 bootstrap_suffix=bootstrap
9647 BUILD_CONFIG=bootstrap-debug
9648 ;;
9649 no)
9650 bootstrap_suffix=no-bootstrap
9651 BUILD_CONFIG=
9652 ;;
9653 esac
9654
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9656 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9657
9658
9659 # Check whether --with-build-config was given.
9660 if test "${with_build_config+set}" = set; then :
9661 withval=$with_build_config; case $with_build_config in
9662 yes) with_build_config= ;;
9663 no) with_build_config= BUILD_CONFIG= ;;
9664 esac
9665 fi
9666
9667
9668 if test "x${with_build_config}" != x; then
9669 BUILD_CONFIG=$with_build_config
9670 else
9671 case $BUILD_CONFIG in
9672 bootstrap-debug)
9673 if echo "int f (void) { return 0; }" > conftest.c &&
9674 ${CC} -c conftest.c &&
9675 mv conftest.o conftest.o.g0 &&
9676 ${CC} -c -g conftest.c &&
9677 mv conftest.o conftest.o.g &&
9678 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9679 :
9680 else
9681 BUILD_CONFIG=
9682 fi
9683 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9684 ;;
9685 esac
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9688 $as_echo "$BUILD_CONFIG" >&6; }
9689
9690
9691 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9693 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9694 # Check whether --enable-vtable-verify was given.
9695 if test "${enable_vtable_verify+set}" = set; then :
9696 enableval=$enable_vtable_verify; case "$enableval" in
9697 yes) enable_vtable_verify=yes ;;
9698 no) enable_vtable_verify=no ;;
9699 *) enable_vtable_verify=no;;
9700 esac
9701 else
9702 enable_vtable_verify=no
9703 fi
9704
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9706 $as_echo "$enable_vtable_verify" >&6; }
9707
9708 # Record target_configdirs and the configure arguments for target and
9709 # build configuration in Makefile.
9710 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9711 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9712 bootstrap_fixincludes=no
9713
9714 # If we are building libgomp, bootstrap it.
9715 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9716 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9717 fi
9718
9719 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9720 # or bootstrap-ubsan, bootstrap it.
9721 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9722 case "$BUILD_CONFIG" in
9723 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9724 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9725 bootstrap_fixincludes=yes
9726 ;;
9727 esac
9728 fi
9729
9730 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9731 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9732 test "$enable_vtable_verify" != no; then
9733 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9734 fi
9735
9736 # If we are building libatomic and the list of enabled languages includes the
9737 # D frontend, bootstrap it.
9738 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9739 case ,${enable_languages}, in
9740 *,d,*)
9741 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9742 ;;
9743 esac
9744 fi
9745
9746 # Determine whether gdb needs tk/tcl or not.
9747 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9748 # and in that case we want gdb to be built without tk. Ugh!
9749 # In fact I believe gdb is the *only* package directly dependent on tk,
9750 # so we should be able to put the 'maybe's in unconditionally and
9751 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9752 # 100% sure that that's safe though.
9753
9754 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9755 case "$enable_gdbtk" in
9756 no)
9757 GDB_TK="" ;;
9758 yes)
9759 GDB_TK="${gdb_tk}" ;;
9760 *)
9761 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9762 # distro. Eventually someone will fix this and move Insight, nee
9763 # gdbtk to a separate directory.
9764 if test -d ${srcdir}/gdb/gdbtk ; then
9765 GDB_TK="${gdb_tk}"
9766 else
9767 GDB_TK=""
9768 fi
9769 ;;
9770 esac
9771 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9772 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9773
9774 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9775 # else does, only include them if one of these is built. The Makefile
9776 # provides the ordering, so it's enough here to add to the list.
9777 case " ${configdirs} " in
9778 *\ gdb\ *)
9779 configdirs="${configdirs} gnulib gdbsupport"
9780 ;;
9781 *\ gdbserver\ *)
9782 configdirs="${configdirs} gnulib gdbsupport"
9783 ;;
9784 *\ sim\ *)
9785 configdirs="${configdirs} gnulib"
9786 ;;
9787 esac
9788
9789 # Strip out unwanted targets.
9790
9791 # While at that, we remove Makefiles if we were started for recursive
9792 # configuration, so that the top-level Makefile reconfigures them,
9793 # like we used to do when configure itself was recursive.
9794
9795 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9796 # but now we're fixing up the Makefile ourselves with the additional
9797 # commands passed to AC_CONFIG_FILES. Use separate variables
9798 # extrasub-{build,host,target} not because there is any reason to split
9799 # the substitutions up that way, but only to remain below the limit of
9800 # 99 commands in a script, for HP-UX sed.
9801
9802 # Do not nest @if/@endif or @unless/@endunless pairs, because
9803 # configure will not warn you at all.
9804
9805 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9806 yes:yes:*\ gold\ *:*,c++,*) ;;
9807 yes:yes:*\ gold\ *:*)
9808 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9809 ;;
9810 esac
9811
9812 extrasub_build=
9813 for module in ${build_configdirs} ; do
9814 if test -z "${no_recursion}" \
9815 && test -f ${build_subdir}/${module}/Makefile; then
9816 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9817 rm -f ${build_subdir}/${module}/Makefile
9818 fi
9819 extrasub_build="$extrasub_build
9820 /^@if build-$module\$/d
9821 /^@endif build-$module\$/d
9822 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9823 /^@if build-$module-$bootstrap_suffix\$/d
9824 /^@endif build-$module-$bootstrap_suffix\$/d
9825 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9826 done
9827 extrasub_host=
9828 for module in ${configdirs} ; do
9829 if test -z "${no_recursion}"; then
9830 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9831 if test -f ${file}; then
9832 echo 1>&2 "*** removing ${file} to force reconfigure"
9833 rm -f ${file}
9834 fi
9835 done
9836 fi
9837 case ${module},${bootstrap_fixincludes} in
9838 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9839 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9840 esac
9841 extrasub_host="$extrasub_host
9842 /^@if $module\$/d
9843 /^@endif $module\$/d
9844 /^@unless $module\$/,/^@endunless $module\$/d
9845 /^@if $module-$host_bootstrap_suffix\$/d
9846 /^@endif $module-$host_bootstrap_suffix\$/d
9847 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9848 done
9849 extrasub_target=
9850 for module in ${target_configdirs} ; do
9851 if test -z "${no_recursion}" \
9852 && test -f ${target_subdir}/${module}/Makefile; then
9853 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9854 rm -f ${target_subdir}/${module}/Makefile
9855 fi
9856
9857 # We only bootstrap target libraries listed in bootstrap_target_libs.
9858 case $bootstrap_target_libs in
9859 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9860 *) target_bootstrap_suffix=no-bootstrap ;;
9861 esac
9862
9863 extrasub_target="$extrasub_target
9864 /^@if target-$module\$/d
9865 /^@endif target-$module\$/d
9866 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9867 /^@if target-$module-$target_bootstrap_suffix\$/d
9868 /^@endif target-$module-$target_bootstrap_suffix\$/d
9869 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9870 done
9871
9872 # Do the final fixup along with target modules.
9873 extrasub_target="$extrasub_target
9874 /^@if /,/^@endif /d
9875 /^@unless /d
9876 /^@endunless /d"
9877
9878 if test "$enable_pgo_build" != "no"; then
9879 extrasub_build="$extrasub_build
9880 /^@if pgo-build\$/d
9881 /^@endif pgo-build\$/d"
9882 fi
9883
9884 # Create the serialization dependencies. This uses a temporary file.
9885
9886 # Check whether --enable-serial-configure was given.
9887 if test "${enable_serial_configure+set}" = set; then :
9888 enableval=$enable_serial_configure;
9889 fi
9890
9891
9892 case ${enable_serial_configure} in
9893 yes)
9894 enable_serial_build_configure=yes
9895 enable_serial_host_configure=yes
9896 enable_serial_target_configure=yes
9897 ;;
9898 esac
9899
9900 # These force 'configure's to be done one at a time, to avoid problems
9901 # with contention over a shared config.cache.
9902 rm -f serdep.tmp
9903 echo '# serdep.tmp' > serdep.tmp
9904 olditem=
9905 test "x${enable_serial_build_configure}" = xyes &&
9906 for item in ${build_configdirs} ; do
9907 case ${olditem} in
9908 "") ;;
9909 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9910 esac
9911 olditem=${item}
9912 done
9913 olditem=
9914 test "x${enable_serial_host_configure}" = xyes &&
9915 for item in ${configdirs} ; do
9916 case ${olditem} in
9917 "") ;;
9918 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9919 esac
9920 olditem=${item}
9921 done
9922 olditem=
9923 test "x${enable_serial_target_configure}" = xyes &&
9924 for item in ${target_configdirs} ; do
9925 case ${olditem} in
9926 "") ;;
9927 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9928 esac
9929 olditem=${item}
9930 done
9931 serialization_dependencies=serdep.tmp
9932
9933
9934 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9935 # target, nonopt, and variable assignments. These are the ones we
9936 # might not want to pass down to subconfigures. The exception being
9937 # --cache-file=/dev/null, which is used to turn off the use of cache
9938 # files altogether, and which should be passed on to subconfigures.
9939 # Also strip program-prefix, program-suffix, and program-transform-name,
9940 # so that we can pass down a consistent program-transform-name.
9941 baseargs=
9942 tbaseargs=
9943 keep_next=no
9944 skip_next=no
9945 eval "set -- $ac_configure_args"
9946 for ac_arg
9947 do
9948 if test X"$skip_next" = X"yes"; then
9949 skip_next=no
9950 continue
9951 fi
9952 if test X"$keep_next" = X"yes"; then
9953 case $ac_arg in
9954 *\'*)
9955 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9956 esac
9957 baseargs="$baseargs '$ac_arg'"
9958 tbaseargs="$tbaseargs '$ac_arg'"
9959 keep_next=no
9960 continue
9961 fi
9962
9963 # Handle separated arguments. Based on the logic generated by
9964 # autoconf 2.59.
9965 case $ac_arg in
9966 *=* | --config-cache | -C | -disable-* | --disable-* \
9967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9969 | -with-* | --with-* | -without-* | --without-* | --x)
9970 separate_arg=no
9971 ;;
9972 -*)
9973 separate_arg=yes
9974 ;;
9975 *)
9976 separate_arg=no
9977 ;;
9978 esac
9979
9980 skip_targ=no
9981 case $ac_arg in
9982
9983 --with-* | --without-*)
9984 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9985
9986 case $libopt in
9987 *[-_]include)
9988 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9989 ;;
9990 *[-_]lib)
9991 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9992 ;;
9993 *)
9994 lib=$libopt
9995 ;;
9996 esac
9997
9998
9999 case $lib in
10000 mpc | mpfr | gmp | isl)
10001 # If we're processing --with-$lib, --with-$lib-include or
10002 # --with-$lib-lib, for one of the libs above, and target is
10003 # different from host, don't pass the current argument to any
10004 # target library's configure.
10005 if test x$is_cross_compiler = xyes; then
10006 skip_targ=yes
10007 fi
10008 ;;
10009 esac
10010 ;;
10011 esac
10012
10013 case "$ac_arg" in
10014 --cache-file=/dev/null | \
10015 -cache-file=/dev/null )
10016 # Handled here to avoid the test to skip args below.
10017 baseargs="$baseargs '$ac_arg'"
10018 tbaseargs="$tbaseargs '$ac_arg'"
10019 # Assert: $separate_arg should always be no.
10020 keep_next=$separate_arg
10021 ;;
10022 --no*)
10023 continue
10024 ;;
10025 --c* | \
10026 --sr* | \
10027 --ho* | \
10028 --bu* | \
10029 --t* | \
10030 --program-* | \
10031 -cache_file* | \
10032 -srcdir* | \
10033 -host* | \
10034 -build* | \
10035 -target* | \
10036 -program-prefix* | \
10037 -program-suffix* | \
10038 -program-transform-name* )
10039 skip_next=$separate_arg
10040 continue
10041 ;;
10042 -*)
10043 # An option. Add it.
10044 case $ac_arg in
10045 *\'*)
10046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10047 esac
10048 baseargs="$baseargs '$ac_arg'"
10049 if test X"$skip_targ" = Xno; then
10050 tbaseargs="$tbaseargs '$ac_arg'"
10051 fi
10052 keep_next=$separate_arg
10053 ;;
10054 *)
10055 # Either a variable assignment, or a nonopt (triplet). Don't
10056 # pass it down; let the Makefile handle this.
10057 continue
10058 ;;
10059 esac
10060 done
10061 # Remove the initial space we just introduced and, as these will be
10062 # expanded by make, quote '$'.
10063 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10064
10065 # Add in --program-transform-name, after --program-prefix and
10066 # --program-suffix have been applied to it. Autoconf has already
10067 # doubled dollar signs and backslashes in program_transform_name; we want
10068 # the backslashes un-doubled, and then the entire thing wrapped in single
10069 # quotes, because this will be expanded first by make and then by the shell.
10070 # Also, because we want to override the logic in subdir configure scripts to
10071 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10072 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10073 ${program_transform_name}
10074 EOF_SED
10075 gcc_transform_name=`cat conftestsed.out`
10076 rm -f conftestsed.out
10077 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10078 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10079 if test "$silent" = yes; then
10080 baseargs="$baseargs --silent"
10081 tbaseargs="$tbaseargs --silent"
10082 fi
10083 baseargs="$baseargs --disable-option-checking"
10084 tbaseargs="$tbaseargs --disable-option-checking"
10085
10086 # Record and document user additions to sub configure arguments.
10087
10088
10089
10090
10091 # For the build-side libraries, we just need to pretend we're native,
10092 # and not use the same cache file. Multilibs are neither needed nor
10093 # desired. We can't even use the same cache file for all build-side
10094 # libraries, as they're compiled differently; some with C, some with
10095 # C++ or with different feature-enabling options.
10096 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10097
10098 # For host modules, accept cache file option, or specification as blank.
10099 case "${cache_file}" in
10100 "") # empty
10101 cache_file_option="" ;;
10102 /* | [A-Za-z]:[\\/]* ) # absolute path
10103 cache_file_option="--cache-file=${cache_file}" ;;
10104 *) # relative path
10105 cache_file_option="--cache-file=../${cache_file}" ;;
10106 esac
10107
10108 # Host dirs don't like to share a cache file either, horribly enough.
10109 # This seems to be due to autoconf 2.5x stupidity.
10110 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10111
10112 target_configargs="$target_configargs ${tbaseargs}"
10113
10114 # Passing a --with-cross-host argument lets the target libraries know
10115 # whether they are being built with a cross-compiler or being built
10116 # native. However, it would be better to use other mechanisms to make the
10117 # sorts of decisions they want to make on this basis. Please consider
10118 # this option to be deprecated. FIXME.
10119 if test x${is_cross_compiler} = xyes ; then
10120 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10121 fi
10122
10123 # Special user-friendly check for native x86_64-linux build, if
10124 # multilib is not explicitly enabled.
10125 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10126 x86_64-*linux*:yes:$build:$build:)
10127 # Make sure we have a development environment that handles 32-bit
10128 dev64=no
10129 echo "int main () { return 0; }" > conftest.c
10130 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10131 if test $? = 0 ; then
10132 if test -s conftest || test -s conftest.exe ; then
10133 dev64=yes
10134 fi
10135 fi
10136 rm -f conftest*
10137 if test x${dev64} != xyes ; then
10138 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
10139 fi
10140 ;;
10141 esac
10142
10143 # Default to --enable-multilib.
10144 if test x${enable_multilib} = x ; then
10145 target_configargs="--enable-multilib ${target_configargs}"
10146 fi
10147
10148 # Pass --with-newlib if appropriate. Note that target_configdirs has
10149 # changed from the earlier setting of with_newlib.
10150 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10151 target_configargs="--with-newlib ${target_configargs}"
10152 fi
10153
10154 # Different target subdirs use different values of certain variables
10155 # (notably CXX). Worse, multilibs use *lots* of different values.
10156 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10157 # it doesn't automatically accept command-line overrides of them.
10158 # This means it's not safe for target subdirs to share a cache file,
10159 # which is disgusting, but there you have it. Hopefully this can be
10160 # fixed in future. It's still worthwhile to use a cache file for each
10161 # directory. I think.
10162
10163 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10164 # We need to pass --target, as newer autoconf's requires consistency
10165 # for target_alias and gcc doesn't manage it consistently.
10166 target_configargs="--cache-file=./config.cache ${target_configargs}"
10167
10168 FLAGS_FOR_TARGET=
10169 case " $target_configdirs " in
10170 *" newlib "*)
10171 case " $target_configargs " in
10172 *" --with-newlib "*)
10173 case "$target" in
10174 *-cygwin*)
10175 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10176 ;;
10177 esac
10178
10179 # If we're not building GCC, don't discard standard headers.
10180 if test -d ${srcdir}/gcc; then
10181 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10182
10183 if test "${build}" != "${host}"; then
10184 # On Canadian crosses, CC_FOR_TARGET will have already been set
10185 # by `configure', so we won't have an opportunity to add -Bgcc/
10186 # to it. This is right: we don't want to search that directory
10187 # for binaries, but we want the header files in there, so add
10188 # them explicitly.
10189 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10190
10191 # Someone might think of using the pre-installed headers on
10192 # Canadian crosses, in case the installed compiler is not fully
10193 # compatible with the compiler being built. In this case, it
10194 # would be better to flag an error than risking having
10195 # incompatible object files being constructed. We can't
10196 # guarantee that an error will be flagged, but let's hope the
10197 # compiler will do it, when presented with incompatible header
10198 # files.
10199 fi
10200 fi
10201
10202 case "${target}-${is_cross_compiler}" in
10203 i[3456789]86-*-linux*-no)
10204 # Here host == target, so we don't need to build gcc,
10205 # so we don't want to discard standard headers.
10206 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10207 ;;
10208 *)
10209 # If we're building newlib, use its generic headers last, but search
10210 # for any libc-related directories first (so make it the last -B
10211 # switch).
10212 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10213
10214 # If we're building libgloss, find the startup file, simulator library
10215 # and linker script.
10216 case " $target_configdirs " in
10217 *" libgloss "*)
10218 # Look for startup file, simulator library and maybe linker script.
10219 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10220 # Look for libnosys.a in case the target needs it.
10221 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10222 # Most targets have the linker script in the source directory.
10223 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10224 ;;
10225 esac
10226 ;;
10227 esac
10228 ;;
10229 esac
10230 ;;
10231 esac
10232
10233 case "$target" in
10234 x86_64-*mingw* | *-w64-mingw*)
10235 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10236 # however, use a symlink named 'mingw' in ${prefix} .
10237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10238 ;;
10239 *-mingw*)
10240 # MinGW can't be handled as Cygwin above since it does not use newlib.
10241 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'
10242 ;;
10243 esac
10244
10245 # Allow the user to override the flags for
10246 # our build compiler if desired.
10247 if test x"${build}" = x"${host}" ; then
10248 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10249 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10250 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10251 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10252 fi
10253
10254 # On Canadian crosses, we'll be searching the right directories for
10255 # the previously-installed cross compiler, so don't bother to add
10256 # flags for directories within the install tree of the compiler
10257 # being built; programs in there won't even run.
10258 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10259 # Search for pre-installed headers if nothing else fits.
10260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10261 fi
10262
10263 if test "x${use_gnu_ld}" = x &&
10264 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10265 # Arrange for us to find uninstalled linker scripts.
10266 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10267 fi
10268
10269 # Search for other target-specific linker scripts and such.
10270 case "${target}" in
10271 mep*)
10272 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10273 ;;
10274 esac
10275
10276 # Makefile fragments.
10277 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10278 do
10279 eval fragval=\$$frag
10280 if test $fragval != /dev/null; then
10281 eval $frag=${srcdir}/$fragval
10282 fi
10283 done
10284
10285
10286
10287
10288
10289 # Miscellanea: directories, flags, etc.
10290
10291
10292
10293
10294
10295
10296
10297
10298 # Build module lists & subconfigure args.
10299
10300
10301
10302 # Host module lists & subconfigure args.
10303
10304
10305
10306
10307 # Target module lists & subconfigure args.
10308
10309
10310
10311 # Build tools.
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332 # Generate default definitions for YACC, M4, LEX and other programs that run
10333 # on the build machine. These are used if the Makefile can't locate these
10334 # programs in objdir.
10335 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10336
10337 for ac_prog in 'bison -y' byacc yacc
10338 do
10339 # Extract the first word of "$ac_prog", so it can be a program name with args.
10340 set dummy $ac_prog; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if ${ac_cv_prog_YACC+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test -n "$YACC"; then
10347 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_YACC="$ac_prog"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360 done
10361 done
10362 IFS=$as_save_IFS
10363
10364 fi
10365 fi
10366 YACC=$ac_cv_prog_YACC
10367 if test -n "$YACC"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10369 $as_echo "$YACC" >&6; }
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10373 fi
10374
10375
10376 test -n "$YACC" && break
10377 done
10378 test -n "$YACC" || YACC="$MISSING bison -y"
10379
10380 case " $build_configdirs " in
10381 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10382 esac
10383
10384 for ac_prog in bison
10385 do
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387 set dummy $ac_prog; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_prog_BISON+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test -n "$BISON"; then
10394 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_BISON="$ac_prog"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407 done
10408 done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 BISON=$ac_cv_prog_BISON
10414 if test -n "$BISON"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10416 $as_echo "$BISON" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423 test -n "$BISON" && break
10424 done
10425 test -n "$BISON" || BISON="$MISSING bison"
10426
10427 case " $build_configdirs " in
10428 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10429 esac
10430
10431 for ac_prog in gm4 gnum4 m4
10432 do
10433 # Extract the first word of "$ac_prog", so it can be a program name with args.
10434 set dummy $ac_prog; ac_word=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if ${ac_cv_prog_M4+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test -n "$M4"; then
10441 ac_cv_prog_M4="$M4" # Let the user override the test.
10442 else
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_prog_M4="$ac_prog"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10456 IFS=$as_save_IFS
10457
10458 fi
10459 fi
10460 M4=$ac_cv_prog_M4
10461 if test -n "$M4"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10463 $as_echo "$M4" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10467 fi
10468
10469
10470 test -n "$M4" && break
10471 done
10472 test -n "$M4" || M4="$MISSING m4"
10473
10474 case " $build_configdirs " in
10475 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10476 esac
10477
10478 for ac_prog in flex lex
10479 do
10480 # Extract the first word of "$ac_prog", so it can be a program name with args.
10481 set dummy $ac_prog; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_prog_LEX+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 if test -n "$LEX"; then
10488 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10489 else
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10497 ac_cv_prog_LEX="$ac_prog"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10500 fi
10501 done
10502 done
10503 IFS=$as_save_IFS
10504
10505 fi
10506 fi
10507 LEX=$ac_cv_prog_LEX
10508 if test -n "$LEX"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10510 $as_echo "$LEX" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515
10516
10517 test -n "$LEX" && break
10518 done
10519 test -n "$LEX" || LEX="$MISSING flex"
10520
10521 case " $build_configdirs " in
10522 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10523 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10524 esac
10525
10526 for ac_prog in flex
10527 do
10528 # Extract the first word of "$ac_prog", so it can be a program name with args.
10529 set dummy $ac_prog; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531 $as_echo_n "checking for $ac_word... " >&6; }
10532 if ${ac_cv_prog_FLEX+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 if test -n "$FLEX"; then
10536 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10537 else
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_prog_FLEX="$ac_prog"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10548 fi
10549 done
10550 done
10551 IFS=$as_save_IFS
10552
10553 fi
10554 fi
10555 FLEX=$ac_cv_prog_FLEX
10556 if test -n "$FLEX"; then
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10558 $as_echo "$FLEX" >&6; }
10559 else
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10562 fi
10563
10564
10565 test -n "$FLEX" && break
10566 done
10567 test -n "$FLEX" || FLEX="$MISSING flex"
10568
10569 case " $build_configdirs " in
10570 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10571 esac
10572
10573 for ac_prog in makeinfo
10574 do
10575 # Extract the first word of "$ac_prog", so it can be a program name with args.
10576 set dummy $ac_prog; ac_word=$2
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578 $as_echo_n "checking for $ac_word... " >&6; }
10579 if ${ac_cv_prog_MAKEINFO+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 if test -n "$MAKEINFO"; then
10583 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10584 else
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10587 do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592 ac_cv_prog_MAKEINFO="$ac_prog"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596 done
10597 done
10598 IFS=$as_save_IFS
10599
10600 fi
10601 fi
10602 MAKEINFO=$ac_cv_prog_MAKEINFO
10603 if test -n "$MAKEINFO"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10605 $as_echo "$MAKEINFO" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10609 fi
10610
10611
10612 test -n "$MAKEINFO" && break
10613 done
10614 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10615
10616 case " $build_configdirs " in
10617 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10618 *)
10619
10620 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10621 # higher, else we use the "missing" dummy.
10622 if ${MAKEINFO} --version \
10623 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10624 :
10625 else
10626 MAKEINFO="$MISSING makeinfo"
10627 fi
10628 ;;
10629
10630 esac
10631
10632 # FIXME: expect and dejagnu may become build tools?
10633
10634 for ac_prog in expect
10635 do
10636 # Extract the first word of "$ac_prog", so it can be a program name with args.
10637 set dummy $ac_prog; ac_word=$2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if ${ac_cv_prog_EXPECT+:} false; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 if test -n "$EXPECT"; then
10644 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10645 else
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10648 do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_prog_EXPECT="$ac_prog"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657 done
10658 done
10659 IFS=$as_save_IFS
10660
10661 fi
10662 fi
10663 EXPECT=$ac_cv_prog_EXPECT
10664 if test -n "$EXPECT"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10666 $as_echo "$EXPECT" >&6; }
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10670 fi
10671
10672
10673 test -n "$EXPECT" && break
10674 done
10675 test -n "$EXPECT" || EXPECT="expect"
10676
10677 case " $configdirs " in
10678 *" expect "*)
10679 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10680 ;;
10681 esac
10682
10683 for ac_prog in runtest
10684 do
10685 # Extract the first word of "$ac_prog", so it can be a program name with args.
10686 set dummy $ac_prog; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_prog_RUNTEST+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 if test -n "$RUNTEST"; then
10693 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702 ac_cv_prog_RUNTEST="$ac_prog"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10705 fi
10706 done
10707 done
10708 IFS=$as_save_IFS
10709
10710 fi
10711 fi
10712 RUNTEST=$ac_cv_prog_RUNTEST
10713 if test -n "$RUNTEST"; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10715 $as_echo "$RUNTEST" >&6; }
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10719 fi
10720
10721
10722 test -n "$RUNTEST" && break
10723 done
10724 test -n "$RUNTEST" || RUNTEST="runtest"
10725
10726 case " $configdirs " in
10727 *" dejagnu "*)
10728 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10729 ;;
10730 esac
10731
10732
10733 # Host tools.
10734 ncn_tool_prefix=
10735 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10736 ncn_target_tool_prefix=
10737 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10738
10739
10740
10741 if test -n "$AR"; then
10742 ac_cv_prog_AR=$AR
10743 elif test -n "$ac_cv_prog_AR"; then
10744 AR=$ac_cv_prog_AR
10745 fi
10746
10747 if test -n "$ac_cv_prog_AR"; then
10748 for ncn_progname in ar; do
10749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10750 set dummy ${ncn_progname}; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_prog_AR+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 if test -n "$AR"; then
10757 ac_cv_prog_AR="$AR" # Let the user override the test.
10758 else
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10761 do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_AR="${ncn_progname}"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770 done
10771 done
10772 IFS=$as_save_IFS
10773
10774 fi
10775 fi
10776 AR=$ac_cv_prog_AR
10777 if test -n "$AR"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10779 $as_echo "$AR" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10783 fi
10784
10785
10786 done
10787 fi
10788
10789 for ncn_progname in ar; do
10790 if test -n "$ncn_tool_prefix"; then
10791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10792 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if ${ac_cv_prog_AR+:} false; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test -n "$AR"; then
10799 ac_cv_prog_AR="$AR" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10808 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10811 fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 AR=$ac_cv_prog_AR
10819 if test -n "$AR"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10821 $as_echo "$AR" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828 fi
10829 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10831 set dummy ${ncn_progname}; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_prog_AR+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 if test -n "$AR"; then
10838 ac_cv_prog_AR="$AR" # Let the user override the test.
10839 else
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10842 do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_prog_AR="${ncn_progname}"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10850 fi
10851 done
10852 done
10853 IFS=$as_save_IFS
10854
10855 fi
10856 fi
10857 AR=$ac_cv_prog_AR
10858 if test -n "$AR"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10860 $as_echo "$AR" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10864 fi
10865
10866
10867 fi
10868 test -n "$ac_cv_prog_AR" && break
10869 done
10870
10871 if test -z "$ac_cv_prog_AR" ; then
10872 set dummy ar
10873 if test $build = $host ; then
10874 AR="$2"
10875 else
10876 AR="${ncn_tool_prefix}$2"
10877 fi
10878 fi
10879
10880
10881
10882 if test -n "$AS"; then
10883 ac_cv_prog_AS=$AS
10884 elif test -n "$ac_cv_prog_AS"; then
10885 AS=$ac_cv_prog_AS
10886 fi
10887
10888 if test -n "$ac_cv_prog_AS"; then
10889 for ncn_progname in as; do
10890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_prog_AS+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test -n "$AS"; then
10898 ac_cv_prog_AS="$AS" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10902 do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_AS="${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10910 fi
10911 done
10912 done
10913 IFS=$as_save_IFS
10914
10915 fi
10916 fi
10917 AS=$ac_cv_prog_AS
10918 if test -n "$AS"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10920 $as_echo "$AS" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10924 fi
10925
10926
10927 done
10928 fi
10929
10930 for ncn_progname in as; do
10931 if test -n "$ncn_tool_prefix"; then
10932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_prog_AS+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$AS"; then
10940 ac_cv_prog_AS="$AS" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 AS=$ac_cv_prog_AS
10960 if test -n "$AS"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10962 $as_echo "$AS" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967
10968
10969 fi
10970 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_prog_AS+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 if test -n "$AS"; then
10979 ac_cv_prog_AS="$AS" # Let the user override the test.
10980 else
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_prog_AS="${ncn_progname}"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996 fi
10997 fi
10998 AS=$ac_cv_prog_AS
10999 if test -n "$AS"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11001 $as_echo "$AS" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006
11007
11008 fi
11009 test -n "$ac_cv_prog_AS" && break
11010 done
11011
11012 if test -z "$ac_cv_prog_AS" ; then
11013 set dummy as
11014 if test $build = $host ; then
11015 AS="$2"
11016 else
11017 AS="${ncn_tool_prefix}$2"
11018 fi
11019 fi
11020
11021
11022
11023 if test -n "$DLLTOOL"; then
11024 ac_cv_prog_DLLTOOL=$DLLTOOL
11025 elif test -n "$ac_cv_prog_DLLTOOL"; then
11026 DLLTOOL=$ac_cv_prog_DLLTOOL
11027 fi
11028
11029 if test -n "$ac_cv_prog_DLLTOOL"; then
11030 for ncn_progname in dlltool; do
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_DLLTOOL+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$DLLTOOL"; then
11039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_DLLTOOL="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052 done
11053 done
11054 IFS=$as_save_IFS
11055
11056 fi
11057 fi
11058 DLLTOOL=$ac_cv_prog_DLLTOOL
11059 if test -n "$DLLTOOL"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11061 $as_echo "$DLLTOOL" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067
11068 done
11069 fi
11070
11071 for ncn_progname in dlltool; do
11072 if test -n "$ncn_tool_prefix"; then
11073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if ${ac_cv_prog_DLLTOOL+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$DLLTOOL"; then
11081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11085 do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094 done
11095 done
11096 IFS=$as_save_IFS
11097
11098 fi
11099 fi
11100 DLLTOOL=$ac_cv_prog_DLLTOOL
11101 if test -n "$DLLTOOL"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11103 $as_echo "$DLLTOOL" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107 fi
11108
11109
11110 fi
11111 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if ${ac_cv_prog_DLLTOOL+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$DLLTOOL"; then
11120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11124 do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11129 ac_cv_prog_DLLTOOL="${ncn_progname}"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11132 fi
11133 done
11134 done
11135 IFS=$as_save_IFS
11136
11137 fi
11138 fi
11139 DLLTOOL=$ac_cv_prog_DLLTOOL
11140 if test -n "$DLLTOOL"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11142 $as_echo "$DLLTOOL" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147
11148
11149 fi
11150 test -n "$ac_cv_prog_DLLTOOL" && break
11151 done
11152
11153 if test -z "$ac_cv_prog_DLLTOOL" ; then
11154 set dummy dlltool
11155 if test $build = $host ; then
11156 DLLTOOL="$2"
11157 else
11158 DLLTOOL="${ncn_tool_prefix}$2"
11159 fi
11160 fi
11161
11162
11163
11164 if test -n "$DSYMUTIL"; then
11165 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11166 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11168 fi
11169
11170 if test -n "$ac_cv_prog_DSYMUTIL"; then
11171 for ncn_progname in dsymutil; do
11172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test -n "$DSYMUTIL"; then
11180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11184 do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193 done
11194 done
11195 IFS=$as_save_IFS
11196
11197 fi
11198 fi
11199 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11200 if test -n "$DSYMUTIL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11202 $as_echo "$DSYMUTIL" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207
11208
11209 done
11210 fi
11211
11212 for ncn_progname in dsymutil; do
11213 if test -n "$ncn_tool_prefix"; then
11214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -n "$DSYMUTIL"; then
11222 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235 done
11236 done
11237 IFS=$as_save_IFS
11238
11239 fi
11240 fi
11241 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11242 if test -n "$DSYMUTIL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11244 $as_echo "$DSYMUTIL" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251 fi
11252 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254 set dummy ${ncn_progname}; ac_word=$2
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256 $as_echo_n "checking for $ac_word... " >&6; }
11257 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 if test -n "$DSYMUTIL"; then
11261 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274 done
11275 done
11276 IFS=$as_save_IFS
11277
11278 fi
11279 fi
11280 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11281 if test -n "$DSYMUTIL"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11283 $as_echo "$DSYMUTIL" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11287 fi
11288
11289
11290 fi
11291 test -n "$ac_cv_prog_DSYMUTIL" && break
11292 done
11293
11294 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11295 set dummy dsymutil
11296 if test $build = $host ; then
11297 DSYMUTIL="$2"
11298 else
11299 DSYMUTIL="${ncn_tool_prefix}$2"
11300 fi
11301 fi
11302
11303
11304
11305 if test -n "$LD"; then
11306 ac_cv_prog_LD=$LD
11307 elif test -n "$ac_cv_prog_LD"; then
11308 LD=$ac_cv_prog_LD
11309 fi
11310
11311 if test -n "$ac_cv_prog_LD"; then
11312 for ncn_progname in ld; do
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_LD+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$LD"; then
11321 ac_cv_prog_LD="$LD" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_LD="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 LD=$ac_cv_prog_LD
11341 if test -n "$LD"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11343 $as_echo "$LD" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 done
11351 fi
11352
11353 for ncn_progname in ld; do
11354 if test -n "$ncn_tool_prefix"; then
11355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_prog_LD+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 if test -n "$LD"; then
11363 ac_cv_prog_LD="$LD" # Let the user override the test.
11364 else
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11367 do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11375 fi
11376 done
11377 done
11378 IFS=$as_save_IFS
11379
11380 fi
11381 fi
11382 LD=$ac_cv_prog_LD
11383 if test -n "$LD"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11385 $as_echo "$LD" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390
11391
11392 fi
11393 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if ${ac_cv_prog_LD+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$LD"; then
11402 ac_cv_prog_LD="$LD" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_prog_LD="${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 LD=$ac_cv_prog_LD
11422 if test -n "$LD"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11424 $as_echo "$LD" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 test -n "$ac_cv_prog_LD" && break
11433 done
11434
11435 if test -z "$ac_cv_prog_LD" ; then
11436 set dummy ld
11437 if test $build = $host ; then
11438 LD="$2"
11439 else
11440 LD="${ncn_tool_prefix}$2"
11441 fi
11442 fi
11443
11444
11445
11446 if test -n "$LIPO"; then
11447 ac_cv_prog_LIPO=$LIPO
11448 elif test -n "$ac_cv_prog_LIPO"; then
11449 LIPO=$ac_cv_prog_LIPO
11450 fi
11451
11452 if test -n "$ac_cv_prog_LIPO"; then
11453 for ncn_progname in lipo; do
11454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_prog_LIPO+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$LIPO"; then
11462 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_LIPO="${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11474 fi
11475 done
11476 done
11477 IFS=$as_save_IFS
11478
11479 fi
11480 fi
11481 LIPO=$ac_cv_prog_LIPO
11482 if test -n "$LIPO"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11484 $as_echo "$LIPO" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489
11490
11491 done
11492 fi
11493
11494 for ncn_progname in lipo; do
11495 if test -n "$ncn_tool_prefix"; then
11496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_prog_LIPO+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 if test -n "$LIPO"; then
11504 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517 done
11518 done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 LIPO=$ac_cv_prog_LIPO
11524 if test -n "$LIPO"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11526 $as_echo "$LIPO" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533 fi
11534 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11536 set dummy ${ncn_progname}; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_prog_LIPO+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 if test -n "$LIPO"; then
11543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_LIPO="${ncn_progname}"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556 done
11557 done
11558 IFS=$as_save_IFS
11559
11560 fi
11561 fi
11562 LIPO=$ac_cv_prog_LIPO
11563 if test -n "$LIPO"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11565 $as_echo "$LIPO" >&6; }
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11569 fi
11570
11571
11572 fi
11573 test -n "$ac_cv_prog_LIPO" && break
11574 done
11575
11576 if test -z "$ac_cv_prog_LIPO" ; then
11577 set dummy lipo
11578 if test $build = $host ; then
11579 LIPO="$2"
11580 else
11581 LIPO="${ncn_tool_prefix}$2"
11582 fi
11583 fi
11584
11585
11586
11587 if test -n "$NM"; then
11588 ac_cv_prog_NM=$NM
11589 elif test -n "$ac_cv_prog_NM"; then
11590 NM=$ac_cv_prog_NM
11591 fi
11592
11593 if test -n "$ac_cv_prog_NM"; then
11594 for ncn_progname in nm; do
11595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_NM+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test -n "$NM"; then
11603 ac_cv_prog_NM="$NM" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_NM="${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616 done
11617 done
11618 IFS=$as_save_IFS
11619
11620 fi
11621 fi
11622 NM=$ac_cv_prog_NM
11623 if test -n "$NM"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11625 $as_echo "$NM" >&6; }
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11629 fi
11630
11631
11632 done
11633 fi
11634
11635 for ncn_progname in nm; do
11636 if test -n "$ncn_tool_prefix"; then
11637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11638 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_prog_NM+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test -n "$NM"; then
11645 ac_cv_prog_NM="$NM" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 fi
11663 fi
11664 NM=$ac_cv_prog_NM
11665 if test -n "$NM"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11667 $as_echo "$NM" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672
11673
11674 fi
11675 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11677 set dummy ${ncn_progname}; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_prog_NM+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 if test -n "$NM"; then
11684 ac_cv_prog_NM="$NM" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 ac_cv_prog_NM="${ncn_progname}"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11696 fi
11697 done
11698 done
11699 IFS=$as_save_IFS
11700
11701 fi
11702 fi
11703 NM=$ac_cv_prog_NM
11704 if test -n "$NM"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11706 $as_echo "$NM" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712
11713 fi
11714 test -n "$ac_cv_prog_NM" && break
11715 done
11716
11717 if test -z "$ac_cv_prog_NM" ; then
11718 set dummy nm
11719 if test $build = $host ; then
11720 NM="$2"
11721 else
11722 NM="${ncn_tool_prefix}$2"
11723 fi
11724 fi
11725
11726
11727
11728 if test -n "$RANLIB"; then
11729 ac_cv_prog_RANLIB=$RANLIB
11730 elif test -n "$ac_cv_prog_RANLIB"; then
11731 RANLIB=$ac_cv_prog_RANLIB
11732 fi
11733
11734 if test -n "$ac_cv_prog_RANLIB"; then
11735 for ncn_progname in ranlib; do
11736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_RANLIB+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$RANLIB"; then
11744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_RANLIB="${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757 done
11758 done
11759 IFS=$as_save_IFS
11760
11761 fi
11762 fi
11763 RANLIB=$ac_cv_prog_RANLIB
11764 if test -n "$RANLIB"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11766 $as_echo "$RANLIB" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772
11773 done
11774 fi
11775
11776 for ncn_progname in ranlib; do
11777 if test -n "$ncn_tool_prefix"; then
11778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_prog_RANLIB+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 if test -n "$RANLIB"; then
11786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803 fi
11804 fi
11805 RANLIB=$ac_cv_prog_RANLIB
11806 if test -n "$RANLIB"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11808 $as_echo "$RANLIB" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 fi
11813
11814
11815 fi
11816 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11818 set dummy ${ncn_progname}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_prog_RANLIB+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test -n "$RANLIB"; then
11825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_prog_RANLIB="${ncn_progname}"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11837 fi
11838 done
11839 done
11840 IFS=$as_save_IFS
11841
11842 fi
11843 fi
11844 RANLIB=$ac_cv_prog_RANLIB
11845 if test -n "$RANLIB"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11847 $as_echo "$RANLIB" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 fi
11852
11853
11854 fi
11855 test -n "$ac_cv_prog_RANLIB" && break
11856 done
11857
11858 if test -z "$ac_cv_prog_RANLIB" ; then
11859 RANLIB="true"
11860 fi
11861
11862
11863
11864 if test -n "$STRIP"; then
11865 ac_cv_prog_STRIP=$STRIP
11866 elif test -n "$ac_cv_prog_STRIP"; then
11867 STRIP=$ac_cv_prog_STRIP
11868 fi
11869
11870 if test -n "$ac_cv_prog_STRIP"; then
11871 for ncn_progname in strip; do
11872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11873 set dummy ${ncn_progname}; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_prog_STRIP+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 if test -n "$STRIP"; then
11880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_prog_STRIP="${ncn_progname}"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11892 fi
11893 done
11894 done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 STRIP=$ac_cv_prog_STRIP
11900 if test -n "$STRIP"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11902 $as_echo "$STRIP" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909 done
11910 fi
11911
11912 for ncn_progname in strip; do
11913 if test -n "$ncn_tool_prefix"; then
11914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_prog_STRIP+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if test -n "$STRIP"; then
11922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11923 else
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935 done
11936 done
11937 IFS=$as_save_IFS
11938
11939 fi
11940 fi
11941 STRIP=$ac_cv_prog_STRIP
11942 if test -n "$STRIP"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11944 $as_echo "$STRIP" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949
11950
11951 fi
11952 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_STRIP+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$STRIP"; then
11961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_STRIP="${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 STRIP=$ac_cv_prog_STRIP
11981 if test -n "$STRIP"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11983 $as_echo "$STRIP" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 fi
11991 test -n "$ac_cv_prog_STRIP" && break
11992 done
11993
11994 if test -z "$ac_cv_prog_STRIP" ; then
11995 STRIP="true"
11996 fi
11997
11998
11999
12000 if test -n "$WINDRES"; then
12001 ac_cv_prog_WINDRES=$WINDRES
12002 elif test -n "$ac_cv_prog_WINDRES"; then
12003 WINDRES=$ac_cv_prog_WINDRES
12004 fi
12005
12006 if test -n "$ac_cv_prog_WINDRES"; then
12007 for ncn_progname in windres; do
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_prog_WINDRES+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$WINDRES"; then
12016 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_WINDRES="${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029 done
12030 done
12031 IFS=$as_save_IFS
12032
12033 fi
12034 fi
12035 WINDRES=$ac_cv_prog_WINDRES
12036 if test -n "$WINDRES"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12038 $as_echo "$WINDRES" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042 fi
12043
12044
12045 done
12046 fi
12047
12048 for ncn_progname in windres; do
12049 if test -n "$ncn_tool_prefix"; then
12050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_prog_WINDRES+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 if test -n "$WINDRES"; then
12058 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12059 else
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12070 fi
12071 done
12072 done
12073 IFS=$as_save_IFS
12074
12075 fi
12076 fi
12077 WINDRES=$ac_cv_prog_WINDRES
12078 if test -n "$WINDRES"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12080 $as_echo "$WINDRES" >&6; }
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085
12086
12087 fi
12088 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12090 set dummy ${ncn_progname}; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_WINDRES+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 if test -n "$WINDRES"; then
12097 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12098 else
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12101 do
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_WINDRES="${ncn_progname}"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12109 fi
12110 done
12111 done
12112 IFS=$as_save_IFS
12113
12114 fi
12115 fi
12116 WINDRES=$ac_cv_prog_WINDRES
12117 if test -n "$WINDRES"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12119 $as_echo "$WINDRES" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124
12125
12126 fi
12127 test -n "$ac_cv_prog_WINDRES" && break
12128 done
12129
12130 if test -z "$ac_cv_prog_WINDRES" ; then
12131 set dummy windres
12132 if test $build = $host ; then
12133 WINDRES="$2"
12134 else
12135 WINDRES="${ncn_tool_prefix}$2"
12136 fi
12137 fi
12138
12139
12140
12141 if test -n "$WINDMC"; then
12142 ac_cv_prog_WINDMC=$WINDMC
12143 elif test -n "$ac_cv_prog_WINDMC"; then
12144 WINDMC=$ac_cv_prog_WINDMC
12145 fi
12146
12147 if test -n "$ac_cv_prog_WINDMC"; then
12148 for ncn_progname in windmc; do
12149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_WINDMC+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -n "$WINDMC"; then
12157 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_WINDMC="${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12169 fi
12170 done
12171 done
12172 IFS=$as_save_IFS
12173
12174 fi
12175 fi
12176 WINDMC=$ac_cv_prog_WINDMC
12177 if test -n "$WINDMC"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12179 $as_echo "$WINDMC" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186 done
12187 fi
12188
12189 for ncn_progname in windmc; do
12190 if test -n "$ncn_tool_prefix"; then
12191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_WINDMC+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$WINDMC"; then
12199 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 WINDMC=$ac_cv_prog_WINDMC
12219 if test -n "$WINDMC"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12221 $as_echo "$WINDMC" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227
12228 fi
12229 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_prog_WINDMC+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$WINDMC"; then
12238 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_WINDMC="${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251 done
12252 done
12253 IFS=$as_save_IFS
12254
12255 fi
12256 fi
12257 WINDMC=$ac_cv_prog_WINDMC
12258 if test -n "$WINDMC"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12260 $as_echo "$WINDMC" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267 fi
12268 test -n "$ac_cv_prog_WINDMC" && break
12269 done
12270
12271 if test -z "$ac_cv_prog_WINDMC" ; then
12272 set dummy windmc
12273 if test $build = $host ; then
12274 WINDMC="$2"
12275 else
12276 WINDMC="${ncn_tool_prefix}$2"
12277 fi
12278 fi
12279
12280
12281
12282 if test -n "$OBJCOPY"; then
12283 ac_cv_prog_OBJCOPY=$OBJCOPY
12284 elif test -n "$ac_cv_prog_OBJCOPY"; then
12285 OBJCOPY=$ac_cv_prog_OBJCOPY
12286 fi
12287
12288 if test -n "$ac_cv_prog_OBJCOPY"; then
12289 for ncn_progname in objcopy; do
12290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_OBJCOPY+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test -n "$OBJCOPY"; then
12298 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12302 do
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_OBJCOPY="${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12310 fi
12311 done
12312 done
12313 IFS=$as_save_IFS
12314
12315 fi
12316 fi
12317 OBJCOPY=$ac_cv_prog_OBJCOPY
12318 if test -n "$OBJCOPY"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12320 $as_echo "$OBJCOPY" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325
12326
12327 done
12328 fi
12329
12330 for ncn_progname in objcopy; do
12331 if test -n "$ncn_tool_prefix"; then
12332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_OBJCOPY+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$OBJCOPY"; then
12340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 OBJCOPY=$ac_cv_prog_OBJCOPY
12360 if test -n "$OBJCOPY"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12362 $as_echo "$OBJCOPY" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369 fi
12370 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_OBJCOPY+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$OBJCOPY"; then
12379 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_OBJCOPY="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12391 fi
12392 done
12393 done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 OBJCOPY=$ac_cv_prog_OBJCOPY
12399 if test -n "$OBJCOPY"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12401 $as_echo "$OBJCOPY" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408 fi
12409 test -n "$ac_cv_prog_OBJCOPY" && break
12410 done
12411
12412 if test -z "$ac_cv_prog_OBJCOPY" ; then
12413 set dummy objcopy
12414 if test $build = $host ; then
12415 OBJCOPY="$2"
12416 else
12417 OBJCOPY="${ncn_tool_prefix}$2"
12418 fi
12419 fi
12420
12421
12422
12423 if test -n "$OBJDUMP"; then
12424 ac_cv_prog_OBJDUMP=$OBJDUMP
12425 elif test -n "$ac_cv_prog_OBJDUMP"; then
12426 OBJDUMP=$ac_cv_prog_OBJDUMP
12427 fi
12428
12429 if test -n "$ac_cv_prog_OBJDUMP"; then
12430 for ncn_progname in objdump; do
12431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_prog_OBJDUMP+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$OBJDUMP"; then
12439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_OBJDUMP="${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452 done
12453 done
12454 IFS=$as_save_IFS
12455
12456 fi
12457 fi
12458 OBJDUMP=$ac_cv_prog_OBJDUMP
12459 if test -n "$OBJDUMP"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12461 $as_echo "$OBJDUMP" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466
12467
12468 done
12469 fi
12470
12471 for ncn_progname in objdump; do
12472 if test -n "$ncn_tool_prefix"; then
12473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_OBJDUMP+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if test -n "$OBJDUMP"; then
12481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 OBJDUMP=$ac_cv_prog_OBJDUMP
12501 if test -n "$OBJDUMP"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12503 $as_echo "$OBJDUMP" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510 fi
12511 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_OBJDUMP+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$OBJDUMP"; then
12520 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_OBJDUMP="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533 done
12534 done
12535 IFS=$as_save_IFS
12536
12537 fi
12538 fi
12539 OBJDUMP=$ac_cv_prog_OBJDUMP
12540 if test -n "$OBJDUMP"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12542 $as_echo "$OBJDUMP" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 fi
12547
12548
12549 fi
12550 test -n "$ac_cv_prog_OBJDUMP" && break
12551 done
12552
12553 if test -z "$ac_cv_prog_OBJDUMP" ; then
12554 set dummy objdump
12555 if test $build = $host ; then
12556 OBJDUMP="$2"
12557 else
12558 OBJDUMP="${ncn_tool_prefix}$2"
12559 fi
12560 fi
12561
12562
12563
12564 if test -n "$OTOOL"; then
12565 ac_cv_prog_OTOOL=$OTOOL
12566 elif test -n "$ac_cv_prog_OTOOL"; then
12567 OTOOL=$ac_cv_prog_OTOOL
12568 fi
12569
12570 if test -n "$ac_cv_prog_OTOOL"; then
12571 for ncn_progname in otool; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if ${ac_cv_prog_OTOOL+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$OTOOL"; then
12580 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OTOOL="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 fi
12598 fi
12599 OTOOL=$ac_cv_prog_OTOOL
12600 if test -n "$OTOOL"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12602 $as_echo "$OTOOL" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609 done
12610 fi
12611
12612 for ncn_progname in otool; do
12613 if test -n "$ncn_tool_prefix"; then
12614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_OTOOL+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$OTOOL"; then
12622 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635 done
12636 done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 OTOOL=$ac_cv_prog_OTOOL
12642 if test -n "$OTOOL"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12644 $as_echo "$OTOOL" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_prog_OTOOL+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$OTOOL"; then
12661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12665 do
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_OTOOL="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12673 fi
12674 done
12675 done
12676 IFS=$as_save_IFS
12677
12678 fi
12679 fi
12680 OTOOL=$ac_cv_prog_OTOOL
12681 if test -n "$OTOOL"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12683 $as_echo "$OTOOL" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690 fi
12691 test -n "$ac_cv_prog_OTOOL" && break
12692 done
12693
12694 if test -z "$ac_cv_prog_OTOOL" ; then
12695 set dummy otool
12696 if test $build = $host ; then
12697 OTOOL="$2"
12698 else
12699 OTOOL="${ncn_tool_prefix}$2"
12700 fi
12701 fi
12702
12703
12704
12705 if test -n "$READELF"; then
12706 ac_cv_prog_READELF=$READELF
12707 elif test -n "$ac_cv_prog_READELF"; then
12708 READELF=$ac_cv_prog_READELF
12709 fi
12710
12711 if test -n "$ac_cv_prog_READELF"; then
12712 for ncn_progname in readelf; do
12713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_prog_READELF+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$READELF"; then
12721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_READELF="${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736 IFS=$as_save_IFS
12737
12738 fi
12739 fi
12740 READELF=$ac_cv_prog_READELF
12741 if test -n "$READELF"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12743 $as_echo "$READELF" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748
12749
12750 done
12751 fi
12752
12753 for ncn_progname in readelf; do
12754 if test -n "$ncn_tool_prefix"; then
12755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_prog_READELF+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$READELF"; then
12763 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 READELF=$ac_cv_prog_READELF
12783 if test -n "$READELF"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12785 $as_echo "$READELF" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 fi
12793 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_prog_READELF+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$READELF"; then
12802 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_READELF="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12814 fi
12815 done
12816 done
12817 IFS=$as_save_IFS
12818
12819 fi
12820 fi
12821 READELF=$ac_cv_prog_READELF
12822 if test -n "$READELF"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12824 $as_echo "$READELF" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831 fi
12832 test -n "$ac_cv_prog_READELF" && break
12833 done
12834
12835 if test -z "$ac_cv_prog_READELF" ; then
12836 set dummy readelf
12837 if test $build = $host ; then
12838 READELF="$2"
12839 else
12840 READELF="${ncn_tool_prefix}$2"
12841 fi
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851 # Target tools.
12852
12853 # Check whether --with-build-time-tools was given.
12854 if test "${with_build_time_tools+set}" = set; then :
12855 withval=$with_build_time_tools; case x"$withval" in
12856 x/*) ;;
12857 *)
12858 with_build_time_tools=
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12860 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12861 ;;
12862 esac
12863 else
12864 with_build_time_tools=
12865 fi
12866
12867
12868
12869
12870 if test -n "$CC_FOR_TARGET"; then
12871 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12872 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12873 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12874 fi
12875
12876 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12877 for ncn_progname in cc gcc; do
12878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12879 set dummy ${ncn_progname}; ac_word=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 $as_echo_n "checking for $ac_word... " >&6; }
12882 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 if test -n "$CC_FOR_TARGET"; then
12886 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12887 else
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12890 do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899 done
12900 done
12901 IFS=$as_save_IFS
12902
12903 fi
12904 fi
12905 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12906 if test -n "$CC_FOR_TARGET"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12908 $as_echo "$CC_FOR_TARGET" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913
12914
12915 done
12916 fi
12917
12918 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12919 for ncn_progname in cc gcc; do
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12921 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12922 if test -x $with_build_time_tools/${ncn_progname}; then
12923 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12925 $as_echo "yes" >&6; }
12926 break
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931 done
12932 fi
12933
12934 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12935 for ncn_progname in cc gcc; do
12936 if test -n "$ncn_target_tool_prefix"; then
12937 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12938 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 if test -n "$CC_FOR_TARGET"; then
12945 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958 done
12959 done
12960 IFS=$as_save_IFS
12961
12962 fi
12963 fi
12964 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12965 if test -n "$CC_FOR_TARGET"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12967 $as_echo "$CC_FOR_TARGET" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12971 fi
12972
12973
12974 fi
12975 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12977 set dummy ${ncn_progname}; ac_word=$2
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979 $as_echo_n "checking for $ac_word... " >&6; }
12980 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 if test -n "$CC_FOR_TARGET"; then
12984 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12985 else
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 fi
13002 fi
13003 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13004 if test -n "$CC_FOR_TARGET"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13006 $as_echo "$CC_FOR_TARGET" >&6; }
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13010 fi
13011
13012
13013 fi
13014 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13015 done
13016 fi
13017
13018 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13019 set dummy cc gcc
13020 if test $build = $target ; then
13021 CC_FOR_TARGET="$2"
13022 else
13023 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13024 fi
13025 else
13026 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13027 fi
13028
13029
13030
13031 if test -n "$CXX_FOR_TARGET"; then
13032 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13033 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13034 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13035 fi
13036
13037 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13038 for ncn_progname in c++ g++ cxx gxx; do
13039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$CXX_FOR_TARGET"; then
13047 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13051 do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060 done
13061 done
13062 IFS=$as_save_IFS
13063
13064 fi
13065 fi
13066 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13067 if test -n "$CXX_FOR_TARGET"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13069 $as_echo "$CXX_FOR_TARGET" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 fi
13074
13075
13076 done
13077 fi
13078
13079 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13080 for ncn_progname in c++ g++ cxx gxx; do
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13082 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13083 if test -x $with_build_time_tools/${ncn_progname}; then
13084 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13086 $as_echo "yes" >&6; }
13087 break
13088 else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13091 fi
13092 done
13093 fi
13094
13095 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13096 for ncn_progname in c++ g++ cxx gxx; do
13097 if test -n "$ncn_target_tool_prefix"; then
13098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if test -n "$CXX_FOR_TARGET"; then
13106 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13115 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13118 fi
13119 done
13120 done
13121 IFS=$as_save_IFS
13122
13123 fi
13124 fi
13125 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13126 if test -n "$CXX_FOR_TARGET"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13128 $as_echo "$CXX_FOR_TARGET" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132 fi
13133
13134
13135 fi
13136 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13138 set dummy ${ncn_progname}; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 if test -n "$CXX_FOR_TARGET"; then
13145 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 fi
13163 fi
13164 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13165 if test -n "$CXX_FOR_TARGET"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13167 $as_echo "$CXX_FOR_TARGET" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171 fi
13172
13173
13174 fi
13175 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13176 done
13177 fi
13178
13179 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13180 set dummy c++ g++ cxx gxx
13181 if test $build = $target ; then
13182 CXX_FOR_TARGET="$2"
13183 else
13184 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13185 fi
13186 else
13187 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13188 fi
13189
13190
13191
13192 if test -n "$GCC_FOR_TARGET"; then
13193 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13194 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13195 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13196 fi
13197
13198 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13199 for ncn_progname in gcc; do
13200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13201 set dummy ${ncn_progname}; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 if test -n "$GCC_FOR_TARGET"; then
13208 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221 done
13222 done
13223 IFS=$as_save_IFS
13224
13225 fi
13226 fi
13227 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13228 if test -n "$GCC_FOR_TARGET"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13230 $as_echo "$GCC_FOR_TARGET" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 fi
13235
13236
13237 done
13238 fi
13239
13240 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13241 for ncn_progname in gcc; do
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13243 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13244 if test -x $with_build_time_tools/${ncn_progname}; then
13245 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13247 $as_echo "yes" >&6; }
13248 break
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 fi
13253 done
13254 fi
13255
13256 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13257 for ncn_progname in gcc; do
13258 if test -n "$ncn_target_tool_prefix"; then
13259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13260 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 if test -n "$GCC_FOR_TARGET"; then
13267 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13268 else
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13271 do
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278 break 2
13279 fi
13280 done
13281 done
13282 IFS=$as_save_IFS
13283
13284 fi
13285 fi
13286 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13287 if test -n "$GCC_FOR_TARGET"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13289 $as_echo "$GCC_FOR_TARGET" >&6; }
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293 fi
13294
13295
13296 fi
13297 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13299 set dummy ${ncn_progname}; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 if test -n "$GCC_FOR_TARGET"; then
13306 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311 IFS=$as_save_IFS
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13315 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317 break 2
13318 fi
13319 done
13320 done
13321 IFS=$as_save_IFS
13322
13323 fi
13324 fi
13325 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13326 if test -n "$GCC_FOR_TARGET"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13328 $as_echo "$GCC_FOR_TARGET" >&6; }
13329 else
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335 fi
13336 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13337 done
13338 fi
13339
13340 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13341 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13342 else
13343 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13344 fi
13345
13346
13347
13348 if test -n "$GFORTRAN_FOR_TARGET"; then
13349 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13350 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13351 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13352 fi
13353
13354 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13355 for ncn_progname in gfortran; do
13356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13357 set dummy ${ncn_progname}; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -n "$GFORTRAN_FOR_TARGET"; then
13364 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13365 else
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13368 do
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 fi
13382 fi
13383 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13384 if test -n "$GFORTRAN_FOR_TARGET"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13386 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393 done
13394 fi
13395
13396 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13397 for ncn_progname in gfortran; do
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13399 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13400 if test -x $with_build_time_tools/${ncn_progname}; then
13401 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13404 break
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408 fi
13409 done
13410 fi
13411
13412 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13413 for ncn_progname in gfortran; do
13414 if test -n "$ncn_target_tool_prefix"; then
13415 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13416 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418 $as_echo_n "checking for $ac_word... " >&6; }
13419 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 if test -n "$GFORTRAN_FOR_TARGET"; then
13423 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13424 else
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 fi
13441 fi
13442 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13443 if test -n "$GFORTRAN_FOR_TARGET"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13445 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450
13451
13452 fi
13453 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13455 set dummy ${ncn_progname}; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test -n "$GFORTRAN_FOR_TARGET"; then
13462 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13471 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13474 fi
13475 done
13476 done
13477 IFS=$as_save_IFS
13478
13479 fi
13480 fi
13481 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13482 if test -n "$GFORTRAN_FOR_TARGET"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13484 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 fi
13489
13490
13491 fi
13492 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13493 done
13494 fi
13495
13496 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13497 set dummy gfortran
13498 if test $build = $target ; then
13499 GFORTRAN_FOR_TARGET="$2"
13500 else
13501 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13502 fi
13503 else
13504 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13505 fi
13506
13507
13508
13509 if test -n "$GOC_FOR_TARGET"; then
13510 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13511 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13512 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13513 fi
13514
13515 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13516 for ncn_progname in gccgo; do
13517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13518 set dummy ${ncn_progname}; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 if test -n "$GOC_FOR_TARGET"; then
13525 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538 done
13539 done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13545 if test -n "$GOC_FOR_TARGET"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13547 $as_echo "$GOC_FOR_TARGET" >&6; }
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552
13553
13554 done
13555 fi
13556
13557 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13558 for ncn_progname in gccgo; do
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13560 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13561 if test -x $with_build_time_tools/${ncn_progname}; then
13562 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564 $as_echo "yes" >&6; }
13565 break
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13569 fi
13570 done
13571 fi
13572
13573 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13574 for ncn_progname in gccgo; do
13575 if test -n "$ncn_target_tool_prefix"; then
13576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13577 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 $as_echo_n "checking for $ac_word... " >&6; }
13580 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 if test -n "$GOC_FOR_TARGET"; then
13584 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13585 else
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597 done
13598 done
13599 IFS=$as_save_IFS
13600
13601 fi
13602 fi
13603 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13604 if test -n "$GOC_FOR_TARGET"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13606 $as_echo "$GOC_FOR_TARGET" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 fi
13611
13612
13613 fi
13614 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13616 set dummy ${ncn_progname}; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618 $as_echo_n "checking for $ac_word... " >&6; }
13619 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 if test -n "$GOC_FOR_TARGET"; then
13623 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13624 else
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13627 do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13632 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13635 fi
13636 done
13637 done
13638 IFS=$as_save_IFS
13639
13640 fi
13641 fi
13642 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13643 if test -n "$GOC_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13645 $as_echo "$GOC_FOR_TARGET" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13649 fi
13650
13651
13652 fi
13653 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13654 done
13655 fi
13656
13657 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13658 set dummy gccgo
13659 if test $build = $target ; then
13660 GOC_FOR_TARGET="$2"
13661 else
13662 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13663 fi
13664 else
13665 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13666 fi
13667
13668
13669
13670 if test -n "$GDC_FOR_TARGET"; then
13671 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13672 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13673 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13674 fi
13675
13676 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13677 for ncn_progname in gdc; do
13678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13679 set dummy ${ncn_progname}; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 if test -n "$GDC_FOR_TARGET"; then
13686 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13687 else
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 fi
13704 fi
13705 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13706 if test -n "$GDC_FOR_TARGET"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13708 $as_echo "$GDC_FOR_TARGET" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 fi
13713
13714
13715 done
13716 fi
13717
13718 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13719 for ncn_progname in gdc; do
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13721 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13722 if test -x $with_build_time_tools/${ncn_progname}; then
13723 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13725 $as_echo "yes" >&6; }
13726 break
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 fi
13731 done
13732 fi
13733
13734 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13735 for ncn_progname in gdc; do
13736 if test -n "$ncn_target_tool_prefix"; then
13737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13738 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 if test -n "$GDC_FOR_TARGET"; then
13745 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13757 fi
13758 done
13759 done
13760 IFS=$as_save_IFS
13761
13762 fi
13763 fi
13764 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13765 if test -n "$GDC_FOR_TARGET"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13767 $as_echo "$GDC_FOR_TARGET" >&6; }
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771 fi
13772
13773
13774 fi
13775 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13777 set dummy ${ncn_progname}; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 if test -n "$GDC_FOR_TARGET"; then
13784 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13785 else
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13788 do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797 done
13798 done
13799 IFS=$as_save_IFS
13800
13801 fi
13802 fi
13803 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13804 if test -n "$GDC_FOR_TARGET"; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13806 $as_echo "$GDC_FOR_TARGET" >&6; }
13807 else
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13810 fi
13811
13812
13813 fi
13814 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13815 done
13816 fi
13817
13818 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13819 set dummy gdc
13820 if test $build = $target ; then
13821 GDC_FOR_TARGET="$2"
13822 else
13823 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13824 fi
13825 else
13826 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13827 fi
13828
13829
13830
13831 cat > conftest.c << \EOF
13832 #ifdef __GNUC__
13833 gcc_yay;
13834 #endif
13835 EOF
13836 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13837 have_gcc_for_target=yes
13838 else
13839 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13840 have_gcc_for_target=no
13841 fi
13842 rm conftest.c
13843
13844
13845
13846
13847 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13848 if test -n "$with_build_time_tools"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13850 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13851 if test -x $with_build_time_tools/ar; then
13852 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13853 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13855 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13856 else
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13859 fi
13860 elif test $build != $host && test $have_gcc_for_target = yes; then
13861 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13862 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13863 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13864 fi
13865 fi
13866 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13867 # Extract the first word of "ar", so it can be a program name with args.
13868 set dummy ar; ac_word=$2
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870 $as_echo_n "checking for $ac_word... " >&6; }
13871 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 case $AR_FOR_TARGET in
13875 [\\/]* | ?:[\\/]*)
13876 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13877 ;;
13878 *)
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $gcc_cv_tool_dirs
13881 do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13889 fi
13890 done
13891 done
13892 IFS=$as_save_IFS
13893
13894 ;;
13895 esac
13896 fi
13897 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13898 if test -n "$AR_FOR_TARGET"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13900 $as_echo "$AR_FOR_TARGET" >&6; }
13901 else
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13904 fi
13905
13906
13907 fi
13908 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13909
13910
13911 if test -n "$AR_FOR_TARGET"; then
13912 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13913 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13914 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13915 fi
13916
13917 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13918 for ncn_progname in ar; do
13919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13920 set dummy ${ncn_progname}; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 if test -n "$AR_FOR_TARGET"; then
13927 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13939 fi
13940 done
13941 done
13942 IFS=$as_save_IFS
13943
13944 fi
13945 fi
13946 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13947 if test -n "$AR_FOR_TARGET"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13949 $as_echo "$AR_FOR_TARGET" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955
13956 done
13957 fi
13958
13959 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13960 for ncn_progname in ar; do
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13962 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13963 if test -x $with_build_time_tools/${ncn_progname}; then
13964 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13966 $as_echo "yes" >&6; }
13967 break
13968 else
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13971 fi
13972 done
13973 fi
13974
13975 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13976 for ncn_progname in ar; do
13977 if test -n "$ncn_target_tool_prefix"; then
13978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13979 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981 $as_echo_n "checking for $ac_word... " >&6; }
13982 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 if test -n "$AR_FOR_TARGET"; then
13986 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13987 else
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $PATH
13990 do
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 break 2
13998 fi
13999 done
14000 done
14001 IFS=$as_save_IFS
14002
14003 fi
14004 fi
14005 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14006 if test -n "$AR_FOR_TARGET"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14008 $as_echo "$AR_FOR_TARGET" >&6; }
14009 else
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14012 fi
14013
14014
14015 fi
14016 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14018 set dummy ${ncn_progname}; ac_word=$2
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 if test -n "$AR_FOR_TARGET"; then
14025 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14026 else
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14029 do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14034 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038 done
14039 done
14040 IFS=$as_save_IFS
14041
14042 fi
14043 fi
14044 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14045 if test -n "$AR_FOR_TARGET"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14047 $as_echo "$AR_FOR_TARGET" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14051 fi
14052
14053
14054 fi
14055 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14056 done
14057 fi
14058
14059 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14060 set dummy ar
14061 if test $build = $target ; then
14062 AR_FOR_TARGET="$2"
14063 else
14064 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14065 fi
14066 else
14067 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14068 fi
14069
14070 else
14071 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14072 fi
14073
14074
14075
14076
14077 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14078 if test -n "$with_build_time_tools"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14080 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14081 if test -x $with_build_time_tools/as; then
14082 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14083 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14085 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14089 fi
14090 elif test $build != $host && test $have_gcc_for_target = yes; then
14091 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14092 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14093 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14094 fi
14095 fi
14096 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14097 # Extract the first word of "as", so it can be a program name with args.
14098 set dummy as; ac_word=$2
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14100 $as_echo_n "checking for $ac_word... " >&6; }
14101 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 case $AS_FOR_TARGET in
14105 [\\/]* | ?:[\\/]*)
14106 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14107 ;;
14108 *)
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $gcc_cv_tool_dirs
14111 do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14116 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120 done
14121 done
14122 IFS=$as_save_IFS
14123
14124 ;;
14125 esac
14126 fi
14127 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14128 if test -n "$AS_FOR_TARGET"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14130 $as_echo "$AS_FOR_TARGET" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14134 fi
14135
14136
14137 fi
14138 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14139
14140
14141 if test -n "$AS_FOR_TARGET"; then
14142 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14143 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14144 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14145 fi
14146
14147 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14148 for ncn_progname in as; do
14149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14150 set dummy ${ncn_progname}; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 if test -n "$AS_FOR_TARGET"; then
14157 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14158 else
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14161 do
14162 IFS=$as_save_IFS
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14166 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14168 break 2
14169 fi
14170 done
14171 done
14172 IFS=$as_save_IFS
14173
14174 fi
14175 fi
14176 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14177 if test -n "$AS_FOR_TARGET"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14179 $as_echo "$AS_FOR_TARGET" >&6; }
14180 else
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14183 fi
14184
14185
14186 done
14187 fi
14188
14189 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14190 for ncn_progname in as; do
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14192 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14193 if test -x $with_build_time_tools/${ncn_progname}; then
14194 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14196 $as_echo "yes" >&6; }
14197 break
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14201 fi
14202 done
14203 fi
14204
14205 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14206 for ncn_progname in as; do
14207 if test -n "$ncn_target_tool_prefix"; then
14208 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14209 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14211 $as_echo_n "checking for $ac_word... " >&6; }
14212 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 if test -n "$AS_FOR_TARGET"; then
14216 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14217 else
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14220 do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14225 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229 done
14230 done
14231 IFS=$as_save_IFS
14232
14233 fi
14234 fi
14235 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14236 if test -n "$AS_FOR_TARGET"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14238 $as_echo "$AS_FOR_TARGET" >&6; }
14239 else
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242 fi
14243
14244
14245 fi
14246 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14248 set dummy ${ncn_progname}; ac_word=$2
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14250 $as_echo_n "checking for $ac_word... " >&6; }
14251 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 if test -n "$AS_FOR_TARGET"; then
14255 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14256 else
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14259 do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 fi
14273 fi
14274 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14275 if test -n "$AS_FOR_TARGET"; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14277 $as_echo "$AS_FOR_TARGET" >&6; }
14278 else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 $as_echo "no" >&6; }
14281 fi
14282
14283
14284 fi
14285 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14286 done
14287 fi
14288
14289 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14290 set dummy as
14291 if test $build = $target ; then
14292 AS_FOR_TARGET="$2"
14293 else
14294 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14295 fi
14296 else
14297 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14298 fi
14299
14300 else
14301 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14302 fi
14303
14304
14305
14306
14307 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14308 if test -n "$with_build_time_tools"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14310 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14311 if test -x $with_build_time_tools/dlltool; then
14312 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14313 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14315 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 fi
14320 elif test $build != $host && test $have_gcc_for_target = yes; then
14321 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14322 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14323 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14324 fi
14325 fi
14326 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14327 # Extract the first word of "dlltool", so it can be a program name with args.
14328 set dummy dlltool; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330 $as_echo_n "checking for $ac_word... " >&6; }
14331 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 case $DLLTOOL_FOR_TARGET in
14335 [\\/]* | ?:[\\/]*)
14336 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14337 ;;
14338 *)
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $gcc_cv_tool_dirs
14341 do
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
14345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14346 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 break 2
14349 fi
14350 done
14351 done
14352 IFS=$as_save_IFS
14353
14354 ;;
14355 esac
14356 fi
14357 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14358 if test -n "$DLLTOOL_FOR_TARGET"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14360 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14361 else
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363 $as_echo "no" >&6; }
14364 fi
14365
14366
14367 fi
14368 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14369
14370
14371 if test -n "$DLLTOOL_FOR_TARGET"; then
14372 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14373 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14374 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14375 fi
14376
14377 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14378 for ncn_progname in dlltool; do
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_DLLTOOL_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 if test -n "$DLLTOOL_FOR_TARGET"; then
14387 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_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 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14407 if test -n "$DLLTOOL_FOR_TARGET"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14409 $as_echo "$DLLTOOL_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 done
14417 fi
14418
14419 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14420 for ncn_progname in dlltool; do
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14422 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14423 if test -x $with_build_time_tools/${ncn_progname}; then
14424 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14426 $as_echo "yes" >&6; }
14427 break
14428 else
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14431 fi
14432 done
14433 fi
14434
14435 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14436 for ncn_progname in dlltool; do
14437 if test -n "$ncn_target_tool_prefix"; then
14438 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14439 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14441 $as_echo_n "checking for $ac_word... " >&6; }
14442 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 if test -n "$DLLTOOL_FOR_TARGET"; then
14446 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14447 else
14448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14449 for as_dir in $PATH
14450 do
14451 IFS=$as_save_IFS
14452 test -z "$as_dir" && as_dir=.
14453 for ac_exec_ext in '' $ac_executable_extensions; do
14454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14455 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 break 2
14458 fi
14459 done
14460 done
14461 IFS=$as_save_IFS
14462
14463 fi
14464 fi
14465 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14466 if test -n "$DLLTOOL_FOR_TARGET"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14468 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14469 else
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14472 fi
14473
14474
14475 fi
14476 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14478 set dummy ${ncn_progname}; ac_word=$2
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 $as_echo_n "checking for $ac_word... " >&6; }
14481 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 if test -n "$DLLTOOL_FOR_TARGET"; then
14485 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14497 fi
14498 done
14499 done
14500 IFS=$as_save_IFS
14501
14502 fi
14503 fi
14504 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14505 if test -n "$DLLTOOL_FOR_TARGET"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14507 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 fi
14512
14513
14514 fi
14515 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14516 done
14517 fi
14518
14519 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14520 set dummy dlltool
14521 if test $build = $target ; then
14522 DLLTOOL_FOR_TARGET="$2"
14523 else
14524 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14525 fi
14526 else
14527 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14528 fi
14529
14530 else
14531 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14532 fi
14533
14534
14535
14536
14537 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14538 if test -n "$with_build_time_tools"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14540 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14541 if test -x $with_build_time_tools/dsymutil; then
14542 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14543 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14545 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14546 else
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14548 $as_echo "no" >&6; }
14549 fi
14550 elif test $build != $host && test $have_gcc_for_target = yes; then
14551 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14552 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14553 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14554 fi
14555 fi
14556 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14557 # Extract the first word of "dsymutil", so it can be a program name with args.
14558 set dummy dsymutil; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 case $DSYMUTIL_FOR_TARGET in
14565 [\\/]* | ?:[\\/]*)
14566 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14567 ;;
14568 *)
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $gcc_cv_tool_dirs
14571 do
14572 IFS=$as_save_IFS
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14576 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14578 break 2
14579 fi
14580 done
14581 done
14582 IFS=$as_save_IFS
14583
14584 ;;
14585 esac
14586 fi
14587 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14588 if test -n "$DSYMUTIL_FOR_TARGET"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14590 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14594 fi
14595
14596
14597 fi
14598 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14599
14600
14601 if test -n "$DSYMUTIL_FOR_TARGET"; then
14602 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14603 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14604 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14605 fi
14606
14607 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14608 for ncn_progname in dsymutil; do
14609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14610 set dummy ${ncn_progname}; ac_word=$2
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14612 $as_echo_n "checking for $ac_word... " >&6; }
14613 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 if test -n "$DSYMUTIL_FOR_TARGET"; then
14617 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14618 else
14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14621 do
14622 IFS=$as_save_IFS
14623 test -z "$as_dir" && as_dir=.
14624 for ac_exec_ext in '' $ac_executable_extensions; do
14625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14626 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14628 break 2
14629 fi
14630 done
14631 done
14632 IFS=$as_save_IFS
14633
14634 fi
14635 fi
14636 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14637 if test -n "$DSYMUTIL_FOR_TARGET"; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14639 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14640 else
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 $as_echo "no" >&6; }
14643 fi
14644
14645
14646 done
14647 fi
14648
14649 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14650 for ncn_progname in dsymutil; do
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14652 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14653 if test -x $with_build_time_tools/${ncn_progname}; then
14654 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14656 $as_echo "yes" >&6; }
14657 break
14658 else
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661 fi
14662 done
14663 fi
14664
14665 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14666 for ncn_progname in dsymutil; do
14667 if test -n "$ncn_target_tool_prefix"; then
14668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14671 $as_echo_n "checking for $ac_word... " >&6; }
14672 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 if test -n "$DSYMUTIL_FOR_TARGET"; then
14676 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14677 else
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14680 do
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14688 fi
14689 done
14690 done
14691 IFS=$as_save_IFS
14692
14693 fi
14694 fi
14695 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14696 if test -n "$DSYMUTIL_FOR_TARGET"; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14698 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14699 else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14702 fi
14703
14704
14705 fi
14706 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14708 set dummy ${ncn_progname}; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 $as_echo_n "checking for $ac_word... " >&6; }
14711 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 if test -n "$DSYMUTIL_FOR_TARGET"; then
14715 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14716 else
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14719 do
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14727 fi
14728 done
14729 done
14730 IFS=$as_save_IFS
14731
14732 fi
14733 fi
14734 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14735 if test -n "$DSYMUTIL_FOR_TARGET"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14737 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14741 fi
14742
14743
14744 fi
14745 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14746 done
14747 fi
14748
14749 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14750 set dummy dsymutil
14751 if test $build = $target ; then
14752 DSYMUTIL_FOR_TARGET="$2"
14753 else
14754 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14755 fi
14756 else
14757 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14758 fi
14759
14760 else
14761 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14762 fi
14763
14764
14765
14766
14767 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14768 if test -n "$with_build_time_tools"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14770 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14771 if test -x $with_build_time_tools/ld; then
14772 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14773 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14775 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14776 else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778 $as_echo "no" >&6; }
14779 fi
14780 elif test $build != $host && test $have_gcc_for_target = yes; then
14781 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14782 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14783 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14784 fi
14785 fi
14786 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14787 # Extract the first word of "ld", so it can be a program name with args.
14788 set dummy ld; ac_word=$2
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14790 $as_echo_n "checking for $ac_word... " >&6; }
14791 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 case $LD_FOR_TARGET in
14795 [\\/]* | ?:[\\/]*)
14796 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14797 ;;
14798 *)
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $gcc_cv_tool_dirs
14801 do
14802 IFS=$as_save_IFS
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14808 break 2
14809 fi
14810 done
14811 done
14812 IFS=$as_save_IFS
14813
14814 ;;
14815 esac
14816 fi
14817 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14818 if test -n "$LD_FOR_TARGET"; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14820 $as_echo "$LD_FOR_TARGET" >&6; }
14821 else
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14824 fi
14825
14826
14827 fi
14828 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14829
14830
14831 if test -n "$LD_FOR_TARGET"; then
14832 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14833 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14834 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14835 fi
14836
14837 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14838 for ncn_progname in ld; do
14839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14840 set dummy ${ncn_progname}; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 if test -n "$LD_FOR_TARGET"; then
14847 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14848 else
14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14850 for as_dir in $PATH
14851 do
14852 IFS=$as_save_IFS
14853 test -z "$as_dir" && as_dir=.
14854 for ac_exec_ext in '' $ac_executable_extensions; do
14855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14856 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14858 break 2
14859 fi
14860 done
14861 done
14862 IFS=$as_save_IFS
14863
14864 fi
14865 fi
14866 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14867 if test -n "$LD_FOR_TARGET"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14869 $as_echo "$LD_FOR_TARGET" >&6; }
14870 else
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875
14876 done
14877 fi
14878
14879 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14880 for ncn_progname in ld; do
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14882 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14883 if test -x $with_build_time_tools/${ncn_progname}; then
14884 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886 $as_echo "yes" >&6; }
14887 break
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892 done
14893 fi
14894
14895 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14896 for ncn_progname in ld; do
14897 if test -n "$ncn_target_tool_prefix"; then
14898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14899 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14901 $as_echo_n "checking for $ac_word... " >&6; }
14902 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 if test -n "$LD_FOR_TARGET"; then
14906 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14907 else
14908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14909 for as_dir in $PATH
14910 do
14911 IFS=$as_save_IFS
14912 test -z "$as_dir" && as_dir=.
14913 for ac_exec_ext in '' $ac_executable_extensions; do
14914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14915 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14917 break 2
14918 fi
14919 done
14920 done
14921 IFS=$as_save_IFS
14922
14923 fi
14924 fi
14925 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14926 if test -n "$LD_FOR_TARGET"; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14928 $as_echo "$LD_FOR_TARGET" >&6; }
14929 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14932 fi
14933
14934
14935 fi
14936 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14938 set dummy ${ncn_progname}; ac_word=$2
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14940 $as_echo_n "checking for $ac_word... " >&6; }
14941 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 if test -n "$LD_FOR_TARGET"; then
14945 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14946 else
14947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14949 do
14950 IFS=$as_save_IFS
14951 test -z "$as_dir" && as_dir=.
14952 for ac_exec_ext in '' $ac_executable_extensions; do
14953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14954 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14956 break 2
14957 fi
14958 done
14959 done
14960 IFS=$as_save_IFS
14961
14962 fi
14963 fi
14964 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14965 if test -n "$LD_FOR_TARGET"; then
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14967 $as_echo "$LD_FOR_TARGET" >&6; }
14968 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 $as_echo "no" >&6; }
14971 fi
14972
14973
14974 fi
14975 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14976 done
14977 fi
14978
14979 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14980 set dummy ld
14981 if test $build = $target ; then
14982 LD_FOR_TARGET="$2"
14983 else
14984 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14985 fi
14986 else
14987 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14988 fi
14989
14990 else
14991 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14992 fi
14993
14994
14995
14996
14997 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14998 if test -n "$with_build_time_tools"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15000 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15001 if test -x $with_build_time_tools/lipo; then
15002 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15003 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15005 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15009 fi
15010 elif test $build != $host && test $have_gcc_for_target = yes; then
15011 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15012 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15013 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15014 fi
15015 fi
15016 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15017 # Extract the first word of "lipo", so it can be a program name with args.
15018 set dummy lipo; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 case $LIPO_FOR_TARGET in
15025 [\\/]* | ?:[\\/]*)
15026 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15027 ;;
15028 *)
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $gcc_cv_tool_dirs
15031 do
15032 IFS=$as_save_IFS
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15038 break 2
15039 fi
15040 done
15041 done
15042 IFS=$as_save_IFS
15043
15044 ;;
15045 esac
15046 fi
15047 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15048 if test -n "$LIPO_FOR_TARGET"; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15050 $as_echo "$LIPO_FOR_TARGET" >&6; }
15051 else
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15054 fi
15055
15056
15057 fi
15058 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15059
15060
15061 if test -n "$LIPO_FOR_TARGET"; then
15062 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15063 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15064 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15065 fi
15066
15067 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15068 for ncn_progname in lipo; do
15069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15070 set dummy ${ncn_progname}; ac_word=$2
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15072 $as_echo_n "checking for $ac_word... " >&6; }
15073 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 if test -n "$LIPO_FOR_TARGET"; then
15077 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15078 else
15079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080 for as_dir in $PATH
15081 do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090 done
15091 done
15092 IFS=$as_save_IFS
15093
15094 fi
15095 fi
15096 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15097 if test -n "$LIPO_FOR_TARGET"; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15099 $as_echo "$LIPO_FOR_TARGET" >&6; }
15100 else
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103 fi
15104
15105
15106 done
15107 fi
15108
15109 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15110 for ncn_progname in lipo; do
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15112 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15113 if test -x $with_build_time_tools/${ncn_progname}; then
15114 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15116 $as_echo "yes" >&6; }
15117 break
15118 else
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 $as_echo "no" >&6; }
15121 fi
15122 done
15123 fi
15124
15125 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15126 for ncn_progname in lipo; do
15127 if test -n "$ncn_target_tool_prefix"; then
15128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15129 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15131 $as_echo_n "checking for $ac_word... " >&6; }
15132 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if test -n "$LIPO_FOR_TARGET"; then
15136 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15137 else
15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139 for as_dir in $PATH
15140 do
15141 IFS=$as_save_IFS
15142 test -z "$as_dir" && as_dir=.
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15147 break 2
15148 fi
15149 done
15150 done
15151 IFS=$as_save_IFS
15152
15153 fi
15154 fi
15155 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15156 if test -n "$LIPO_FOR_TARGET"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15158 $as_echo "$LIPO_FOR_TARGET" >&6; }
15159 else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15162 fi
15163
15164
15165 fi
15166 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15168 set dummy ${ncn_progname}; ac_word=$2
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15170 $as_echo_n "checking for $ac_word... " >&6; }
15171 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 if test -n "$LIPO_FOR_TARGET"; then
15175 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15176 else
15177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 for as_dir in $PATH
15179 do
15180 IFS=$as_save_IFS
15181 test -z "$as_dir" && as_dir=.
15182 for ac_exec_ext in '' $ac_executable_extensions; do
15183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15184 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15186 break 2
15187 fi
15188 done
15189 done
15190 IFS=$as_save_IFS
15191
15192 fi
15193 fi
15194 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15195 if test -n "$LIPO_FOR_TARGET"; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15197 $as_echo "$LIPO_FOR_TARGET" >&6; }
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15201 fi
15202
15203
15204 fi
15205 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15206 done
15207 fi
15208
15209 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15210 set dummy lipo
15211 if test $build = $target ; then
15212 LIPO_FOR_TARGET="$2"
15213 else
15214 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15215 fi
15216 else
15217 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15218 fi
15219
15220 else
15221 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15222 fi
15223
15224
15225
15226
15227 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15228 if test -n "$with_build_time_tools"; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15230 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15231 if test -x $with_build_time_tools/nm; then
15232 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15233 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15235 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15236 else
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }
15239 fi
15240 elif test $build != $host && test $have_gcc_for_target = yes; then
15241 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15242 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15243 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15244 fi
15245 fi
15246 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15247 # Extract the first word of "nm", so it can be a program name with args.
15248 set dummy nm; ac_word=$2
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15250 $as_echo_n "checking for $ac_word... " >&6; }
15251 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 case $NM_FOR_TARGET in
15255 [\\/]* | ?:[\\/]*)
15256 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15257 ;;
15258 *)
15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $gcc_cv_tool_dirs
15261 do
15262 IFS=$as_save_IFS
15263 test -z "$as_dir" && as_dir=.
15264 for ac_exec_ext in '' $ac_executable_extensions; do
15265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15268 break 2
15269 fi
15270 done
15271 done
15272 IFS=$as_save_IFS
15273
15274 ;;
15275 esac
15276 fi
15277 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15278 if test -n "$NM_FOR_TARGET"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15280 $as_echo "$NM_FOR_TARGET" >&6; }
15281 else
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283 $as_echo "no" >&6; }
15284 fi
15285
15286
15287 fi
15288 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15289
15290
15291 if test -n "$NM_FOR_TARGET"; then
15292 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15293 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15294 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15295 fi
15296
15297 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15298 for ncn_progname in nm; do
15299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15300 set dummy ${ncn_progname}; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15302 $as_echo_n "checking for $ac_word... " >&6; }
15303 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 if test -n "$NM_FOR_TARGET"; then
15307 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15308 else
15309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15310 for as_dir in $PATH
15311 do
15312 IFS=$as_save_IFS
15313 test -z "$as_dir" && as_dir=.
15314 for ac_exec_ext in '' $ac_executable_extensions; do
15315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15316 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15318 break 2
15319 fi
15320 done
15321 done
15322 IFS=$as_save_IFS
15323
15324 fi
15325 fi
15326 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15327 if test -n "$NM_FOR_TARGET"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15329 $as_echo "$NM_FOR_TARGET" >&6; }
15330 else
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15333 fi
15334
15335
15336 done
15337 fi
15338
15339 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15340 for ncn_progname in nm; do
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15342 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15343 if test -x $with_build_time_tools/${ncn_progname}; then
15344 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15346 $as_echo "yes" >&6; }
15347 break
15348 else
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351 fi
15352 done
15353 fi
15354
15355 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15356 for ncn_progname in nm; do
15357 if test -n "$ncn_target_tool_prefix"; then
15358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15359 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15361 $as_echo_n "checking for $ac_word... " >&6; }
15362 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15363 $as_echo_n "(cached) " >&6
15364 else
15365 if test -n "$NM_FOR_TARGET"; then
15366 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15367 else
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $PATH
15370 do
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
15373 for ac_exec_ext in '' $ac_executable_extensions; do
15374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15375 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15377 break 2
15378 fi
15379 done
15380 done
15381 IFS=$as_save_IFS
15382
15383 fi
15384 fi
15385 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15386 if test -n "$NM_FOR_TARGET"; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15388 $as_echo "$NM_FOR_TARGET" >&6; }
15389 else
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391 $as_echo "no" >&6; }
15392 fi
15393
15394
15395 fi
15396 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15398 set dummy ${ncn_progname}; ac_word=$2
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15400 $as_echo_n "checking for $ac_word... " >&6; }
15401 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 if test -n "$NM_FOR_TARGET"; then
15405 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15406 else
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408 for as_dir in $PATH
15409 do
15410 IFS=$as_save_IFS
15411 test -z "$as_dir" && as_dir=.
15412 for ac_exec_ext in '' $ac_executable_extensions; do
15413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15414 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15416 break 2
15417 fi
15418 done
15419 done
15420 IFS=$as_save_IFS
15421
15422 fi
15423 fi
15424 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15425 if test -n "$NM_FOR_TARGET"; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15427 $as_echo "$NM_FOR_TARGET" >&6; }
15428 else
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 $as_echo "no" >&6; }
15431 fi
15432
15433
15434 fi
15435 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15436 done
15437 fi
15438
15439 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15440 set dummy nm
15441 if test $build = $target ; then
15442 NM_FOR_TARGET="$2"
15443 else
15444 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15445 fi
15446 else
15447 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15448 fi
15449
15450 else
15451 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15452 fi
15453
15454
15455
15456
15457 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15458 if test -n "$with_build_time_tools"; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15460 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15461 if test -x $with_build_time_tools/objcopy; then
15462 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15463 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15465 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15466 else
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468 $as_echo "no" >&6; }
15469 fi
15470 elif test $build != $host && test $have_gcc_for_target = yes; then
15471 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15472 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15473 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15474 fi
15475 fi
15476 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15477 # Extract the first word of "objcopy", so it can be a program name with args.
15478 set dummy objcopy; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15480 $as_echo_n "checking for $ac_word... " >&6; }
15481 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 case $OBJCOPY_FOR_TARGET in
15485 [\\/]* | ?:[\\/]*)
15486 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15487 ;;
15488 *)
15489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490 for as_dir in $gcc_cv_tool_dirs
15491 do
15492 IFS=$as_save_IFS
15493 test -z "$as_dir" && as_dir=.
15494 for ac_exec_ext in '' $ac_executable_extensions; do
15495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15496 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15498 break 2
15499 fi
15500 done
15501 done
15502 IFS=$as_save_IFS
15503
15504 ;;
15505 esac
15506 fi
15507 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15508 if test -n "$OBJCOPY_FOR_TARGET"; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15510 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 $as_echo "no" >&6; }
15514 fi
15515
15516
15517 fi
15518 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15519
15520
15521 if test -n "$OBJCOPY_FOR_TARGET"; then
15522 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15523 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15524 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15525 fi
15526
15527 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15528 for ncn_progname in objcopy; do
15529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15530 set dummy ${ncn_progname}; ac_word=$2
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15532 $as_echo_n "checking for $ac_word... " >&6; }
15533 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 if test -n "$OBJCOPY_FOR_TARGET"; then
15537 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15538 else
15539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15540 for as_dir in $PATH
15541 do
15542 IFS=$as_save_IFS
15543 test -z "$as_dir" && as_dir=.
15544 for ac_exec_ext in '' $ac_executable_extensions; do
15545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15546 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15548 break 2
15549 fi
15550 done
15551 done
15552 IFS=$as_save_IFS
15553
15554 fi
15555 fi
15556 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15557 if test -n "$OBJCOPY_FOR_TARGET"; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15559 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15560 else
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562 $as_echo "no" >&6; }
15563 fi
15564
15565
15566 done
15567 fi
15568
15569 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15570 for ncn_progname in objcopy; do
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15573 if test -x $with_build_time_tools/${ncn_progname}; then
15574 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15577 break
15578 else
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580 $as_echo "no" >&6; }
15581 fi
15582 done
15583 fi
15584
15585 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15586 for ncn_progname in objcopy; do
15587 if test -n "$ncn_target_tool_prefix"; then
15588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15591 $as_echo_n "checking for $ac_word... " >&6; }
15592 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 if test -n "$OBJCOPY_FOR_TARGET"; then
15596 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15597 else
15598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15599 for as_dir in $PATH
15600 do
15601 IFS=$as_save_IFS
15602 test -z "$as_dir" && as_dir=.
15603 for ac_exec_ext in '' $ac_executable_extensions; do
15604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15605 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 break 2
15608 fi
15609 done
15610 done
15611 IFS=$as_save_IFS
15612
15613 fi
15614 fi
15615 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15616 if test -n "$OBJCOPY_FOR_TARGET"; then
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15618 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15619 else
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15621 $as_echo "no" >&6; }
15622 fi
15623
15624
15625 fi
15626 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15628 set dummy ${ncn_progname}; ac_word=$2
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 if test -n "$OBJCOPY_FOR_TARGET"; then
15635 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15636 else
15637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640 IFS=$as_save_IFS
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15644 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15646 break 2
15647 fi
15648 done
15649 done
15650 IFS=$as_save_IFS
15651
15652 fi
15653 fi
15654 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15655 if test -n "$OBJCOPY_FOR_TARGET"; then
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15657 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15658 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 $as_echo "no" >&6; }
15661 fi
15662
15663
15664 fi
15665 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15666 done
15667 fi
15668
15669 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15670 set dummy objcopy
15671 if test $build = $target ; then
15672 OBJCOPY_FOR_TARGET="$2"
15673 else
15674 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15675 fi
15676 else
15677 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15678 fi
15679
15680 else
15681 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15682 fi
15683
15684
15685
15686
15687 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15688 if test -n "$with_build_time_tools"; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15690 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15691 if test -x $with_build_time_tools/objdump; then
15692 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15693 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15695 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15696 else
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698 $as_echo "no" >&6; }
15699 fi
15700 elif test $build != $host && test $have_gcc_for_target = yes; then
15701 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15702 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15703 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15704 fi
15705 fi
15706 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15707 # Extract the first word of "objdump", so it can be a program name with args.
15708 set dummy objdump; ac_word=$2
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15710 $as_echo_n "checking for $ac_word... " >&6; }
15711 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 case $OBJDUMP_FOR_TARGET in
15715 [\\/]* | ?:[\\/]*)
15716 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15717 ;;
15718 *)
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $gcc_cv_tool_dirs
15721 do
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15728 break 2
15729 fi
15730 done
15731 done
15732 IFS=$as_save_IFS
15733
15734 ;;
15735 esac
15736 fi
15737 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15738 if test -n "$OBJDUMP_FOR_TARGET"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15740 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15744 fi
15745
15746
15747 fi
15748 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15749
15750
15751 if test -n "$OBJDUMP_FOR_TARGET"; then
15752 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15753 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15754 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15755 fi
15756
15757 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15758 for ncn_progname in objdump; do
15759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15760 set dummy ${ncn_progname}; ac_word=$2
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15762 $as_echo_n "checking for $ac_word... " >&6; }
15763 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 if test -n "$OBJDUMP_FOR_TARGET"; then
15767 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15768 else
15769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15771 do
15772 IFS=$as_save_IFS
15773 test -z "$as_dir" && as_dir=.
15774 for ac_exec_ext in '' $ac_executable_extensions; do
15775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15776 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15778 break 2
15779 fi
15780 done
15781 done
15782 IFS=$as_save_IFS
15783
15784 fi
15785 fi
15786 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15787 if test -n "$OBJDUMP_FOR_TARGET"; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15789 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15790 else
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15793 fi
15794
15795
15796 done
15797 fi
15798
15799 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15800 for ncn_progname in objdump; do
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15802 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15803 if test -x $with_build_time_tools/${ncn_progname}; then
15804 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15806 $as_echo "yes" >&6; }
15807 break
15808 else
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 $as_echo "no" >&6; }
15811 fi
15812 done
15813 fi
15814
15815 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15816 for ncn_progname in objdump; do
15817 if test -n "$ncn_target_tool_prefix"; then
15818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15821 $as_echo_n "checking for $ac_word... " >&6; }
15822 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 if test -n "$OBJDUMP_FOR_TARGET"; then
15826 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15827 else
15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829 for as_dir in $PATH
15830 do
15831 IFS=$as_save_IFS
15832 test -z "$as_dir" && as_dir=.
15833 for ac_exec_ext in '' $ac_executable_extensions; do
15834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15835 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15837 break 2
15838 fi
15839 done
15840 done
15841 IFS=$as_save_IFS
15842
15843 fi
15844 fi
15845 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15846 if test -n "$OBJDUMP_FOR_TARGET"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15848 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15849 else
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15852 fi
15853
15854
15855 fi
15856 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15858 set dummy ${ncn_progname}; ac_word=$2
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15860 $as_echo_n "checking for $ac_word... " >&6; }
15861 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 if test -n "$OBJDUMP_FOR_TARGET"; then
15865 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15866 else
15867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15868 for as_dir in $PATH
15869 do
15870 IFS=$as_save_IFS
15871 test -z "$as_dir" && as_dir=.
15872 for ac_exec_ext in '' $ac_executable_extensions; do
15873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15874 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15876 break 2
15877 fi
15878 done
15879 done
15880 IFS=$as_save_IFS
15881
15882 fi
15883 fi
15884 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15885 if test -n "$OBJDUMP_FOR_TARGET"; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15887 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15888 else
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890 $as_echo "no" >&6; }
15891 fi
15892
15893
15894 fi
15895 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15896 done
15897 fi
15898
15899 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15900 set dummy objdump
15901 if test $build = $target ; then
15902 OBJDUMP_FOR_TARGET="$2"
15903 else
15904 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15905 fi
15906 else
15907 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15908 fi
15909
15910 else
15911 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15912 fi
15913
15914
15915
15916
15917 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15918 if test -n "$with_build_time_tools"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15920 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15921 if test -x $with_build_time_tools/otool; then
15922 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15923 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15925 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15926 else
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15929 fi
15930 elif test $build != $host && test $have_gcc_for_target = yes; then
15931 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15932 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15933 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15934 fi
15935 fi
15936 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15937 # Extract the first word of "otool", so it can be a program name with args.
15938 set dummy otool; ac_word=$2
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15940 $as_echo_n "checking for $ac_word... " >&6; }
15941 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 case $OTOOL_FOR_TARGET in
15945 [\\/]* | ?:[\\/]*)
15946 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15947 ;;
15948 *)
15949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15950 for as_dir in $gcc_cv_tool_dirs
15951 do
15952 IFS=$as_save_IFS
15953 test -z "$as_dir" && as_dir=.
15954 for ac_exec_ext in '' $ac_executable_extensions; do
15955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15956 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15958 break 2
15959 fi
15960 done
15961 done
15962 IFS=$as_save_IFS
15963
15964 ;;
15965 esac
15966 fi
15967 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15968 if test -n "$OTOOL_FOR_TARGET"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15970 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15971 else
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 $as_echo "no" >&6; }
15974 fi
15975
15976
15977 fi
15978 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15979
15980
15981 if test -n "$OTOOL_FOR_TARGET"; then
15982 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15983 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15984 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15985 fi
15986
15987 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15988 for ncn_progname in otool; do
15989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15990 set dummy ${ncn_progname}; ac_word=$2
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15992 $as_echo_n "checking for $ac_word... " >&6; }
15993 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995 else
15996 if test -n "$OTOOL_FOR_TARGET"; then
15997 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15998 else
15999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16000 for as_dir in $PATH
16001 do
16002 IFS=$as_save_IFS
16003 test -z "$as_dir" && as_dir=.
16004 for ac_exec_ext in '' $ac_executable_extensions; do
16005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16006 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16008 break 2
16009 fi
16010 done
16011 done
16012 IFS=$as_save_IFS
16013
16014 fi
16015 fi
16016 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16017 if test -n "$OTOOL_FOR_TARGET"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16019 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16020 else
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022 $as_echo "no" >&6; }
16023 fi
16024
16025
16026 done
16027 fi
16028
16029 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16030 for ncn_progname in otool; do
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16032 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16033 if test -x $with_build_time_tools/${ncn_progname}; then
16034 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037 break
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16041 fi
16042 done
16043 fi
16044
16045 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16046 for ncn_progname in otool; do
16047 if test -n "$ncn_target_tool_prefix"; then
16048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16051 $as_echo_n "checking for $ac_word... " >&6; }
16052 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 if test -n "$OTOOL_FOR_TARGET"; then
16056 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16057 else
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $PATH
16060 do
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16068 fi
16069 done
16070 done
16071 IFS=$as_save_IFS
16072
16073 fi
16074 fi
16075 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16076 if test -n "$OTOOL_FOR_TARGET"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16078 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082 fi
16083
16084
16085 fi
16086 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16088 set dummy ${ncn_progname}; ac_word=$2
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16090 $as_echo_n "checking for $ac_word... " >&6; }
16091 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093 else
16094 if test -n "$OTOOL_FOR_TARGET"; then
16095 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16096 else
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $PATH
16099 do
16100 IFS=$as_save_IFS
16101 test -z "$as_dir" && as_dir=.
16102 for ac_exec_ext in '' $ac_executable_extensions; do
16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16106 break 2
16107 fi
16108 done
16109 done
16110 IFS=$as_save_IFS
16111
16112 fi
16113 fi
16114 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16115 if test -n "$OTOOL_FOR_TARGET"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16117 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16118 else
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16121 fi
16122
16123
16124 fi
16125 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16126 done
16127 fi
16128
16129 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16130 set dummy otool
16131 if test $build = $target ; then
16132 OTOOL_FOR_TARGET="$2"
16133 else
16134 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16135 fi
16136 else
16137 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16138 fi
16139
16140 else
16141 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16142 fi
16143
16144
16145
16146
16147 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16148 if test -n "$with_build_time_tools"; then
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16150 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16151 if test -x $with_build_time_tools/ranlib; then
16152 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16153 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16155 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16156 else
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16158 $as_echo "no" >&6; }
16159 fi
16160 elif test $build != $host && test $have_gcc_for_target = yes; then
16161 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16162 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16163 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16164 fi
16165 fi
16166 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16167 # Extract the first word of "ranlib", so it can be a program name with args.
16168 set dummy ranlib; ac_word=$2
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16170 $as_echo_n "checking for $ac_word... " >&6; }
16171 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16172 $as_echo_n "(cached) " >&6
16173 else
16174 case $RANLIB_FOR_TARGET in
16175 [\\/]* | ?:[\\/]*)
16176 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16177 ;;
16178 *)
16179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16180 for as_dir in $gcc_cv_tool_dirs
16181 do
16182 IFS=$as_save_IFS
16183 test -z "$as_dir" && as_dir=.
16184 for ac_exec_ext in '' $ac_executable_extensions; do
16185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16186 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16188 break 2
16189 fi
16190 done
16191 done
16192 IFS=$as_save_IFS
16193
16194 ;;
16195 esac
16196 fi
16197 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16198 if test -n "$RANLIB_FOR_TARGET"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16200 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16201 else
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16204 fi
16205
16206
16207 fi
16208 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16209
16210
16211 if test -n "$RANLIB_FOR_TARGET"; then
16212 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16213 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16214 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16215 fi
16216
16217 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16218 for ncn_progname in ranlib; do
16219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16220 set dummy ${ncn_progname}; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16222 $as_echo_n "checking for $ac_word... " >&6; }
16223 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 if test -n "$RANLIB_FOR_TARGET"; then
16227 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16228 else
16229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $PATH
16231 do
16232 IFS=$as_save_IFS
16233 test -z "$as_dir" && as_dir=.
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16236 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16238 break 2
16239 fi
16240 done
16241 done
16242 IFS=$as_save_IFS
16243
16244 fi
16245 fi
16246 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16247 if test -n "$RANLIB_FOR_TARGET"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16249 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16250 else
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16253 fi
16254
16255
16256 done
16257 fi
16258
16259 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16260 for ncn_progname in ranlib; do
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16263 if test -x $with_build_time_tools/${ncn_progname}; then
16264 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16266 $as_echo "yes" >&6; }
16267 break
16268 else
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16270 $as_echo "no" >&6; }
16271 fi
16272 done
16273 fi
16274
16275 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16276 for ncn_progname in ranlib; do
16277 if test -n "$ncn_target_tool_prefix"; then
16278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16281 $as_echo_n "checking for $ac_word... " >&6; }
16282 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 if test -n "$RANLIB_FOR_TARGET"; then
16286 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16287 else
16288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16289 for as_dir in $PATH
16290 do
16291 IFS=$as_save_IFS
16292 test -z "$as_dir" && as_dir=.
16293 for ac_exec_ext in '' $ac_executable_extensions; do
16294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16295 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16297 break 2
16298 fi
16299 done
16300 done
16301 IFS=$as_save_IFS
16302
16303 fi
16304 fi
16305 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16306 if test -n "$RANLIB_FOR_TARGET"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16308 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16309 else
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16311 $as_echo "no" >&6; }
16312 fi
16313
16314
16315 fi
16316 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16318 set dummy ${ncn_progname}; ac_word=$2
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16320 $as_echo_n "checking for $ac_word... " >&6; }
16321 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 if test -n "$RANLIB_FOR_TARGET"; then
16325 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16326 else
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16329 do
16330 IFS=$as_save_IFS
16331 test -z "$as_dir" && as_dir=.
16332 for ac_exec_ext in '' $ac_executable_extensions; do
16333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16334 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16336 break 2
16337 fi
16338 done
16339 done
16340 IFS=$as_save_IFS
16341
16342 fi
16343 fi
16344 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16345 if test -n "$RANLIB_FOR_TARGET"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16347 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16348 else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16351 fi
16352
16353
16354 fi
16355 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16356 done
16357 fi
16358
16359 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16360 set dummy ranlib
16361 if test $build = $target ; then
16362 RANLIB_FOR_TARGET="$2"
16363 else
16364 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16365 fi
16366 else
16367 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16368 fi
16369
16370 else
16371 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16372 fi
16373
16374
16375
16376
16377 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16378 if test -n "$with_build_time_tools"; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16380 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16381 if test -x $with_build_time_tools/readelf; then
16382 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16383 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16385 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16386 else
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16389 fi
16390 elif test $build != $host && test $have_gcc_for_target = yes; then
16391 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16392 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16393 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16394 fi
16395 fi
16396 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16397 # Extract the first word of "readelf", so it can be a program name with args.
16398 set dummy readelf; ac_word=$2
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16400 $as_echo_n "checking for $ac_word... " >&6; }
16401 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 case $READELF_FOR_TARGET in
16405 [\\/]* | ?:[\\/]*)
16406 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16407 ;;
16408 *)
16409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16410 for as_dir in $gcc_cv_tool_dirs
16411 do
16412 IFS=$as_save_IFS
16413 test -z "$as_dir" && as_dir=.
16414 for ac_exec_ext in '' $ac_executable_extensions; do
16415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16416 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16418 break 2
16419 fi
16420 done
16421 done
16422 IFS=$as_save_IFS
16423
16424 ;;
16425 esac
16426 fi
16427 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16428 if test -n "$READELF_FOR_TARGET"; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16430 $as_echo "$READELF_FOR_TARGET" >&6; }
16431 else
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433 $as_echo "no" >&6; }
16434 fi
16435
16436
16437 fi
16438 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16439
16440
16441 if test -n "$READELF_FOR_TARGET"; then
16442 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16443 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16444 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16445 fi
16446
16447 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16448 for ncn_progname in readelf; do
16449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16450 set dummy ${ncn_progname}; ac_word=$2
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16452 $as_echo_n "checking for $ac_word... " >&6; }
16453 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16454 $as_echo_n "(cached) " >&6
16455 else
16456 if test -n "$READELF_FOR_TARGET"; then
16457 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16458 else
16459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16460 for as_dir in $PATH
16461 do
16462 IFS=$as_save_IFS
16463 test -z "$as_dir" && as_dir=.
16464 for ac_exec_ext in '' $ac_executable_extensions; do
16465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16466 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16468 break 2
16469 fi
16470 done
16471 done
16472 IFS=$as_save_IFS
16473
16474 fi
16475 fi
16476 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16477 if test -n "$READELF_FOR_TARGET"; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16479 $as_echo "$READELF_FOR_TARGET" >&6; }
16480 else
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482 $as_echo "no" >&6; }
16483 fi
16484
16485
16486 done
16487 fi
16488
16489 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16490 for ncn_progname in readelf; do
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16492 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16493 if test -x $with_build_time_tools/${ncn_progname}; then
16494 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16496 $as_echo "yes" >&6; }
16497 break
16498 else
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500 $as_echo "no" >&6; }
16501 fi
16502 done
16503 fi
16504
16505 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16506 for ncn_progname in readelf; do
16507 if test -n "$ncn_target_tool_prefix"; then
16508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16509 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16511 $as_echo_n "checking for $ac_word... " >&6; }
16512 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 if test -n "$READELF_FOR_TARGET"; then
16516 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16517 else
16518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16520 do
16521 IFS=$as_save_IFS
16522 test -z "$as_dir" && as_dir=.
16523 for ac_exec_ext in '' $ac_executable_extensions; do
16524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16525 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16527 break 2
16528 fi
16529 done
16530 done
16531 IFS=$as_save_IFS
16532
16533 fi
16534 fi
16535 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16536 if test -n "$READELF_FOR_TARGET"; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16538 $as_echo "$READELF_FOR_TARGET" >&6; }
16539 else
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542 fi
16543
16544
16545 fi
16546 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16548 set dummy ${ncn_progname}; ac_word=$2
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16550 $as_echo_n "checking for $ac_word... " >&6; }
16551 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 if test -n "$READELF_FOR_TARGET"; then
16555 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16556 else
16557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558 for as_dir in $PATH
16559 do
16560 IFS=$as_save_IFS
16561 test -z "$as_dir" && as_dir=.
16562 for ac_exec_ext in '' $ac_executable_extensions; do
16563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16564 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16566 break 2
16567 fi
16568 done
16569 done
16570 IFS=$as_save_IFS
16571
16572 fi
16573 fi
16574 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16575 if test -n "$READELF_FOR_TARGET"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16577 $as_echo "$READELF_FOR_TARGET" >&6; }
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16581 fi
16582
16583
16584 fi
16585 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16586 done
16587 fi
16588
16589 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16590 set dummy readelf
16591 if test $build = $target ; then
16592 READELF_FOR_TARGET="$2"
16593 else
16594 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16595 fi
16596 else
16597 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16598 fi
16599
16600 else
16601 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16602 fi
16603
16604
16605
16606
16607 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16608 if test -n "$with_build_time_tools"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16610 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16611 if test -x $with_build_time_tools/strip; then
16612 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16613 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16615 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16616 else
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618 $as_echo "no" >&6; }
16619 fi
16620 elif test $build != $host && test $have_gcc_for_target = yes; then
16621 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16622 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16623 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16624 fi
16625 fi
16626 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16627 # Extract the first word of "strip", so it can be a program name with args.
16628 set dummy strip; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 case $STRIP_FOR_TARGET in
16635 [\\/]* | ?:[\\/]*)
16636 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16637 ;;
16638 *)
16639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16640 for as_dir in $gcc_cv_tool_dirs
16641 do
16642 IFS=$as_save_IFS
16643 test -z "$as_dir" && as_dir=.
16644 for ac_exec_ext in '' $ac_executable_extensions; do
16645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16646 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16648 break 2
16649 fi
16650 done
16651 done
16652 IFS=$as_save_IFS
16653
16654 ;;
16655 esac
16656 fi
16657 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16658 if test -n "$STRIP_FOR_TARGET"; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16660 $as_echo "$STRIP_FOR_TARGET" >&6; }
16661 else
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663 $as_echo "no" >&6; }
16664 fi
16665
16666
16667 fi
16668 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16669
16670
16671 if test -n "$STRIP_FOR_TARGET"; then
16672 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16673 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16674 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16675 fi
16676
16677 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16678 for ncn_progname in strip; do
16679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16680 set dummy ${ncn_progname}; ac_word=$2
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16682 $as_echo_n "checking for $ac_word... " >&6; }
16683 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 if test -n "$STRIP_FOR_TARGET"; then
16687 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16688 else
16689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16691 do
16692 IFS=$as_save_IFS
16693 test -z "$as_dir" && as_dir=.
16694 for ac_exec_ext in '' $ac_executable_extensions; do
16695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16696 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16698 break 2
16699 fi
16700 done
16701 done
16702 IFS=$as_save_IFS
16703
16704 fi
16705 fi
16706 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16707 if test -n "$STRIP_FOR_TARGET"; then
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16709 $as_echo "$STRIP_FOR_TARGET" >&6; }
16710 else
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712 $as_echo "no" >&6; }
16713 fi
16714
16715
16716 done
16717 fi
16718
16719 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16720 for ncn_progname in strip; do
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16722 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16723 if test -x $with_build_time_tools/${ncn_progname}; then
16724 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16726 $as_echo "yes" >&6; }
16727 break
16728 else
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16730 $as_echo "no" >&6; }
16731 fi
16732 done
16733 fi
16734
16735 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16736 for ncn_progname in strip; do
16737 if test -n "$ncn_target_tool_prefix"; then
16738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16739 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16741 $as_echo_n "checking for $ac_word... " >&6; }
16742 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 if test -n "$STRIP_FOR_TARGET"; then
16746 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16747 else
16748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16749 for as_dir in $PATH
16750 do
16751 IFS=$as_save_IFS
16752 test -z "$as_dir" && as_dir=.
16753 for ac_exec_ext in '' $ac_executable_extensions; do
16754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16755 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16757 break 2
16758 fi
16759 done
16760 done
16761 IFS=$as_save_IFS
16762
16763 fi
16764 fi
16765 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16766 if test -n "$STRIP_FOR_TARGET"; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16768 $as_echo "$STRIP_FOR_TARGET" >&6; }
16769 else
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16771 $as_echo "no" >&6; }
16772 fi
16773
16774
16775 fi
16776 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16778 set dummy ${ncn_progname}; ac_word=$2
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16780 $as_echo_n "checking for $ac_word... " >&6; }
16781 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784 if test -n "$STRIP_FOR_TARGET"; then
16785 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16786 else
16787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16788 for as_dir in $PATH
16789 do
16790 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
16792 for ac_exec_ext in '' $ac_executable_extensions; do
16793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16794 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16796 break 2
16797 fi
16798 done
16799 done
16800 IFS=$as_save_IFS
16801
16802 fi
16803 fi
16804 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16805 if test -n "$STRIP_FOR_TARGET"; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16807 $as_echo "$STRIP_FOR_TARGET" >&6; }
16808 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
16811 fi
16812
16813
16814 fi
16815 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16816 done
16817 fi
16818
16819 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16820 set dummy strip
16821 if test $build = $target ; then
16822 STRIP_FOR_TARGET="$2"
16823 else
16824 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16825 fi
16826 else
16827 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16828 fi
16829
16830 else
16831 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16832 fi
16833
16834
16835
16836
16837 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16838 if test -n "$with_build_time_tools"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16840 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16841 if test -x $with_build_time_tools/windres; then
16842 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16843 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16845 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16846 else
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848 $as_echo "no" >&6; }
16849 fi
16850 elif test $build != $host && test $have_gcc_for_target = yes; then
16851 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16852 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16853 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16854 fi
16855 fi
16856 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16857 # Extract the first word of "windres", so it can be a program name with args.
16858 set dummy windres; ac_word=$2
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16860 $as_echo_n "checking for $ac_word... " >&6; }
16861 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 case $WINDRES_FOR_TARGET in
16865 [\\/]* | ?:[\\/]*)
16866 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16867 ;;
16868 *)
16869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16870 for as_dir in $gcc_cv_tool_dirs
16871 do
16872 IFS=$as_save_IFS
16873 test -z "$as_dir" && as_dir=.
16874 for ac_exec_ext in '' $ac_executable_extensions; do
16875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16876 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16878 break 2
16879 fi
16880 done
16881 done
16882 IFS=$as_save_IFS
16883
16884 ;;
16885 esac
16886 fi
16887 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16888 if test -n "$WINDRES_FOR_TARGET"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16890 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16891 else
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16894 fi
16895
16896
16897 fi
16898 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16899
16900
16901 if test -n "$WINDRES_FOR_TARGET"; then
16902 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16903 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16904 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16905 fi
16906
16907 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16908 for ncn_progname in windres; do
16909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16910 set dummy ${ncn_progname}; ac_word=$2
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16912 $as_echo_n "checking for $ac_word... " >&6; }
16913 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 if test -n "$WINDRES_FOR_TARGET"; then
16917 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16918 else
16919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 for as_dir in $PATH
16921 do
16922 IFS=$as_save_IFS
16923 test -z "$as_dir" && as_dir=.
16924 for ac_exec_ext in '' $ac_executable_extensions; do
16925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16926 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16928 break 2
16929 fi
16930 done
16931 done
16932 IFS=$as_save_IFS
16933
16934 fi
16935 fi
16936 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16937 if test -n "$WINDRES_FOR_TARGET"; then
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16939 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16940 else
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942 $as_echo "no" >&6; }
16943 fi
16944
16945
16946 done
16947 fi
16948
16949 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16950 for ncn_progname in windres; do
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16952 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16953 if test -x $with_build_time_tools/${ncn_progname}; then
16954 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16956 $as_echo "yes" >&6; }
16957 break
16958 else
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16960 $as_echo "no" >&6; }
16961 fi
16962 done
16963 fi
16964
16965 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16966 for ncn_progname in windres; do
16967 if test -n "$ncn_target_tool_prefix"; then
16968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16971 $as_echo_n "checking for $ac_word... " >&6; }
16972 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 if test -n "$WINDRES_FOR_TARGET"; then
16976 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16977 else
16978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16979 for as_dir in $PATH
16980 do
16981 IFS=$as_save_IFS
16982 test -z "$as_dir" && as_dir=.
16983 for ac_exec_ext in '' $ac_executable_extensions; do
16984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16985 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16987 break 2
16988 fi
16989 done
16990 done
16991 IFS=$as_save_IFS
16992
16993 fi
16994 fi
16995 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16996 if test -n "$WINDRES_FOR_TARGET"; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16998 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16999 else
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001 $as_echo "no" >&6; }
17002 fi
17003
17004
17005 fi
17006 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17008 set dummy ${ncn_progname}; ac_word=$2
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010 $as_echo_n "checking for $ac_word... " >&6; }
17011 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 if test -n "$WINDRES_FOR_TARGET"; then
17015 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17016 else
17017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018 for as_dir in $PATH
17019 do
17020 IFS=$as_save_IFS
17021 test -z "$as_dir" && as_dir=.
17022 for ac_exec_ext in '' $ac_executable_extensions; do
17023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17024 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17026 break 2
17027 fi
17028 done
17029 done
17030 IFS=$as_save_IFS
17031
17032 fi
17033 fi
17034 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17035 if test -n "$WINDRES_FOR_TARGET"; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17037 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17038 else
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17041 fi
17042
17043
17044 fi
17045 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17046 done
17047 fi
17048
17049 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17050 set dummy windres
17051 if test $build = $target ; then
17052 WINDRES_FOR_TARGET="$2"
17053 else
17054 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17055 fi
17056 else
17057 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17058 fi
17059
17060 else
17061 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17062 fi
17063
17064
17065
17066
17067 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17068 if test -n "$with_build_time_tools"; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17070 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17071 if test -x $with_build_time_tools/windmc; then
17072 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17073 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17075 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17076 else
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17078 $as_echo "no" >&6; }
17079 fi
17080 elif test $build != $host && test $have_gcc_for_target = yes; then
17081 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17082 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17083 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17084 fi
17085 fi
17086 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17087 # Extract the first word of "windmc", so it can be a program name with args.
17088 set dummy windmc; ac_word=$2
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17090 $as_echo_n "checking for $ac_word... " >&6; }
17091 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17092 $as_echo_n "(cached) " >&6
17093 else
17094 case $WINDMC_FOR_TARGET in
17095 [\\/]* | ?:[\\/]*)
17096 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17097 ;;
17098 *)
17099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100 for as_dir in $gcc_cv_tool_dirs
17101 do
17102 IFS=$as_save_IFS
17103 test -z "$as_dir" && as_dir=.
17104 for ac_exec_ext in '' $ac_executable_extensions; do
17105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17106 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17108 break 2
17109 fi
17110 done
17111 done
17112 IFS=$as_save_IFS
17113
17114 ;;
17115 esac
17116 fi
17117 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17118 if test -n "$WINDMC_FOR_TARGET"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17120 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17121 else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123 $as_echo "no" >&6; }
17124 fi
17125
17126
17127 fi
17128 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17129
17130
17131 if test -n "$WINDMC_FOR_TARGET"; then
17132 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17133 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17134 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17135 fi
17136
17137 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17138 for ncn_progname in windmc; do
17139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17140 set dummy ${ncn_progname}; ac_word=$2
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17142 $as_echo_n "checking for $ac_word... " >&6; }
17143 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 if test -n "$WINDMC_FOR_TARGET"; then
17147 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17148 else
17149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17150 for as_dir in $PATH
17151 do
17152 IFS=$as_save_IFS
17153 test -z "$as_dir" && as_dir=.
17154 for ac_exec_ext in '' $ac_executable_extensions; do
17155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17156 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17158 break 2
17159 fi
17160 done
17161 done
17162 IFS=$as_save_IFS
17163
17164 fi
17165 fi
17166 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17167 if test -n "$WINDMC_FOR_TARGET"; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17169 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17170 else
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17172 $as_echo "no" >&6; }
17173 fi
17174
17175
17176 done
17177 fi
17178
17179 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17180 for ncn_progname in windmc; do
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17182 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17183 if test -x $with_build_time_tools/${ncn_progname}; then
17184 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186 $as_echo "yes" >&6; }
17187 break
17188 else
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191 fi
17192 done
17193 fi
17194
17195 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17196 for ncn_progname in windmc; do
17197 if test -n "$ncn_target_tool_prefix"; then
17198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17201 $as_echo_n "checking for $ac_word... " >&6; }
17202 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17203 $as_echo_n "(cached) " >&6
17204 else
17205 if test -n "$WINDMC_FOR_TARGET"; then
17206 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17207 else
17208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17209 for as_dir in $PATH
17210 do
17211 IFS=$as_save_IFS
17212 test -z "$as_dir" && as_dir=.
17213 for ac_exec_ext in '' $ac_executable_extensions; do
17214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17215 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17217 break 2
17218 fi
17219 done
17220 done
17221 IFS=$as_save_IFS
17222
17223 fi
17224 fi
17225 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17226 if test -n "$WINDMC_FOR_TARGET"; then
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17228 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17229 else
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17232 fi
17233
17234
17235 fi
17236 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17238 set dummy ${ncn_progname}; ac_word=$2
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17240 $as_echo_n "checking for $ac_word... " >&6; }
17241 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 if test -n "$WINDMC_FOR_TARGET"; then
17245 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17246 else
17247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17248 for as_dir in $PATH
17249 do
17250 IFS=$as_save_IFS
17251 test -z "$as_dir" && as_dir=.
17252 for ac_exec_ext in '' $ac_executable_extensions; do
17253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17254 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17256 break 2
17257 fi
17258 done
17259 done
17260 IFS=$as_save_IFS
17261
17262 fi
17263 fi
17264 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17265 if test -n "$WINDMC_FOR_TARGET"; then
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17267 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17268 else
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17271 fi
17272
17273
17274 fi
17275 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17276 done
17277 fi
17278
17279 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17280 set dummy windmc
17281 if test $build = $target ; then
17282 WINDMC_FOR_TARGET="$2"
17283 else
17284 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17285 fi
17286 else
17287 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17288 fi
17289
17290 else
17291 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17292 fi
17293
17294
17295 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17296
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17298 $as_echo_n "checking where to find the target ar... " >&6; }
17299 if test "x${build}" != "x${host}" ; then
17300 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17301 # We already found the complete path
17302 ac_dir=`dirname $AR_FOR_TARGET`
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17304 $as_echo "pre-installed in $ac_dir" >&6; }
17305 else
17306 # Canadian cross, just use what we found
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17308 $as_echo "pre-installed" >&6; }
17309 fi
17310 else
17311 ok=yes
17312 case " ${configdirs} " in
17313 *" binutils "*) ;;
17314 *) ok=no ;;
17315 esac
17316
17317 if test $ok = yes; then
17318 # An in-tree tool is available and we can use it
17319 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17321 $as_echo "just compiled" >&6; }
17322 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $AR_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326 $as_echo "pre-installed in $ac_dir" >&6; }
17327 elif test "x$target" = "x$host"; then
17328 # We can use an host tool
17329 AR_FOR_TARGET='$(AR)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17331 $as_echo "host tool" >&6; }
17332 else
17333 # We need a cross tool
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335 $as_echo "pre-installed" >&6; }
17336 fi
17337 fi
17338
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17340 $as_echo_n "checking where to find the target as... " >&6; }
17341 if test "x${build}" != "x${host}" ; then
17342 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $AS_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346 $as_echo "pre-installed in $ac_dir" >&6; }
17347 else
17348 # Canadian cross, just use what we found
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17350 $as_echo "pre-installed" >&6; }
17351 fi
17352 else
17353 ok=yes
17354 case " ${configdirs} " in
17355 *" gas "*) ;;
17356 *) ok=no ;;
17357 esac
17358
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17363 $as_echo "just compiled" >&6; }
17364 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17365 # We already found the complete path
17366 ac_dir=`dirname $AS_FOR_TARGET`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17368 $as_echo "pre-installed in $ac_dir" >&6; }
17369 elif test "x$target" = "x$host"; then
17370 # We can use an host tool
17371 AS_FOR_TARGET='$(AS)'
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17373 $as_echo "host tool" >&6; }
17374 else
17375 # We need a cross tool
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377 $as_echo "pre-installed" >&6; }
17378 fi
17379 fi
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17382 $as_echo_n "checking where to find the target cc... " >&6; }
17383 if test "x${build}" != "x${host}" ; then
17384 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17385 # We already found the complete path
17386 ac_dir=`dirname $CC_FOR_TARGET`
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17388 $as_echo "pre-installed in $ac_dir" >&6; }
17389 else
17390 # Canadian cross, just use what we found
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17392 $as_echo "pre-installed" >&6; }
17393 fi
17394 else
17395 ok=yes
17396 case " ${configdirs} " in
17397 *" gcc "*) ;;
17398 *) ok=no ;;
17399 esac
17400
17401 if test $ok = yes; then
17402 # An in-tree tool is available and we can use it
17403 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17405 $as_echo "just compiled" >&6; }
17406 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17407 # We already found the complete path
17408 ac_dir=`dirname $CC_FOR_TARGET`
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17410 $as_echo "pre-installed in $ac_dir" >&6; }
17411 elif test "x$target" = "x$host"; then
17412 # We can use an host tool
17413 CC_FOR_TARGET='$(CC)'
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17415 $as_echo "host tool" >&6; }
17416 else
17417 # We need a cross tool
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17419 $as_echo "pre-installed" >&6; }
17420 fi
17421 fi
17422
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17424 $as_echo_n "checking where to find the target c++... " >&6; }
17425 if test "x${build}" != "x${host}" ; then
17426 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17427 # We already found the complete path
17428 ac_dir=`dirname $CXX_FOR_TARGET`
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17430 $as_echo "pre-installed in $ac_dir" >&6; }
17431 else
17432 # Canadian cross, just use what we found
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17434 $as_echo "pre-installed" >&6; }
17435 fi
17436 else
17437 ok=yes
17438 case " ${configdirs} " in
17439 *" gcc "*) ;;
17440 *) ok=no ;;
17441 esac
17442 case ,${enable_languages}, in
17443 *,c++,*) ;;
17444 *) ok=no ;;
17445 esac
17446 if test $ok = yes; then
17447 # An in-tree tool is available and we can use it
17448 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'
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17450 $as_echo "just compiled" >&6; }
17451 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17452 # We already found the complete path
17453 ac_dir=`dirname $CXX_FOR_TARGET`
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17455 $as_echo "pre-installed in $ac_dir" >&6; }
17456 elif test "x$target" = "x$host"; then
17457 # We can use an host tool
17458 CXX_FOR_TARGET='$(CXX)'
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17460 $as_echo "host tool" >&6; }
17461 else
17462 # We need a cross tool
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17464 $as_echo "pre-installed" >&6; }
17465 fi
17466 fi
17467
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17469 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17470 if test "x${build}" != "x${host}" ; then
17471 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17472 # We already found the complete path
17473 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17475 $as_echo "pre-installed in $ac_dir" >&6; }
17476 else
17477 # Canadian cross, just use what we found
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17479 $as_echo "pre-installed" >&6; }
17480 fi
17481 else
17482 ok=yes
17483 case " ${configdirs} " in
17484 *" gcc "*) ;;
17485 *) ok=no ;;
17486 esac
17487 case ,${enable_languages}, in
17488 *,c++,*) ;;
17489 *) ok=no ;;
17490 esac
17491 if test $ok = yes; then
17492 # An in-tree tool is available and we can use it
17493 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'
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17495 $as_echo "just compiled" >&6; }
17496 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17497 # We already found the complete path
17498 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17500 $as_echo "pre-installed in $ac_dir" >&6; }
17501 elif test "x$target" = "x$host"; then
17502 # We can use an host tool
17503 RAW_CXX_FOR_TARGET='$(CXX)'
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17505 $as_echo "host tool" >&6; }
17506 else
17507 # We need a cross tool
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17509 $as_echo "pre-installed" >&6; }
17510 fi
17511 fi
17512
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17514 $as_echo_n "checking where to find the target dlltool... " >&6; }
17515 if test "x${build}" != "x${host}" ; then
17516 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17517 # We already found the complete path
17518 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17520 $as_echo "pre-installed in $ac_dir" >&6; }
17521 else
17522 # Canadian cross, just use what we found
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17524 $as_echo "pre-installed" >&6; }
17525 fi
17526 else
17527 ok=yes
17528 case " ${configdirs} " in
17529 *" binutils "*) ;;
17530 *) ok=no ;;
17531 esac
17532
17533 if test $ok = yes; then
17534 # An in-tree tool is available and we can use it
17535 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17537 $as_echo "just compiled" >&6; }
17538 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17539 # We already found the complete path
17540 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17542 $as_echo "pre-installed in $ac_dir" >&6; }
17543 elif test "x$target" = "x$host"; then
17544 # We can use an host tool
17545 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17547 $as_echo "host tool" >&6; }
17548 else
17549 # We need a cross tool
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17551 $as_echo "pre-installed" >&6; }
17552 fi
17553 fi
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17556 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17557 if test "x${build}" != "x${host}" ; then
17558 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17559 # We already found the complete path
17560 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17562 $as_echo "pre-installed in $ac_dir" >&6; }
17563 else
17564 # Canadian cross, just use what we found
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17566 $as_echo "pre-installed" >&6; }
17567 fi
17568 else
17569 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17570 # We already found the complete path
17571 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17573 $as_echo "pre-installed in $ac_dir" >&6; }
17574 elif test "x$target" = "x$host"; then
17575 # We can use an host tool
17576 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17578 $as_echo "host tool" >&6; }
17579 else
17580 # We need a cross tool
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17582 $as_echo "pre-installed" >&6; }
17583 fi
17584 fi
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17587 $as_echo_n "checking where to find the target gcc... " >&6; }
17588 if test "x${build}" != "x${host}" ; then
17589 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17590 # We already found the complete path
17591 ac_dir=`dirname $GCC_FOR_TARGET`
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17593 $as_echo "pre-installed in $ac_dir" >&6; }
17594 else
17595 # Canadian cross, just use what we found
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17597 $as_echo "pre-installed" >&6; }
17598 fi
17599 else
17600 ok=yes
17601 case " ${configdirs} " in
17602 *" gcc "*) ;;
17603 *) ok=no ;;
17604 esac
17605
17606 if test $ok = yes; then
17607 # An in-tree tool is available and we can use it
17608 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17610 $as_echo "just compiled" >&6; }
17611 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17612 # We already found the complete path
17613 ac_dir=`dirname $GCC_FOR_TARGET`
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17615 $as_echo "pre-installed in $ac_dir" >&6; }
17616 elif test "x$target" = "x$host"; then
17617 # We can use an host tool
17618 GCC_FOR_TARGET='$()'
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17620 $as_echo "host tool" >&6; }
17621 else
17622 # We need a cross tool
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17624 $as_echo "pre-installed" >&6; }
17625 fi
17626 fi
17627
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17629 $as_echo_n "checking where to find the target gfortran... " >&6; }
17630 if test "x${build}" != "x${host}" ; then
17631 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17632 # We already found the complete path
17633 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17635 $as_echo "pre-installed in $ac_dir" >&6; }
17636 else
17637 # Canadian cross, just use what we found
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17639 $as_echo "pre-installed" >&6; }
17640 fi
17641 else
17642 ok=yes
17643 case " ${configdirs} " in
17644 *" gcc "*) ;;
17645 *) ok=no ;;
17646 esac
17647 case ,${enable_languages}, in
17648 *,fortran,*) ;;
17649 *) ok=no ;;
17650 esac
17651 if test $ok = yes; then
17652 # An in-tree tool is available and we can use it
17653 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17655 $as_echo "just compiled" >&6; }
17656 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17657 # We already found the complete path
17658 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17660 $as_echo "pre-installed in $ac_dir" >&6; }
17661 elif test "x$target" = "x$host"; then
17662 # We can use an host tool
17663 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17665 $as_echo "host tool" >&6; }
17666 else
17667 # We need a cross tool
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17669 $as_echo "pre-installed" >&6; }
17670 fi
17671 fi
17672
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17674 $as_echo_n "checking where to find the target gccgo... " >&6; }
17675 if test "x${build}" != "x${host}" ; then
17676 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17677 # We already found the complete path
17678 ac_dir=`dirname $GOC_FOR_TARGET`
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17680 $as_echo "pre-installed in $ac_dir" >&6; }
17681 else
17682 # Canadian cross, just use what we found
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17684 $as_echo "pre-installed" >&6; }
17685 fi
17686 else
17687 ok=yes
17688 case " ${configdirs} " in
17689 *" gcc "*) ;;
17690 *) ok=no ;;
17691 esac
17692 case ,${enable_languages}, in
17693 *,go,*) ;;
17694 *) ok=no ;;
17695 esac
17696 if test $ok = yes; then
17697 # An in-tree tool is available and we can use it
17698 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17700 $as_echo "just compiled" >&6; }
17701 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17702 # We already found the complete path
17703 ac_dir=`dirname $GOC_FOR_TARGET`
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17705 $as_echo "pre-installed in $ac_dir" >&6; }
17706 elif test "x$target" = "x$host"; then
17707 # We can use an host tool
17708 GOC_FOR_TARGET='$(GOC)'
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17710 $as_echo "host tool" >&6; }
17711 else
17712 # We need a cross tool
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17714 $as_echo "pre-installed" >&6; }
17715 fi
17716 fi
17717
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17719 $as_echo_n "checking where to find the target gdc... " >&6; }
17720 if test "x${build}" != "x${host}" ; then
17721 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17722 # We already found the complete path
17723 ac_dir=`dirname $GDC_FOR_TARGET`
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17725 $as_echo "pre-installed in $ac_dir" >&6; }
17726 else
17727 # Canadian cross, just use what we found
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17729 $as_echo "pre-installed" >&6; }
17730 fi
17731 else
17732 ok=yes
17733 case " ${configdirs} " in
17734 *" gcc "*) ;;
17735 *) ok=no ;;
17736 esac
17737 case ,${enable_languages}, in
17738 *,d,*) ;;
17739 *) ok=no ;;
17740 esac
17741 if test $ok = yes; then
17742 # An in-tree tool is available and we can use it
17743 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17745 $as_echo "just compiled" >&6; }
17746 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17747 # We already found the complete path
17748 ac_dir=`dirname $GDC_FOR_TARGET`
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17750 $as_echo "pre-installed in $ac_dir" >&6; }
17751 elif test "x$target" = "x$host"; then
17752 # We can use an host tool
17753 GDC_FOR_TARGET='$(GDC)'
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17755 $as_echo "host tool" >&6; }
17756 else
17757 # We need a cross tool
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17759 $as_echo "pre-installed" >&6; }
17760 fi
17761 fi
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17764 $as_echo_n "checking where to find the target ld... " >&6; }
17765 if test "x${build}" != "x${host}" ; then
17766 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17767 # We already found the complete path
17768 ac_dir=`dirname $LD_FOR_TARGET`
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17770 $as_echo "pre-installed in $ac_dir" >&6; }
17771 else
17772 # Canadian cross, just use what we found
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17774 $as_echo "pre-installed" >&6; }
17775 fi
17776 else
17777 ok=yes
17778 case " ${configdirs} " in
17779 *" ld "*) ;;
17780 *) ok=no ;;
17781 esac
17782
17783 if test $ok = yes; then
17784 # An in-tree tool is available and we can use it
17785 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17787 $as_echo "just compiled" >&6; }
17788 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17789 # We already found the complete path
17790 ac_dir=`dirname $LD_FOR_TARGET`
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17792 $as_echo "pre-installed in $ac_dir" >&6; }
17793 elif test "x$target" = "x$host"; then
17794 # We can use an host tool
17795 LD_FOR_TARGET='$(LD)'
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17797 $as_echo "host tool" >&6; }
17798 else
17799 # We need a cross tool
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17801 $as_echo "pre-installed" >&6; }
17802 fi
17803 fi
17804
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17806 $as_echo_n "checking where to find the target lipo... " >&6; }
17807 if test "x${build}" != "x${host}" ; then
17808 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17809 # We already found the complete path
17810 ac_dir=`dirname $LIPO_FOR_TARGET`
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17812 $as_echo "pre-installed in $ac_dir" >&6; }
17813 else
17814 # Canadian cross, just use what we found
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17816 $as_echo "pre-installed" >&6; }
17817 fi
17818 else
17819 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $LIPO_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823 $as_echo "pre-installed in $ac_dir" >&6; }
17824 elif test "x$target" = "x$host"; then
17825 # We can use an host tool
17826 LIPO_FOR_TARGET='$(LIPO)'
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17828 $as_echo "host tool" >&6; }
17829 else
17830 # We need a cross tool
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17832 $as_echo "pre-installed" >&6; }
17833 fi
17834 fi
17835
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17837 $as_echo_n "checking where to find the target nm... " >&6; }
17838 if test "x${build}" != "x${host}" ; then
17839 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $NM_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843 $as_echo "pre-installed in $ac_dir" >&6; }
17844 else
17845 # Canadian cross, just use what we found
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17847 $as_echo "pre-installed" >&6; }
17848 fi
17849 else
17850 ok=yes
17851 case " ${configdirs} " in
17852 *" binutils "*) ;;
17853 *) ok=no ;;
17854 esac
17855
17856 if test $ok = yes; then
17857 # An in-tree tool is available and we can use it
17858 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17860 $as_echo "just compiled" >&6; }
17861 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17862 # We already found the complete path
17863 ac_dir=`dirname $NM_FOR_TARGET`
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17865 $as_echo "pre-installed in $ac_dir" >&6; }
17866 elif test "x$target" = "x$host"; then
17867 # We can use an host tool
17868 NM_FOR_TARGET='$(NM)'
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17870 $as_echo "host tool" >&6; }
17871 else
17872 # We need a cross tool
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17874 $as_echo "pre-installed" >&6; }
17875 fi
17876 fi
17877
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17879 $as_echo_n "checking where to find the target objcopy... " >&6; }
17880 if test "x${build}" != "x${host}" ; then
17881 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885 $as_echo "pre-installed in $ac_dir" >&6; }
17886 else
17887 # Canadian cross, just use what we found
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17889 $as_echo "pre-installed" >&6; }
17890 fi
17891 else
17892 ok=yes
17893 case " ${configdirs} " in
17894 *" binutils "*) ;;
17895 *) ok=no ;;
17896 esac
17897
17898 if test $ok = yes; then
17899 # An in-tree tool is available and we can use it
17900 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17902 $as_echo "just compiled" >&6; }
17903 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $OBJCOPY_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 elif test "x$target" = "x$host"; then
17909 # We can use an host tool
17910 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17912 $as_echo "host tool" >&6; }
17913 else
17914 # We need a cross tool
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17916 $as_echo "pre-installed" >&6; }
17917 fi
17918 fi
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17921 $as_echo_n "checking where to find the target objdump... " >&6; }
17922 if test "x${build}" != "x${host}" ; then
17923 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17924 # We already found the complete path
17925 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17927 $as_echo "pre-installed in $ac_dir" >&6; }
17928 else
17929 # Canadian cross, just use what we found
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17931 $as_echo "pre-installed" >&6; }
17932 fi
17933 else
17934 ok=yes
17935 case " ${configdirs} " in
17936 *" binutils "*) ;;
17937 *) ok=no ;;
17938 esac
17939
17940 if test $ok = yes; then
17941 # An in-tree tool is available and we can use it
17942 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17944 $as_echo "just compiled" >&6; }
17945 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $OBJDUMP_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 elif test "x$target" = "x$host"; then
17951 # We can use an host tool
17952 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17954 $as_echo "host tool" >&6; }
17955 else
17956 # We need a cross tool
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17958 $as_echo "pre-installed" >&6; }
17959 fi
17960 fi
17961
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17963 $as_echo_n "checking where to find the target otool... " >&6; }
17964 if test "x${build}" != "x${host}" ; then
17965 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17966 # We already found the complete path
17967 ac_dir=`dirname $OTOOL_FOR_TARGET`
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17969 $as_echo "pre-installed in $ac_dir" >&6; }
17970 else
17971 # Canadian cross, just use what we found
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17973 $as_echo "pre-installed" >&6; }
17974 fi
17975 else
17976 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17977 # We already found the complete path
17978 ac_dir=`dirname $OTOOL_FOR_TARGET`
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17980 $as_echo "pre-installed in $ac_dir" >&6; }
17981 elif test "x$target" = "x$host"; then
17982 # We can use an host tool
17983 OTOOL_FOR_TARGET='$(OTOOL)'
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17985 $as_echo "host tool" >&6; }
17986 else
17987 # We need a cross tool
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17989 $as_echo "pre-installed" >&6; }
17990 fi
17991 fi
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17994 $as_echo_n "checking where to find the target ranlib... " >&6; }
17995 if test "x${build}" != "x${host}" ; then
17996 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17997 # We already found the complete path
17998 ac_dir=`dirname $RANLIB_FOR_TARGET`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18000 $as_echo "pre-installed in $ac_dir" >&6; }
18001 else
18002 # Canadian cross, just use what we found
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18004 $as_echo "pre-installed" >&6; }
18005 fi
18006 else
18007 ok=yes
18008 case " ${configdirs} " in
18009 *" binutils "*) ;;
18010 *) ok=no ;;
18011 esac
18012
18013 if test $ok = yes; then
18014 # An in-tree tool is available and we can use it
18015 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18017 $as_echo "just compiled" >&6; }
18018 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18019 # We already found the complete path
18020 ac_dir=`dirname $RANLIB_FOR_TARGET`
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18022 $as_echo "pre-installed in $ac_dir" >&6; }
18023 elif test "x$target" = "x$host"; then
18024 # We can use an host tool
18025 RANLIB_FOR_TARGET='$(RANLIB)'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18027 $as_echo "host tool" >&6; }
18028 else
18029 # We need a cross tool
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18031 $as_echo "pre-installed" >&6; }
18032 fi
18033 fi
18034
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18036 $as_echo_n "checking where to find the target readelf... " >&6; }
18037 if test "x${build}" != "x${host}" ; then
18038 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18039 # We already found the complete path
18040 ac_dir=`dirname $READELF_FOR_TARGET`
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18042 $as_echo "pre-installed in $ac_dir" >&6; }
18043 else
18044 # Canadian cross, just use what we found
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18046 $as_echo "pre-installed" >&6; }
18047 fi
18048 else
18049 ok=yes
18050 case " ${configdirs} " in
18051 *" binutils "*) ;;
18052 *) ok=no ;;
18053 esac
18054
18055 if test $ok = yes; then
18056 # An in-tree tool is available and we can use it
18057 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18059 $as_echo "just compiled" >&6; }
18060 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18061 # We already found the complete path
18062 ac_dir=`dirname $READELF_FOR_TARGET`
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18064 $as_echo "pre-installed in $ac_dir" >&6; }
18065 elif test "x$target" = "x$host"; then
18066 # We can use an host tool
18067 READELF_FOR_TARGET='$(READELF)'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18069 $as_echo "host tool" >&6; }
18070 else
18071 # We need a cross tool
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18073 $as_echo "pre-installed" >&6; }
18074 fi
18075 fi
18076
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18078 $as_echo_n "checking where to find the target strip... " >&6; }
18079 if test "x${build}" != "x${host}" ; then
18080 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18081 # We already found the complete path
18082 ac_dir=`dirname $STRIP_FOR_TARGET`
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18084 $as_echo "pre-installed in $ac_dir" >&6; }
18085 else
18086 # Canadian cross, just use what we found
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18088 $as_echo "pre-installed" >&6; }
18089 fi
18090 else
18091 ok=yes
18092 case " ${configdirs} " in
18093 *" binutils "*) ;;
18094 *) ok=no ;;
18095 esac
18096
18097 if test $ok = yes; then
18098 # An in-tree tool is available and we can use it
18099 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18101 $as_echo "just compiled" >&6; }
18102 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18103 # We already found the complete path
18104 ac_dir=`dirname $STRIP_FOR_TARGET`
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18106 $as_echo "pre-installed in $ac_dir" >&6; }
18107 elif test "x$target" = "x$host"; then
18108 # We can use an host tool
18109 STRIP_FOR_TARGET='$(STRIP)'
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18111 $as_echo "host tool" >&6; }
18112 else
18113 # We need a cross tool
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18115 $as_echo "pre-installed" >&6; }
18116 fi
18117 fi
18118
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18120 $as_echo_n "checking where to find the target windres... " >&6; }
18121 if test "x${build}" != "x${host}" ; then
18122 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $WINDRES_FOR_TARGET`
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18126 $as_echo "pre-installed in $ac_dir" >&6; }
18127 else
18128 # Canadian cross, just use what we found
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18130 $as_echo "pre-installed" >&6; }
18131 fi
18132 else
18133 ok=yes
18134 case " ${configdirs} " in
18135 *" binutils "*) ;;
18136 *) ok=no ;;
18137 esac
18138
18139 if test $ok = yes; then
18140 # An in-tree tool is available and we can use it
18141 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18143 $as_echo "just compiled" >&6; }
18144 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18145 # We already found the complete path
18146 ac_dir=`dirname $WINDRES_FOR_TARGET`
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18148 $as_echo "pre-installed in $ac_dir" >&6; }
18149 elif test "x$target" = "x$host"; then
18150 # We can use an host tool
18151 WINDRES_FOR_TARGET='$(WINDRES)'
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18153 $as_echo "host tool" >&6; }
18154 else
18155 # We need a cross tool
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18157 $as_echo "pre-installed" >&6; }
18158 fi
18159 fi
18160
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18162 $as_echo_n "checking where to find the target windmc... " >&6; }
18163 if test "x${build}" != "x${host}" ; then
18164 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18165 # We already found the complete path
18166 ac_dir=`dirname $WINDMC_FOR_TARGET`
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18168 $as_echo "pre-installed in $ac_dir" >&6; }
18169 else
18170 # Canadian cross, just use what we found
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18172 $as_echo "pre-installed" >&6; }
18173 fi
18174 else
18175 ok=yes
18176 case " ${configdirs} " in
18177 *" binutils "*) ;;
18178 *) ok=no ;;
18179 esac
18180
18181 if test $ok = yes; then
18182 # An in-tree tool is available and we can use it
18183 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18185 $as_echo "just compiled" >&6; }
18186 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18187 # We already found the complete path
18188 ac_dir=`dirname $WINDMC_FOR_TARGET`
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18190 $as_echo "pre-installed in $ac_dir" >&6; }
18191 elif test "x$target" = "x$host"; then
18192 # We can use an host tool
18193 WINDMC_FOR_TARGET='$(WINDMC)'
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18195 $as_echo "host tool" >&6; }
18196 else
18197 # We need a cross tool
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18199 $as_echo "pre-installed" >&6; }
18200 fi
18201 fi
18202
18203
18204
18205
18206
18207 # Certain tools may need extra flags.
18208 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18209 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18210 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18211
18212 # When building target libraries, except in a Canadian cross, we use
18213 # the same toolchain as the compiler we just built.
18214 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18215 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18216 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18217 if test $host = $build; then
18218 case " $configdirs " in
18219 *" gcc "*)
18220 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18221 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18222 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18223 ;;
18224 esac
18225 fi
18226
18227
18228
18229
18230
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18232 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18233 # Check whether --enable-maintainer-mode was given.
18234 if test "${enable_maintainer_mode+set}" = set; then :
18235 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18236 else
18237 USE_MAINTAINER_MODE=no
18238 fi
18239
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18241 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18242
18243
18244 if test "$USE_MAINTAINER_MODE" = yes; then
18245 MAINTAINER_MODE_TRUE=
18246 MAINTAINER_MODE_FALSE='#'
18247 else
18248 MAINTAINER_MODE_TRUE='#'
18249 MAINTAINER_MODE_FALSE=
18250 fi
18251 MAINT=$MAINTAINER_MODE_TRUE
18252
18253 # ---------------------
18254 # GCC bootstrap support
18255 # ---------------------
18256
18257 # Stage specific cflags for build.
18258 stage1_cflags="-g"
18259 case $build in
18260 vax-*-*)
18261 case ${GCC} in
18262 yes) stage1_cflags="-g -Wa,-J" ;;
18263 *) stage1_cflags="-g -J" ;;
18264 esac ;;
18265 esac
18266
18267
18268
18269 # Enable --enable-checking in stage1 of the compiler.
18270 # Check whether --enable-stage1-checking was given.
18271 if test "${enable_stage1_checking+set}" = set; then :
18272 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18273 else
18274 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18275 # For --disable-checking or implicit --enable-checking=release, avoid
18276 # setting --enable-checking=gc in the default stage1 checking for LTO
18277 # bootstraps. See PR62077.
18278 case $BUILD_CONFIG in
18279 *lto*)
18280 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18281 *)
18282 stage1_checking=--enable-checking=yes,types;;
18283 esac
18284 if test "x$enable_checking" = x && \
18285 test -d ${srcdir}/gcc && \
18286 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18287 stage1_checking=--enable-checking=yes,types,extra
18288 fi
18289 else
18290 stage1_checking=--enable-checking=$enable_checking,types
18291 fi
18292 fi
18293
18294
18295
18296 # Enable -Werror in bootstrap stage2 and later.
18297 # Check whether --enable-werror was given.
18298 if test "${enable_werror+set}" = set; then :
18299 enableval=$enable_werror;
18300 case ${enable_werror} in
18301 yes) stage2_werror_flag="--enable-werror-always" ;;
18302 *) stage2_werror_flag="" ;;
18303 esac
18304
18305 else
18306
18307 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18308 case $BUILD_CONFIG in
18309 bootstrap-debug)
18310 stage2_werror_flag="--enable-werror-always" ;;
18311 "")
18312 stage2_werror_flag="--enable-werror-always" ;;
18313 esac
18314 fi
18315
18316 fi
18317
18318
18319
18320
18321 # Specify what files to not compare during bootstrap.
18322
18323 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18324 case "$target" in
18325 hppa*64*-*-hpux*) ;;
18326 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18327 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18328 esac
18329
18330
18331 ac_config_files="$ac_config_files Makefile"
18332
18333 cat >confcache <<\_ACEOF
18334 # This file is a shell script that caches the results of configure
18335 # tests run on this system so they can be shared between configure
18336 # scripts and configure runs, see configure's option --config-cache.
18337 # It is not useful on other systems. If it contains results you don't
18338 # want to keep, you may remove or edit it.
18339 #
18340 # config.status only pays attention to the cache file if you give it
18341 # the --recheck option to rerun configure.
18342 #
18343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18345 # following values.
18346
18347 _ACEOF
18348
18349 # The following way of writing the cache mishandles newlines in values,
18350 # but we know of no workaround that is simple, portable, and efficient.
18351 # So, we kill variables containing newlines.
18352 # Ultrix sh set writes to stderr and can't be redirected directly,
18353 # and sets the high bit in the cache file unless we assign to the vars.
18354 (
18355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18356 eval ac_val=\$$ac_var
18357 case $ac_val in #(
18358 *${as_nl}*)
18359 case $ac_var in #(
18360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18362 esac
18363 case $ac_var in #(
18364 _ | IFS | as_nl) ;; #(
18365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18366 *) { eval $ac_var=; unset $ac_var;} ;;
18367 esac ;;
18368 esac
18369 done
18370
18371 (set) 2>&1 |
18372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18373 *${as_nl}ac_space=\ *)
18374 # `set' does not quote correctly, so add quotes: double-quote
18375 # substitution turns \\\\ into \\, and sed turns \\ into \.
18376 sed -n \
18377 "s/'/'\\\\''/g;
18378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18379 ;; #(
18380 *)
18381 # `set' quotes correctly as required by POSIX, so do not add quotes.
18382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18383 ;;
18384 esac |
18385 sort
18386 ) |
18387 sed '
18388 /^ac_cv_env_/b end
18389 t clear
18390 :clear
18391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18392 t end
18393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18394 :end' >>confcache
18395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18396 if test -w "$cache_file"; then
18397 if test "x$cache_file" != "x/dev/null"; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18399 $as_echo "$as_me: updating cache $cache_file" >&6;}
18400 if test ! -f "$cache_file" || test -h "$cache_file"; then
18401 cat confcache >"$cache_file"
18402 else
18403 case $cache_file in #(
18404 */* | ?:*)
18405 mv -f confcache "$cache_file"$$ &&
18406 mv -f "$cache_file"$$ "$cache_file" ;; #(
18407 *)
18408 mv -f confcache "$cache_file" ;;
18409 esac
18410 fi
18411 fi
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18415 fi
18416 fi
18417 rm -f confcache
18418
18419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18420 # Let make expand exec_prefix.
18421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18422
18423 # Transform confdefs.h into DEFS.
18424 # Protect against shell expansion while executing Makefile rules.
18425 # Protect against Makefile macro expansion.
18426 #
18427 # If the first sed substitution is executed (which looks for macros that
18428 # take arguments), then branch to the quote section. Otherwise,
18429 # look for a macro that doesn't take arguments.
18430 ac_script='
18431 :mline
18432 /\\$/{
18433 N
18434 s,\\\n,,
18435 b mline
18436 }
18437 t clear
18438 :clear
18439 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18440 t quote
18441 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18442 t quote
18443 b any
18444 :quote
18445 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18446 s/\[/\\&/g
18447 s/\]/\\&/g
18448 s/\$/$$/g
18449 H
18450 :any
18451 ${
18452 g
18453 s/^\n//
18454 s/\n/ /g
18455 p
18456 }
18457 '
18458 DEFS=`sed -n "$ac_script" confdefs.h`
18459
18460
18461 ac_libobjs=
18462 ac_ltlibobjs=
18463 U=
18464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18465 # 1. Remove the extension, and $U if already installed.
18466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18467 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18469 # will be set to the directory where LIBOBJS objects are built.
18470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18472 done
18473 LIBOBJS=$ac_libobjs
18474
18475 LTLIBOBJS=$ac_ltlibobjs
18476
18477
18478
18479 : "${CONFIG_STATUS=./config.status}"
18480 ac_write_fail=0
18481 ac_clean_files_save=$ac_clean_files
18482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18485 as_write_fail=0
18486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18487 #! $SHELL
18488 # Generated by $as_me.
18489 # Run this file to recreate the current configuration.
18490 # Compiler output produced by configure, useful for debugging
18491 # configure, is in config.log if it exists.
18492
18493 debug=false
18494 ac_cs_recheck=false
18495 ac_cs_silent=false
18496
18497 SHELL=\${CONFIG_SHELL-$SHELL}
18498 export SHELL
18499 _ASEOF
18500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18501 ## -------------------- ##
18502 ## M4sh Initialization. ##
18503 ## -------------------- ##
18504
18505 # Be more Bourne compatible
18506 DUALCASE=1; export DUALCASE # for MKS sh
18507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18508 emulate sh
18509 NULLCMD=:
18510 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18511 # is contrary to our usage. Disable this feature.
18512 alias -g '${1+"$@"}'='"$@"'
18513 setopt NO_GLOB_SUBST
18514 else
18515 case `(set -o) 2>/dev/null` in #(
18516 *posix*) :
18517 set -o posix ;; #(
18518 *) :
18519 ;;
18520 esac
18521 fi
18522
18523
18524 as_nl='
18525 '
18526 export as_nl
18527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18531 # Prefer a ksh shell builtin over an external printf program on Solaris,
18532 # but without wasting forks for bash or zsh.
18533 if test -z "$BASH_VERSION$ZSH_VERSION" \
18534 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18535 as_echo='print -r --'
18536 as_echo_n='print -rn --'
18537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18538 as_echo='printf %s\n'
18539 as_echo_n='printf %s'
18540 else
18541 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18542 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18543 as_echo_n='/usr/ucb/echo -n'
18544 else
18545 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18546 as_echo_n_body='eval
18547 arg=$1;
18548 case $arg in #(
18549 *"$as_nl"*)
18550 expr "X$arg" : "X\\(.*\\)$as_nl";
18551 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18552 esac;
18553 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18554 '
18555 export as_echo_n_body
18556 as_echo_n='sh -c $as_echo_n_body as_echo'
18557 fi
18558 export as_echo_body
18559 as_echo='sh -c $as_echo_body as_echo'
18560 fi
18561
18562 # The user is always right.
18563 if test "${PATH_SEPARATOR+set}" != set; then
18564 PATH_SEPARATOR=:
18565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18566 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18567 PATH_SEPARATOR=';'
18568 }
18569 fi
18570
18571
18572 # IFS
18573 # We need space, tab and new line, in precisely that order. Quoting is
18574 # there to prevent editors from complaining about space-tab.
18575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18576 # splitting by setting IFS to empty value.)
18577 IFS=" "" $as_nl"
18578
18579 # Find who we are. Look in the path if we contain no directory separator.
18580 as_myself=
18581 case $0 in #((
18582 *[\\/]* ) as_myself=$0 ;;
18583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18589 done
18590 IFS=$as_save_IFS
18591
18592 ;;
18593 esac
18594 # We did not find ourselves, most probably we were run as `sh COMMAND'
18595 # in which case we are not to be found in the path.
18596 if test "x$as_myself" = x; then
18597 as_myself=$0
18598 fi
18599 if test ! -f "$as_myself"; then
18600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18601 exit 1
18602 fi
18603
18604 # Unset variables that we do not need and which cause bugs (e.g. in
18605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18606 # suppresses any "Segmentation fault" message there. '((' could
18607 # trigger a bug in pdksh 5.2.14.
18608 for as_var in BASH_ENV ENV MAIL MAILPATH
18609 do eval test x\${$as_var+set} = xset \
18610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18611 done
18612 PS1='$ '
18613 PS2='> '
18614 PS4='+ '
18615
18616 # NLS nuisances.
18617 LC_ALL=C
18618 export LC_ALL
18619 LANGUAGE=C
18620 export LANGUAGE
18621
18622 # CDPATH.
18623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18624
18625
18626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18627 # ----------------------------------------
18628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18630 # script with STATUS, using 1 if that was 0.
18631 as_fn_error ()
18632 {
18633 as_status=$1; test $as_status -eq 0 && as_status=1
18634 if test "$4"; then
18635 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18637 fi
18638 $as_echo "$as_me: error: $2" >&2
18639 as_fn_exit $as_status
18640 } # as_fn_error
18641
18642
18643 # as_fn_set_status STATUS
18644 # -----------------------
18645 # Set $? to STATUS, without forking.
18646 as_fn_set_status ()
18647 {
18648 return $1
18649 } # as_fn_set_status
18650
18651 # as_fn_exit STATUS
18652 # -----------------
18653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18654 as_fn_exit ()
18655 {
18656 set +e
18657 as_fn_set_status $1
18658 exit $1
18659 } # as_fn_exit
18660
18661 # as_fn_unset VAR
18662 # ---------------
18663 # Portably unset VAR.
18664 as_fn_unset ()
18665 {
18666 { eval $1=; unset $1;}
18667 }
18668 as_unset=as_fn_unset
18669 # as_fn_append VAR VALUE
18670 # ----------------------
18671 # Append the text in VALUE to the end of the definition contained in VAR. Take
18672 # advantage of any shell optimizations that allow amortized linear growth over
18673 # repeated appends, instead of the typical quadratic growth present in naive
18674 # implementations.
18675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18676 eval 'as_fn_append ()
18677 {
18678 eval $1+=\$2
18679 }'
18680 else
18681 as_fn_append ()
18682 {
18683 eval $1=\$$1\$2
18684 }
18685 fi # as_fn_append
18686
18687 # as_fn_arith ARG...
18688 # ------------------
18689 # Perform arithmetic evaluation on the ARGs, and store the result in the
18690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18691 # must be portable across $(()) and expr.
18692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18693 eval 'as_fn_arith ()
18694 {
18695 as_val=$(( $* ))
18696 }'
18697 else
18698 as_fn_arith ()
18699 {
18700 as_val=`expr "$@" || test $? -eq 1`
18701 }
18702 fi # as_fn_arith
18703
18704
18705 if expr a : '\(a\)' >/dev/null 2>&1 &&
18706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18707 as_expr=expr
18708 else
18709 as_expr=false
18710 fi
18711
18712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18713 as_basename=basename
18714 else
18715 as_basename=false
18716 fi
18717
18718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18719 as_dirname=dirname
18720 else
18721 as_dirname=false
18722 fi
18723
18724 as_me=`$as_basename -- "$0" ||
18725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18726 X"$0" : 'X\(//\)$' \| \
18727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18728 $as_echo X/"$0" |
18729 sed '/^.*\/\([^/][^/]*\)\/*$/{
18730 s//\1/
18731 q
18732 }
18733 /^X\/\(\/\/\)$/{
18734 s//\1/
18735 q
18736 }
18737 /^X\/\(\/\).*/{
18738 s//\1/
18739 q
18740 }
18741 s/.*/./; q'`
18742
18743 # Avoid depending upon Character Ranges.
18744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18747 as_cr_digits='0123456789'
18748 as_cr_alnum=$as_cr_Letters$as_cr_digits
18749
18750 ECHO_C= ECHO_N= ECHO_T=
18751 case `echo -n x` in #(((((
18752 -n*)
18753 case `echo 'xy\c'` in
18754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18755 xy) ECHO_C='\c';;
18756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18757 ECHO_T=' ';;
18758 esac;;
18759 *)
18760 ECHO_N='-n';;
18761 esac
18762
18763 rm -f conf$$ conf$$.exe conf$$.file
18764 if test -d conf$$.dir; then
18765 rm -f conf$$.dir/conf$$.file
18766 else
18767 rm -f conf$$.dir
18768 mkdir conf$$.dir 2>/dev/null
18769 fi
18770 if (echo >conf$$.file) 2>/dev/null; then
18771 if ln -s conf$$.file conf$$ 2>/dev/null; then
18772 as_ln_s='ln -s'
18773 # ... but there are two gotchas:
18774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18776 # In both cases, we have to default to `cp -pR'.
18777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18778 as_ln_s='cp -pR'
18779 elif ln conf$$.file conf$$ 2>/dev/null; then
18780 as_ln_s=ln
18781 else
18782 as_ln_s='cp -pR'
18783 fi
18784 else
18785 as_ln_s='cp -pR'
18786 fi
18787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18788 rmdir conf$$.dir 2>/dev/null
18789
18790
18791 # as_fn_mkdir_p
18792 # -------------
18793 # Create "$as_dir" as a directory, including parents if necessary.
18794 as_fn_mkdir_p ()
18795 {
18796
18797 case $as_dir in #(
18798 -*) as_dir=./$as_dir;;
18799 esac
18800 test -d "$as_dir" || eval $as_mkdir_p || {
18801 as_dirs=
18802 while :; do
18803 case $as_dir in #(
18804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18805 *) as_qdir=$as_dir;;
18806 esac
18807 as_dirs="'$as_qdir' $as_dirs"
18808 as_dir=`$as_dirname -- "$as_dir" ||
18809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18810 X"$as_dir" : 'X\(//\)[^/]' \| \
18811 X"$as_dir" : 'X\(//\)$' \| \
18812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18813 $as_echo X"$as_dir" |
18814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18815 s//\1/
18816 q
18817 }
18818 /^X\(\/\/\)[^/].*/{
18819 s//\1/
18820 q
18821 }
18822 /^X\(\/\/\)$/{
18823 s//\1/
18824 q
18825 }
18826 /^X\(\/\).*/{
18827 s//\1/
18828 q
18829 }
18830 s/.*/./; q'`
18831 test -d "$as_dir" && break
18832 done
18833 test -z "$as_dirs" || eval "mkdir $as_dirs"
18834 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18835
18836
18837 } # as_fn_mkdir_p
18838 if mkdir -p . 2>/dev/null; then
18839 as_mkdir_p='mkdir -p "$as_dir"'
18840 else
18841 test -d ./-p && rmdir ./-p
18842 as_mkdir_p=false
18843 fi
18844
18845
18846 # as_fn_executable_p FILE
18847 # -----------------------
18848 # Test if FILE is an executable regular file.
18849 as_fn_executable_p ()
18850 {
18851 test -f "$1" && test -x "$1"
18852 } # as_fn_executable_p
18853 as_test_x='test -x'
18854 as_executable_p=as_fn_executable_p
18855
18856 # Sed expression to map a string onto a valid CPP name.
18857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18858
18859 # Sed expression to map a string onto a valid variable name.
18860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18861
18862
18863 exec 6>&1
18864 ## ----------------------------------- ##
18865 ## Main body of $CONFIG_STATUS script. ##
18866 ## ----------------------------------- ##
18867 _ASEOF
18868 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18869
18870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18871 # Save the log message, to keep $0 and so on meaningful, and to
18872 # report actual input values of CONFIG_FILES etc. instead of their
18873 # values after options handling.
18874 ac_log="
18875 This file was extended by $as_me, which was
18876 generated by GNU Autoconf 2.69. Invocation command line was
18877
18878 CONFIG_FILES = $CONFIG_FILES
18879 CONFIG_HEADERS = $CONFIG_HEADERS
18880 CONFIG_LINKS = $CONFIG_LINKS
18881 CONFIG_COMMANDS = $CONFIG_COMMANDS
18882 $ $0 $@
18883
18884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18885 "
18886
18887 _ACEOF
18888
18889 case $ac_config_files in *"
18890 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18891 esac
18892
18893
18894
18895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18896 # Files that config.status was made for.
18897 config_files="$ac_config_files"
18898
18899 _ACEOF
18900
18901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18902 ac_cs_usage="\
18903 \`$as_me' instantiates files and other configuration actions
18904 from templates according to the current configuration. Unless the files
18905 and actions are specified as TAGs, all are instantiated by default.
18906
18907 Usage: $0 [OPTION]... [TAG]...
18908
18909 -h, --help print this help, then exit
18910 -V, --version print version number and configuration settings, then exit
18911 --config print configuration, then exit
18912 -q, --quiet, --silent
18913 do not print progress messages
18914 -d, --debug don't remove temporary files
18915 --recheck update $as_me by reconfiguring in the same conditions
18916 --file=FILE[:TEMPLATE]
18917 instantiate the configuration file FILE
18918
18919 Configuration files:
18920 $config_files
18921
18922 Report bugs to the package provider."
18923
18924 _ACEOF
18925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18927 ac_cs_version="\\
18928 config.status
18929 configured by $0, generated by GNU Autoconf 2.69,
18930 with options \\"\$ac_cs_config\\"
18931
18932 Copyright (C) 2012 Free Software Foundation, Inc.
18933 This config.status script is free software; the Free Software Foundation
18934 gives unlimited permission to copy, distribute and modify it."
18935
18936 ac_pwd='$ac_pwd'
18937 srcdir='$srcdir'
18938 INSTALL='$INSTALL'
18939 AWK='$AWK'
18940 test -n "\$AWK" || AWK=awk
18941 _ACEOF
18942
18943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18944 # The default lists apply if the user does not specify any file.
18945 ac_need_defaults=:
18946 while test $# != 0
18947 do
18948 case $1 in
18949 --*=?*)
18950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18952 ac_shift=:
18953 ;;
18954 --*=)
18955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18956 ac_optarg=
18957 ac_shift=:
18958 ;;
18959 *)
18960 ac_option=$1
18961 ac_optarg=$2
18962 ac_shift=shift
18963 ;;
18964 esac
18965
18966 case $ac_option in
18967 # Handling of the options.
18968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18969 ac_cs_recheck=: ;;
18970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18971 $as_echo "$ac_cs_version"; exit ;;
18972 --config | --confi | --conf | --con | --co | --c )
18973 $as_echo "$ac_cs_config"; exit ;;
18974 --debug | --debu | --deb | --de | --d | -d )
18975 debug=: ;;
18976 --file | --fil | --fi | --f )
18977 $ac_shift
18978 case $ac_optarg in
18979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18980 '') as_fn_error $? "missing file argument" ;;
18981 esac
18982 as_fn_append CONFIG_FILES " '$ac_optarg'"
18983 ac_need_defaults=false;;
18984 --he | --h | --help | --hel | -h )
18985 $as_echo "$ac_cs_usage"; exit ;;
18986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18988 ac_cs_silent=: ;;
18989
18990 # This is an error.
18991 -*) as_fn_error $? "unrecognized option: \`$1'
18992 Try \`$0 --help' for more information." ;;
18993
18994 *) as_fn_append ac_config_targets " $1"
18995 ac_need_defaults=false ;;
18996
18997 esac
18998 shift
18999 done
19000
19001 ac_configure_extra_args=
19002
19003 if $ac_cs_silent; then
19004 exec 6>/dev/null
19005 ac_configure_extra_args="$ac_configure_extra_args --silent"
19006 fi
19007
19008 _ACEOF
19009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19010 if \$ac_cs_recheck; then
19011 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19012 shift
19013 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19014 CONFIG_SHELL='$SHELL'
19015 export CONFIG_SHELL
19016 exec "\$@"
19017 fi
19018
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19021 exec 5>>config.log
19022 {
19023 echo
19024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19025 ## Running $as_me. ##
19026 _ASBOX
19027 $as_echo "$ac_log"
19028 } >&5
19029
19030 _ACEOF
19031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19032 #
19033 # INIT-COMMANDS
19034 #
19035 extrasub_build="$extrasub_build"
19036 extrasub_host="$extrasub_host"
19037 extrasub_target="$extrasub_target"
19038
19039 _ACEOF
19040
19041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19042
19043 # Handling of arguments.
19044 for ac_config_target in $ac_config_targets
19045 do
19046 case $ac_config_target in
19047 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19048
19049 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19050 esac
19051 done
19052
19053
19054 # If the user did not use the arguments to specify the items to instantiate,
19055 # then the envvar interface is used. Set only those that are not.
19056 # We use the long form for the default assignment because of an extremely
19057 # bizarre bug on SunOS 4.1.3.
19058 if $ac_need_defaults; then
19059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19060 fi
19061
19062 # Have a temporary directory for convenience. Make it in the build tree
19063 # simply because there is no reason against having it here, and in addition,
19064 # creating and moving files from /tmp can sometimes cause problems.
19065 # Hook for its removal unless debugging.
19066 # Note that there is a small window in which the directory will not be cleaned:
19067 # after its creation but before its name has been assigned to `$tmp'.
19068 $debug ||
19069 {
19070 tmp= ac_tmp=
19071 trap 'exit_status=$?
19072 : "${ac_tmp:=$tmp}"
19073 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19074 ' 0
19075 trap 'as_fn_exit 1' 1 2 13 15
19076 }
19077 # Create a (secure) tmp directory for tmp files.
19078
19079 {
19080 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19081 test -d "$tmp"
19082 } ||
19083 {
19084 tmp=./conf$$-$RANDOM
19085 (umask 077 && mkdir "$tmp")
19086 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19087 ac_tmp=$tmp
19088
19089 # Set up the scripts for CONFIG_FILES section.
19090 # No need to generate them if there are no CONFIG_FILES.
19091 # This happens for instance with `./config.status config.h'.
19092 if test -n "$CONFIG_FILES"; then
19093
19094 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19095 ac_cs_awk_getline=:
19096 ac_cs_awk_pipe_init=
19097 ac_cs_awk_read_file='
19098 while ((getline aline < (F[key])) > 0)
19099 print(aline)
19100 close(F[key])'
19101 ac_cs_awk_pipe_fini=
19102 else
19103 ac_cs_awk_getline=false
19104 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19105 ac_cs_awk_read_file='
19106 print "|#_!!_#|"
19107 print "cat " F[key] " &&"
19108 '$ac_cs_awk_pipe_init
19109 # The final `:' finishes the AND list.
19110 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19111 fi
19112 ac_cr=`echo X | tr X '\015'`
19113 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19114 # But we know of no other shell where ac_cr would be empty at this
19115 # point, so we can use a bashism as a fallback.
19116 if test "x$ac_cr" = x; then
19117 eval ac_cr=\$\'\\r\'
19118 fi
19119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19121 ac_cs_awk_cr='\\r'
19122 else
19123 ac_cs_awk_cr=$ac_cr
19124 fi
19125
19126 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19127 _ACEOF
19128
19129 # Create commands to substitute file output variables.
19130 {
19131 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19132 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19133 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19134 echo "_ACAWK" &&
19135 echo "_ACEOF"
19136 } >conf$$files.sh &&
19137 . ./conf$$files.sh ||
19138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19139 rm -f conf$$files.sh
19140
19141 {
19142 echo "cat >conf$$subs.awk <<_ACEOF" &&
19143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19144 echo "_ACEOF"
19145 } >conf$$subs.sh ||
19146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19148 ac_delim='%!_!# '
19149 for ac_last_try in false false false false false :; do
19150 . ./conf$$subs.sh ||
19151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152
19153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19154 if test $ac_delim_n = $ac_delim_num; then
19155 break
19156 elif $ac_last_try; then
19157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19158 else
19159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19160 fi
19161 done
19162 rm -f conf$$subs.sh
19163
19164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19165 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19166 _ACEOF
19167 sed -n '
19168 h
19169 s/^/S["/; s/!.*/"]=/
19170 p
19171 g
19172 s/^[^!]*!//
19173 :repl
19174 t repl
19175 s/'"$ac_delim"'$//
19176 t delim
19177 :nl
19178 h
19179 s/\(.\{148\}\)..*/\1/
19180 t more1
19181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19182 p
19183 n
19184 b repl
19185 :more1
19186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19187 p
19188 g
19189 s/.\{148\}//
19190 t nl
19191 :delim
19192 h
19193 s/\(.\{148\}\)..*/\1/
19194 t more2
19195 s/["\\]/\\&/g; s/^/"/; s/$/"/
19196 p
19197 b
19198 :more2
19199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19200 p
19201 g
19202 s/.\{148\}//
19203 t delim
19204 ' <conf$$subs.awk | sed '
19205 /^[^""]/{
19206 N
19207 s/\n//
19208 }
19209 ' >>$CONFIG_STATUS || ac_write_fail=1
19210 rm -f conf$$subs.awk
19211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19212 _ACAWK
19213 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19214 for (key in S) S_is_set[key] = 1
19215 FS = "\a"
19216 \$ac_cs_awk_pipe_init
19217 }
19218 {
19219 line = $ 0
19220 nfields = split(line, field, "@")
19221 substed = 0
19222 len = length(field[1])
19223 for (i = 2; i < nfields; i++) {
19224 key = field[i]
19225 keylen = length(key)
19226 if (S_is_set[key]) {
19227 value = S[key]
19228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19229 len += length(value) + length(field[++i])
19230 substed = 1
19231 } else
19232 len += 1 + keylen
19233 }
19234 if (nfields == 3 && !substed) {
19235 key = field[2]
19236 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19237 \$ac_cs_awk_read_file
19238 next
19239 }
19240 }
19241 print line
19242 }
19243 \$ac_cs_awk_pipe_fini
19244 _ACAWK
19245 _ACEOF
19246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19247 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19248 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19249 else
19250 cat
19251 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19252 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19253 _ACEOF
19254
19255 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19256 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19257 # trailing colons and then remove the whole line if VPATH becomes empty
19258 # (actually we leave an empty line to preserve line numbers).
19259 if test "x$srcdir" = x.; then
19260 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19261 h
19262 s///
19263 s/^/:/
19264 s/[ ]*$/:/
19265 s/:\$(srcdir):/:/g
19266 s/:\${srcdir}:/:/g
19267 s/:@srcdir@:/:/g
19268 s/^:*//
19269 s/:*$//
19270 x
19271 s/\(=[ ]*\).*/\1/
19272 G
19273 s/\n//
19274 s/^[^=]*=[ ]*$//
19275 }'
19276 fi
19277
19278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19279 fi # test -n "$CONFIG_FILES"
19280
19281
19282 eval set X " :F $CONFIG_FILES "
19283 shift
19284 for ac_tag
19285 do
19286 case $ac_tag in
19287 :[FHLC]) ac_mode=$ac_tag; continue;;
19288 esac
19289 case $ac_mode$ac_tag in
19290 :[FHL]*:*);;
19291 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19292 :[FH]-) ac_tag=-:-;;
19293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19294 esac
19295 ac_save_IFS=$IFS
19296 IFS=:
19297 set x $ac_tag
19298 IFS=$ac_save_IFS
19299 shift
19300 ac_file=$1
19301 shift
19302
19303 case $ac_mode in
19304 :L) ac_source=$1;;
19305 :[FH])
19306 ac_file_inputs=
19307 for ac_f
19308 do
19309 case $ac_f in
19310 -) ac_f="$ac_tmp/stdin";;
19311 *) # Look for the file first in the build tree, then in the source tree
19312 # (if the path is not absolute). The absolute path cannot be DOS-style,
19313 # because $ac_f cannot contain `:'.
19314 test -f "$ac_f" ||
19315 case $ac_f in
19316 [\\/$]*) false;;
19317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19318 esac ||
19319 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19320 esac
19321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19322 as_fn_append ac_file_inputs " '$ac_f'"
19323 done
19324
19325 # Let's still pretend it is `configure' which instantiates (i.e., don't
19326 # use $as_me), people would be surprised to read:
19327 # /* config.h. Generated by config.status. */
19328 configure_input='Generated from '`
19329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19330 `' by configure.'
19331 if test x"$ac_file" != x-; then
19332 configure_input="$ac_file. $configure_input"
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19334 $as_echo "$as_me: creating $ac_file" >&6;}
19335 fi
19336 # Neutralize special characters interpreted by sed in replacement strings.
19337 case $configure_input in #(
19338 *\&* | *\|* | *\\* )
19339 ac_sed_conf_input=`$as_echo "$configure_input" |
19340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19341 *) ac_sed_conf_input=$configure_input;;
19342 esac
19343
19344 case $ac_tag in
19345 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19347 esac
19348 ;;
19349 esac
19350
19351 ac_dir=`$as_dirname -- "$ac_file" ||
19352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19353 X"$ac_file" : 'X\(//\)[^/]' \| \
19354 X"$ac_file" : 'X\(//\)$' \| \
19355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19356 $as_echo X"$ac_file" |
19357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19358 s//\1/
19359 q
19360 }
19361 /^X\(\/\/\)[^/].*/{
19362 s//\1/
19363 q
19364 }
19365 /^X\(\/\/\)$/{
19366 s//\1/
19367 q
19368 }
19369 /^X\(\/\).*/{
19370 s//\1/
19371 q
19372 }
19373 s/.*/./; q'`
19374 as_dir="$ac_dir"; as_fn_mkdir_p
19375 ac_builddir=.
19376
19377 case "$ac_dir" in
19378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19379 *)
19380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19381 # A ".." for each directory in $ac_dir_suffix.
19382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19383 case $ac_top_builddir_sub in
19384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19386 esac ;;
19387 esac
19388 ac_abs_top_builddir=$ac_pwd
19389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19390 # for backward compatibility:
19391 ac_top_builddir=$ac_top_build_prefix
19392
19393 case $srcdir in
19394 .) # We are building in place.
19395 ac_srcdir=.
19396 ac_top_srcdir=$ac_top_builddir_sub
19397 ac_abs_top_srcdir=$ac_pwd ;;
19398 [\\/]* | ?:[\\/]* ) # Absolute name.
19399 ac_srcdir=$srcdir$ac_dir_suffix;
19400 ac_top_srcdir=$srcdir
19401 ac_abs_top_srcdir=$srcdir ;;
19402 *) # Relative name.
19403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19404 ac_top_srcdir=$ac_top_build_prefix$srcdir
19405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19406 esac
19407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19408
19409
19410 case $ac_mode in
19411 :F)
19412 #
19413 # CONFIG_FILE
19414 #
19415
19416 case $INSTALL in
19417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19419 esac
19420 _ACEOF
19421
19422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19423 # If the template does not know about datarootdir, expand it.
19424 # FIXME: This hack should be removed a few years after 2.60.
19425 ac_datarootdir_hack=; ac_datarootdir_seen=
19426 ac_sed_dataroot='
19427 /datarootdir/ {
19428 p
19429 q
19430 }
19431 /@datadir@/p
19432 /@docdir@/p
19433 /@infodir@/p
19434 /@localedir@/p
19435 /@mandir@/p'
19436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19437 *datarootdir*) ac_datarootdir_seen=yes;;
19438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19441 _ACEOF
19442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19443 ac_datarootdir_hack='
19444 s&@datadir@&$datadir&g
19445 s&@docdir@&$docdir&g
19446 s&@infodir@&$infodir&g
19447 s&@localedir@&$localedir&g
19448 s&@mandir@&$mandir&g
19449 s&\\\${datarootdir}&$datarootdir&g' ;;
19450 esac
19451 _ACEOF
19452
19453 # Neutralize VPATH when `$srcdir' = `.'.
19454 # Shell code in configure.ac might set extrasub.
19455 # FIXME: do we really want to maintain this feature?
19456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19457 ac_sed_extra="$ac_vpsub
19458 $extrasub
19459 _ACEOF
19460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19461 :t
19462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19463 s|@configure_input@|$ac_sed_conf_input|;t t
19464 s&@top_builddir@&$ac_top_builddir_sub&;t t
19465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19466 s&@srcdir@&$ac_srcdir&;t t
19467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19468 s&@top_srcdir@&$ac_top_srcdir&;t t
19469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19470 s&@builddir@&$ac_builddir&;t t
19471 s&@abs_builddir@&$ac_abs_builddir&;t t
19472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19473 s&@INSTALL@&$ac_INSTALL&;t t
19474 $ac_datarootdir_hack
19475 "
19476 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19477 if $ac_cs_awk_getline; then
19478 $AWK -f "$ac_tmp/subs.awk"
19479 else
19480 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19481 fi \
19482 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19483
19484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19485 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19487 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19489 which seems to be undefined. Please make sure it is defined" >&5
19490 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19491 which seems to be undefined. Please make sure it is defined" >&2;}
19492
19493 rm -f "$ac_tmp/stdin"
19494 case $ac_file in
19495 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19496 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19497 esac \
19498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19499 ;;
19500
19501
19502
19503 esac
19504
19505
19506 case $ac_file$ac_mode in
19507 "Makefile":F) sed "$extrasub_build" Makefile |
19508 sed "$extrasub_host" |
19509 sed "$extrasub_target" > mf$$
19510 mv -f mf$$ Makefile ;;
19511
19512 esac
19513 done # for ac_tag
19514
19515
19516 as_fn_exit 0
19517 _ACEOF
19518 ac_clean_files=$ac_clean_files_save
19519
19520 test $ac_write_fail = 0 ||
19521 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19522
19523
19524 # configure is writing to config.log, and then calls config.status.
19525 # config.status does its own redirection, appending to config.log.
19526 # Unfortunately, on DOS this fails, as config.log is still kept open
19527 # by configure, so config.status won't be able to write to it; its
19528 # output is simply discarded. So we exec the FD to /dev/null,
19529 # effectively closing config.log, so it can be properly (re)opened and
19530 # appended to by config.status. When coming back to configure, we
19531 # need to make the FD available again.
19532 if test "$no_create" != yes; then
19533 ac_cs_success=:
19534 ac_config_status_args=
19535 test "$silent" = yes &&
19536 ac_config_status_args="$ac_config_status_args --quiet"
19537 exec 5>/dev/null
19538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19539 exec 5>>config.log
19540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19541 # would make configure fail if this is the last instruction.
19542 $ac_cs_success || as_fn_exit 1
19543 fi
19544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19546 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19547 fi
19548