configure revision 1.18 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 (at] 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="$SHELL $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="$SHELL $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="$SHELL $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 case $target in
8595 m68010-*)
8596 build_lto_plugin=no;;
8597 *)
8598 build_lto_plugin=yes;;
8599 esac
8600
8601 else
8602 if test x"$default_enable_lto" = x"yes" ; then
8603 case $target in
8604 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8605 # On other non-ELF platforms, LTO has yet to be validated.
8606 *) enable_lto=no ;;
8607 esac
8608 else
8609 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8610 # It would also be nice to check the binutils support, but we don't
8611 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8612 # warn during gcc/ subconfigure; unless you're bootstrapping with
8613 # -flto it won't be needed until after installation anyway.
8614 case $target in
8615 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8616 *) if test x"$enable_lto" = x"yes"; then
8617 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8618 fi
8619 ;;
8620 esac
8621 fi
8622 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8623 # Build it unless LTO was explicitly disabled.
8624 case $target in
8625 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8626 *) ;;
8627 esac
8628
8629 fi
8630
8631
8632 # Check whether --enable-linker-plugin-configure-flags was given.
8633 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8634 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8635 else
8636 extra_linker_plugin_configure_flags=
8637 fi
8638
8639
8640 # Check whether --enable-linker-plugin-flags was given.
8641 if test "${enable_linker_plugin_flags+set}" = set; then :
8642 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8643 else
8644 extra_linker_plugin_flags=
8645 fi
8646
8647
8648
8649 # Enable --enable-host-shared.
8650 # Checked early to determine whether jit is an 'all' language
8651 # Check whether --enable-host-shared was given.
8652 if test "${enable_host_shared+set}" = set; then :
8653 enableval=$enable_host_shared; host_shared=$enableval
8654 case $target in
8655 x86_64-*-darwin* | aarch64-*-darwin*)
8656 if test x$host_shared != xyes ; then
8657 # PIC is the default, and actually cannot be switched off.
8658 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8659 host_shared=yes
8660 fi ;;
8661 *) ;;
8662 esac
8663 else
8664 case $target in
8665 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8666 *) host_shared=no ;;
8667 esac
8668 fi
8669
8670
8671
8672 # By default, C and C++ are the only stage 1 languages.
8673 stage1_languages=,c,
8674
8675 # Target libraries that we bootstrap.
8676 bootstrap_target_libs=,target-libgcc,
8677
8678 # Figure out what language subdirectories are present.
8679 # Look if the user specified --enable-languages="..."; if not, use
8680 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8681 # go away some day.
8682 # NB: embedded tabs in this IF block -- do not untabify
8683 if test -d ${srcdir}/gcc; then
8684 if test x"${enable_languages+set}" != xset; then
8685 if test x"${LANGUAGES+set}" = xset; then
8686 enable_languages="${LANGUAGES}"
8687 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8688 else
8689 enable_languages=default
8690 fi
8691 else
8692 if test x"${enable_languages}" = x ||
8693 test x"${enable_languages}" = xyes;
8694 then
8695 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8696 exit 1
8697 fi
8698 fi
8699 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8700
8701 # 'f95' is the old name for the 'fortran' language. We issue a warning
8702 # and make the substitution.
8703 case ,${enable_languages}, in
8704 *,f95,*)
8705 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8706 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8707 ;;
8708 esac
8709
8710 # If bootstrapping, C++ must be enabled.
8711 case ",$enable_languages,:$enable_bootstrap" in
8712 *,c++,*:*) ;;
8713 *:yes)
8714 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8715 enable_languages="${enable_languages},c++"
8716 else
8717 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8718 fi
8719 ;;
8720 esac
8721
8722 # First scan to see if an enabled language requires some other language.
8723 # We assume that a given config-lang.in will list all the language
8724 # front ends it requires, even if some are required indirectly.
8725 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8726 case ${lang_frag} in
8727 ..) ;;
8728 # The odd quoting in the next line works around
8729 # an apparent bug in bash 1.12 on linux.
8730 ${srcdir}/gcc/[*]/config-lang.in) ;;
8731 *)
8732 # From the config-lang.in, get $language, $lang_requires, and
8733 # $lang_requires_boot_languages.
8734 language=
8735 lang_requires=
8736 lang_requires_boot_languages=
8737 # set srcdir during sourcing lang_frag to the gcc dir.
8738 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8739 # polutes this shell
8740 saved_srcdir=${srcdir}
8741 srcdir=${srcdir}/gcc . ${lang_frag}
8742 srcdir=${saved_srcdir}
8743 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8744 case ,${enable_languages}, in
8745 *,$other,*) ;;
8746 *,default,*) ;;
8747 *,all,*) ;;
8748 *,$language,*)
8749 echo " \`$other' language required by \`$language'; enabling" 1>&2
8750 enable_languages="${enable_languages},${other}"
8751 ;;
8752 esac
8753 done
8754 for other in ${lang_requires_boot_languages} ; do
8755 if test "$other" != "c"; then
8756 case ,${enable_stage1_languages}, in
8757 *,$other,*) ;;
8758 *,default,*) ;;
8759 *,all,*) ;;
8760 *)
8761 case ,${enable_languages}, in
8762 *,$language,*)
8763 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8764 enable_stage1_languages="$enable_stage1_languages,${other}"
8765 ;;
8766 esac
8767 ;;
8768 esac
8769 fi
8770 done
8771 ;;
8772 esac
8773 done
8774
8775 new_enable_languages=,c,
8776
8777 # If LTO is enabled, add the LTO front end.
8778 if test "$enable_lto" = "yes" ; then
8779 case ,${enable_languages}, in
8780 *,lto,*) ;;
8781 *) enable_languages="${enable_languages},lto" ;;
8782 esac
8783 if test "${build_lto_plugin}" = "yes" ; then
8784 configdirs="$configdirs lto-plugin"
8785 fi
8786 fi
8787
8788 # If we're building an offloading compiler, add the LTO front end.
8789 if test x"$enable_as_accelerator_for" != x ; then
8790 case ,${enable_languages}, in
8791 *,lto,*) ;;
8792 *) enable_languages="${enable_languages},lto" ;;
8793 esac
8794 fi
8795
8796 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8797 potential_languages=,c,
8798
8799 enabled_target_libs=
8800 disabled_target_libs=
8801
8802 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8803 case ${lang_frag} in
8804 ..) ;;
8805 # The odd quoting in the next line works around
8806 # an apparent bug in bash 1.12 on linux.
8807 ${srcdir}/gcc/[*]/config-lang.in) ;;
8808 *)
8809 # From the config-lang.in, get $language, $target_libs,
8810 # $lang_dirs, $boot_language, and $build_by_default
8811 language=
8812 target_libs=
8813 lang_dirs=
8814 subdir_requires=
8815 boot_language=no
8816 build_by_default=yes
8817 # set srcdir during sourcing. See above about save & restore
8818 saved_srcdir=${srcdir}
8819 srcdir=${srcdir}/gcc . ${lang_frag}
8820 srcdir=${saved_srcdir}
8821 if test x${language} = x; then
8822 echo "${lang_frag} doesn't set \$language." 1>&2
8823 exit 1
8824 fi
8825
8826 if test "$language" = "c++"; then
8827 boot_language=yes
8828 fi
8829
8830 add_this_lang=no
8831 # C is always enabled, so no need to add it again
8832 if test "$language" != "c"; then
8833 case ,${enable_languages}, in
8834 *,${language},*)
8835 # Language was explicitly selected; include it
8836 add_this_lang=yes
8837 ;;
8838 *,all,*)
8839 # All languages are enabled
8840 add_this_lang=all
8841 ;;
8842 *,default,*)
8843 # 'default' was selected, select it if it is a default language
8844 add_this_lang=${build_by_default}
8845 ;;
8846 esac
8847 fi
8848
8849 # Disable languages that need other directories if these aren't available.
8850 for i in $subdir_requires; do
8851 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8852 case ${add_this_lang} in
8853 yes)
8854 # Specifically requested language; tell them.
8855 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8856 ;;
8857 all)
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8859 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8860 add_this_lang=unsupported
8861 ;;
8862 *)
8863 # Silently disable.
8864 add_this_lang=unsupported
8865 ;;
8866 esac
8867 done
8868
8869 # Disable Ada if no preexisting GNAT is available.
8870 case ${add_this_lang}:${language}:${have_gnat} in
8871 yes:ada:no)
8872 # Specifically requested language; tell them.
8873 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8874 ;;
8875 all:ada:no)
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8877 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8878 add_this_lang=unsupported
8879 ;;
8880 *:ada:no)
8881 # Silently disable.
8882 add_this_lang=unsupported
8883 ;;
8884 esac
8885
8886 # Disable D if no preexisting GDC is available.
8887 case ${add_this_lang}:${language}:${have_gdc} in
8888 yes:d:no)
8889 # Specifically requested language; tell them.
8890 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8891 ;;
8892 all:d:no)
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8894 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8895 add_this_lang=unsupported
8896 ;;
8897 *:d:no)
8898 # Silently disable.
8899 add_this_lang=unsupported
8900 ;;
8901 esac
8902
8903 # Disable jit if -enable-host-shared not specified
8904 # but not if building for Mingw. All code in Windows
8905 # is position independent code (PIC).
8906 case $target in
8907 *mingw*) ;;
8908 *)
8909 case ${add_this_lang}:${language}:${host_shared} in
8910 yes:jit:no)
8911 # PR jit/64780: explicitly specify --enable-host-shared
8912 as_fn_error $? "
8913 Enabling language \"jit\" requires --enable-host-shared.
8914
8915 --enable-host-shared typically slows the rest of the compiler down by
8916 a few %, so you must explicitly enable it.
8917
8918 If you want to build both the jit and the regular compiler, it is often
8919 best to do this via two separate configure/builds, in separate
8920 directories, to avoid imposing the performance cost of
8921 --enable-host-shared on the regular compiler." "$LINENO" 5
8922 ;;
8923 all:jit:no)
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8925 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8926 add_this_lang=unsupported
8927 ;;
8928 *:jit:no)
8929 # Silently disable.
8930 add_this_lang=unsupported
8931 ;;
8932 esac
8933 ;;
8934 esac
8935
8936 # Disable a language that is unsupported by the target.
8937 case "${add_this_lang}: $unsupported_languages " in
8938 no:*) ;;
8939 unsupported:*) ;;
8940 *:*" $language "*)
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8942 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8943 add_this_lang=unsupported
8944 ;;
8945 esac
8946
8947 case $add_this_lang in
8948 unsupported)
8949 # Remove language-dependent dirs.
8950 disabled_target_libs="$disabled_target_libs $target_libs"
8951 noconfigdirs="$noconfigdirs $lang_dirs"
8952 ;;
8953 no)
8954 # Remove language-dependent dirs; still show language as supported.
8955 disabled_target_libs="$disabled_target_libs $target_libs"
8956 noconfigdirs="$noconfigdirs $lang_dirs"
8957 potential_languages="${potential_languages}${language},"
8958 ;;
8959 all|yes)
8960 new_enable_languages="${new_enable_languages}${language},"
8961 potential_languages="${potential_languages}${language},"
8962 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8963 enabled_target_libs="$enabled_target_libs $target_libs"
8964 case "${boot_language}:,$enable_stage1_languages," in
8965 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8966 # Add to (comma-separated) list of stage 1 languages.
8967 case ",$stage1_languages," in
8968 *,$language,* | ,yes, | ,all,) ;;
8969 *) stage1_languages="${stage1_languages}${language}," ;;
8970 esac
8971 # We need to bootstrap any supporting libraries.
8972 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8973 ;;
8974 esac
8975 ;;
8976 esac
8977 ;;
8978 esac
8979 done
8980
8981 # Add target libraries which are only needed for disabled languages
8982 # to noconfigdirs.
8983 if test -n "$disabled_target_libs"; then
8984 for dir in $disabled_target_libs; do
8985 case " $enabled_target_libs " in
8986 *" ${dir} "*) ;;
8987 *) noconfigdirs="$noconfigdirs $dir" ;;
8988 esac
8989 done
8990 fi
8991
8992 # Check whether --enable-stage1-languages was given.
8993 if test "${enable_stage1_languages+set}" = set; then :
8994 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8995 ,no,|,,)
8996 # Set it to something that will have no effect in the loop below
8997 enable_stage1_languages=c ;;
8998 ,yes,)
8999 enable_stage1_languages=`echo $new_enable_languages | \
9000 sed -e "s/^,//" -e "s/,$//" ` ;;
9001 *,all,*)
9002 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9003 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9004 esac
9005
9006 # Add "good" languages from enable_stage1_languages to stage1_languages,
9007 # while "bad" languages go in missing_languages. Leave no duplicates.
9008 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9009 case $potential_languages in
9010 *,$i,*)
9011 case $stage1_languages in
9012 *,$i,*) ;;
9013 *) stage1_languages="$stage1_languages$i," ;;
9014 esac ;;
9015 *)
9016 case $missing_languages in
9017 *,$i,*) ;;
9018 *) missing_languages="$missing_languages$i," ;;
9019 esac ;;
9020 esac
9021 done
9022 fi
9023
9024
9025 # Remove leading/trailing commas that were added for simplicity
9026 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9027 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9028 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9029 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9030
9031 if test "x$missing_languages" != x; then
9032 as_fn_error $? "
9033 The following requested languages could not be built: ${missing_languages}
9034 Supported languages are: ${potential_languages}" "$LINENO" 5
9035 fi
9036 if test "x$new_enable_languages" != "x$enable_languages"; then
9037 echo The following languages will be built: ${new_enable_languages}
9038 enable_languages="$new_enable_languages"
9039 fi
9040
9041
9042 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9043 fi
9044
9045 # Handle --disable-<component> generically.
9046 for dir in $configdirs $build_configdirs $target_configdirs ; do
9047 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9048 varname=`echo $dirname | sed -e s/+/_/g`
9049 if eval test x\${enable_${varname}} "=" xno ; then
9050 noconfigdirs="$noconfigdirs $dir"
9051 fi
9052 done
9053
9054 # Check for Boehm's garbage collector
9055 # Check whether --enable-objc-gc was given.
9056 if test "${enable_objc_gc+set}" = set; then :
9057 enableval=$enable_objc_gc;
9058 fi
9059
9060
9061 # Check whether --with-target-bdw-gc was given.
9062 if test "${with_target_bdw_gc+set}" = set; then :
9063 withval=$with_target_bdw_gc;
9064 fi
9065
9066
9067 # Check whether --with-target-bdw-gc-include was given.
9068 if test "${with_target_bdw_gc_include+set}" = set; then :
9069 withval=$with_target_bdw_gc_include;
9070 fi
9071
9072
9073 # Check whether --with-target-bdw-gc-lib was given.
9074 if test "${with_target_bdw_gc_lib+set}" = set; then :
9075 withval=$with_target_bdw_gc_lib;
9076 fi
9077
9078
9079 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9081 $as_echo_n "checking for bdw garbage collector... " >&6; }
9082 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9084 $as_echo "using bdw-gc in default locations" >&6; }
9085 else
9086 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9087 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9088 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9089 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9092 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9093 fi
9094 fi
9095 esac
9096
9097 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9098 case ,${enable_languages}, in
9099 *,c++,*)
9100 # Disable libitm, libsanitizer if we're not building libstdc++
9101 case "${noconfigdirs}" in
9102 *target-libstdc++-v3*)
9103 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9104 ;;
9105 *) ;;
9106 esac
9107 ;;
9108 *)
9109 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9110 ;;
9111 esac
9112
9113 # If gcc/ is not in the source tree then we'll not be building a
9114 # target compiler, assume in that case we don't want to build any
9115 # target libraries or tools.
9116 #
9117 # This was added primarily for the benefit for binutils-gdb who reuse
9118 # this configure script, but don't always have target tools available.
9119 if test ! -d ${srcdir}/gcc; then
9120 skipdirs="${skipdirs} ${target_configdirs}"
9121 fi
9122
9123 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9124 # $build_configdirs and $target_configdirs.
9125 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9126
9127 notsupp=""
9128 for dir in . $skipdirs $noconfigdirs ; do
9129 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9130 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9131 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9132 if test -r $srcdir/$dirname/configure ; then
9133 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134 true
9135 else
9136 notsupp="$notsupp $dir"
9137 fi
9138 fi
9139 fi
9140 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9141 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9142 if test -r $srcdir/$dirname/configure ; then
9143 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9144 true
9145 else
9146 notsupp="$notsupp $dir"
9147 fi
9148 fi
9149 fi
9150 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9151 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9152 if test -r $srcdir/$dirname/configure ; then
9153 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9154 true
9155 else
9156 notsupp="$notsupp $dir"
9157 fi
9158 fi
9159 fi
9160 done
9161
9162 # Quietly strip out all directories which aren't configurable in this tree.
9163 # This relies on all configurable subdirectories being autoconfiscated, which
9164 # is now the case.
9165 build_configdirs_all="$build_configdirs"
9166 build_configdirs=
9167 for i in ${build_configdirs_all} ; do
9168 j=`echo $i | sed -e s/build-//g`
9169 if test -f ${srcdir}/$j/configure ; then
9170 build_configdirs="${build_configdirs} $i"
9171 fi
9172 done
9173
9174 configdirs_all="$configdirs"
9175 configdirs=
9176 for i in ${configdirs_all} ; do
9177 if test -f ${srcdir}/$i/configure ; then
9178 configdirs="${configdirs} $i"
9179 fi
9180 done
9181
9182 target_configdirs_all="$target_configdirs"
9183 target_configdirs=
9184 for i in ${target_configdirs_all} ; do
9185 j=`echo $i | sed -e s/target-//g`
9186 if test -f ${srcdir}/$j/configure ; then
9187 target_configdirs="${target_configdirs} $i"
9188 fi
9189 done
9190
9191 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9192 # so we have to add it after the preceding checks.
9193 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9194 then
9195 case " $configdirs " in
9196 *" libiberty "*)
9197 # If we can build libiberty, we can also build libiberty-linker-plugin.
9198 configdirs="$configdirs libiberty-linker-plugin"
9199 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9200 --with-libiberty=../libiberty-linker-plugin";;
9201 *)
9202 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9203 esac
9204 fi
9205
9206 # Sometimes we have special requirements for the host libiberty.
9207 extra_host_libiberty_configure_flags=
9208 extra_host_zlib_configure_flags=
9209 case " $configdirs " in
9210 *" lto-plugin "* | *" libcc1 "*)
9211 # When these are to be built as shared libraries, the same applies to
9212 # libiberty.
9213 extra_host_libiberty_configure_flags=--enable-shared
9214 ;;
9215 *" bfd "*)
9216 # When bfd is to be built as a shared library, the same applies to
9217 # zlib.
9218 if test "$enable_shared" = "yes"; then
9219 extra_host_zlib_configure_flags=--enable-host-shared
9220 fi
9221 ;;
9222 esac
9223
9224
9225
9226 # Produce a warning message for the subdirs we can't configure.
9227 # This isn't especially interesting in the Cygnus tree, but in the individual
9228 # FSF releases, it's important to let people know when their machine isn't
9229 # supported by the one or two programs in a package.
9230
9231 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9232 # If $appdirs is non-empty, at least one of those directories must still
9233 # be configured, or we error out. (E.g., if the gas release supports a
9234 # specified target in some subdirs but not the gas subdir, we shouldn't
9235 # pretend that all is well.)
9236 if test -n "$appdirs" ; then
9237 for dir in $appdirs ; do
9238 if test -r $dir/Makefile.in ; then
9239 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9240 appdirs=""
9241 break
9242 fi
9243 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9244 appdirs=""
9245 break
9246 fi
9247 fi
9248 done
9249 if test -n "$appdirs" ; then
9250 echo "*** This configuration is not supported by this package." 1>&2
9251 exit 1
9252 fi
9253 fi
9254 # Okay, some application will build, or we don't care to check. Still
9255 # notify of subdirs not getting built.
9256 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9257 echo " ${notsupp}" 1>&2
9258 echo " (Any other directories should still work fine.)" 1>&2
9259 fi
9260
9261 case "$host" in
9262 *msdosdjgpp*)
9263 enable_gdbtk=no ;;
9264 esac
9265
9266 # To find our prefix, in gcc_cv_tool_prefix.
9267
9268 # The user is always right.
9269 if test "${PATH_SEPARATOR+set}" != set; then
9270 echo "#! /bin/sh" >conf$$.sh
9271 echo "exit 0" >>conf$$.sh
9272 chmod +x conf$$.sh
9273 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9274 PATH_SEPARATOR=';'
9275 else
9276 PATH_SEPARATOR=:
9277 fi
9278 rm -f conf$$.sh
9279 fi
9280
9281
9282 get_gcc_base_ver="cat"
9283
9284 # Check whether --with-gcc-major-version-only was given.
9285 if test "${with_gcc_major_version_only+set}" = set; then :
9286 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9287 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9288 fi
9289
9290 fi
9291
9292
9293
9294
9295
9296
9297 if test "x$exec_prefix" = xNONE; then
9298 if test "x$prefix" = xNONE; then
9299 gcc_cv_tool_prefix=$ac_default_prefix
9300 else
9301 gcc_cv_tool_prefix=$prefix
9302 fi
9303 else
9304 gcc_cv_tool_prefix=$exec_prefix
9305 fi
9306
9307 # If there is no compiler in the tree, use the PATH only. In any
9308 # case, if there is no compiler in the tree nobody should use
9309 # AS_FOR_TARGET and LD_FOR_TARGET.
9310 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9311 if test x$with_gcc_major_version_only = xyes ; then
9312 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9313 else
9314 gcc_version=`cat $srcdir/gcc/BASE-VER`
9315 fi
9316 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9317 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9318 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9319 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9320 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9321 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9322 else
9323 gcc_cv_tool_dirs=
9324 fi
9325
9326 if test x$build = x$target && test -n "$md_exec_prefix"; then
9327 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9328 fi
9329
9330
9331
9332 copy_dirs=
9333
9334
9335 # Check whether --with-build-sysroot was given.
9336 if test "${with_build_sysroot+set}" = set; then :
9337 withval=$with_build_sysroot; if test x"$withval" != x ; then
9338 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9339 fi
9340 else
9341 SYSROOT_CFLAGS_FOR_TARGET=
9342 fi
9343
9344
9345
9346
9347 # Check whether --with-debug-prefix-map was given.
9348 if test "${with_debug_prefix_map+set}" = set; then :
9349 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9350 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9351 for debug_map in $withval; do
9352 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9353 done
9354 fi
9355 else
9356 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9357 fi
9358
9359
9360
9361 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9362 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9363 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9364 # We want to ensure that TARGET libraries (which we know are built with
9365 # gcc) are built with "-O2 -g", so include those options when setting
9366 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9367 if test "x$CFLAGS_FOR_TARGET" = x; then
9368 if test "x${is_cross_compiler}" = xyes; then
9369 CFLAGS_FOR_TARGET="-g -O2"
9370 else
9371 CFLAGS_FOR_TARGET=$CFLAGS
9372 case " $CFLAGS " in
9373 *" -O2 "*) ;;
9374 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9375 esac
9376 case " $CFLAGS " in
9377 *" -g "* | *" -g3 "*) ;;
9378 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9379 esac
9380 fi
9381 fi
9382
9383
9384 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9385 if test "x${is_cross_compiler}" = xyes; then
9386 CXXFLAGS_FOR_TARGET="-g -O2"
9387 else
9388 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9389 case " $CXXFLAGS " in
9390 *" -O2 "*) ;;
9391 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9392 esac
9393 case " $CXXFLAGS " in
9394 *" -g "* | *" -g3 "*) ;;
9395 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9396 esac
9397 fi
9398 fi
9399
9400
9401
9402
9403 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9404 # the named directory are copied to $(tooldir)/sys-include.
9405 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9406 if test x${is_cross_compiler} = xno ; then
9407 echo 1>&2 '***' --with-headers is only supported when cross compiling
9408 exit 1
9409 fi
9410 if test x"${with_headers}" != xyes ; then
9411 x=${gcc_cv_tool_prefix}
9412 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9413 fi
9414 fi
9415
9416 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9417 # the name directories are copied to $(tooldir)/lib. Multiple directories
9418 # are permitted.
9419 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9420 if test x${is_cross_compiler} = xno ; then
9421 echo 1>&2 '***' --with-libs is only supported when cross compiling
9422 exit 1
9423 fi
9424 if test x"${with_libs}" != xyes ; then
9425 # Copy the libraries in reverse order, so that files in the first named
9426 # library override files in subsequent libraries.
9427 x=${gcc_cv_tool_prefix}
9428 for l in ${with_libs}; do
9429 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9430 done
9431 fi
9432 fi
9433
9434 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9435 #
9436 # This is done by determining whether or not the appropriate directory
9437 # is available, and by checking whether or not specific configurations
9438 # have requested that this magic not happen.
9439 #
9440 # The command line options always override the explicit settings in
9441 # configure.ac, and the settings in configure.ac override this magic.
9442 #
9443 # If the default for a toolchain is to use GNU as and ld, and you don't
9444 # want to do that, then you should use the --without-gnu-as and
9445 # --without-gnu-ld options for the configure script. Similarly, if
9446 # the default is to use the included zlib and you don't want to do that,
9447 # you should use the --with-system-zlib option for the configure script.
9448
9449 if test x${use_gnu_as} = x &&
9450 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9451 with_gnu_as=yes
9452 extra_host_args="$extra_host_args --with-gnu-as"
9453 fi
9454
9455 if test x${use_gnu_ld} = x &&
9456 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9457 with_gnu_ld=yes
9458 extra_host_args="$extra_host_args --with-gnu-ld"
9459 fi
9460
9461 if test x${use_included_zlib} = x &&
9462 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9463 :
9464 else
9465 with_system_zlib=yes
9466 extra_host_args="$extra_host_args --with-system-zlib"
9467 fi
9468
9469 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9470 # can detect this case.
9471
9472 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9473 with_newlib=yes
9474 extra_host_args="$extra_host_args --with-newlib"
9475 fi
9476
9477 # Handle ${copy_dirs}
9478 set fnord ${copy_dirs}
9479 shift
9480 while test $# != 0 ; do
9481 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9482 :
9483 else
9484 echo Copying $1 to $2
9485
9486 # Use the install script to create the directory and all required
9487 # parent directories.
9488 if test -d $2 ; then
9489 :
9490 else
9491 echo >config.temp
9492 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9493 fi
9494
9495 # Copy the directory, assuming we have tar.
9496 # FIXME: Should we use B in the second tar? Not all systems support it.
9497 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9498
9499 # It is the responsibility of the user to correctly adjust all
9500 # symlinks. If somebody can figure out how to handle them correctly
9501 # here, feel free to add the code.
9502
9503 echo $1 > $2/COPIED
9504 fi
9505 shift; shift
9506 done
9507
9508 # Determine a target-dependent exec_prefix that the installed
9509 # gcc will search in. Keep this list sorted by triplet, with
9510 # the *-*-osname triplets last.
9511 md_exec_prefix=
9512 case "${target}" in
9513 i[34567]86-pc-msdosdjgpp*)
9514 md_exec_prefix=/dev/env/DJDIR/bin
9515 ;;
9516 *-*-hpux* | \
9517 *-*-nto-qnx* | \
9518 *-*-solaris2*)
9519 md_exec_prefix=/usr/ccs/bin
9520 ;;
9521 esac
9522
9523 extra_arflags_for_target=
9524 extra_nmflags_for_target=
9525 extra_ranlibflags_for_target=
9526 target_makefile_frag=/dev/null
9527 case "${target}" in
9528 spu-*-*)
9529 target_makefile_frag="config/mt-spu"
9530 ;;
9531 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9532 target_makefile_frag="config/mt-sde"
9533 ;;
9534 mipsisa*-*-elfoabi*)
9535 target_makefile_frag="config/mt-mips-elfoabi"
9536 ;;
9537 mips*-*-*linux* | mips*-*-gnu*)
9538 target_makefile_frag="config/mt-mips-gnu"
9539 ;;
9540 nios2-*-elf*)
9541 target_makefile_frag="config/mt-nios2-elf"
9542 ;;
9543 *-*-linux-android*)
9544 target_makefile_frag="config/mt-android"
9545 ;;
9546 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9547 target_makefile_frag="config/mt-gnu"
9548 ;;
9549 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9550 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9551 # commands to handle both 32-bit and 64-bit objects. These flags are
9552 # harmless if we're using GNU nm or ar.
9553 extra_arflags_for_target=" -X32_64"
9554 extra_nmflags_for_target=" -B -X32_64"
9555 ;;
9556 esac
9557
9558 alphaieee_frag=/dev/null
9559 case $target in
9560 alpha*-*-*)
9561 # This just makes sure to use the -mieee option to build target libs.
9562 # This should probably be set individually by each library.
9563 alphaieee_frag="config/mt-alphaieee"
9564 ;;
9565 esac
9566
9567 # If --enable-target-optspace always use -Os instead of -O2 to build
9568 # the target libraries, similarly if it is not specified, use -Os
9569 # on selected platforms.
9570 ospace_frag=/dev/null
9571 case "${enable_target_optspace}:${target}" in
9572 yes:*)
9573 ospace_frag="config/mt-ospace"
9574 ;;
9575 :d30v-*)
9576 ospace_frag="config/mt-d30v"
9577 ;;
9578 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9579 ospace_frag="config/mt-ospace"
9580 ;;
9581 no:* | :*)
9582 ;;
9583 *)
9584 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9585 ;;
9586 esac
9587
9588 # Some systems (e.g., one of the i386-aix systems the gas testers are
9589 # using) don't handle "\$" correctly, so don't use it here.
9590 tooldir='${exec_prefix}'/${target_noncanonical}
9591 build_tooldir=${tooldir}
9592
9593 # Create a .gdbinit file which runs the one in srcdir
9594 # and tells GDB to look there for source files.
9595
9596 if test -r ${srcdir}/.gdbinit ; then
9597 case ${srcdir} in
9598 .) ;;
9599 *) cat > ./.gdbinit <<EOF
9600 # ${NO_EDIT}
9601 dir ${srcdir}
9602 dir .
9603 source ${srcdir}/.gdbinit
9604 EOF
9605 ;;
9606 esac
9607 fi
9608
9609 # Make sure that the compiler is able to generate an executable. If it
9610 # can't, we are probably in trouble. We don't care whether we can run the
9611 # executable--we might be using a cross compiler--we only care whether it
9612 # can be created. At this point the main configure script has set CC.
9613 we_are_ok=no
9614 echo "int main () { return 0; }" > conftest.c
9615 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9616 if test $? = 0 ; then
9617 if test -s conftest || test -s conftest.exe ; then
9618 we_are_ok=yes
9619 fi
9620 fi
9621 case $we_are_ok in
9622 no)
9623 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9624 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9625 rm -f conftest*
9626 exit 1
9627 ;;
9628 esac
9629 rm -f conftest*
9630
9631 # Decide which environment variable is used to find dynamic libraries.
9632 case "${host}" in
9633 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9634 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9635 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9636 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9637 esac
9638
9639 # On systems where the dynamic library environment variable is PATH,
9640 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9641 # built executables to PATH.
9642 if test "$RPATH_ENVVAR" = PATH; then
9643 GCC_SHLIB_SUBDIR=/shlib
9644 else
9645 GCC_SHLIB_SUBDIR=
9646 fi
9647
9648 # Adjust the toplevel makefile according to whether bootstrap was selected.
9649 case $enable_bootstrap in
9650 yes)
9651 bootstrap_suffix=bootstrap
9652 BUILD_CONFIG=bootstrap-debug
9653 ;;
9654 no)
9655 bootstrap_suffix=no-bootstrap
9656 BUILD_CONFIG=
9657 ;;
9658 esac
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9661 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9662
9663
9664 # Check whether --with-build-config was given.
9665 if test "${with_build_config+set}" = set; then :
9666 withval=$with_build_config; case $with_build_config in
9667 yes) with_build_config= ;;
9668 no) with_build_config= BUILD_CONFIG= ;;
9669 esac
9670 fi
9671
9672
9673 if test "x${with_build_config}" != x; then
9674 BUILD_CONFIG=$with_build_config
9675 else
9676 case $BUILD_CONFIG in
9677 bootstrap-debug)
9678 if echo "int f (void) { return 0; }" > conftest.c &&
9679 ${CC} -c conftest.c &&
9680 mv conftest.o conftest.o.g0 &&
9681 ${CC} -c -g conftest.c &&
9682 mv conftest.o conftest.o.g &&
9683 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9684 :
9685 else
9686 BUILD_CONFIG=
9687 fi
9688 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9689 ;;
9690 esac
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9693 $as_echo "$BUILD_CONFIG" >&6; }
9694
9695
9696 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9698 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9699 # Check whether --enable-vtable-verify was given.
9700 if test "${enable_vtable_verify+set}" = set; then :
9701 enableval=$enable_vtable_verify; case "$enableval" in
9702 yes) enable_vtable_verify=yes ;;
9703 no) enable_vtable_verify=no ;;
9704 *) enable_vtable_verify=no;;
9705 esac
9706 else
9707 enable_vtable_verify=no
9708 fi
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9711 $as_echo "$enable_vtable_verify" >&6; }
9712
9713 # Record target_configdirs and the configure arguments for target and
9714 # build configuration in Makefile.
9715 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9716 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9717 bootstrap_fixincludes=no
9718
9719 # If we are building libgomp, bootstrap it.
9720 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9721 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9722 fi
9723
9724 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9725 # or bootstrap-ubsan, bootstrap it.
9726 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9727 case "$BUILD_CONFIG" in
9728 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9729 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9730 bootstrap_fixincludes=yes
9731 ;;
9732 esac
9733 fi
9734
9735 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9736 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9737 test "$enable_vtable_verify" != no; then
9738 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9739 fi
9740
9741 # If we are building libatomic and the list of enabled languages includes the
9742 # D frontend, bootstrap it.
9743 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9744 case ,${enable_languages}, in
9745 *,d,*)
9746 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9747 ;;
9748 esac
9749 fi
9750
9751 # Determine whether gdb needs tk/tcl or not.
9752 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9753 # and in that case we want gdb to be built without tk. Ugh!
9754 # In fact I believe gdb is the *only* package directly dependent on tk,
9755 # so we should be able to put the 'maybe's in unconditionally and
9756 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9757 # 100% sure that that's safe though.
9758
9759 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9760 case "$enable_gdbtk" in
9761 no)
9762 GDB_TK="" ;;
9763 yes)
9764 GDB_TK="${gdb_tk}" ;;
9765 *)
9766 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9767 # distro. Eventually someone will fix this and move Insight, nee
9768 # gdbtk to a separate directory.
9769 if test -d ${srcdir}/gdb/gdbtk ; then
9770 GDB_TK="${gdb_tk}"
9771 else
9772 GDB_TK=""
9773 fi
9774 ;;
9775 esac
9776 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9777 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9778
9779 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9780 # else does, only include them if one of these is built. The Makefile
9781 # provides the ordering, so it's enough here to add to the list.
9782 case " ${configdirs} " in
9783 *\ gdb\ *)
9784 configdirs="${configdirs} gnulib gdbsupport"
9785 ;;
9786 *\ gdbserver\ *)
9787 configdirs="${configdirs} gnulib gdbsupport"
9788 ;;
9789 *\ sim\ *)
9790 configdirs="${configdirs} gnulib"
9791 ;;
9792 esac
9793
9794 # Strip out unwanted targets.
9795
9796 # While at that, we remove Makefiles if we were started for recursive
9797 # configuration, so that the top-level Makefile reconfigures them,
9798 # like we used to do when configure itself was recursive.
9799
9800 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9801 # but now we're fixing up the Makefile ourselves with the additional
9802 # commands passed to AC_CONFIG_FILES. Use separate variables
9803 # extrasub-{build,host,target} not because there is any reason to split
9804 # the substitutions up that way, but only to remain below the limit of
9805 # 99 commands in a script, for HP-UX sed.
9806
9807 # Do not nest @if/@endif or @unless/@endunless pairs, because
9808 # configure will not warn you at all.
9809
9810 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9811 yes:yes:*\ gold\ *:*,c++,*) ;;
9812 yes:yes:*\ gold\ *:*)
9813 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9814 ;;
9815 esac
9816
9817 extrasub_build=
9818 for module in ${build_configdirs} ; do
9819 if test -z "${no_recursion}" \
9820 && test -f ${build_subdir}/${module}/Makefile; then
9821 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9822 rm -f ${build_subdir}/${module}/Makefile
9823 fi
9824 extrasub_build="$extrasub_build
9825 /^@if build-$module\$/d
9826 /^@endif build-$module\$/d
9827 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9828 /^@if build-$module-$bootstrap_suffix\$/d
9829 /^@endif build-$module-$bootstrap_suffix\$/d
9830 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9831 done
9832 extrasub_host=
9833 for module in ${configdirs} ; do
9834 if test -z "${no_recursion}"; then
9835 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9836 if test -f ${file}; then
9837 echo 1>&2 "*** removing ${file} to force reconfigure"
9838 rm -f ${file}
9839 fi
9840 done
9841 fi
9842 case ${module},${bootstrap_fixincludes} in
9843 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9844 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9845 esac
9846 extrasub_host="$extrasub_host
9847 /^@if $module\$/d
9848 /^@endif $module\$/d
9849 /^@unless $module\$/,/^@endunless $module\$/d
9850 /^@if $module-$host_bootstrap_suffix\$/d
9851 /^@endif $module-$host_bootstrap_suffix\$/d
9852 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9853 done
9854 extrasub_target=
9855 for module in ${target_configdirs} ; do
9856 if test -z "${no_recursion}" \
9857 && test -f ${target_subdir}/${module}/Makefile; then
9858 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9859 rm -f ${target_subdir}/${module}/Makefile
9860 fi
9861
9862 # We only bootstrap target libraries listed in bootstrap_target_libs.
9863 case $bootstrap_target_libs in
9864 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9865 *) target_bootstrap_suffix=no-bootstrap ;;
9866 esac
9867
9868 extrasub_target="$extrasub_target
9869 /^@if target-$module\$/d
9870 /^@endif target-$module\$/d
9871 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9872 /^@if target-$module-$target_bootstrap_suffix\$/d
9873 /^@endif target-$module-$target_bootstrap_suffix\$/d
9874 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9875 done
9876
9877 # Do the final fixup along with target modules.
9878 extrasub_target="$extrasub_target
9879 /^@if /,/^@endif /d
9880 /^@unless /d
9881 /^@endunless /d"
9882
9883 if test "$enable_pgo_build" != "no"; then
9884 extrasub_build="$extrasub_build
9885 /^@if pgo-build\$/d
9886 /^@endif pgo-build\$/d"
9887 fi
9888
9889 # Create the serialization dependencies. This uses a temporary file.
9890
9891 # Check whether --enable-serial-configure was given.
9892 if test "${enable_serial_configure+set}" = set; then :
9893 enableval=$enable_serial_configure;
9894 fi
9895
9896
9897 case ${enable_serial_configure} in
9898 yes)
9899 enable_serial_build_configure=yes
9900 enable_serial_host_configure=yes
9901 enable_serial_target_configure=yes
9902 ;;
9903 esac
9904
9905 # These force 'configure's to be done one at a time, to avoid problems
9906 # with contention over a shared config.cache.
9907 rm -f serdep.tmp
9908 echo '# serdep.tmp' > serdep.tmp
9909 olditem=
9910 test "x${enable_serial_build_configure}" = xyes &&
9911 for item in ${build_configdirs} ; do
9912 case ${olditem} in
9913 "") ;;
9914 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9915 esac
9916 olditem=${item}
9917 done
9918 olditem=
9919 test "x${enable_serial_host_configure}" = xyes &&
9920 for item in ${configdirs} ; do
9921 case ${olditem} in
9922 "") ;;
9923 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9924 esac
9925 olditem=${item}
9926 done
9927 olditem=
9928 test "x${enable_serial_target_configure}" = xyes &&
9929 for item in ${target_configdirs} ; do
9930 case ${olditem} in
9931 "") ;;
9932 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9933 esac
9934 olditem=${item}
9935 done
9936 serialization_dependencies=serdep.tmp
9937
9938
9939 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9940 # target, nonopt, and variable assignments. These are the ones we
9941 # might not want to pass down to subconfigures. The exception being
9942 # --cache-file=/dev/null, which is used to turn off the use of cache
9943 # files altogether, and which should be passed on to subconfigures.
9944 # Also strip program-prefix, program-suffix, and program-transform-name,
9945 # so that we can pass down a consistent program-transform-name.
9946 baseargs=
9947 tbaseargs=
9948 keep_next=no
9949 skip_next=no
9950 eval "set -- $ac_configure_args"
9951 for ac_arg
9952 do
9953 if test X"$skip_next" = X"yes"; then
9954 skip_next=no
9955 continue
9956 fi
9957 if test X"$keep_next" = X"yes"; then
9958 case $ac_arg in
9959 *\'*)
9960 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9961 esac
9962 baseargs="$baseargs '$ac_arg'"
9963 tbaseargs="$tbaseargs '$ac_arg'"
9964 keep_next=no
9965 continue
9966 fi
9967
9968 # Handle separated arguments. Based on the logic generated by
9969 # autoconf 2.59.
9970 case $ac_arg in
9971 *=* | --config-cache | -C | -disable-* | --disable-* \
9972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9974 | -with-* | --with-* | -without-* | --without-* | --x)
9975 separate_arg=no
9976 ;;
9977 -*)
9978 separate_arg=yes
9979 ;;
9980 *)
9981 separate_arg=no
9982 ;;
9983 esac
9984
9985 skip_targ=no
9986 case $ac_arg in
9987
9988 --with-* | --without-*)
9989 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9990
9991 case $libopt in
9992 *[-_]include)
9993 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9994 ;;
9995 *[-_]lib)
9996 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9997 ;;
9998 *)
9999 lib=$libopt
10000 ;;
10001 esac
10002
10003
10004 case $lib in
10005 mpc | mpfr | gmp | isl)
10006 # If we're processing --with-$lib, --with-$lib-include or
10007 # --with-$lib-lib, for one of the libs above, and target is
10008 # different from host, don't pass the current argument to any
10009 # target library's configure.
10010 if test x$is_cross_compiler = xyes; then
10011 skip_targ=yes
10012 fi
10013 ;;
10014 esac
10015 ;;
10016 esac
10017
10018 case "$ac_arg" in
10019 --cache-file=/dev/null | \
10020 -cache-file=/dev/null )
10021 # Handled here to avoid the test to skip args below.
10022 baseargs="$baseargs '$ac_arg'"
10023 tbaseargs="$tbaseargs '$ac_arg'"
10024 # Assert: $separate_arg should always be no.
10025 keep_next=$separate_arg
10026 ;;
10027 --no*)
10028 continue
10029 ;;
10030 --c* | \
10031 --sr* | \
10032 --ho* | \
10033 --bu* | \
10034 --t* | \
10035 --program-* | \
10036 -cache_file* | \
10037 -srcdir* | \
10038 -host* | \
10039 -build* | \
10040 -target* | \
10041 -program-prefix* | \
10042 -program-suffix* | \
10043 -program-transform-name* )
10044 skip_next=$separate_arg
10045 continue
10046 ;;
10047 -*)
10048 # An option. Add it.
10049 case $ac_arg in
10050 *\'*)
10051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10052 esac
10053 baseargs="$baseargs '$ac_arg'"
10054 if test X"$skip_targ" = Xno; then
10055 tbaseargs="$tbaseargs '$ac_arg'"
10056 fi
10057 keep_next=$separate_arg
10058 ;;
10059 *)
10060 # Either a variable assignment, or a nonopt (triplet). Don't
10061 # pass it down; let the Makefile handle this.
10062 continue
10063 ;;
10064 esac
10065 done
10066 # Remove the initial space we just introduced and, as these will be
10067 # expanded by make, quote '$'.
10068 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10069
10070 # Add in --program-transform-name, after --program-prefix and
10071 # --program-suffix have been applied to it. Autoconf has already
10072 # doubled dollar signs and backslashes in program_transform_name; we want
10073 # the backslashes un-doubled, and then the entire thing wrapped in single
10074 # quotes, because this will be expanded first by make and then by the shell.
10075 # Also, because we want to override the logic in subdir configure scripts to
10076 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10077 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10078 ${program_transform_name}
10079 EOF_SED
10080 gcc_transform_name=`cat conftestsed.out`
10081 rm -f conftestsed.out
10082 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10083 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10084 if test "$silent" = yes; then
10085 baseargs="$baseargs --silent"
10086 tbaseargs="$tbaseargs --silent"
10087 fi
10088 baseargs="$baseargs --disable-option-checking"
10089 tbaseargs="$tbaseargs --disable-option-checking"
10090
10091 # Record and document user additions to sub configure arguments.
10092
10093
10094
10095
10096 # For the build-side libraries, we just need to pretend we're native,
10097 # and not use the same cache file. Multilibs are neither needed nor
10098 # desired. We can't even use the same cache file for all build-side
10099 # libraries, as they're compiled differently; some with C, some with
10100 # C++ or with different feature-enabling options.
10101 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10102
10103 # For host modules, accept cache file option, or specification as blank.
10104 case "${cache_file}" in
10105 "") # empty
10106 cache_file_option="" ;;
10107 /* | [A-Za-z]:[\\/]* ) # absolute path
10108 cache_file_option="--cache-file=${cache_file}" ;;
10109 *) # relative path
10110 cache_file_option="--cache-file=../${cache_file}" ;;
10111 esac
10112
10113 # Host dirs don't like to share a cache file either, horribly enough.
10114 # This seems to be due to autoconf 2.5x stupidity.
10115 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10116
10117 target_configargs="$target_configargs ${tbaseargs}"
10118
10119 # Passing a --with-cross-host argument lets the target libraries know
10120 # whether they are being built with a cross-compiler or being built
10121 # native. However, it would be better to use other mechanisms to make the
10122 # sorts of decisions they want to make on this basis. Please consider
10123 # this option to be deprecated. FIXME.
10124 if test x${is_cross_compiler} = xyes ; then
10125 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10126 fi
10127
10128 # Special user-friendly check for native x86_64-linux build, if
10129 # multilib is not explicitly enabled.
10130 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10131 x86_64-*linux*:yes:$build:$build:)
10132 # Make sure we have a development environment that handles 32-bit
10133 dev64=no
10134 echo "int main () { return 0; }" > conftest.c
10135 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10136 if test $? = 0 ; then
10137 if test -s conftest || test -s conftest.exe ; then
10138 dev64=yes
10139 fi
10140 fi
10141 rm -f conftest*
10142 if test x${dev64} != xyes ; then
10143 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
10144 fi
10145 ;;
10146 esac
10147
10148 # Default to --enable-multilib.
10149 if test x${enable_multilib} = x ; then
10150 target_configargs="--enable-multilib ${target_configargs}"
10151 fi
10152
10153 # Pass --with-newlib if appropriate. Note that target_configdirs has
10154 # changed from the earlier setting of with_newlib.
10155 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10156 target_configargs="--with-newlib ${target_configargs}"
10157 fi
10158
10159 # Different target subdirs use different values of certain variables
10160 # (notably CXX). Worse, multilibs use *lots* of different values.
10161 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10162 # it doesn't automatically accept command-line overrides of them.
10163 # This means it's not safe for target subdirs to share a cache file,
10164 # which is disgusting, but there you have it. Hopefully this can be
10165 # fixed in future. It's still worthwhile to use a cache file for each
10166 # directory. I think.
10167
10168 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10169 # We need to pass --target, as newer autoconf's requires consistency
10170 # for target_alias and gcc doesn't manage it consistently.
10171 target_configargs="--cache-file=./config.cache ${target_configargs}"
10172
10173 FLAGS_FOR_TARGET=
10174 case " $target_configdirs " in
10175 *" newlib "*)
10176 case " $target_configargs " in
10177 *" --with-newlib "*)
10178 case "$target" in
10179 *-cygwin*)
10180 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10181 ;;
10182 esac
10183
10184 # If we're not building GCC, don't discard standard headers.
10185 if test -d ${srcdir}/gcc; then
10186 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10187
10188 if test "${build}" != "${host}"; then
10189 # On Canadian crosses, CC_FOR_TARGET will have already been set
10190 # by `configure', so we won't have an opportunity to add -Bgcc/
10191 # to it. This is right: we don't want to search that directory
10192 # for binaries, but we want the header files in there, so add
10193 # them explicitly.
10194 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10195
10196 # Someone might think of using the pre-installed headers on
10197 # Canadian crosses, in case the installed compiler is not fully
10198 # compatible with the compiler being built. In this case, it
10199 # would be better to flag an error than risking having
10200 # incompatible object files being constructed. We can't
10201 # guarantee that an error will be flagged, but let's hope the
10202 # compiler will do it, when presented with incompatible header
10203 # files.
10204 fi
10205 fi
10206
10207 case "${target}-${is_cross_compiler}" in
10208 i[3456789]86-*-linux*-no)
10209 # Here host == target, so we don't need to build gcc,
10210 # so we don't want to discard standard headers.
10211 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10212 ;;
10213 *)
10214 # If we're building newlib, use its generic headers last, but search
10215 # for any libc-related directories first (so make it the last -B
10216 # switch).
10217 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10218
10219 # If we're building libgloss, find the startup file, simulator library
10220 # and linker script.
10221 case " $target_configdirs " in
10222 *" libgloss "*)
10223 # Look for startup file, simulator library and maybe linker script.
10224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10225 # Look for libnosys.a in case the target needs it.
10226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10227 # Most targets have the linker script in the source directory.
10228 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10229 ;;
10230 esac
10231 ;;
10232 esac
10233 ;;
10234 esac
10235 ;;
10236 esac
10237
10238 case "$target" in
10239 x86_64-*mingw* | *-w64-mingw*)
10240 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10241 # however, use a symlink named 'mingw' in ${prefix} .
10242 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10243 ;;
10244 *-mingw*)
10245 # MinGW can't be handled as Cygwin above since it does not use newlib.
10246 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'
10247 ;;
10248 esac
10249
10250 # Allow the user to override the flags for
10251 # our build compiler if desired.
10252 if test x"${build}" = x"${host}" ; then
10253 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10254 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10255 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10256 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10257 fi
10258
10259 # On Canadian crosses, we'll be searching the right directories for
10260 # the previously-installed cross compiler, so don't bother to add
10261 # flags for directories within the install tree of the compiler
10262 # being built; programs in there won't even run.
10263 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10264 # Search for pre-installed headers if nothing else fits.
10265 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10266 fi
10267
10268 if test "x${use_gnu_ld}" = x &&
10269 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10270 # Arrange for us to find uninstalled linker scripts.
10271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10272 fi
10273
10274 # Search for other target-specific linker scripts and such.
10275 case "${target}" in
10276 mep*)
10277 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10278 ;;
10279 esac
10280
10281 # Makefile fragments.
10282 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10283 do
10284 eval fragval=\$$frag
10285 if test $fragval != /dev/null; then
10286 eval $frag=${srcdir}/$fragval
10287 fi
10288 done
10289
10290
10291
10292
10293
10294 # Miscellanea: directories, flags, etc.
10295
10296
10297
10298
10299
10300
10301
10302
10303 # Build module lists & subconfigure args.
10304
10305
10306
10307 # Host module lists & subconfigure args.
10308
10309
10310
10311
10312 # Target module lists & subconfigure args.
10313
10314
10315
10316 # Build tools.
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337 # Generate default definitions for YACC, M4, LEX and other programs that run
10338 # on the build machine. These are used if the Makefile can't locate these
10339 # programs in objdir.
10340 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10341
10342 for ac_prog in 'bison -y' byacc yacc
10343 do
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_prog_YACC+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 if test -n "$YACC"; then
10352 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_YACC="$ac_prog"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365 done
10366 done
10367 IFS=$as_save_IFS
10368
10369 fi
10370 fi
10371 YACC=$ac_cv_prog_YACC
10372 if test -n "$YACC"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10374 $as_echo "$YACC" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 fi
10379
10380
10381 test -n "$YACC" && break
10382 done
10383 test -n "$YACC" || YACC="$MISSING bison -y"
10384
10385 case " $build_configdirs " in
10386 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10387 esac
10388
10389 for ac_prog in bison
10390 do
10391 # Extract the first word of "$ac_prog", so it can be a program name with args.
10392 set dummy $ac_prog; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_prog_BISON+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 if test -n "$BISON"; then
10399 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10400 else
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10403 do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_BISON="$ac_prog"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412 done
10413 done
10414 IFS=$as_save_IFS
10415
10416 fi
10417 fi
10418 BISON=$ac_cv_prog_BISON
10419 if test -n "$BISON"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10421 $as_echo "$BISON" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426
10427
10428 test -n "$BISON" && break
10429 done
10430 test -n "$BISON" || BISON="$MISSING bison"
10431
10432 case " $build_configdirs " in
10433 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10434 esac
10435
10436 for ac_prog in gm4 gnum4 m4
10437 do
10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_M4+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 if test -n "$M4"; then
10446 ac_cv_prog_M4="$M4" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10450 do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_M4="$ac_prog"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459 done
10460 done
10461 IFS=$as_save_IFS
10462
10463 fi
10464 fi
10465 M4=$ac_cv_prog_M4
10466 if test -n "$M4"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10468 $as_echo "$M4" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10472 fi
10473
10474
10475 test -n "$M4" && break
10476 done
10477 test -n "$M4" || M4="$MISSING m4"
10478
10479 case " $build_configdirs " in
10480 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10481 esac
10482
10483 for ac_prog in flex lex
10484 do
10485 # Extract the first word of "$ac_prog", so it can be a program name with args.
10486 set dummy $ac_prog; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if ${ac_cv_prog_LEX+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 if test -n "$LEX"; then
10493 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10502 ac_cv_prog_LEX="$ac_prog"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10505 fi
10506 done
10507 done
10508 IFS=$as_save_IFS
10509
10510 fi
10511 fi
10512 LEX=$ac_cv_prog_LEX
10513 if test -n "$LEX"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10515 $as_echo "$LEX" >&6; }
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10519 fi
10520
10521
10522 test -n "$LEX" && break
10523 done
10524 test -n "$LEX" || LEX="$MISSING flex"
10525
10526 case " $build_configdirs " in
10527 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10528 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10529 esac
10530
10531 for ac_prog in flex
10532 do
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_FLEX+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$FLEX"; then
10541 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_FLEX="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554 done
10555 done
10556 IFS=$as_save_IFS
10557
10558 fi
10559 fi
10560 FLEX=$ac_cv_prog_FLEX
10561 if test -n "$FLEX"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10563 $as_echo "$FLEX" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568
10569
10570 test -n "$FLEX" && break
10571 done
10572 test -n "$FLEX" || FLEX="$MISSING flex"
10573
10574 case " $build_configdirs " in
10575 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10576 esac
10577
10578 for ac_prog in makeinfo
10579 do
10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
10581 set dummy $ac_prog; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_prog_MAKEINFO+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -n "$MAKEINFO"; then
10588 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_MAKEINFO="$ac_prog"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 MAKEINFO=$ac_cv_prog_MAKEINFO
10608 if test -n "$MAKEINFO"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10610 $as_echo "$MAKEINFO" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617 test -n "$MAKEINFO" && break
10618 done
10619 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10620
10621 case " $build_configdirs " in
10622 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10623 *)
10624
10625 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10626 # higher, else we use the "missing" dummy.
10627 if ${MAKEINFO} --version \
10628 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10629 :
10630 else
10631 MAKEINFO="$MISSING makeinfo"
10632 fi
10633 ;;
10634
10635 esac
10636
10637 # FIXME: expect and dejagnu may become build tools?
10638
10639 for ac_prog in expect
10640 do
10641 # Extract the first word of "$ac_prog", so it can be a program name with args.
10642 set dummy $ac_prog; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_prog_EXPECT+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -n "$EXPECT"; then
10649 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10653 do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658 ac_cv_prog_EXPECT="$ac_prog"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662 done
10663 done
10664 IFS=$as_save_IFS
10665
10666 fi
10667 fi
10668 EXPECT=$ac_cv_prog_EXPECT
10669 if test -n "$EXPECT"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10671 $as_echo "$EXPECT" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676
10677
10678 test -n "$EXPECT" && break
10679 done
10680 test -n "$EXPECT" || EXPECT="expect"
10681
10682 case " $configdirs " in
10683 *" expect "*)
10684 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10685 ;;
10686 esac
10687
10688 for ac_prog in runtest
10689 do
10690 # Extract the first word of "$ac_prog", so it can be a program name with args.
10691 set dummy $ac_prog; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if ${ac_cv_prog_RUNTEST+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 if test -n "$RUNTEST"; then
10698 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10699 else
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_prog_RUNTEST="$ac_prog"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711 done
10712 done
10713 IFS=$as_save_IFS
10714
10715 fi
10716 fi
10717 RUNTEST=$ac_cv_prog_RUNTEST
10718 if test -n "$RUNTEST"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10720 $as_echo "$RUNTEST" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725
10726
10727 test -n "$RUNTEST" && break
10728 done
10729 test -n "$RUNTEST" || RUNTEST="runtest"
10730
10731 case " $configdirs " in
10732 *" dejagnu "*)
10733 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10734 ;;
10735 esac
10736
10737
10738 # Host tools.
10739 ncn_tool_prefix=
10740 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10741 ncn_target_tool_prefix=
10742 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10743
10744
10745
10746 if test -n "$AR"; then
10747 ac_cv_prog_AR=$AR
10748 elif test -n "$ac_cv_prog_AR"; then
10749 AR=$ac_cv_prog_AR
10750 fi
10751
10752 if test -n "$ac_cv_prog_AR"; then
10753 for ncn_progname in ar; do
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755 set dummy ${ncn_progname}; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_prog_AR+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test -n "$AR"; then
10762 ac_cv_prog_AR="$AR" # Let the user override the test.
10763 else
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10766 do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_prog_AR="${ncn_progname}"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10774 fi
10775 done
10776 done
10777 IFS=$as_save_IFS
10778
10779 fi
10780 fi
10781 AR=$ac_cv_prog_AR
10782 if test -n "$AR"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10784 $as_echo "$AR" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 done
10792 fi
10793
10794 for ncn_progname in ar; do
10795 if test -n "$ncn_tool_prefix"; then
10796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if ${ac_cv_prog_AR+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 if test -n "$AR"; then
10804 ac_cv_prog_AR="$AR" # Let the user override the test.
10805 else
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10808 do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10813 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817 done
10818 done
10819 IFS=$as_save_IFS
10820
10821 fi
10822 fi
10823 AR=$ac_cv_prog_AR
10824 if test -n "$AR"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10826 $as_echo "$AR" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 fi
10831
10832
10833 fi
10834 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10836 set dummy ${ncn_progname}; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if ${ac_cv_prog_AR+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test -n "$AR"; then
10843 ac_cv_prog_AR="$AR" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10847 do
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852 ac_cv_prog_AR="${ncn_progname}"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856 done
10857 done
10858 IFS=$as_save_IFS
10859
10860 fi
10861 fi
10862 AR=$ac_cv_prog_AR
10863 if test -n "$AR"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10865 $as_echo "$AR" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10869 fi
10870
10871
10872 fi
10873 test -n "$ac_cv_prog_AR" && break
10874 done
10875
10876 if test -z "$ac_cv_prog_AR" ; then
10877 set dummy ar
10878 if test $build = $host ; then
10879 AR="$2"
10880 else
10881 AR="${ncn_tool_prefix}$2"
10882 fi
10883 fi
10884
10885
10886
10887 if test -n "$AS"; then
10888 ac_cv_prog_AS=$AS
10889 elif test -n "$ac_cv_prog_AS"; then
10890 AS=$ac_cv_prog_AS
10891 fi
10892
10893 if test -n "$ac_cv_prog_AS"; then
10894 for ncn_progname in as; do
10895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10896 set dummy ${ncn_progname}; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if ${ac_cv_prog_AS+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 if test -n "$AS"; then
10903 ac_cv_prog_AS="$AS" # Let the user override the test.
10904 else
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_AS="${ncn_progname}"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 fi
10921 fi
10922 AS=$ac_cv_prog_AS
10923 if test -n "$AS"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10925 $as_echo "$AS" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929 fi
10930
10931
10932 done
10933 fi
10934
10935 for ncn_progname in as; do
10936 if test -n "$ncn_tool_prefix"; then
10937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if ${ac_cv_prog_AS+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test -n "$AS"; then
10945 ac_cv_prog_AS="$AS" # Let the user override the test.
10946 else
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10949 do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958 done
10959 done
10960 IFS=$as_save_IFS
10961
10962 fi
10963 fi
10964 AS=$ac_cv_prog_AS
10965 if test -n "$AS"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10967 $as_echo "$AS" >&6; }
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972
10973
10974 fi
10975 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977 set dummy ${ncn_progname}; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if ${ac_cv_prog_AS+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 if test -n "$AS"; then
10984 ac_cv_prog_AS="$AS" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_prog_AS="${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997 done
10998 done
10999 IFS=$as_save_IFS
11000
11001 fi
11002 fi
11003 AS=$ac_cv_prog_AS
11004 if test -n "$AS"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11006 $as_echo "$AS" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012
11013 fi
11014 test -n "$ac_cv_prog_AS" && break
11015 done
11016
11017 if test -z "$ac_cv_prog_AS" ; then
11018 set dummy as
11019 if test $build = $host ; then
11020 AS="$2"
11021 else
11022 AS="${ncn_tool_prefix}$2"
11023 fi
11024 fi
11025
11026
11027
11028 if test -n "$DLLTOOL"; then
11029 ac_cv_prog_DLLTOOL=$DLLTOOL
11030 elif test -n "$ac_cv_prog_DLLTOOL"; then
11031 DLLTOOL=$ac_cv_prog_DLLTOOL
11032 fi
11033
11034 if test -n "$ac_cv_prog_DLLTOOL"; then
11035 for ncn_progname in dlltool; do
11036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11037 set dummy ${ncn_progname}; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_prog_DLLTOOL+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 if test -n "$DLLTOOL"; then
11044 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11045 else
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11048 do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_prog_DLLTOOL="${ncn_progname}"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057 done
11058 done
11059 IFS=$as_save_IFS
11060
11061 fi
11062 fi
11063 DLLTOOL=$ac_cv_prog_DLLTOOL
11064 if test -n "$DLLTOOL"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11066 $as_echo "$DLLTOOL" >&6; }
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11070 fi
11071
11072
11073 done
11074 fi
11075
11076 for ncn_progname in dlltool; do
11077 if test -n "$ncn_tool_prefix"; then
11078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_prog_DLLTOOL+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 if test -n "$DLLTOOL"; then
11086 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11087 else
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11090 do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099 done
11100 done
11101 IFS=$as_save_IFS
11102
11103 fi
11104 fi
11105 DLLTOOL=$ac_cv_prog_DLLTOOL
11106 if test -n "$DLLTOOL"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11108 $as_echo "$DLLTOOL" >&6; }
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113
11114
11115 fi
11116 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11118 set dummy ${ncn_progname}; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 $as_echo_n "checking for $ac_word... " >&6; }
11121 if ${ac_cv_prog_DLLTOOL+:} false; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 if test -n "$DLLTOOL"; then
11125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11126 else
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11134 ac_cv_prog_DLLTOOL="${ncn_progname}"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138 done
11139 done
11140 IFS=$as_save_IFS
11141
11142 fi
11143 fi
11144 DLLTOOL=$ac_cv_prog_DLLTOOL
11145 if test -n "$DLLTOOL"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11147 $as_echo "$DLLTOOL" >&6; }
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11151 fi
11152
11153
11154 fi
11155 test -n "$ac_cv_prog_DLLTOOL" && break
11156 done
11157
11158 if test -z "$ac_cv_prog_DLLTOOL" ; then
11159 set dummy dlltool
11160 if test $build = $host ; then
11161 DLLTOOL="$2"
11162 else
11163 DLLTOOL="${ncn_tool_prefix}$2"
11164 fi
11165 fi
11166
11167
11168
11169 if test -n "$DSYMUTIL"; then
11170 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11171 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11172 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11173 fi
11174
11175 if test -n "$ac_cv_prog_DSYMUTIL"; then
11176 for ncn_progname in dsymutil; do
11177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11178 set dummy ${ncn_progname}; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test -n "$DSYMUTIL"; then
11185 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11186 else
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198 done
11199 done
11200 IFS=$as_save_IFS
11201
11202 fi
11203 fi
11204 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11205 if test -n "$DSYMUTIL"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11207 $as_echo "$DSYMUTIL" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212
11213
11214 done
11215 fi
11216
11217 for ncn_progname in dsymutil; do
11218 if test -n "$ncn_tool_prefix"; then
11219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11220 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if test -n "$DSYMUTIL"; then
11227 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11228 else
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240 done
11241 done
11242 IFS=$as_save_IFS
11243
11244 fi
11245 fi
11246 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11247 if test -n "$DSYMUTIL"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11249 $as_echo "$DSYMUTIL" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 fi
11254
11255
11256 fi
11257 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259 set dummy ${ncn_progname}; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test -n "$DSYMUTIL"; then
11266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11270 do
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 break 2
11278 fi
11279 done
11280 done
11281 IFS=$as_save_IFS
11282
11283 fi
11284 fi
11285 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11286 if test -n "$DSYMUTIL"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11288 $as_echo "$DSYMUTIL" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 fi
11293
11294
11295 fi
11296 test -n "$ac_cv_prog_DSYMUTIL" && break
11297 done
11298
11299 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11300 set dummy dsymutil
11301 if test $build = $host ; then
11302 DSYMUTIL="$2"
11303 else
11304 DSYMUTIL="${ncn_tool_prefix}$2"
11305 fi
11306 fi
11307
11308
11309
11310 if test -n "$LD"; then
11311 ac_cv_prog_LD=$LD
11312 elif test -n "$ac_cv_prog_LD"; then
11313 LD=$ac_cv_prog_LD
11314 fi
11315
11316 if test -n "$ac_cv_prog_LD"; then
11317 for ncn_progname in ld; do
11318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319 set dummy ${ncn_progname}; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_prog_LD+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 if test -n "$LD"; then
11326 ac_cv_prog_LD="$LD" # Let the user override the test.
11327 else
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11330 do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_LD="${ncn_progname}"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339 done
11340 done
11341 IFS=$as_save_IFS
11342
11343 fi
11344 fi
11345 LD=$ac_cv_prog_LD
11346 if test -n "$LD"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11348 $as_echo "$LD" >&6; }
11349 else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11352 fi
11353
11354
11355 done
11356 fi
11357
11358 for ncn_progname in ld; do
11359 if test -n "$ncn_tool_prefix"; then
11360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11361 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_prog_LD+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 if test -n "$LD"; then
11368 ac_cv_prog_LD="$LD" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 LD=$ac_cv_prog_LD
11388 if test -n "$LD"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11390 $as_echo "$LD" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397 fi
11398 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11400 set dummy ${ncn_progname}; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_prog_LD+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test -n "$LD"; then
11407 ac_cv_prog_LD="$LD" # Let the user override the test.
11408 else
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_LD="${ncn_progname}"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420 done
11421 done
11422 IFS=$as_save_IFS
11423
11424 fi
11425 fi
11426 LD=$ac_cv_prog_LD
11427 if test -n "$LD"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11429 $as_echo "$LD" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 fi
11434
11435
11436 fi
11437 test -n "$ac_cv_prog_LD" && break
11438 done
11439
11440 if test -z "$ac_cv_prog_LD" ; then
11441 set dummy ld
11442 if test $build = $host ; then
11443 LD="$2"
11444 else
11445 LD="${ncn_tool_prefix}$2"
11446 fi
11447 fi
11448
11449
11450
11451 if test -n "$LIPO"; then
11452 ac_cv_prog_LIPO=$LIPO
11453 elif test -n "$ac_cv_prog_LIPO"; then
11454 LIPO=$ac_cv_prog_LIPO
11455 fi
11456
11457 if test -n "$ac_cv_prog_LIPO"; then
11458 for ncn_progname in lipo; do
11459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11460 set dummy ${ncn_progname}; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_prog_LIPO+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 if test -n "$LIPO"; then
11467 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11468 else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_prog_LIPO="${ncn_progname}"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11479 fi
11480 done
11481 done
11482 IFS=$as_save_IFS
11483
11484 fi
11485 fi
11486 LIPO=$ac_cv_prog_LIPO
11487 if test -n "$LIPO"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11489 $as_echo "$LIPO" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 fi
11494
11495
11496 done
11497 fi
11498
11499 for ncn_progname in lipo; do
11500 if test -n "$ncn_tool_prefix"; then
11501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11502 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_prog_LIPO+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 if test -n "$LIPO"; then
11509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11521 fi
11522 done
11523 done
11524 IFS=$as_save_IFS
11525
11526 fi
11527 fi
11528 LIPO=$ac_cv_prog_LIPO
11529 if test -n "$LIPO"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11531 $as_echo "$LIPO" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 fi
11536
11537
11538 fi
11539 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11541 set dummy ${ncn_progname}; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if ${ac_cv_prog_LIPO+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 if test -n "$LIPO"; then
11548 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11552 do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_LIPO="${ncn_progname}"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11560 fi
11561 done
11562 done
11563 IFS=$as_save_IFS
11564
11565 fi
11566 fi
11567 LIPO=$ac_cv_prog_LIPO
11568 if test -n "$LIPO"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11570 $as_echo "$LIPO" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 fi
11575
11576
11577 fi
11578 test -n "$ac_cv_prog_LIPO" && break
11579 done
11580
11581 if test -z "$ac_cv_prog_LIPO" ; then
11582 set dummy lipo
11583 if test $build = $host ; then
11584 LIPO="$2"
11585 else
11586 LIPO="${ncn_tool_prefix}$2"
11587 fi
11588 fi
11589
11590
11591
11592 if test -n "$NM"; then
11593 ac_cv_prog_NM=$NM
11594 elif test -n "$ac_cv_prog_NM"; then
11595 NM=$ac_cv_prog_NM
11596 fi
11597
11598 if test -n "$ac_cv_prog_NM"; then
11599 for ncn_progname in nm; do
11600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11601 set dummy ${ncn_progname}; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_prog_NM+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 if test -n "$NM"; then
11608 ac_cv_prog_NM="$NM" # Let the user override the test.
11609 else
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_prog_NM="${ncn_progname}"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11620 fi
11621 done
11622 done
11623 IFS=$as_save_IFS
11624
11625 fi
11626 fi
11627 NM=$ac_cv_prog_NM
11628 if test -n "$NM"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11630 $as_echo "$NM" >&6; }
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11634 fi
11635
11636
11637 done
11638 fi
11639
11640 for ncn_progname in nm; do
11641 if test -n "$ncn_tool_prefix"; then
11642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if ${ac_cv_prog_NM+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 if test -n "$NM"; then
11650 ac_cv_prog_NM="$NM" # Let the user override the test.
11651 else
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663 done
11664 done
11665 IFS=$as_save_IFS
11666
11667 fi
11668 fi
11669 NM=$ac_cv_prog_NM
11670 if test -n "$NM"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11672 $as_echo "$NM" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679 fi
11680 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_prog_NM+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$NM"; then
11689 ac_cv_prog_NM="$NM" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11693 do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_prog_NM="${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11701 fi
11702 done
11703 done
11704 IFS=$as_save_IFS
11705
11706 fi
11707 fi
11708 NM=$ac_cv_prog_NM
11709 if test -n "$NM"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11711 $as_echo "$NM" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718 fi
11719 test -n "$ac_cv_prog_NM" && break
11720 done
11721
11722 if test -z "$ac_cv_prog_NM" ; then
11723 set dummy nm
11724 if test $build = $host ; then
11725 NM="$2"
11726 else
11727 NM="${ncn_tool_prefix}$2"
11728 fi
11729 fi
11730
11731
11732
11733 if test -n "$RANLIB"; then
11734 ac_cv_prog_RANLIB=$RANLIB
11735 elif test -n "$ac_cv_prog_RANLIB"; then
11736 RANLIB=$ac_cv_prog_RANLIB
11737 fi
11738
11739 if test -n "$ac_cv_prog_RANLIB"; then
11740 for ncn_progname in ranlib; do
11741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11742 set dummy ${ncn_progname}; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_prog_RANLIB+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test -n "$RANLIB"; then
11749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11750 else
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_RANLIB="${ncn_progname}"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762 done
11763 done
11764 IFS=$as_save_IFS
11765
11766 fi
11767 fi
11768 RANLIB=$ac_cv_prog_RANLIB
11769 if test -n "$RANLIB"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11771 $as_echo "$RANLIB" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 fi
11776
11777
11778 done
11779 fi
11780
11781 for ncn_progname in ranlib; do
11782 if test -n "$ncn_tool_prefix"; then
11783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11784 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if ${ac_cv_prog_RANLIB+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 if test -n "$RANLIB"; then
11791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11792 else
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11803 fi
11804 done
11805 done
11806 IFS=$as_save_IFS
11807
11808 fi
11809 fi
11810 RANLIB=$ac_cv_prog_RANLIB
11811 if test -n "$RANLIB"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11813 $as_echo "$RANLIB" >&6; }
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823 set dummy ${ncn_progname}; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_prog_RANLIB+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$RANLIB"; then
11830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_RANLIB="${ncn_progname}"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843 done
11844 done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 RANLIB=$ac_cv_prog_RANLIB
11850 if test -n "$RANLIB"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11852 $as_echo "$RANLIB" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858
11859 fi
11860 test -n "$ac_cv_prog_RANLIB" && break
11861 done
11862
11863 if test -z "$ac_cv_prog_RANLIB" ; then
11864 RANLIB="true"
11865 fi
11866
11867
11868
11869 if test -n "$STRIP"; then
11870 ac_cv_prog_STRIP=$STRIP
11871 elif test -n "$ac_cv_prog_STRIP"; then
11872 STRIP=$ac_cv_prog_STRIP
11873 fi
11874
11875 if test -n "$ac_cv_prog_STRIP"; then
11876 for ncn_progname in strip; do
11877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11878 set dummy ${ncn_progname}; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if ${ac_cv_prog_STRIP+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 if test -n "$STRIP"; then
11885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894 ac_cv_prog_STRIP="${ncn_progname}"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 break 2
11897 fi
11898 done
11899 done
11900 IFS=$as_save_IFS
11901
11902 fi
11903 fi
11904 STRIP=$ac_cv_prog_STRIP
11905 if test -n "$STRIP"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11907 $as_echo "$STRIP" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912
11913
11914 done
11915 fi
11916
11917 for ncn_progname in strip; do
11918 if test -n "$ncn_tool_prefix"; then
11919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if ${ac_cv_prog_STRIP+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 if test -n "$STRIP"; then
11927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940 done
11941 done
11942 IFS=$as_save_IFS
11943
11944 fi
11945 fi
11946 STRIP=$ac_cv_prog_STRIP
11947 if test -n "$STRIP"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11949 $as_echo "$STRIP" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955
11956 fi
11957 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11959 set dummy ${ncn_progname}; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_prog_STRIP+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 if test -n "$STRIP"; then
11966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11967 else
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_prog_STRIP="${ncn_progname}"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11978 fi
11979 done
11980 done
11981 IFS=$as_save_IFS
11982
11983 fi
11984 fi
11985 STRIP=$ac_cv_prog_STRIP
11986 if test -n "$STRIP"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11988 $as_echo "$STRIP" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993
11994
11995 fi
11996 test -n "$ac_cv_prog_STRIP" && break
11997 done
11998
11999 if test -z "$ac_cv_prog_STRIP" ; then
12000 STRIP="true"
12001 fi
12002
12003
12004
12005 if test -n "$WINDRES"; then
12006 ac_cv_prog_WINDRES=$WINDRES
12007 elif test -n "$ac_cv_prog_WINDRES"; then
12008 WINDRES=$ac_cv_prog_WINDRES
12009 fi
12010
12011 if test -n "$ac_cv_prog_WINDRES"; then
12012 for ncn_progname in windres; do
12013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12014 set dummy ${ncn_progname}; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_prog_WINDRES+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -n "$WINDRES"; then
12021 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_WINDRES="${ncn_progname}"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038 fi
12039 fi
12040 WINDRES=$ac_cv_prog_WINDRES
12041 if test -n "$WINDRES"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12043 $as_echo "$WINDRES" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 done
12051 fi
12052
12053 for ncn_progname in windres; do
12054 if test -n "$ncn_tool_prefix"; then
12055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_WINDRES+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test -n "$WINDRES"; then
12063 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12067 do
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12075 fi
12076 done
12077 done
12078 IFS=$as_save_IFS
12079
12080 fi
12081 fi
12082 WINDRES=$ac_cv_prog_WINDRES
12083 if test -n "$WINDRES"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12085 $as_echo "$WINDRES" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 fi
12093 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095 set dummy ${ncn_progname}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_prog_WINDRES+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$WINDRES"; then
12102 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_WINDRES="${ncn_progname}"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117 IFS=$as_save_IFS
12118
12119 fi
12120 fi
12121 WINDRES=$ac_cv_prog_WINDRES
12122 if test -n "$WINDRES"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12124 $as_echo "$WINDRES" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 fi
12132 test -n "$ac_cv_prog_WINDRES" && break
12133 done
12134
12135 if test -z "$ac_cv_prog_WINDRES" ; then
12136 set dummy windres
12137 if test $build = $host ; then
12138 WINDRES="$2"
12139 else
12140 WINDRES="${ncn_tool_prefix}$2"
12141 fi
12142 fi
12143
12144
12145
12146 if test -n "$WINDMC"; then
12147 ac_cv_prog_WINDMC=$WINDMC
12148 elif test -n "$ac_cv_prog_WINDMC"; then
12149 WINDMC=$ac_cv_prog_WINDMC
12150 fi
12151
12152 if test -n "$ac_cv_prog_WINDMC"; then
12153 for ncn_progname in windmc; do
12154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_prog_WINDMC+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$WINDMC"; then
12162 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12166 do
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_WINDMC="${ncn_progname}"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12174 fi
12175 done
12176 done
12177 IFS=$as_save_IFS
12178
12179 fi
12180 fi
12181 WINDMC=$ac_cv_prog_WINDMC
12182 if test -n "$WINDMC"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12184 $as_echo "$WINDMC" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12188 fi
12189
12190
12191 done
12192 fi
12193
12194 for ncn_progname in windmc; do
12195 if test -n "$ncn_tool_prefix"; then
12196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_WINDMC+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$WINDMC"; then
12204 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217 done
12218 done
12219 IFS=$as_save_IFS
12220
12221 fi
12222 fi
12223 WINDMC=$ac_cv_prog_WINDMC
12224 if test -n "$WINDMC"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12226 $as_echo "$WINDMC" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231
12232
12233 fi
12234 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236 set dummy ${ncn_progname}; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_WINDMC+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$WINDMC"; then
12243 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_WINDMC="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256 done
12257 done
12258 IFS=$as_save_IFS
12259
12260 fi
12261 fi
12262 WINDMC=$ac_cv_prog_WINDMC
12263 if test -n "$WINDMC"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12265 $as_echo "$WINDMC" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 fi
12273 test -n "$ac_cv_prog_WINDMC" && break
12274 done
12275
12276 if test -z "$ac_cv_prog_WINDMC" ; then
12277 set dummy windmc
12278 if test $build = $host ; then
12279 WINDMC="$2"
12280 else
12281 WINDMC="${ncn_tool_prefix}$2"
12282 fi
12283 fi
12284
12285
12286
12287 if test -n "$OBJCOPY"; then
12288 ac_cv_prog_OBJCOPY=$OBJCOPY
12289 elif test -n "$ac_cv_prog_OBJCOPY"; then
12290 OBJCOPY=$ac_cv_prog_OBJCOPY
12291 fi
12292
12293 if test -n "$ac_cv_prog_OBJCOPY"; then
12294 for ncn_progname in objcopy; do
12295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12296 set dummy ${ncn_progname}; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if ${ac_cv_prog_OBJCOPY+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 if test -n "$OBJCOPY"; then
12303 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_OBJCOPY="${ncn_progname}"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320 fi
12321 fi
12322 OBJCOPY=$ac_cv_prog_OBJCOPY
12323 if test -n "$OBJCOPY"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12325 $as_echo "$OBJCOPY" >&6; }
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332 done
12333 fi
12334
12335 for ncn_progname in objcopy; do
12336 if test -n "$ncn_tool_prefix"; then
12337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12338 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_prog_OBJCOPY+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$OBJCOPY"; then
12345 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 OBJCOPY=$ac_cv_prog_OBJCOPY
12365 if test -n "$OBJCOPY"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12367 $as_echo "$OBJCOPY" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 fi
12375 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12377 set dummy ${ncn_progname}; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_OBJCOPY+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test -n "$OBJCOPY"; then
12384 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_OBJCOPY="${ncn_progname}"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12396 fi
12397 done
12398 done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 OBJCOPY=$ac_cv_prog_OBJCOPY
12404 if test -n "$OBJCOPY"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12406 $as_echo "$OBJCOPY" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413 fi
12414 test -n "$ac_cv_prog_OBJCOPY" && break
12415 done
12416
12417 if test -z "$ac_cv_prog_OBJCOPY" ; then
12418 set dummy objcopy
12419 if test $build = $host ; then
12420 OBJCOPY="$2"
12421 else
12422 OBJCOPY="${ncn_tool_prefix}$2"
12423 fi
12424 fi
12425
12426
12427
12428 if test -n "$OBJDUMP"; then
12429 ac_cv_prog_OBJDUMP=$OBJDUMP
12430 elif test -n "$ac_cv_prog_OBJDUMP"; then
12431 OBJDUMP=$ac_cv_prog_OBJDUMP
12432 fi
12433
12434 if test -n "$ac_cv_prog_OBJDUMP"; then
12435 for ncn_progname in objdump; do
12436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12437 set dummy ${ncn_progname}; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_prog_OBJDUMP+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 if test -n "$OBJDUMP"; then
12444 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_prog_OBJDUMP="${ncn_progname}"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12456 fi
12457 done
12458 done
12459 IFS=$as_save_IFS
12460
12461 fi
12462 fi
12463 OBJDUMP=$ac_cv_prog_OBJDUMP
12464 if test -n "$OBJDUMP"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12466 $as_echo "$OBJDUMP" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470 fi
12471
12472
12473 done
12474 fi
12475
12476 for ncn_progname in objdump; do
12477 if test -n "$ncn_tool_prefix"; then
12478 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12479 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if ${ac_cv_prog_OBJDUMP+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$OBJDUMP"; then
12486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12490 do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12498 fi
12499 done
12500 done
12501 IFS=$as_save_IFS
12502
12503 fi
12504 fi
12505 OBJDUMP=$ac_cv_prog_OBJDUMP
12506 if test -n "$OBJDUMP"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12508 $as_echo "$OBJDUMP" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513
12514
12515 fi
12516 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12518 set dummy ${ncn_progname}; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_OBJDUMP+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test -n "$OBJDUMP"; then
12525 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_OBJDUMP="${ncn_progname}"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12537 fi
12538 done
12539 done
12540 IFS=$as_save_IFS
12541
12542 fi
12543 fi
12544 OBJDUMP=$ac_cv_prog_OBJDUMP
12545 if test -n "$OBJDUMP"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12547 $as_echo "$OBJDUMP" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554 fi
12555 test -n "$ac_cv_prog_OBJDUMP" && break
12556 done
12557
12558 if test -z "$ac_cv_prog_OBJDUMP" ; then
12559 set dummy objdump
12560 if test $build = $host ; then
12561 OBJDUMP="$2"
12562 else
12563 OBJDUMP="${ncn_tool_prefix}$2"
12564 fi
12565 fi
12566
12567
12568
12569 if test -n "$OTOOL"; then
12570 ac_cv_prog_OTOOL=$OTOOL
12571 elif test -n "$ac_cv_prog_OTOOL"; then
12572 OTOOL=$ac_cv_prog_OTOOL
12573 fi
12574
12575 if test -n "$ac_cv_prog_OTOOL"; then
12576 for ncn_progname in otool; do
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578 set dummy ${ncn_progname}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_prog_OTOOL+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$OTOOL"; then
12585 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_OTOOL="${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602 fi
12603 fi
12604 OTOOL=$ac_cv_prog_OTOOL
12605 if test -n "$OTOOL"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12607 $as_echo "$OTOOL" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612
12613
12614 done
12615 fi
12616
12617 for ncn_progname in otool; do
12618 if test -n "$ncn_tool_prefix"; then
12619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_OTOOL+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -n "$OTOOL"; then
12627 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12639 fi
12640 done
12641 done
12642 IFS=$as_save_IFS
12643
12644 fi
12645 fi
12646 OTOOL=$ac_cv_prog_OTOOL
12647 if test -n "$OTOOL"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12649 $as_echo "$OTOOL" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655
12656 fi
12657 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_prog_OTOOL+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$OTOOL"; then
12666 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12670 do
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_prog_OTOOL="${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12678 fi
12679 done
12680 done
12681 IFS=$as_save_IFS
12682
12683 fi
12684 fi
12685 OTOOL=$ac_cv_prog_OTOOL
12686 if test -n "$OTOOL"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12688 $as_echo "$OTOOL" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692 fi
12693
12694
12695 fi
12696 test -n "$ac_cv_prog_OTOOL" && break
12697 done
12698
12699 if test -z "$ac_cv_prog_OTOOL" ; then
12700 set dummy otool
12701 if test $build = $host ; then
12702 OTOOL="$2"
12703 else
12704 OTOOL="${ncn_tool_prefix}$2"
12705 fi
12706 fi
12707
12708
12709
12710 if test -n "$READELF"; then
12711 ac_cv_prog_READELF=$READELF
12712 elif test -n "$ac_cv_prog_READELF"; then
12713 READELF=$ac_cv_prog_READELF
12714 fi
12715
12716 if test -n "$ac_cv_prog_READELF"; then
12717 for ncn_progname in readelf; do
12718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12719 set dummy ${ncn_progname}; ac_word=$2
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721 $as_echo_n "checking for $ac_word... " >&6; }
12722 if ${ac_cv_prog_READELF+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 if test -n "$READELF"; then
12726 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12727 else
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12730 do
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_prog_READELF="${ncn_progname}"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12738 fi
12739 done
12740 done
12741 IFS=$as_save_IFS
12742
12743 fi
12744 fi
12745 READELF=$ac_cv_prog_READELF
12746 if test -n "$READELF"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12748 $as_echo "$READELF" >&6; }
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12752 fi
12753
12754
12755 done
12756 fi
12757
12758 for ncn_progname in readelf; do
12759 if test -n "$ncn_tool_prefix"; then
12760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12761 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if ${ac_cv_prog_READELF+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test -n "$READELF"; then
12768 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12769 else
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12772 do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781 done
12782 done
12783 IFS=$as_save_IFS
12784
12785 fi
12786 fi
12787 READELF=$ac_cv_prog_READELF
12788 if test -n "$READELF"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12790 $as_echo "$READELF" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795
12796
12797 fi
12798 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12800 set dummy ${ncn_progname}; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_prog_READELF+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$READELF"; then
12807 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12811 do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_prog_READELF="${ncn_progname}"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820 done
12821 done
12822 IFS=$as_save_IFS
12823
12824 fi
12825 fi
12826 READELF=$ac_cv_prog_READELF
12827 if test -n "$READELF"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12829 $as_echo "$READELF" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12833 fi
12834
12835
12836 fi
12837 test -n "$ac_cv_prog_READELF" && break
12838 done
12839
12840 if test -z "$ac_cv_prog_READELF" ; then
12841 set dummy readelf
12842 if test $build = $host ; then
12843 READELF="$2"
12844 else
12845 READELF="${ncn_tool_prefix}$2"
12846 fi
12847 fi
12848
12849
12850
12851
12852
12853
12854
12855
12856 # Target tools.
12857
12858 # Check whether --with-build-time-tools was given.
12859 if test "${with_build_time_tools+set}" = set; then :
12860 withval=$with_build_time_tools; case x"$withval" in
12861 x/*) ;;
12862 *)
12863 with_build_time_tools=
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12865 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12866 ;;
12867 esac
12868 else
12869 with_build_time_tools=
12870 fi
12871
12872
12873
12874
12875 if test -n "$CC_FOR_TARGET"; then
12876 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12877 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12878 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12879 fi
12880
12881 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12882 for ncn_progname in cc gcc; do
12883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test -n "$CC_FOR_TARGET"; then
12891 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 fi
12909 fi
12910 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12911 if test -n "$CC_FOR_TARGET"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12913 $as_echo "$CC_FOR_TARGET" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920 done
12921 fi
12922
12923 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12924 for ncn_progname in cc gcc; do
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12926 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12927 if test -x $with_build_time_tools/${ncn_progname}; then
12928 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12930 $as_echo "yes" >&6; }
12931 break
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936 done
12937 fi
12938
12939 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12940 for ncn_progname in cc gcc; do
12941 if test -n "$ncn_target_tool_prefix"; then
12942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12943 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 if test -n "$CC_FOR_TARGET"; then
12950 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963 done
12964 done
12965 IFS=$as_save_IFS
12966
12967 fi
12968 fi
12969 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12970 if test -n "$CC_FOR_TARGET"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12972 $as_echo "$CC_FOR_TARGET" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979 fi
12980 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12982 set dummy ${ncn_progname}; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 if test -n "$CC_FOR_TARGET"; then
12989 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12990 else
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002 done
13003 done
13004 IFS=$as_save_IFS
13005
13006 fi
13007 fi
13008 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13009 if test -n "$CC_FOR_TARGET"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13011 $as_echo "$CC_FOR_TARGET" >&6; }
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016
13017
13018 fi
13019 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13020 done
13021 fi
13022
13023 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13024 set dummy cc gcc
13025 if test $build = $target ; then
13026 CC_FOR_TARGET="$2"
13027 else
13028 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13029 fi
13030 else
13031 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13032 fi
13033
13034
13035
13036 if test -n "$CXX_FOR_TARGET"; then
13037 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13038 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13039 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13040 fi
13041
13042 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13043 for ncn_progname in c++ g++ cxx gxx; do
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13045 set dummy ${ncn_progname}; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$CXX_FOR_TARGET"; then
13052 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13064 fi
13065 done
13066 done
13067 IFS=$as_save_IFS
13068
13069 fi
13070 fi
13071 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13072 if test -n "$CXX_FOR_TARGET"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13074 $as_echo "$CXX_FOR_TARGET" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079
13080
13081 done
13082 fi
13083
13084 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13085 for ncn_progname in c++ g++ cxx gxx; do
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13087 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13088 if test -x $with_build_time_tools/${ncn_progname}; then
13089 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13091 $as_echo "yes" >&6; }
13092 break
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096 fi
13097 done
13098 fi
13099
13100 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13101 for ncn_progname in c++ g++ cxx gxx; do
13102 if test -n "$ncn_target_tool_prefix"; then
13103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$CXX_FOR_TARGET"; then
13111 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13131 if test -n "$CXX_FOR_TARGET"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13133 $as_echo "$CXX_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140 fi
13141 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13143 set dummy ${ncn_progname}; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$CXX_FOR_TARGET"; then
13150 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13170 if test -n "$CXX_FOR_TARGET"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13172 $as_echo "$CXX_FOR_TARGET" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178
13179 fi
13180 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13181 done
13182 fi
13183
13184 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13185 set dummy c++ g++ cxx gxx
13186 if test $build = $target ; then
13187 CXX_FOR_TARGET="$2"
13188 else
13189 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13190 fi
13191 else
13192 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13193 fi
13194
13195
13196
13197 if test -n "$GCC_FOR_TARGET"; then
13198 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13199 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13200 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13201 fi
13202
13203 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13204 for ncn_progname in gcc; do
13205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13206 set dummy ${ncn_progname}; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 if test -n "$GCC_FOR_TARGET"; then
13213 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13233 if test -n "$GCC_FOR_TARGET"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13235 $as_echo "$GCC_FOR_TARGET" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241
13242 done
13243 fi
13244
13245 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13246 for ncn_progname in gcc; do
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13248 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13249 if test -x $with_build_time_tools/${ncn_progname}; then
13250 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252 $as_echo "yes" >&6; }
13253 break
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257 fi
13258 done
13259 fi
13260
13261 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13262 for ncn_progname in gcc; do
13263 if test -n "$ncn_target_tool_prefix"; then
13264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$GCC_FOR_TARGET"; then
13272 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13292 if test -n "$GCC_FOR_TARGET"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13294 $as_echo "$GCC_FOR_TARGET" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298 fi
13299
13300
13301 fi
13302 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13304 set dummy ${ncn_progname}; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 $as_echo_n "checking for $ac_word... " >&6; }
13307 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 if test -n "$GCC_FOR_TARGET"; then
13311 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13312 else
13313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13315 do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324 done
13325 done
13326 IFS=$as_save_IFS
13327
13328 fi
13329 fi
13330 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13331 if test -n "$GCC_FOR_TARGET"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13333 $as_echo "$GCC_FOR_TARGET" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338
13339
13340 fi
13341 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13342 done
13343 fi
13344
13345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13346 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13347 else
13348 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13349 fi
13350
13351
13352
13353 if test -n "$GFORTRAN_FOR_TARGET"; then
13354 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13355 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13356 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13357 fi
13358
13359 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13360 for ncn_progname in gfortran; do
13361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$GFORTRAN_FOR_TARGET"; then
13369 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13389 if test -n "$GFORTRAN_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13391 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398 done
13399 fi
13400
13401 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13402 for ncn_progname in gfortran; do
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13404 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13405 if test -x $with_build_time_tools/${ncn_progname}; then
13406 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13408 $as_echo "yes" >&6; }
13409 break
13410 else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414 done
13415 fi
13416
13417 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13418 for ncn_progname in gfortran; do
13419 if test -n "$ncn_target_tool_prefix"; then
13420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13421 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 if test -n "$GFORTRAN_FOR_TARGET"; then
13428 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13429 else
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13432 do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13440 fi
13441 done
13442 done
13443 IFS=$as_save_IFS
13444
13445 fi
13446 fi
13447 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13448 if test -n "$GFORTRAN_FOR_TARGET"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13450 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13451 else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454 fi
13455
13456
13457 fi
13458 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13460 set dummy ${ncn_progname}; ac_word=$2
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462 $as_echo_n "checking for $ac_word... " >&6; }
13463 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 if test -n "$GFORTRAN_FOR_TARGET"; then
13467 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13468 else
13469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470 for as_dir in $PATH
13471 do
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
13474 for ac_exec_ext in '' $ac_executable_extensions; do
13475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13476 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13478 break 2
13479 fi
13480 done
13481 done
13482 IFS=$as_save_IFS
13483
13484 fi
13485 fi
13486 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13487 if test -n "$GFORTRAN_FOR_TARGET"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13489 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493 fi
13494
13495
13496 fi
13497 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13498 done
13499 fi
13500
13501 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13502 set dummy gfortran
13503 if test $build = $target ; then
13504 GFORTRAN_FOR_TARGET="$2"
13505 else
13506 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13507 fi
13508 else
13509 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13510 fi
13511
13512
13513
13514 if test -n "$GOC_FOR_TARGET"; then
13515 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13516 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13517 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13518 fi
13519
13520 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13521 for ncn_progname in gccgo; do
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523 set dummy ${ncn_progname}; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 if test -n "$GOC_FOR_TARGET"; then
13530 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13542 fi
13543 done
13544 done
13545 IFS=$as_save_IFS
13546
13547 fi
13548 fi
13549 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13550 if test -n "$GOC_FOR_TARGET"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13552 $as_echo "$GOC_FOR_TARGET" >&6; }
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556 fi
13557
13558
13559 done
13560 fi
13561
13562 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563 for ncn_progname in gccgo; do
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13566 if test -x $with_build_time_tools/${ncn_progname}; then
13567 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569 $as_echo "yes" >&6; }
13570 break
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575 done
13576 fi
13577
13578 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13579 for ncn_progname in gccgo; do
13580 if test -n "$ncn_target_tool_prefix"; then
13581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 if test -n "$GOC_FOR_TARGET"; then
13589 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602 done
13603 done
13604 IFS=$as_save_IFS
13605
13606 fi
13607 fi
13608 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13609 if test -n "$GOC_FOR_TARGET"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13611 $as_echo "$GOC_FOR_TARGET" >&6; }
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13615 fi
13616
13617
13618 fi
13619 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621 set dummy ${ncn_progname}; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$GOC_FOR_TARGET"; then
13628 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641 done
13642 done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13648 if test -n "$GOC_FOR_TARGET"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13650 $as_echo "$GOC_FOR_TARGET" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656
13657 fi
13658 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13659 done
13660 fi
13661
13662 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13663 set dummy gccgo
13664 if test $build = $target ; then
13665 GOC_FOR_TARGET="$2"
13666 else
13667 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668 fi
13669 else
13670 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13671 fi
13672
13673
13674
13675 if test -n "$GDC_FOR_TARGET"; then
13676 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13677 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13678 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13679 fi
13680
13681 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13682 for ncn_progname in gdc; do
13683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13684 set dummy ${ncn_progname}; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 if test -n "$GDC_FOR_TARGET"; then
13691 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13700 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13703 fi
13704 done
13705 done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13711 if test -n "$GDC_FOR_TARGET"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13713 $as_echo "$GDC_FOR_TARGET" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717 fi
13718
13719
13720 done
13721 fi
13722
13723 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13724 for ncn_progname in gdc; do
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13726 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13727 if test -x $with_build_time_tools/${ncn_progname}; then
13728 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731 break
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735 fi
13736 done
13737 fi
13738
13739 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13740 for ncn_progname in gdc; do
13741 if test -n "$ncn_target_tool_prefix"; then
13742 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13743 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 if test -n "$GDC_FOR_TARGET"; then
13750 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13751 else
13752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
13758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13762 fi
13763 done
13764 done
13765 IFS=$as_save_IFS
13766
13767 fi
13768 fi
13769 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13770 if test -n "$GDC_FOR_TARGET"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13772 $as_echo "$GDC_FOR_TARGET" >&6; }
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778
13779 fi
13780 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13782 set dummy ${ncn_progname}; ac_word=$2
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 if test -n "$GDC_FOR_TARGET"; then
13789 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13790 else
13791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13793 do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802 done
13803 done
13804 IFS=$as_save_IFS
13805
13806 fi
13807 fi
13808 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13809 if test -n "$GDC_FOR_TARGET"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13811 $as_echo "$GDC_FOR_TARGET" >&6; }
13812 else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13815 fi
13816
13817
13818 fi
13819 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13820 done
13821 fi
13822
13823 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13824 set dummy gdc
13825 if test $build = $target ; then
13826 GDC_FOR_TARGET="$2"
13827 else
13828 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13829 fi
13830 else
13831 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13832 fi
13833
13834
13835
13836 cat > conftest.c << \EOF
13837 #ifdef __GNUC__
13838 gcc_yay;
13839 #endif
13840 EOF
13841 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13842 have_gcc_for_target=yes
13843 else
13844 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13845 have_gcc_for_target=no
13846 fi
13847 rm conftest.c
13848
13849
13850
13851
13852 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13853 if test -n "$with_build_time_tools"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13855 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13856 if test -x $with_build_time_tools/ar; then
13857 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13858 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13860 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13864 fi
13865 elif test $build != $host && test $have_gcc_for_target = yes; then
13866 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13867 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13868 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13869 fi
13870 fi
13871 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13872 # Extract the first word of "ar", so it can be a program name with args.
13873 set dummy ar; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 case $AR_FOR_TARGET in
13880 [\\/]* | ?:[\\/]*)
13881 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13882 ;;
13883 *)
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $gcc_cv_tool_dirs
13886 do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13894 fi
13895 done
13896 done
13897 IFS=$as_save_IFS
13898
13899 ;;
13900 esac
13901 fi
13902 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13903 if test -n "$AR_FOR_TARGET"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13905 $as_echo "$AR_FOR_TARGET" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13909 fi
13910
13911
13912 fi
13913 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13914
13915
13916 if test -n "$AR_FOR_TARGET"; then
13917 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13918 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13919 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13920 fi
13921
13922 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13923 for ncn_progname in ar; do
13924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13925 set dummy ${ncn_progname}; ac_word=$2
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 $as_echo_n "checking for $ac_word... " >&6; }
13928 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 if test -n "$AR_FOR_TARGET"; then
13932 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13933 else
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945 done
13946 done
13947 IFS=$as_save_IFS
13948
13949 fi
13950 fi
13951 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13952 if test -n "$AR_FOR_TARGET"; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13954 $as_echo "$AR_FOR_TARGET" >&6; }
13955 else
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13958 fi
13959
13960
13961 done
13962 fi
13963
13964 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13965 for ncn_progname in ar; do
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13967 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13968 if test -x $with_build_time_tools/${ncn_progname}; then
13969 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971 $as_echo "yes" >&6; }
13972 break
13973 else
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 $as_echo "no" >&6; }
13976 fi
13977 done
13978 fi
13979
13980 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13981 for ncn_progname in ar; do
13982 if test -n "$ncn_target_tool_prefix"; then
13983 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13984 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$AR_FOR_TARGET"; then
13991 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14000 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14003 fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14011 if test -n "$AR_FOR_TARGET"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14013 $as_echo "$AR_FOR_TARGET" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018
14019
14020 fi
14021 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14023 set dummy ${ncn_progname}; ac_word=$2
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025 $as_echo_n "checking for $ac_word... " >&6; }
14026 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029 if test -n "$AR_FOR_TARGET"; then
14030 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14031 else
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14034 do
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14042 fi
14043 done
14044 done
14045 IFS=$as_save_IFS
14046
14047 fi
14048 fi
14049 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14050 if test -n "$AR_FOR_TARGET"; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14052 $as_echo "$AR_FOR_TARGET" >&6; }
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 $as_echo "no" >&6; }
14056 fi
14057
14058
14059 fi
14060 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14061 done
14062 fi
14063
14064 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14065 set dummy ar
14066 if test $build = $target ; then
14067 AR_FOR_TARGET="$2"
14068 else
14069 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14070 fi
14071 else
14072 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14073 fi
14074
14075 else
14076 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14077 fi
14078
14079
14080
14081
14082 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14083 if test -n "$with_build_time_tools"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14085 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14086 if test -x $with_build_time_tools/as; then
14087 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14088 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14090 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095 elif test $build != $host && test $have_gcc_for_target = yes; then
14096 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14097 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14098 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14099 fi
14100 fi
14101 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14102 # Extract the first word of "as", so it can be a program name with args.
14103 set dummy as; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 case $AS_FOR_TARGET in
14110 [\\/]* | ?:[\\/]*)
14111 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14112 ;;
14113 *)
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $gcc_cv_tool_dirs
14116 do
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14121 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14124 fi
14125 done
14126 done
14127 IFS=$as_save_IFS
14128
14129 ;;
14130 esac
14131 fi
14132 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14133 if test -n "$AS_FOR_TARGET"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14135 $as_echo "$AS_FOR_TARGET" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141
14142 fi
14143 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14144
14145
14146 if test -n "$AS_FOR_TARGET"; then
14147 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14148 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14149 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14150 fi
14151
14152 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14153 for ncn_progname in as; do
14154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14155 set dummy ${ncn_progname}; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 if test -n "$AS_FOR_TARGET"; then
14162 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14166 do
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 break 2
14174 fi
14175 done
14176 done
14177 IFS=$as_save_IFS
14178
14179 fi
14180 fi
14181 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14182 if test -n "$AS_FOR_TARGET"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14184 $as_echo "$AS_FOR_TARGET" >&6; }
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 fi
14189
14190
14191 done
14192 fi
14193
14194 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14195 for ncn_progname in as; do
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14197 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14198 if test -x $with_build_time_tools/${ncn_progname}; then
14199 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14201 $as_echo "yes" >&6; }
14202 break
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207 done
14208 fi
14209
14210 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14211 for ncn_progname in as; do
14212 if test -n "$ncn_target_tool_prefix"; then
14213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14214 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 $as_echo_n "checking for $ac_word... " >&6; }
14217 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 if test -n "$AS_FOR_TARGET"; then
14221 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14222 else
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14225 do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 fi
14239 fi
14240 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14241 if test -n "$AS_FOR_TARGET"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14243 $as_echo "$AS_FOR_TARGET" >&6; }
14244 else
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14247 fi
14248
14249
14250 fi
14251 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14253 set dummy ${ncn_progname}; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 if test -n "$AS_FOR_TARGET"; then
14260 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14264 do
14265 IFS=$as_save_IFS
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14269 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271 break 2
14272 fi
14273 done
14274 done
14275 IFS=$as_save_IFS
14276
14277 fi
14278 fi
14279 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14280 if test -n "$AS_FOR_TARGET"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14282 $as_echo "$AS_FOR_TARGET" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14286 fi
14287
14288
14289 fi
14290 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14291 done
14292 fi
14293
14294 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14295 set dummy as
14296 if test $build = $target ; then
14297 AS_FOR_TARGET="$2"
14298 else
14299 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14300 fi
14301 else
14302 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14303 fi
14304
14305 else
14306 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14307 fi
14308
14309
14310
14311
14312 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14313 if test -n "$with_build_time_tools"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14315 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14316 if test -x $with_build_time_tools/dlltool; then
14317 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14318 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14320 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323 $as_echo "no" >&6; }
14324 fi
14325 elif test $build != $host && test $have_gcc_for_target = yes; then
14326 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14327 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14328 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14329 fi
14330 fi
14331 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14332 # Extract the first word of "dlltool", so it can be a program name with args.
14333 set dummy dlltool; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 case $DLLTOOL_FOR_TARGET in
14340 [\\/]* | ?:[\\/]*)
14341 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14342 ;;
14343 *)
14344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345 for as_dir in $gcc_cv_tool_dirs
14346 do
14347 IFS=$as_save_IFS
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
14350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14351 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 break 2
14354 fi
14355 done
14356 done
14357 IFS=$as_save_IFS
14358
14359 ;;
14360 esac
14361 fi
14362 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14363 if test -n "$DLLTOOL_FOR_TARGET"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14365 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369 fi
14370
14371
14372 fi
14373 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14374
14375
14376 if test -n "$DLLTOOL_FOR_TARGET"; then
14377 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14378 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14379 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14380 fi
14381
14382 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14383 for ncn_progname in dlltool; do
14384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14385 set dummy ${ncn_progname}; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$DLLTOOL_FOR_TARGET"; then
14392 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14412 if test -n "$DLLTOOL_FOR_TARGET"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14414 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421 done
14422 fi
14423
14424 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14425 for ncn_progname in dlltool; do
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14427 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14428 if test -x $with_build_time_tools/${ncn_progname}; then
14429 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 $as_echo "yes" >&6; }
14432 break
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436 fi
14437 done
14438 fi
14439
14440 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14441 for ncn_progname in dlltool; do
14442 if test -n "$ncn_target_tool_prefix"; then
14443 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14444 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14446 $as_echo_n "checking for $ac_word... " >&6; }
14447 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 if test -n "$DLLTOOL_FOR_TARGET"; then
14451 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14452 else
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464 done
14465 done
14466 IFS=$as_save_IFS
14467
14468 fi
14469 fi
14470 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14471 if test -n "$DLLTOOL_FOR_TARGET"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14473 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14474 else
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477 fi
14478
14479
14480 fi
14481 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14483 set dummy ${ncn_progname}; ac_word=$2
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14485 $as_echo_n "checking for $ac_word... " >&6; }
14486 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 if test -n "$DLLTOOL_FOR_TARGET"; then
14490 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14491 else
14492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493 for as_dir in $PATH
14494 do
14495 IFS=$as_save_IFS
14496 test -z "$as_dir" && as_dir=.
14497 for ac_exec_ext in '' $ac_executable_extensions; do
14498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14499 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14501 break 2
14502 fi
14503 done
14504 done
14505 IFS=$as_save_IFS
14506
14507 fi
14508 fi
14509 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14510 if test -n "$DLLTOOL_FOR_TARGET"; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14512 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14513 else
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14516 fi
14517
14518
14519 fi
14520 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14521 done
14522 fi
14523
14524 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14525 set dummy dlltool
14526 if test $build = $target ; then
14527 DLLTOOL_FOR_TARGET="$2"
14528 else
14529 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14530 fi
14531 else
14532 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14533 fi
14534
14535 else
14536 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14537 fi
14538
14539
14540
14541
14542 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14543 if test -n "$with_build_time_tools"; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14545 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14546 if test -x $with_build_time_tools/dsymutil; then
14547 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14548 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14550 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14554 fi
14555 elif test $build != $host && test $have_gcc_for_target = yes; then
14556 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14557 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14558 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14559 fi
14560 fi
14561 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14562 # Extract the first word of "dsymutil", so it can be a program name with args.
14563 set dummy dsymutil; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565 $as_echo_n "checking for $ac_word... " >&6; }
14566 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 case $DSYMUTIL_FOR_TARGET in
14570 [\\/]* | ?:[\\/]*)
14571 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14572 ;;
14573 *)
14574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575 for as_dir in $gcc_cv_tool_dirs
14576 do
14577 IFS=$as_save_IFS
14578 test -z "$as_dir" && as_dir=.
14579 for ac_exec_ext in '' $ac_executable_extensions; do
14580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14581 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14583 break 2
14584 fi
14585 done
14586 done
14587 IFS=$as_save_IFS
14588
14589 ;;
14590 esac
14591 fi
14592 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14593 if test -n "$DSYMUTIL_FOR_TARGET"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14595 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600
14601
14602 fi
14603 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14604
14605
14606 if test -n "$DSYMUTIL_FOR_TARGET"; then
14607 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14608 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14609 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14610 fi
14611
14612 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14613 for ncn_progname in dsymutil; do
14614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14615 set dummy ${ncn_progname}; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617 $as_echo_n "checking for $ac_word... " >&6; }
14618 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 if test -n "$DSYMUTIL_FOR_TARGET"; then
14622 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14623 else
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14631 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 break 2
14634 fi
14635 done
14636 done
14637 IFS=$as_save_IFS
14638
14639 fi
14640 fi
14641 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14642 if test -n "$DSYMUTIL_FOR_TARGET"; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14644 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649
14650
14651 done
14652 fi
14653
14654 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14655 for ncn_progname in dsymutil; do
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14658 if test -x $with_build_time_tools/${ncn_progname}; then
14659 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14661 $as_echo "yes" >&6; }
14662 break
14663 else
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14666 fi
14667 done
14668 fi
14669
14670 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14671 for ncn_progname in dsymutil; do
14672 if test -n "$ncn_target_tool_prefix"; then
14673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676 $as_echo_n "checking for $ac_word... " >&6; }
14677 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 if test -n "$DSYMUTIL_FOR_TARGET"; then
14681 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14682 else
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14685 do
14686 IFS=$as_save_IFS
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692 break 2
14693 fi
14694 done
14695 done
14696 IFS=$as_save_IFS
14697
14698 fi
14699 fi
14700 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14701 if test -n "$DSYMUTIL_FOR_TARGET"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14703 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14704 else
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707 fi
14708
14709
14710 fi
14711 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14713 set dummy ${ncn_progname}; ac_word=$2
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715 $as_echo_n "checking for $ac_word... " >&6; }
14716 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if test -n "$DSYMUTIL_FOR_TARGET"; then
14720 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14721 else
14722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723 for as_dir in $PATH
14724 do
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14729 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733 done
14734 done
14735 IFS=$as_save_IFS
14736
14737 fi
14738 fi
14739 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14740 if test -n "$DSYMUTIL_FOR_TARGET"; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14742 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 fi
14747
14748
14749 fi
14750 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14751 done
14752 fi
14753
14754 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14755 set dummy dsymutil
14756 if test $build = $target ; then
14757 DSYMUTIL_FOR_TARGET="$2"
14758 else
14759 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14760 fi
14761 else
14762 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14763 fi
14764
14765 else
14766 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14767 fi
14768
14769
14770
14771
14772 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14773 if test -n "$with_build_time_tools"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14775 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14776 if test -x $with_build_time_tools/ld; then
14777 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14778 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14780 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14784 fi
14785 elif test $build != $host && test $have_gcc_for_target = yes; then
14786 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14787 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14788 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14789 fi
14790 fi
14791 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14792 # Extract the first word of "ld", so it can be a program name with args.
14793 set dummy ld; ac_word=$2
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 $as_echo_n "checking for $ac_word... " >&6; }
14796 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 case $LD_FOR_TARGET in
14800 [\\/]* | ?:[\\/]*)
14801 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14802 ;;
14803 *)
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $gcc_cv_tool_dirs
14806 do
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 break 2
14814 fi
14815 done
14816 done
14817 IFS=$as_save_IFS
14818
14819 ;;
14820 esac
14821 fi
14822 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14823 if test -n "$LD_FOR_TARGET"; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14825 $as_echo "$LD_FOR_TARGET" >&6; }
14826 else
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 $as_echo "no" >&6; }
14829 fi
14830
14831
14832 fi
14833 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14834
14835
14836 if test -n "$LD_FOR_TARGET"; then
14837 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14838 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14839 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14840 fi
14841
14842 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14843 for ncn_progname in ld; do
14844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14845 set dummy ${ncn_progname}; ac_word=$2
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14847 $as_echo_n "checking for $ac_word... " >&6; }
14848 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 if test -n "$LD_FOR_TARGET"; then
14852 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14853 else
14854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855 for as_dir in $PATH
14856 do
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 for ac_exec_ext in '' $ac_executable_extensions; do
14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863 break 2
14864 fi
14865 done
14866 done
14867 IFS=$as_save_IFS
14868
14869 fi
14870 fi
14871 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14872 if test -n "$LD_FOR_TARGET"; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14874 $as_echo "$LD_FOR_TARGET" >&6; }
14875 else
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877 $as_echo "no" >&6; }
14878 fi
14879
14880
14881 done
14882 fi
14883
14884 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14885 for ncn_progname in ld; do
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14887 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14888 if test -x $with_build_time_tools/${ncn_progname}; then
14889 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14892 break
14893 else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895 $as_echo "no" >&6; }
14896 fi
14897 done
14898 fi
14899
14900 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14901 for ncn_progname in ld; do
14902 if test -n "$ncn_target_tool_prefix"; then
14903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14904 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14906 $as_echo_n "checking for $ac_word... " >&6; }
14907 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 if test -n "$LD_FOR_TARGET"; then
14911 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14912 else
14913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14915 do
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
14918 for ac_exec_ext in '' $ac_executable_extensions; do
14919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14920 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922 break 2
14923 fi
14924 done
14925 done
14926 IFS=$as_save_IFS
14927
14928 fi
14929 fi
14930 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14931 if test -n "$LD_FOR_TARGET"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14933 $as_echo "$LD_FOR_TARGET" >&6; }
14934 else
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 $as_echo "no" >&6; }
14937 fi
14938
14939
14940 fi
14941 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14943 set dummy ${ncn_progname}; ac_word=$2
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14945 $as_echo_n "checking for $ac_word... " >&6; }
14946 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14947 $as_echo_n "(cached) " >&6
14948 else
14949 if test -n "$LD_FOR_TARGET"; then
14950 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14951 else
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $PATH
14954 do
14955 IFS=$as_save_IFS
14956 test -z "$as_dir" && as_dir=.
14957 for ac_exec_ext in '' $ac_executable_extensions; do
14958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14959 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14961 break 2
14962 fi
14963 done
14964 done
14965 IFS=$as_save_IFS
14966
14967 fi
14968 fi
14969 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14970 if test -n "$LD_FOR_TARGET"; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14972 $as_echo "$LD_FOR_TARGET" >&6; }
14973 else
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14976 fi
14977
14978
14979 fi
14980 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14981 done
14982 fi
14983
14984 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14985 set dummy ld
14986 if test $build = $target ; then
14987 LD_FOR_TARGET="$2"
14988 else
14989 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14990 fi
14991 else
14992 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14993 fi
14994
14995 else
14996 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14997 fi
14998
14999
15000
15001
15002 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15003 if test -n "$with_build_time_tools"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15005 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15006 if test -x $with_build_time_tools/lipo; then
15007 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15008 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15010 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15011 else
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15014 fi
15015 elif test $build != $host && test $have_gcc_for_target = yes; then
15016 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15017 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15018 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15019 fi
15020 fi
15021 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15022 # Extract the first word of "lipo", so it can be a program name with args.
15023 set dummy lipo; ac_word=$2
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15025 $as_echo_n "checking for $ac_word... " >&6; }
15026 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 case $LIPO_FOR_TARGET in
15030 [\\/]* | ?:[\\/]*)
15031 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15032 ;;
15033 *)
15034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15035 for as_dir in $gcc_cv_tool_dirs
15036 do
15037 IFS=$as_save_IFS
15038 test -z "$as_dir" && as_dir=.
15039 for ac_exec_ext in '' $ac_executable_extensions; do
15040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15041 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15043 break 2
15044 fi
15045 done
15046 done
15047 IFS=$as_save_IFS
15048
15049 ;;
15050 esac
15051 fi
15052 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15053 if test -n "$LIPO_FOR_TARGET"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15055 $as_echo "$LIPO_FOR_TARGET" >&6; }
15056 else
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059 fi
15060
15061
15062 fi
15063 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15064
15065
15066 if test -n "$LIPO_FOR_TARGET"; then
15067 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15068 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15069 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15070 fi
15071
15072 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15073 for ncn_progname in lipo; do
15074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15075 set dummy ${ncn_progname}; ac_word=$2
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077 $as_echo_n "checking for $ac_word... " >&6; }
15078 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 if test -n "$LIPO_FOR_TARGET"; then
15082 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15083 else
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $PATH
15086 do
15087 IFS=$as_save_IFS
15088 test -z "$as_dir" && as_dir=.
15089 for ac_exec_ext in '' $ac_executable_extensions; do
15090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15093 break 2
15094 fi
15095 done
15096 done
15097 IFS=$as_save_IFS
15098
15099 fi
15100 fi
15101 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15102 if test -n "$LIPO_FOR_TARGET"; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15104 $as_echo "$LIPO_FOR_TARGET" >&6; }
15105 else
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107 $as_echo "no" >&6; }
15108 fi
15109
15110
15111 done
15112 fi
15113
15114 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15115 for ncn_progname in lipo; do
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15117 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15118 if test -x $with_build_time_tools/${ncn_progname}; then
15119 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15121 $as_echo "yes" >&6; }
15122 break
15123 else
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 $as_echo "no" >&6; }
15126 fi
15127 done
15128 fi
15129
15130 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15131 for ncn_progname in lipo; do
15132 if test -n "$ncn_target_tool_prefix"; then
15133 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15134 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15136 $as_echo_n "checking for $ac_word... " >&6; }
15137 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 if test -n "$LIPO_FOR_TARGET"; then
15141 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15142 else
15143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $PATH
15145 do
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15152 break 2
15153 fi
15154 done
15155 done
15156 IFS=$as_save_IFS
15157
15158 fi
15159 fi
15160 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15161 if test -n "$LIPO_FOR_TARGET"; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15163 $as_echo "$LIPO_FOR_TARGET" >&6; }
15164 else
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166 $as_echo "no" >&6; }
15167 fi
15168
15169
15170 fi
15171 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15173 set dummy ${ncn_progname}; ac_word=$2
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15175 $as_echo_n "checking for $ac_word... " >&6; }
15176 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 if test -n "$LIPO_FOR_TARGET"; then
15180 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15181 else
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183 for as_dir in $PATH
15184 do
15185 IFS=$as_save_IFS
15186 test -z "$as_dir" && as_dir=.
15187 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15189 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15191 break 2
15192 fi
15193 done
15194 done
15195 IFS=$as_save_IFS
15196
15197 fi
15198 fi
15199 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15200 if test -n "$LIPO_FOR_TARGET"; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15202 $as_echo "$LIPO_FOR_TARGET" >&6; }
15203 else
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15205 $as_echo "no" >&6; }
15206 fi
15207
15208
15209 fi
15210 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15211 done
15212 fi
15213
15214 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15215 set dummy lipo
15216 if test $build = $target ; then
15217 LIPO_FOR_TARGET="$2"
15218 else
15219 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15220 fi
15221 else
15222 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15223 fi
15224
15225 else
15226 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15227 fi
15228
15229
15230
15231
15232 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15233 if test -n "$with_build_time_tools"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15235 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15236 if test -x $with_build_time_tools/nm; then
15237 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15238 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15240 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15241 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243 $as_echo "no" >&6; }
15244 fi
15245 elif test $build != $host && test $have_gcc_for_target = yes; then
15246 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15247 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15248 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15249 fi
15250 fi
15251 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15252 # Extract the first word of "nm", so it can be a program name with args.
15253 set dummy nm; ac_word=$2
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15255 $as_echo_n "checking for $ac_word... " >&6; }
15256 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 case $NM_FOR_TARGET in
15260 [\\/]* | ?:[\\/]*)
15261 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15262 ;;
15263 *)
15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265 for as_dir in $gcc_cv_tool_dirs
15266 do
15267 IFS=$as_save_IFS
15268 test -z "$as_dir" && as_dir=.
15269 for ac_exec_ext in '' $ac_executable_extensions; do
15270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15271 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15273 break 2
15274 fi
15275 done
15276 done
15277 IFS=$as_save_IFS
15278
15279 ;;
15280 esac
15281 fi
15282 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15283 if test -n "$NM_FOR_TARGET"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15285 $as_echo "$NM_FOR_TARGET" >&6; }
15286 else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288 $as_echo "no" >&6; }
15289 fi
15290
15291
15292 fi
15293 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15294
15295
15296 if test -n "$NM_FOR_TARGET"; then
15297 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15298 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15299 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15300 fi
15301
15302 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15303 for ncn_progname in nm; do
15304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15305 set dummy ${ncn_progname}; ac_word=$2
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15307 $as_echo_n "checking for $ac_word... " >&6; }
15308 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 if test -n "$NM_FOR_TARGET"; then
15312 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15313 else
15314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315 for as_dir in $PATH
15316 do
15317 IFS=$as_save_IFS
15318 test -z "$as_dir" && as_dir=.
15319 for ac_exec_ext in '' $ac_executable_extensions; do
15320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15321 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15323 break 2
15324 fi
15325 done
15326 done
15327 IFS=$as_save_IFS
15328
15329 fi
15330 fi
15331 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15332 if test -n "$NM_FOR_TARGET"; then
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15334 $as_echo "$NM_FOR_TARGET" >&6; }
15335 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15338 fi
15339
15340
15341 done
15342 fi
15343
15344 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15345 for ncn_progname in nm; do
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15347 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15348 if test -x $with_build_time_tools/${ncn_progname}; then
15349 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15351 $as_echo "yes" >&6; }
15352 break
15353 else
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15356 fi
15357 done
15358 fi
15359
15360 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15361 for ncn_progname in nm; do
15362 if test -n "$ncn_target_tool_prefix"; then
15363 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15364 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15366 $as_echo_n "checking for $ac_word... " >&6; }
15367 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15368 $as_echo_n "(cached) " >&6
15369 else
15370 if test -n "$NM_FOR_TARGET"; then
15371 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15372 else
15373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374 for as_dir in $PATH
15375 do
15376 IFS=$as_save_IFS
15377 test -z "$as_dir" && as_dir=.
15378 for ac_exec_ext in '' $ac_executable_extensions; do
15379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15380 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15382 break 2
15383 fi
15384 done
15385 done
15386 IFS=$as_save_IFS
15387
15388 fi
15389 fi
15390 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15391 if test -n "$NM_FOR_TARGET"; then
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15393 $as_echo "$NM_FOR_TARGET" >&6; }
15394 else
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396 $as_echo "no" >&6; }
15397 fi
15398
15399
15400 fi
15401 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15403 set dummy ${ncn_progname}; ac_word=$2
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15405 $as_echo_n "checking for $ac_word... " >&6; }
15406 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15407 $as_echo_n "(cached) " >&6
15408 else
15409 if test -n "$NM_FOR_TARGET"; then
15410 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15411 else
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413 for as_dir in $PATH
15414 do
15415 IFS=$as_save_IFS
15416 test -z "$as_dir" && as_dir=.
15417 for ac_exec_ext in '' $ac_executable_extensions; do
15418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15419 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15421 break 2
15422 fi
15423 done
15424 done
15425 IFS=$as_save_IFS
15426
15427 fi
15428 fi
15429 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15430 if test -n "$NM_FOR_TARGET"; then
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15432 $as_echo "$NM_FOR_TARGET" >&6; }
15433 else
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 $as_echo "no" >&6; }
15436 fi
15437
15438
15439 fi
15440 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15441 done
15442 fi
15443
15444 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15445 set dummy nm
15446 if test $build = $target ; then
15447 NM_FOR_TARGET="$2"
15448 else
15449 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15450 fi
15451 else
15452 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15453 fi
15454
15455 else
15456 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15457 fi
15458
15459
15460
15461
15462 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15463 if test -n "$with_build_time_tools"; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15465 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15466 if test -x $with_build_time_tools/objcopy; then
15467 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15468 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15470 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15471 else
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15474 fi
15475 elif test $build != $host && test $have_gcc_for_target = yes; then
15476 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15477 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15478 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15479 fi
15480 fi
15481 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15482 # Extract the first word of "objcopy", so it can be a program name with args.
15483 set dummy objcopy; ac_word=$2
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15485 $as_echo_n "checking for $ac_word... " >&6; }
15486 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15487 $as_echo_n "(cached) " >&6
15488 else
15489 case $OBJCOPY_FOR_TARGET in
15490 [\\/]* | ?:[\\/]*)
15491 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15492 ;;
15493 *)
15494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15495 for as_dir in $gcc_cv_tool_dirs
15496 do
15497 IFS=$as_save_IFS
15498 test -z "$as_dir" && as_dir=.
15499 for ac_exec_ext in '' $ac_executable_extensions; do
15500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15501 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 break 2
15504 fi
15505 done
15506 done
15507 IFS=$as_save_IFS
15508
15509 ;;
15510 esac
15511 fi
15512 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15513 if test -n "$OBJCOPY_FOR_TARGET"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15515 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15516 else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15519 fi
15520
15521
15522 fi
15523 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15524
15525
15526 if test -n "$OBJCOPY_FOR_TARGET"; then
15527 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15528 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15529 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15530 fi
15531
15532 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15533 for ncn_progname in objcopy; do
15534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15535 set dummy ${ncn_progname}; ac_word=$2
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537 $as_echo_n "checking for $ac_word... " >&6; }
15538 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 if test -n "$OBJCOPY_FOR_TARGET"; then
15542 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15543 else
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $PATH
15546 do
15547 IFS=$as_save_IFS
15548 test -z "$as_dir" && as_dir=.
15549 for ac_exec_ext in '' $ac_executable_extensions; do
15550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553 break 2
15554 fi
15555 done
15556 done
15557 IFS=$as_save_IFS
15558
15559 fi
15560 fi
15561 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15562 if test -n "$OBJCOPY_FOR_TARGET"; then
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15564 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15565 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15568 fi
15569
15570
15571 done
15572 fi
15573
15574 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15575 for ncn_progname in objcopy; do
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15577 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15578 if test -x $with_build_time_tools/${ncn_progname}; then
15579 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15581 $as_echo "yes" >&6; }
15582 break
15583 else
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15585 $as_echo "no" >&6; }
15586 fi
15587 done
15588 fi
15589
15590 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15591 for ncn_progname in objcopy; do
15592 if test -n "$ncn_target_tool_prefix"; then
15593 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15594 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596 $as_echo_n "checking for $ac_word... " >&6; }
15597 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 if test -n "$OBJCOPY_FOR_TARGET"; then
15601 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15602 else
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15605 do
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15610 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 break 2
15613 fi
15614 done
15615 done
15616 IFS=$as_save_IFS
15617
15618 fi
15619 fi
15620 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15621 if test -n "$OBJCOPY_FOR_TARGET"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15623 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627 fi
15628
15629
15630 fi
15631 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15633 set dummy ${ncn_progname}; ac_word=$2
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15635 $as_echo_n "checking for $ac_word... " >&6; }
15636 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 if test -n "$OBJCOPY_FOR_TARGET"; then
15640 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15641 else
15642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15643 for as_dir in $PATH
15644 do
15645 IFS=$as_save_IFS
15646 test -z "$as_dir" && as_dir=.
15647 for ac_exec_ext in '' $ac_executable_extensions; do
15648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15649 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15651 break 2
15652 fi
15653 done
15654 done
15655 IFS=$as_save_IFS
15656
15657 fi
15658 fi
15659 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15660 if test -n "$OBJCOPY_FOR_TARGET"; then
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15662 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15663 else
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15666 fi
15667
15668
15669 fi
15670 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15671 done
15672 fi
15673
15674 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15675 set dummy objcopy
15676 if test $build = $target ; then
15677 OBJCOPY_FOR_TARGET="$2"
15678 else
15679 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15680 fi
15681 else
15682 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15683 fi
15684
15685 else
15686 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15687 fi
15688
15689
15690
15691
15692 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15693 if test -n "$with_build_time_tools"; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15695 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15696 if test -x $with_build_time_tools/objdump; then
15697 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15698 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15700 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15701 else
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703 $as_echo "no" >&6; }
15704 fi
15705 elif test $build != $host && test $have_gcc_for_target = yes; then
15706 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15707 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15708 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15709 fi
15710 fi
15711 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15712 # Extract the first word of "objdump", so it can be a program name with args.
15713 set dummy objdump; ac_word=$2
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15715 $as_echo_n "checking for $ac_word... " >&6; }
15716 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 case $OBJDUMP_FOR_TARGET in
15720 [\\/]* | ?:[\\/]*)
15721 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15722 ;;
15723 *)
15724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15725 for as_dir in $gcc_cv_tool_dirs
15726 do
15727 IFS=$as_save_IFS
15728 test -z "$as_dir" && as_dir=.
15729 for ac_exec_ext in '' $ac_executable_extensions; do
15730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15731 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15733 break 2
15734 fi
15735 done
15736 done
15737 IFS=$as_save_IFS
15738
15739 ;;
15740 esac
15741 fi
15742 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15743 if test -n "$OBJDUMP_FOR_TARGET"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15745 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15746 else
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15749 fi
15750
15751
15752 fi
15753 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15754
15755
15756 if test -n "$OBJDUMP_FOR_TARGET"; then
15757 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15758 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15759 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15760 fi
15761
15762 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15763 for ncn_progname in objdump; do
15764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15765 set dummy ${ncn_progname}; ac_word=$2
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767 $as_echo_n "checking for $ac_word... " >&6; }
15768 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15769 $as_echo_n "(cached) " >&6
15770 else
15771 if test -n "$OBJDUMP_FOR_TARGET"; then
15772 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15773 else
15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $PATH
15776 do
15777 IFS=$as_save_IFS
15778 test -z "$as_dir" && as_dir=.
15779 for ac_exec_ext in '' $ac_executable_extensions; do
15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15781 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783 break 2
15784 fi
15785 done
15786 done
15787 IFS=$as_save_IFS
15788
15789 fi
15790 fi
15791 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15792 if test -n "$OBJDUMP_FOR_TARGET"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15794 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15795 else
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797 $as_echo "no" >&6; }
15798 fi
15799
15800
15801 done
15802 fi
15803
15804 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15805 for ncn_progname in objdump; do
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15807 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15808 if test -x $with_build_time_tools/${ncn_progname}; then
15809 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15811 $as_echo "yes" >&6; }
15812 break
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15816 fi
15817 done
15818 fi
15819
15820 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15821 for ncn_progname in objdump; do
15822 if test -n "$ncn_target_tool_prefix"; then
15823 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15824 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 if test -n "$OBJDUMP_FOR_TARGET"; then
15831 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15832 else
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15843 fi
15844 done
15845 done
15846 IFS=$as_save_IFS
15847
15848 fi
15849 fi
15850 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15851 if test -n "$OBJDUMP_FOR_TARGET"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15853 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15854 else
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15857 fi
15858
15859
15860 fi
15861 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15863 set dummy ${ncn_progname}; ac_word=$2
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15865 $as_echo_n "checking for $ac_word... " >&6; }
15866 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15867 $as_echo_n "(cached) " >&6
15868 else
15869 if test -n "$OBJDUMP_FOR_TARGET"; then
15870 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15871 else
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15874 do
15875 IFS=$as_save_IFS
15876 test -z "$as_dir" && as_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15881 break 2
15882 fi
15883 done
15884 done
15885 IFS=$as_save_IFS
15886
15887 fi
15888 fi
15889 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15890 if test -n "$OBJDUMP_FOR_TARGET"; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15892 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15893 else
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 $as_echo "no" >&6; }
15896 fi
15897
15898
15899 fi
15900 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15901 done
15902 fi
15903
15904 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15905 set dummy objdump
15906 if test $build = $target ; then
15907 OBJDUMP_FOR_TARGET="$2"
15908 else
15909 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15910 fi
15911 else
15912 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15913 fi
15914
15915 else
15916 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15917 fi
15918
15919
15920
15921
15922 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15923 if test -n "$with_build_time_tools"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15925 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15926 if test -x $with_build_time_tools/otool; then
15927 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15928 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15930 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15931 else
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 $as_echo "no" >&6; }
15934 fi
15935 elif test $build != $host && test $have_gcc_for_target = yes; then
15936 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15937 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15938 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15939 fi
15940 fi
15941 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15942 # Extract the first word of "otool", so it can be a program name with args.
15943 set dummy otool; ac_word=$2
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15945 $as_echo_n "checking for $ac_word... " >&6; }
15946 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15949 case $OTOOL_FOR_TARGET in
15950 [\\/]* | ?:[\\/]*)
15951 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15952 ;;
15953 *)
15954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15955 for as_dir in $gcc_cv_tool_dirs
15956 do
15957 IFS=$as_save_IFS
15958 test -z "$as_dir" && as_dir=.
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15961 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15963 break 2
15964 fi
15965 done
15966 done
15967 IFS=$as_save_IFS
15968
15969 ;;
15970 esac
15971 fi
15972 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15973 if test -n "$OTOOL_FOR_TARGET"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15975 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979 fi
15980
15981
15982 fi
15983 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15984
15985
15986 if test -n "$OTOOL_FOR_TARGET"; then
15987 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15988 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15989 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15990 fi
15991
15992 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15993 for ncn_progname in otool; do
15994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15995 set dummy ${ncn_progname}; ac_word=$2
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997 $as_echo_n "checking for $ac_word... " >&6; }
15998 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001 if test -n "$OTOOL_FOR_TARGET"; then
16002 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16003 else
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16006 do
16007 IFS=$as_save_IFS
16008 test -z "$as_dir" && as_dir=.
16009 for ac_exec_ext in '' $ac_executable_extensions; do
16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16013 break 2
16014 fi
16015 done
16016 done
16017 IFS=$as_save_IFS
16018
16019 fi
16020 fi
16021 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16022 if test -n "$OTOOL_FOR_TARGET"; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16024 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16025 else
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16028 fi
16029
16030
16031 done
16032 fi
16033
16034 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16035 for ncn_progname in otool; do
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16037 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16038 if test -x $with_build_time_tools/${ncn_progname}; then
16039 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16042 break
16043 else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046 fi
16047 done
16048 fi
16049
16050 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16051 for ncn_progname in otool; do
16052 if test -n "$ncn_target_tool_prefix"; then
16053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16054 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056 $as_echo_n "checking for $ac_word... " >&6; }
16057 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 if test -n "$OTOOL_FOR_TARGET"; then
16061 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16062 else
16063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064 for as_dir in $PATH
16065 do
16066 IFS=$as_save_IFS
16067 test -z "$as_dir" && as_dir=.
16068 for ac_exec_ext in '' $ac_executable_extensions; do
16069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16070 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072 break 2
16073 fi
16074 done
16075 done
16076 IFS=$as_save_IFS
16077
16078 fi
16079 fi
16080 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16081 if test -n "$OTOOL_FOR_TARGET"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16083 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16084 else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16087 fi
16088
16089
16090 fi
16091 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16093 set dummy ${ncn_progname}; ac_word=$2
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095 $as_echo_n "checking for $ac_word... " >&6; }
16096 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 if test -n "$OTOOL_FOR_TARGET"; then
16100 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16101 else
16102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103 for as_dir in $PATH
16104 do
16105 IFS=$as_save_IFS
16106 test -z "$as_dir" && as_dir=.
16107 for ac_exec_ext in '' $ac_executable_extensions; do
16108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16109 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16111 break 2
16112 fi
16113 done
16114 done
16115 IFS=$as_save_IFS
16116
16117 fi
16118 fi
16119 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16120 if test -n "$OTOOL_FOR_TARGET"; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16122 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16123 else
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125 $as_echo "no" >&6; }
16126 fi
16127
16128
16129 fi
16130 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16131 done
16132 fi
16133
16134 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16135 set dummy otool
16136 if test $build = $target ; then
16137 OTOOL_FOR_TARGET="$2"
16138 else
16139 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16140 fi
16141 else
16142 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16143 fi
16144
16145 else
16146 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16147 fi
16148
16149
16150
16151
16152 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16153 if test -n "$with_build_time_tools"; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16155 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16156 if test -x $with_build_time_tools/ranlib; then
16157 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16158 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16160 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 fi
16165 elif test $build != $host && test $have_gcc_for_target = yes; then
16166 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16167 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16168 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16169 fi
16170 fi
16171 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16172 # Extract the first word of "ranlib", so it can be a program name with args.
16173 set dummy ranlib; ac_word=$2
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175 $as_echo_n "checking for $ac_word... " >&6; }
16176 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16177 $as_echo_n "(cached) " >&6
16178 else
16179 case $RANLIB_FOR_TARGET in
16180 [\\/]* | ?:[\\/]*)
16181 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16182 ;;
16183 *)
16184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16185 for as_dir in $gcc_cv_tool_dirs
16186 do
16187 IFS=$as_save_IFS
16188 test -z "$as_dir" && as_dir=.
16189 for ac_exec_ext in '' $ac_executable_extensions; do
16190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16191 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16193 break 2
16194 fi
16195 done
16196 done
16197 IFS=$as_save_IFS
16198
16199 ;;
16200 esac
16201 fi
16202 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16203 if test -n "$RANLIB_FOR_TARGET"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16205 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16206 else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208 $as_echo "no" >&6; }
16209 fi
16210
16211
16212 fi
16213 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16214
16215
16216 if test -n "$RANLIB_FOR_TARGET"; then
16217 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16218 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16219 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16220 fi
16221
16222 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16223 for ncn_progname in ranlib; do
16224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16225 set dummy ${ncn_progname}; ac_word=$2
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227 $as_echo_n "checking for $ac_word... " >&6; }
16228 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 if test -n "$RANLIB_FOR_TARGET"; then
16232 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16233 else
16234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235 for as_dir in $PATH
16236 do
16237 IFS=$as_save_IFS
16238 test -z "$as_dir" && as_dir=.
16239 for ac_exec_ext in '' $ac_executable_extensions; do
16240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243 break 2
16244 fi
16245 done
16246 done
16247 IFS=$as_save_IFS
16248
16249 fi
16250 fi
16251 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16252 if test -n "$RANLIB_FOR_TARGET"; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16254 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16255 else
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258 fi
16259
16260
16261 done
16262 fi
16263
16264 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16265 for ncn_progname in ranlib; do
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16267 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16268 if test -x $with_build_time_tools/${ncn_progname}; then
16269 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271 $as_echo "yes" >&6; }
16272 break
16273 else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275 $as_echo "no" >&6; }
16276 fi
16277 done
16278 fi
16279
16280 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16281 for ncn_progname in ranlib; do
16282 if test -n "$ncn_target_tool_prefix"; then
16283 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16284 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 if test -n "$RANLIB_FOR_TARGET"; then
16291 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16292 else
16293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294 for as_dir in $PATH
16295 do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
16298 for ac_exec_ext in '' $ac_executable_extensions; do
16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16300 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302 break 2
16303 fi
16304 done
16305 done
16306 IFS=$as_save_IFS
16307
16308 fi
16309 fi
16310 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16311 if test -n "$RANLIB_FOR_TARGET"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16313 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16317 fi
16318
16319
16320 fi
16321 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16323 set dummy ${ncn_progname}; ac_word=$2
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16325 $as_echo_n "checking for $ac_word... " >&6; }
16326 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329 if test -n "$RANLIB_FOR_TARGET"; then
16330 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16331 else
16332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333 for as_dir in $PATH
16334 do
16335 IFS=$as_save_IFS
16336 test -z "$as_dir" && as_dir=.
16337 for ac_exec_ext in '' $ac_executable_extensions; do
16338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16339 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16341 break 2
16342 fi
16343 done
16344 done
16345 IFS=$as_save_IFS
16346
16347 fi
16348 fi
16349 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16350 if test -n "$RANLIB_FOR_TARGET"; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16352 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16353 else
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 $as_echo "no" >&6; }
16356 fi
16357
16358
16359 fi
16360 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16361 done
16362 fi
16363
16364 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16365 set dummy ranlib
16366 if test $build = $target ; then
16367 RANLIB_FOR_TARGET="$2"
16368 else
16369 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16370 fi
16371 else
16372 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16373 fi
16374
16375 else
16376 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16377 fi
16378
16379
16380
16381
16382 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16383 if test -n "$with_build_time_tools"; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16385 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16386 if test -x $with_build_time_tools/readelf; then
16387 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16388 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16390 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16391 else
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393 $as_echo "no" >&6; }
16394 fi
16395 elif test $build != $host && test $have_gcc_for_target = yes; then
16396 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16397 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16398 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16399 fi
16400 fi
16401 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16402 # Extract the first word of "readelf", so it can be a program name with args.
16403 set dummy readelf; ac_word=$2
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16405 $as_echo_n "checking for $ac_word... " >&6; }
16406 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16407 $as_echo_n "(cached) " >&6
16408 else
16409 case $READELF_FOR_TARGET in
16410 [\\/]* | ?:[\\/]*)
16411 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16412 ;;
16413 *)
16414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 for as_dir in $gcc_cv_tool_dirs
16416 do
16417 IFS=$as_save_IFS
16418 test -z "$as_dir" && as_dir=.
16419 for ac_exec_ext in '' $ac_executable_extensions; do
16420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16423 break 2
16424 fi
16425 done
16426 done
16427 IFS=$as_save_IFS
16428
16429 ;;
16430 esac
16431 fi
16432 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16433 if test -n "$READELF_FOR_TARGET"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16435 $as_echo "$READELF_FOR_TARGET" >&6; }
16436 else
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439 fi
16440
16441
16442 fi
16443 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16444
16445
16446 if test -n "$READELF_FOR_TARGET"; then
16447 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16448 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16449 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16450 fi
16451
16452 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16453 for ncn_progname in readelf; do
16454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16455 set dummy ${ncn_progname}; ac_word=$2
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16457 $as_echo_n "checking for $ac_word... " >&6; }
16458 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 if test -n "$READELF_FOR_TARGET"; then
16462 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16463 else
16464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465 for as_dir in $PATH
16466 do
16467 IFS=$as_save_IFS
16468 test -z "$as_dir" && as_dir=.
16469 for ac_exec_ext in '' $ac_executable_extensions; do
16470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16471 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16473 break 2
16474 fi
16475 done
16476 done
16477 IFS=$as_save_IFS
16478
16479 fi
16480 fi
16481 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16482 if test -n "$READELF_FOR_TARGET"; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16484 $as_echo "$READELF_FOR_TARGET" >&6; }
16485 else
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487 $as_echo "no" >&6; }
16488 fi
16489
16490
16491 done
16492 fi
16493
16494 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16495 for ncn_progname in readelf; do
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16497 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16498 if test -x $with_build_time_tools/${ncn_progname}; then
16499 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501 $as_echo "yes" >&6; }
16502 break
16503 else
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505 $as_echo "no" >&6; }
16506 fi
16507 done
16508 fi
16509
16510 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16511 for ncn_progname in readelf; do
16512 if test -n "$ncn_target_tool_prefix"; then
16513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16514 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 if test -n "$READELF_FOR_TARGET"; then
16521 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16522 else
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16525 do
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16530 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 break 2
16533 fi
16534 done
16535 done
16536 IFS=$as_save_IFS
16537
16538 fi
16539 fi
16540 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16541 if test -n "$READELF_FOR_TARGET"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16543 $as_echo "$READELF_FOR_TARGET" >&6; }
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547 fi
16548
16549
16550 fi
16551 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16553 set dummy ${ncn_progname}; ac_word=$2
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16555 $as_echo_n "checking for $ac_word... " >&6; }
16556 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 if test -n "$READELF_FOR_TARGET"; then
16560 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16561 else
16562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in $PATH
16564 do
16565 IFS=$as_save_IFS
16566 test -z "$as_dir" && as_dir=.
16567 for ac_exec_ext in '' $ac_executable_extensions; do
16568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16569 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16571 break 2
16572 fi
16573 done
16574 done
16575 IFS=$as_save_IFS
16576
16577 fi
16578 fi
16579 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16580 if test -n "$READELF_FOR_TARGET"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16582 $as_echo "$READELF_FOR_TARGET" >&6; }
16583 else
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585 $as_echo "no" >&6; }
16586 fi
16587
16588
16589 fi
16590 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16591 done
16592 fi
16593
16594 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16595 set dummy readelf
16596 if test $build = $target ; then
16597 READELF_FOR_TARGET="$2"
16598 else
16599 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16600 fi
16601 else
16602 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16603 fi
16604
16605 else
16606 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16607 fi
16608
16609
16610
16611
16612 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16613 if test -n "$with_build_time_tools"; then
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16615 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16616 if test -x $with_build_time_tools/strip; then
16617 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16618 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16620 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16621 else
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623 $as_echo "no" >&6; }
16624 fi
16625 elif test $build != $host && test $have_gcc_for_target = yes; then
16626 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16627 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16628 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16629 fi
16630 fi
16631 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16632 # Extract the first word of "strip", so it can be a program name with args.
16633 set dummy strip; ac_word=$2
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635 $as_echo_n "checking for $ac_word... " >&6; }
16636 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16637 $as_echo_n "(cached) " >&6
16638 else
16639 case $STRIP_FOR_TARGET in
16640 [\\/]* | ?:[\\/]*)
16641 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16642 ;;
16643 *)
16644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16645 for as_dir in $gcc_cv_tool_dirs
16646 do
16647 IFS=$as_save_IFS
16648 test -z "$as_dir" && as_dir=.
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16651 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16653 break 2
16654 fi
16655 done
16656 done
16657 IFS=$as_save_IFS
16658
16659 ;;
16660 esac
16661 fi
16662 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16663 if test -n "$STRIP_FOR_TARGET"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16665 $as_echo "$STRIP_FOR_TARGET" >&6; }
16666 else
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668 $as_echo "no" >&6; }
16669 fi
16670
16671
16672 fi
16673 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16674
16675
16676 if test -n "$STRIP_FOR_TARGET"; then
16677 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16678 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16679 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16680 fi
16681
16682 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16683 for ncn_progname in strip; do
16684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16685 set dummy ${ncn_progname}; ac_word=$2
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 if test -n "$STRIP_FOR_TARGET"; then
16692 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16693 else
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $PATH
16696 do
16697 IFS=$as_save_IFS
16698 test -z "$as_dir" && as_dir=.
16699 for ac_exec_ext in '' $ac_executable_extensions; do
16700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16701 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703 break 2
16704 fi
16705 done
16706 done
16707 IFS=$as_save_IFS
16708
16709 fi
16710 fi
16711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16712 if test -n "$STRIP_FOR_TARGET"; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16714 $as_echo "$STRIP_FOR_TARGET" >&6; }
16715 else
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717 $as_echo "no" >&6; }
16718 fi
16719
16720
16721 done
16722 fi
16723
16724 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16725 for ncn_progname in strip; do
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16727 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16728 if test -x $with_build_time_tools/${ncn_progname}; then
16729 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16731 $as_echo "yes" >&6; }
16732 break
16733 else
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735 $as_echo "no" >&6; }
16736 fi
16737 done
16738 fi
16739
16740 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16741 for ncn_progname in strip; do
16742 if test -n "$ncn_target_tool_prefix"; then
16743 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16744 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746 $as_echo_n "checking for $ac_word... " >&6; }
16747 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 if test -n "$STRIP_FOR_TARGET"; then
16751 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16752 else
16753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754 for as_dir in $PATH
16755 do
16756 IFS=$as_save_IFS
16757 test -z "$as_dir" && as_dir=.
16758 for ac_exec_ext in '' $ac_executable_extensions; do
16759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16760 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16762 break 2
16763 fi
16764 done
16765 done
16766 IFS=$as_save_IFS
16767
16768 fi
16769 fi
16770 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16771 if test -n "$STRIP_FOR_TARGET"; then
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16773 $as_echo "$STRIP_FOR_TARGET" >&6; }
16774 else
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16777 fi
16778
16779
16780 fi
16781 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16783 set dummy ${ncn_progname}; ac_word=$2
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16785 $as_echo_n "checking for $ac_word... " >&6; }
16786 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16787 $as_echo_n "(cached) " >&6
16788 else
16789 if test -n "$STRIP_FOR_TARGET"; then
16790 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16791 else
16792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16793 for as_dir in $PATH
16794 do
16795 IFS=$as_save_IFS
16796 test -z "$as_dir" && as_dir=.
16797 for ac_exec_ext in '' $ac_executable_extensions; do
16798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16799 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16801 break 2
16802 fi
16803 done
16804 done
16805 IFS=$as_save_IFS
16806
16807 fi
16808 fi
16809 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16810 if test -n "$STRIP_FOR_TARGET"; then
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16812 $as_echo "$STRIP_FOR_TARGET" >&6; }
16813 else
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16815 $as_echo "no" >&6; }
16816 fi
16817
16818
16819 fi
16820 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16821 done
16822 fi
16823
16824 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16825 set dummy strip
16826 if test $build = $target ; then
16827 STRIP_FOR_TARGET="$2"
16828 else
16829 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16830 fi
16831 else
16832 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16833 fi
16834
16835 else
16836 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16837 fi
16838
16839
16840
16841
16842 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16843 if test -n "$with_build_time_tools"; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16845 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16846 if test -x $with_build_time_tools/windres; then
16847 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16848 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16850 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16851 else
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16853 $as_echo "no" >&6; }
16854 fi
16855 elif test $build != $host && test $have_gcc_for_target = yes; then
16856 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16857 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16858 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16859 fi
16860 fi
16861 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16862 # Extract the first word of "windres", so it can be a program name with args.
16863 set dummy windres; ac_word=$2
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865 $as_echo_n "checking for $ac_word... " >&6; }
16866 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 case $WINDRES_FOR_TARGET in
16870 [\\/]* | ?:[\\/]*)
16871 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16872 ;;
16873 *)
16874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16875 for as_dir in $gcc_cv_tool_dirs
16876 do
16877 IFS=$as_save_IFS
16878 test -z "$as_dir" && as_dir=.
16879 for ac_exec_ext in '' $ac_executable_extensions; do
16880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16881 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16883 break 2
16884 fi
16885 done
16886 done
16887 IFS=$as_save_IFS
16888
16889 ;;
16890 esac
16891 fi
16892 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16893 if test -n "$WINDRES_FOR_TARGET"; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16895 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16896 else
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16899 fi
16900
16901
16902 fi
16903 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16904
16905
16906 if test -n "$WINDRES_FOR_TARGET"; then
16907 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16908 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16909 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16910 fi
16911
16912 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16913 for ncn_progname in windres; do
16914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16915 set dummy ${ncn_progname}; ac_word=$2
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16917 $as_echo_n "checking for $ac_word... " >&6; }
16918 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 if test -n "$WINDRES_FOR_TARGET"; then
16922 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16923 else
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16926 do
16927 IFS=$as_save_IFS
16928 test -z "$as_dir" && as_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933 break 2
16934 fi
16935 done
16936 done
16937 IFS=$as_save_IFS
16938
16939 fi
16940 fi
16941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16942 if test -n "$WINDRES_FOR_TARGET"; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16944 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950
16951 done
16952 fi
16953
16954 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16955 for ncn_progname in windres; do
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16957 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16958 if test -x $with_build_time_tools/${ncn_progname}; then
16959 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16961 $as_echo "yes" >&6; }
16962 break
16963 else
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16966 fi
16967 done
16968 fi
16969
16970 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16971 for ncn_progname in windres; do
16972 if test -n "$ncn_target_tool_prefix"; then
16973 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16974 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 $as_echo_n "checking for $ac_word... " >&6; }
16977 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16978 $as_echo_n "(cached) " >&6
16979 else
16980 if test -n "$WINDRES_FOR_TARGET"; then
16981 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16982 else
16983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16985 do
16986 IFS=$as_save_IFS
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992 break 2
16993 fi
16994 done
16995 done
16996 IFS=$as_save_IFS
16997
16998 fi
16999 fi
17000 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17001 if test -n "$WINDRES_FOR_TARGET"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17003 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17004 else
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006 $as_echo "no" >&6; }
17007 fi
17008
17009
17010 fi
17011 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17013 set dummy ${ncn_progname}; ac_word=$2
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015 $as_echo_n "checking for $ac_word... " >&6; }
17016 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 if test -n "$WINDRES_FOR_TARGET"; then
17020 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17021 else
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023 for as_dir in $PATH
17024 do
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for ac_exec_ext in '' $ac_executable_extensions; do
17028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17029 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17031 break 2
17032 fi
17033 done
17034 done
17035 IFS=$as_save_IFS
17036
17037 fi
17038 fi
17039 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17040 if test -n "$WINDRES_FOR_TARGET"; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17042 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17043 else
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17046 fi
17047
17048
17049 fi
17050 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17051 done
17052 fi
17053
17054 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17055 set dummy windres
17056 if test $build = $target ; then
17057 WINDRES_FOR_TARGET="$2"
17058 else
17059 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17060 fi
17061 else
17062 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17063 fi
17064
17065 else
17066 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17067 fi
17068
17069
17070
17071
17072 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17073 if test -n "$with_build_time_tools"; then
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17075 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17076 if test -x $with_build_time_tools/windmc; then
17077 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17078 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17080 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17081 else
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083 $as_echo "no" >&6; }
17084 fi
17085 elif test $build != $host && test $have_gcc_for_target = yes; then
17086 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17087 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17088 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17089 fi
17090 fi
17091 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17092 # Extract the first word of "windmc", so it can be a program name with args.
17093 set dummy windmc; ac_word=$2
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17095 $as_echo_n "checking for $ac_word... " >&6; }
17096 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 case $WINDMC_FOR_TARGET in
17100 [\\/]* | ?:[\\/]*)
17101 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17102 ;;
17103 *)
17104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105 for as_dir in $gcc_cv_tool_dirs
17106 do
17107 IFS=$as_save_IFS
17108 test -z "$as_dir" && as_dir=.
17109 for ac_exec_ext in '' $ac_executable_extensions; do
17110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17111 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17113 break 2
17114 fi
17115 done
17116 done
17117 IFS=$as_save_IFS
17118
17119 ;;
17120 esac
17121 fi
17122 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17123 if test -n "$WINDMC_FOR_TARGET"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17125 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17126 else
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129 fi
17130
17131
17132 fi
17133 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17134
17135
17136 if test -n "$WINDMC_FOR_TARGET"; then
17137 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17138 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17139 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17140 fi
17141
17142 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17143 for ncn_progname in windmc; do
17144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17145 set dummy ${ncn_progname}; ac_word=$2
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17147 $as_echo_n "checking for $ac_word... " >&6; }
17148 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17149 $as_echo_n "(cached) " >&6
17150 else
17151 if test -n "$WINDMC_FOR_TARGET"; then
17152 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17153 else
17154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $PATH
17156 do
17157 IFS=$as_save_IFS
17158 test -z "$as_dir" && as_dir=.
17159 for ac_exec_ext in '' $ac_executable_extensions; do
17160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17161 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17163 break 2
17164 fi
17165 done
17166 done
17167 IFS=$as_save_IFS
17168
17169 fi
17170 fi
17171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17172 if test -n "$WINDMC_FOR_TARGET"; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17174 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17175 else
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179
17180
17181 done
17182 fi
17183
17184 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17185 for ncn_progname in windmc; do
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17187 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17188 if test -x $with_build_time_tools/${ncn_progname}; then
17189 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17191 $as_echo "yes" >&6; }
17192 break
17193 else
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17195 $as_echo "no" >&6; }
17196 fi
17197 done
17198 fi
17199
17200 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17201 for ncn_progname in windmc; do
17202 if test -n "$ncn_target_tool_prefix"; then
17203 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17204 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206 $as_echo_n "checking for $ac_word... " >&6; }
17207 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 if test -n "$WINDMC_FOR_TARGET"; then
17211 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17212 else
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17215 do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222 break 2
17223 fi
17224 done
17225 done
17226 IFS=$as_save_IFS
17227
17228 fi
17229 fi
17230 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17231 if test -n "$WINDMC_FOR_TARGET"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17233 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17234 else
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 $as_echo "no" >&6; }
17237 fi
17238
17239
17240 fi
17241 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17243 set dummy ${ncn_progname}; ac_word=$2
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245 $as_echo_n "checking for $ac_word... " >&6; }
17246 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 if test -n "$WINDMC_FOR_TARGET"; then
17250 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17251 else
17252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17253 for as_dir in $PATH
17254 do
17255 IFS=$as_save_IFS
17256 test -z "$as_dir" && as_dir=.
17257 for ac_exec_ext in '' $ac_executable_extensions; do
17258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17259 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17261 break 2
17262 fi
17263 done
17264 done
17265 IFS=$as_save_IFS
17266
17267 fi
17268 fi
17269 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17270 if test -n "$WINDMC_FOR_TARGET"; then
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17272 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17273 else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17275 $as_echo "no" >&6; }
17276 fi
17277
17278
17279 fi
17280 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17281 done
17282 fi
17283
17284 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17285 set dummy windmc
17286 if test $build = $target ; then
17287 WINDMC_FOR_TARGET="$2"
17288 else
17289 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17290 fi
17291 else
17292 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17293 fi
17294
17295 else
17296 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17297 fi
17298
17299
17300 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17301
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17303 $as_echo_n "checking where to find the target ar... " >&6; }
17304 if test "x${build}" != "x${host}" ; then
17305 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17306 # We already found the complete path
17307 ac_dir=`dirname $AR_FOR_TARGET`
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17309 $as_echo "pre-installed in $ac_dir" >&6; }
17310 else
17311 # Canadian cross, just use what we found
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17313 $as_echo "pre-installed" >&6; }
17314 fi
17315 else
17316 ok=yes
17317 case " ${configdirs} " in
17318 *" binutils "*) ;;
17319 *) ok=no ;;
17320 esac
17321
17322 if test $ok = yes; then
17323 # An in-tree tool is available and we can use it
17324 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17326 $as_echo "just compiled" >&6; }
17327 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17328 # We already found the complete path
17329 ac_dir=`dirname $AR_FOR_TARGET`
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17331 $as_echo "pre-installed in $ac_dir" >&6; }
17332 elif test "x$target" = "x$host"; then
17333 # We can use an host tool
17334 AR_FOR_TARGET='$(AR)'
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17336 $as_echo "host tool" >&6; }
17337 else
17338 # We need a cross tool
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17340 $as_echo "pre-installed" >&6; }
17341 fi
17342 fi
17343
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17345 $as_echo_n "checking where to find the target as... " >&6; }
17346 if test "x${build}" != "x${host}" ; then
17347 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17348 # We already found the complete path
17349 ac_dir=`dirname $AS_FOR_TARGET`
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17351 $as_echo "pre-installed in $ac_dir" >&6; }
17352 else
17353 # Canadian cross, just use what we found
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17355 $as_echo "pre-installed" >&6; }
17356 fi
17357 else
17358 ok=yes
17359 case " ${configdirs} " in
17360 *" gas "*) ;;
17361 *) ok=no ;;
17362 esac
17363
17364 if test $ok = yes; then
17365 # An in-tree tool is available and we can use it
17366 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17368 $as_echo "just compiled" >&6; }
17369 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17370 # We already found the complete path
17371 ac_dir=`dirname $AS_FOR_TARGET`
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17373 $as_echo "pre-installed in $ac_dir" >&6; }
17374 elif test "x$target" = "x$host"; then
17375 # We can use an host tool
17376 AS_FOR_TARGET='$(AS)'
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17378 $as_echo "host tool" >&6; }
17379 else
17380 # We need a cross tool
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17382 $as_echo "pre-installed" >&6; }
17383 fi
17384 fi
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17387 $as_echo_n "checking where to find the target cc... " >&6; }
17388 if test "x${build}" != "x${host}" ; then
17389 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17390 # We already found the complete path
17391 ac_dir=`dirname $CC_FOR_TARGET`
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17393 $as_echo "pre-installed in $ac_dir" >&6; }
17394 else
17395 # Canadian cross, just use what we found
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17397 $as_echo "pre-installed" >&6; }
17398 fi
17399 else
17400 ok=yes
17401 case " ${configdirs} " in
17402 *" gcc "*) ;;
17403 *) ok=no ;;
17404 esac
17405
17406 if test $ok = yes; then
17407 # An in-tree tool is available and we can use it
17408 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17410 $as_echo "just compiled" >&6; }
17411 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17412 # We already found the complete path
17413 ac_dir=`dirname $CC_FOR_TARGET`
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17415 $as_echo "pre-installed in $ac_dir" >&6; }
17416 elif test "x$target" = "x$host"; then
17417 # We can use an host tool
17418 CC_FOR_TARGET='$(CC)'
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17420 $as_echo "host tool" >&6; }
17421 else
17422 # We need a cross tool
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17424 $as_echo "pre-installed" >&6; }
17425 fi
17426 fi
17427
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17429 $as_echo_n "checking where to find the target c++... " >&6; }
17430 if test "x${build}" != "x${host}" ; then
17431 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17432 # We already found the complete path
17433 ac_dir=`dirname $CXX_FOR_TARGET`
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17435 $as_echo "pre-installed in $ac_dir" >&6; }
17436 else
17437 # Canadian cross, just use what we found
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17439 $as_echo "pre-installed" >&6; }
17440 fi
17441 else
17442 ok=yes
17443 case " ${configdirs} " in
17444 *" gcc "*) ;;
17445 *) ok=no ;;
17446 esac
17447 case ,${enable_languages}, in
17448 *,c++,*) ;;
17449 *) ok=no ;;
17450 esac
17451 if test $ok = yes; then
17452 # An in-tree tool is available and we can use it
17453 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'
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17455 $as_echo "just compiled" >&6; }
17456 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17457 # We already found the complete path
17458 ac_dir=`dirname $CXX_FOR_TARGET`
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17460 $as_echo "pre-installed in $ac_dir" >&6; }
17461 elif test "x$target" = "x$host"; then
17462 # We can use an host tool
17463 CXX_FOR_TARGET='$(CXX)'
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17465 $as_echo "host tool" >&6; }
17466 else
17467 # We need a cross tool
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17469 $as_echo "pre-installed" >&6; }
17470 fi
17471 fi
17472
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17474 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17475 if test "x${build}" != "x${host}" ; then
17476 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17477 # We already found the complete path
17478 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17480 $as_echo "pre-installed in $ac_dir" >&6; }
17481 else
17482 # Canadian cross, just use what we found
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17484 $as_echo "pre-installed" >&6; }
17485 fi
17486 else
17487 ok=yes
17488 case " ${configdirs} " in
17489 *" gcc "*) ;;
17490 *) ok=no ;;
17491 esac
17492 case ,${enable_languages}, in
17493 *,c++,*) ;;
17494 *) ok=no ;;
17495 esac
17496 if test $ok = yes; then
17497 # An in-tree tool is available and we can use it
17498 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'
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17500 $as_echo "just compiled" >&6; }
17501 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17502 # We already found the complete path
17503 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17505 $as_echo "pre-installed in $ac_dir" >&6; }
17506 elif test "x$target" = "x$host"; then
17507 # We can use an host tool
17508 RAW_CXX_FOR_TARGET='$(CXX)'
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17510 $as_echo "host tool" >&6; }
17511 else
17512 # We need a cross tool
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17514 $as_echo "pre-installed" >&6; }
17515 fi
17516 fi
17517
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17519 $as_echo_n "checking where to find the target dlltool... " >&6; }
17520 if test "x${build}" != "x${host}" ; then
17521 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17522 # We already found the complete path
17523 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17525 $as_echo "pre-installed in $ac_dir" >&6; }
17526 else
17527 # Canadian cross, just use what we found
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17529 $as_echo "pre-installed" >&6; }
17530 fi
17531 else
17532 ok=yes
17533 case " ${configdirs} " in
17534 *" binutils "*) ;;
17535 *) ok=no ;;
17536 esac
17537
17538 if test $ok = yes; then
17539 # An in-tree tool is available and we can use it
17540 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17542 $as_echo "just compiled" >&6; }
17543 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17544 # We already found the complete path
17545 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17547 $as_echo "pre-installed in $ac_dir" >&6; }
17548 elif test "x$target" = "x$host"; then
17549 # We can use an host tool
17550 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17552 $as_echo "host tool" >&6; }
17553 else
17554 # We need a cross tool
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17556 $as_echo "pre-installed" >&6; }
17557 fi
17558 fi
17559
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17561 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17562 if test "x${build}" != "x${host}" ; then
17563 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17564 # We already found the complete path
17565 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17567 $as_echo "pre-installed in $ac_dir" >&6; }
17568 else
17569 # Canadian cross, just use what we found
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17571 $as_echo "pre-installed" >&6; }
17572 fi
17573 else
17574 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17575 # We already found the complete path
17576 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17578 $as_echo "pre-installed in $ac_dir" >&6; }
17579 elif test "x$target" = "x$host"; then
17580 # We can use an host tool
17581 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17583 $as_echo "host tool" >&6; }
17584 else
17585 # We need a cross tool
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17587 $as_echo "pre-installed" >&6; }
17588 fi
17589 fi
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17592 $as_echo_n "checking where to find the target gcc... " >&6; }
17593 if test "x${build}" != "x${host}" ; then
17594 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17595 # We already found the complete path
17596 ac_dir=`dirname $GCC_FOR_TARGET`
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17598 $as_echo "pre-installed in $ac_dir" >&6; }
17599 else
17600 # Canadian cross, just use what we found
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17602 $as_echo "pre-installed" >&6; }
17603 fi
17604 else
17605 ok=yes
17606 case " ${configdirs} " in
17607 *" gcc "*) ;;
17608 *) ok=no ;;
17609 esac
17610
17611 if test $ok = yes; then
17612 # An in-tree tool is available and we can use it
17613 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17615 $as_echo "just compiled" >&6; }
17616 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17617 # We already found the complete path
17618 ac_dir=`dirname $GCC_FOR_TARGET`
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17620 $as_echo "pre-installed in $ac_dir" >&6; }
17621 elif test "x$target" = "x$host"; then
17622 # We can use an host tool
17623 GCC_FOR_TARGET='$()'
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17625 $as_echo "host tool" >&6; }
17626 else
17627 # We need a cross tool
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17629 $as_echo "pre-installed" >&6; }
17630 fi
17631 fi
17632
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17634 $as_echo_n "checking where to find the target gfortran... " >&6; }
17635 if test "x${build}" != "x${host}" ; then
17636 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17637 # We already found the complete path
17638 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17640 $as_echo "pre-installed in $ac_dir" >&6; }
17641 else
17642 # Canadian cross, just use what we found
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17644 $as_echo "pre-installed" >&6; }
17645 fi
17646 else
17647 ok=yes
17648 case " ${configdirs} " in
17649 *" gcc "*) ;;
17650 *) ok=no ;;
17651 esac
17652 case ,${enable_languages}, in
17653 *,fortran,*) ;;
17654 *) ok=no ;;
17655 esac
17656 if test $ok = yes; then
17657 # An in-tree tool is available and we can use it
17658 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17660 $as_echo "just compiled" >&6; }
17661 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17662 # We already found the complete path
17663 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17665 $as_echo "pre-installed in $ac_dir" >&6; }
17666 elif test "x$target" = "x$host"; then
17667 # We can use an host tool
17668 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17670 $as_echo "host tool" >&6; }
17671 else
17672 # We need a cross tool
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17674 $as_echo "pre-installed" >&6; }
17675 fi
17676 fi
17677
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17679 $as_echo_n "checking where to find the target gccgo... " >&6; }
17680 if test "x${build}" != "x${host}" ; then
17681 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17682 # We already found the complete path
17683 ac_dir=`dirname $GOC_FOR_TARGET`
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17685 $as_echo "pre-installed in $ac_dir" >&6; }
17686 else
17687 # Canadian cross, just use what we found
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17689 $as_echo "pre-installed" >&6; }
17690 fi
17691 else
17692 ok=yes
17693 case " ${configdirs} " in
17694 *" gcc "*) ;;
17695 *) ok=no ;;
17696 esac
17697 case ,${enable_languages}, in
17698 *,go,*) ;;
17699 *) ok=no ;;
17700 esac
17701 if test $ok = yes; then
17702 # An in-tree tool is available and we can use it
17703 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17705 $as_echo "just compiled" >&6; }
17706 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17707 # We already found the complete path
17708 ac_dir=`dirname $GOC_FOR_TARGET`
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17710 $as_echo "pre-installed in $ac_dir" >&6; }
17711 elif test "x$target" = "x$host"; then
17712 # We can use an host tool
17713 GOC_FOR_TARGET='$(GOC)'
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17715 $as_echo "host tool" >&6; }
17716 else
17717 # We need a cross tool
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17719 $as_echo "pre-installed" >&6; }
17720 fi
17721 fi
17722
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17724 $as_echo_n "checking where to find the target gdc... " >&6; }
17725 if test "x${build}" != "x${host}" ; then
17726 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17727 # We already found the complete path
17728 ac_dir=`dirname $GDC_FOR_TARGET`
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17730 $as_echo "pre-installed in $ac_dir" >&6; }
17731 else
17732 # Canadian cross, just use what we found
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17734 $as_echo "pre-installed" >&6; }
17735 fi
17736 else
17737 ok=yes
17738 case " ${configdirs} " in
17739 *" gcc "*) ;;
17740 *) ok=no ;;
17741 esac
17742 case ,${enable_languages}, in
17743 *,d,*) ;;
17744 *) ok=no ;;
17745 esac
17746 if test $ok = yes; then
17747 # An in-tree tool is available and we can use it
17748 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17750 $as_echo "just compiled" >&6; }
17751 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17752 # We already found the complete path
17753 ac_dir=`dirname $GDC_FOR_TARGET`
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17755 $as_echo "pre-installed in $ac_dir" >&6; }
17756 elif test "x$target" = "x$host"; then
17757 # We can use an host tool
17758 GDC_FOR_TARGET='$(GDC)'
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17760 $as_echo "host tool" >&6; }
17761 else
17762 # We need a cross tool
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17764 $as_echo "pre-installed" >&6; }
17765 fi
17766 fi
17767
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17769 $as_echo_n "checking where to find the target ld... " >&6; }
17770 if test "x${build}" != "x${host}" ; then
17771 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17772 # We already found the complete path
17773 ac_dir=`dirname $LD_FOR_TARGET`
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17775 $as_echo "pre-installed in $ac_dir" >&6; }
17776 else
17777 # Canadian cross, just use what we found
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17779 $as_echo "pre-installed" >&6; }
17780 fi
17781 else
17782 ok=yes
17783 case " ${configdirs} " in
17784 *" ld "*) ;;
17785 *) ok=no ;;
17786 esac
17787
17788 if test $ok = yes; then
17789 # An in-tree tool is available and we can use it
17790 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17792 $as_echo "just compiled" >&6; }
17793 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17794 # We already found the complete path
17795 ac_dir=`dirname $LD_FOR_TARGET`
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17797 $as_echo "pre-installed in $ac_dir" >&6; }
17798 elif test "x$target" = "x$host"; then
17799 # We can use an host tool
17800 LD_FOR_TARGET='$(LD)'
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17802 $as_echo "host tool" >&6; }
17803 else
17804 # We need a cross tool
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806 $as_echo "pre-installed" >&6; }
17807 fi
17808 fi
17809
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17811 $as_echo_n "checking where to find the target lipo... " >&6; }
17812 if test "x${build}" != "x${host}" ; then
17813 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17814 # We already found the complete path
17815 ac_dir=`dirname $LIPO_FOR_TARGET`
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17817 $as_echo "pre-installed in $ac_dir" >&6; }
17818 else
17819 # Canadian cross, just use what we found
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17821 $as_echo "pre-installed" >&6; }
17822 fi
17823 else
17824 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17825 # We already found the complete path
17826 ac_dir=`dirname $LIPO_FOR_TARGET`
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17828 $as_echo "pre-installed in $ac_dir" >&6; }
17829 elif test "x$target" = "x$host"; then
17830 # We can use an host tool
17831 LIPO_FOR_TARGET='$(LIPO)'
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17833 $as_echo "host tool" >&6; }
17834 else
17835 # We need a cross tool
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17837 $as_echo "pre-installed" >&6; }
17838 fi
17839 fi
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17842 $as_echo_n "checking where to find the target nm... " >&6; }
17843 if test "x${build}" != "x${host}" ; then
17844 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17845 # We already found the complete path
17846 ac_dir=`dirname $NM_FOR_TARGET`
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17848 $as_echo "pre-installed in $ac_dir" >&6; }
17849 else
17850 # Canadian cross, just use what we found
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852 $as_echo "pre-installed" >&6; }
17853 fi
17854 else
17855 ok=yes
17856 case " ${configdirs} " in
17857 *" binutils "*) ;;
17858 *) ok=no ;;
17859 esac
17860
17861 if test $ok = yes; then
17862 # An in-tree tool is available and we can use it
17863 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17865 $as_echo "just compiled" >&6; }
17866 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17867 # We already found the complete path
17868 ac_dir=`dirname $NM_FOR_TARGET`
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17870 $as_echo "pre-installed in $ac_dir" >&6; }
17871 elif test "x$target" = "x$host"; then
17872 # We can use an host tool
17873 NM_FOR_TARGET='$(NM)'
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17875 $as_echo "host tool" >&6; }
17876 else
17877 # We need a cross tool
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17879 $as_echo "pre-installed" >&6; }
17880 fi
17881 fi
17882
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17884 $as_echo_n "checking where to find the target objcopy... " >&6; }
17885 if test "x${build}" != "x${host}" ; then
17886 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17887 # We already found the complete path
17888 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17890 $as_echo "pre-installed in $ac_dir" >&6; }
17891 else
17892 # Canadian cross, just use what we found
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894 $as_echo "pre-installed" >&6; }
17895 fi
17896 else
17897 ok=yes
17898 case " ${configdirs} " in
17899 *" binutils "*) ;;
17900 *) ok=no ;;
17901 esac
17902
17903 if test $ok = yes; then
17904 # An in-tree tool is available and we can use it
17905 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17907 $as_echo "just compiled" >&6; }
17908 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17909 # We already found the complete path
17910 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17912 $as_echo "pre-installed in $ac_dir" >&6; }
17913 elif test "x$target" = "x$host"; then
17914 # We can use an host tool
17915 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17917 $as_echo "host tool" >&6; }
17918 else
17919 # We need a cross tool
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921 $as_echo "pre-installed" >&6; }
17922 fi
17923 fi
17924
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17926 $as_echo_n "checking where to find the target objdump... " >&6; }
17927 if test "x${build}" != "x${host}" ; then
17928 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17929 # We already found the complete path
17930 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17932 $as_echo "pre-installed in $ac_dir" >&6; }
17933 else
17934 # Canadian cross, just use what we found
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17936 $as_echo "pre-installed" >&6; }
17937 fi
17938 else
17939 ok=yes
17940 case " ${configdirs} " in
17941 *" binutils "*) ;;
17942 *) ok=no ;;
17943 esac
17944
17945 if test $ok = yes; then
17946 # An in-tree tool is available and we can use it
17947 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17949 $as_echo "just compiled" >&6; }
17950 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17951 # We already found the complete path
17952 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17954 $as_echo "pre-installed in $ac_dir" >&6; }
17955 elif test "x$target" = "x$host"; then
17956 # We can use an host tool
17957 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17959 $as_echo "host tool" >&6; }
17960 else
17961 # We need a cross tool
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17963 $as_echo "pre-installed" >&6; }
17964 fi
17965 fi
17966
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17968 $as_echo_n "checking where to find the target otool... " >&6; }
17969 if test "x${build}" != "x${host}" ; then
17970 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17971 # We already found the complete path
17972 ac_dir=`dirname $OTOOL_FOR_TARGET`
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17974 $as_echo "pre-installed in $ac_dir" >&6; }
17975 else
17976 # Canadian cross, just use what we found
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17978 $as_echo "pre-installed" >&6; }
17979 fi
17980 else
17981 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17982 # We already found the complete path
17983 ac_dir=`dirname $OTOOL_FOR_TARGET`
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17985 $as_echo "pre-installed in $ac_dir" >&6; }
17986 elif test "x$target" = "x$host"; then
17987 # We can use an host tool
17988 OTOOL_FOR_TARGET='$(OTOOL)'
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17990 $as_echo "host tool" >&6; }
17991 else
17992 # We need a cross tool
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17994 $as_echo "pre-installed" >&6; }
17995 fi
17996 fi
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17999 $as_echo_n "checking where to find the target ranlib... " >&6; }
18000 if test "x${build}" != "x${host}" ; then
18001 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18002 # We already found the complete path
18003 ac_dir=`dirname $RANLIB_FOR_TARGET`
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18005 $as_echo "pre-installed in $ac_dir" >&6; }
18006 else
18007 # Canadian cross, just use what we found
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18009 $as_echo "pre-installed" >&6; }
18010 fi
18011 else
18012 ok=yes
18013 case " ${configdirs} " in
18014 *" binutils "*) ;;
18015 *) ok=no ;;
18016 esac
18017
18018 if test $ok = yes; then
18019 # An in-tree tool is available and we can use it
18020 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18022 $as_echo "just compiled" >&6; }
18023 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18024 # We already found the complete path
18025 ac_dir=`dirname $RANLIB_FOR_TARGET`
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18027 $as_echo "pre-installed in $ac_dir" >&6; }
18028 elif test "x$target" = "x$host"; then
18029 # We can use an host tool
18030 RANLIB_FOR_TARGET='$(RANLIB)'
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18032 $as_echo "host tool" >&6; }
18033 else
18034 # We need a cross tool
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18036 $as_echo "pre-installed" >&6; }
18037 fi
18038 fi
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18041 $as_echo_n "checking where to find the target readelf... " >&6; }
18042 if test "x${build}" != "x${host}" ; then
18043 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18044 # We already found the complete path
18045 ac_dir=`dirname $READELF_FOR_TARGET`
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18047 $as_echo "pre-installed in $ac_dir" >&6; }
18048 else
18049 # Canadian cross, just use what we found
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18051 $as_echo "pre-installed" >&6; }
18052 fi
18053 else
18054 ok=yes
18055 case " ${configdirs} " in
18056 *" binutils "*) ;;
18057 *) ok=no ;;
18058 esac
18059
18060 if test $ok = yes; then
18061 # An in-tree tool is available and we can use it
18062 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18064 $as_echo "just compiled" >&6; }
18065 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18066 # We already found the complete path
18067 ac_dir=`dirname $READELF_FOR_TARGET`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18069 $as_echo "pre-installed in $ac_dir" >&6; }
18070 elif test "x$target" = "x$host"; then
18071 # We can use an host tool
18072 READELF_FOR_TARGET='$(READELF)'
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18074 $as_echo "host tool" >&6; }
18075 else
18076 # We need a cross tool
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18078 $as_echo "pre-installed" >&6; }
18079 fi
18080 fi
18081
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18083 $as_echo_n "checking where to find the target strip... " >&6; }
18084 if test "x${build}" != "x${host}" ; then
18085 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $STRIP_FOR_TARGET`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18089 $as_echo "pre-installed in $ac_dir" >&6; }
18090 else
18091 # Canadian cross, just use what we found
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18093 $as_echo "pre-installed" >&6; }
18094 fi
18095 else
18096 ok=yes
18097 case " ${configdirs} " in
18098 *" binutils "*) ;;
18099 *) ok=no ;;
18100 esac
18101
18102 if test $ok = yes; then
18103 # An in-tree tool is available and we can use it
18104 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18106 $as_echo "just compiled" >&6; }
18107 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18108 # We already found the complete path
18109 ac_dir=`dirname $STRIP_FOR_TARGET`
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18111 $as_echo "pre-installed in $ac_dir" >&6; }
18112 elif test "x$target" = "x$host"; then
18113 # We can use an host tool
18114 STRIP_FOR_TARGET='$(STRIP)'
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18116 $as_echo "host tool" >&6; }
18117 else
18118 # We need a cross tool
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120 $as_echo "pre-installed" >&6; }
18121 fi
18122 fi
18123
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18125 $as_echo_n "checking where to find the target windres... " >&6; }
18126 if test "x${build}" != "x${host}" ; then
18127 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $WINDRES_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131 $as_echo "pre-installed in $ac_dir" >&6; }
18132 else
18133 # Canadian cross, just use what we found
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18135 $as_echo "pre-installed" >&6; }
18136 fi
18137 else
18138 ok=yes
18139 case " ${configdirs} " in
18140 *" binutils "*) ;;
18141 *) ok=no ;;
18142 esac
18143
18144 if test $ok = yes; then
18145 # An in-tree tool is available and we can use it
18146 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18148 $as_echo "just compiled" >&6; }
18149 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $WINDRES_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18153 $as_echo "pre-installed in $ac_dir" >&6; }
18154 elif test "x$target" = "x$host"; then
18155 # We can use an host tool
18156 WINDRES_FOR_TARGET='$(WINDRES)'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18158 $as_echo "host tool" >&6; }
18159 else
18160 # We need a cross tool
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162 $as_echo "pre-installed" >&6; }
18163 fi
18164 fi
18165
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18167 $as_echo_n "checking where to find the target windmc... " >&6; }
18168 if test "x${build}" != "x${host}" ; then
18169 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $WINDMC_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173 $as_echo "pre-installed in $ac_dir" >&6; }
18174 else
18175 # Canadian cross, just use what we found
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18177 $as_echo "pre-installed" >&6; }
18178 fi
18179 else
18180 ok=yes
18181 case " ${configdirs} " in
18182 *" binutils "*) ;;
18183 *) ok=no ;;
18184 esac
18185
18186 if test $ok = yes; then
18187 # An in-tree tool is available and we can use it
18188 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18190 $as_echo "just compiled" >&6; }
18191 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18192 # We already found the complete path
18193 ac_dir=`dirname $WINDMC_FOR_TARGET`
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18195 $as_echo "pre-installed in $ac_dir" >&6; }
18196 elif test "x$target" = "x$host"; then
18197 # We can use an host tool
18198 WINDMC_FOR_TARGET='$(WINDMC)'
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18200 $as_echo "host tool" >&6; }
18201 else
18202 # We need a cross tool
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204 $as_echo "pre-installed" >&6; }
18205 fi
18206 fi
18207
18208
18209
18210
18211
18212 # Certain tools may need extra flags.
18213 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18214 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18215 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18216
18217 # When building target libraries, except in a Canadian cross, we use
18218 # the same toolchain as the compiler we just built.
18219 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18220 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18221 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18222 if test $host = $build; then
18223 case " $configdirs " in
18224 *" gcc "*)
18225 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18226 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18227 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18228 ;;
18229 esac
18230 fi
18231
18232
18233
18234
18235
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18237 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18238 # Check whether --enable-maintainer-mode was given.
18239 if test "${enable_maintainer_mode+set}" = set; then :
18240 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18241 else
18242 USE_MAINTAINER_MODE=no
18243 fi
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18246 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18247
18248
18249 if test "$USE_MAINTAINER_MODE" = yes; then
18250 MAINTAINER_MODE_TRUE=
18251 MAINTAINER_MODE_FALSE='#'
18252 else
18253 MAINTAINER_MODE_TRUE='#'
18254 MAINTAINER_MODE_FALSE=
18255 fi
18256 MAINT=$MAINTAINER_MODE_TRUE
18257
18258 # ---------------------
18259 # GCC bootstrap support
18260 # ---------------------
18261
18262 # Stage specific cflags for build.
18263 stage1_cflags="-g"
18264 case $build in
18265 vax-*-*)
18266 case ${GCC} in
18267 yes) stage1_cflags="-g -Wa,-J" ;;
18268 *) stage1_cflags="-g -J" ;;
18269 esac ;;
18270 esac
18271
18272
18273
18274 # Enable --enable-checking in stage1 of the compiler.
18275 # Check whether --enable-stage1-checking was given.
18276 if test "${enable_stage1_checking+set}" = set; then :
18277 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18278 else
18279 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18280 # For --disable-checking or implicit --enable-checking=release, avoid
18281 # setting --enable-checking=gc in the default stage1 checking for LTO
18282 # bootstraps. See PR62077.
18283 case $BUILD_CONFIG in
18284 *lto*)
18285 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18286 *)
18287 stage1_checking=--enable-checking=yes,types;;
18288 esac
18289 if test "x$enable_checking" = x && \
18290 test -d ${srcdir}/gcc && \
18291 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18292 stage1_checking=--enable-checking=yes,types,extra
18293 fi
18294 else
18295 stage1_checking=--enable-checking=$enable_checking,types
18296 fi
18297 fi
18298
18299
18300
18301 # Enable -Werror in bootstrap stage2 and later.
18302 # Check whether --enable-werror was given.
18303 if test "${enable_werror+set}" = set; then :
18304 enableval=$enable_werror;
18305 case ${enable_werror} in
18306 yes) stage2_werror_flag="--enable-werror-always" ;;
18307 *) stage2_werror_flag="" ;;
18308 esac
18309
18310 else
18311
18312 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18313 case $BUILD_CONFIG in
18314 bootstrap-debug)
18315 stage2_werror_flag="--enable-werror-always" ;;
18316 "")
18317 stage2_werror_flag="--enable-werror-always" ;;
18318 esac
18319 fi
18320
18321 fi
18322
18323
18324
18325
18326 # Specify what files to not compare during bootstrap.
18327
18328 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18329 case "$target" in
18330 hppa*64*-*-hpux*) ;;
18331 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18332 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18333 esac
18334
18335
18336 ac_config_files="$ac_config_files Makefile"
18337
18338 cat >confcache <<\_ACEOF
18339 # This file is a shell script that caches the results of configure
18340 # tests run on this system so they can be shared between configure
18341 # scripts and configure runs, see configure's option --config-cache.
18342 # It is not useful on other systems. If it contains results you don't
18343 # want to keep, you may remove or edit it.
18344 #
18345 # config.status only pays attention to the cache file if you give it
18346 # the --recheck option to rerun configure.
18347 #
18348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18350 # following values.
18351
18352 _ACEOF
18353
18354 # The following way of writing the cache mishandles newlines in values,
18355 # but we know of no workaround that is simple, portable, and efficient.
18356 # So, we kill variables containing newlines.
18357 # Ultrix sh set writes to stderr and can't be redirected directly,
18358 # and sets the high bit in the cache file unless we assign to the vars.
18359 (
18360 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18361 eval ac_val=\$$ac_var
18362 case $ac_val in #(
18363 *${as_nl}*)
18364 case $ac_var in #(
18365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18367 esac
18368 case $ac_var in #(
18369 _ | IFS | as_nl) ;; #(
18370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18371 *) { eval $ac_var=; unset $ac_var;} ;;
18372 esac ;;
18373 esac
18374 done
18375
18376 (set) 2>&1 |
18377 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18378 *${as_nl}ac_space=\ *)
18379 # `set' does not quote correctly, so add quotes: double-quote
18380 # substitution turns \\\\ into \\, and sed turns \\ into \.
18381 sed -n \
18382 "s/'/'\\\\''/g;
18383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18384 ;; #(
18385 *)
18386 # `set' quotes correctly as required by POSIX, so do not add quotes.
18387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18388 ;;
18389 esac |
18390 sort
18391 ) |
18392 sed '
18393 /^ac_cv_env_/b end
18394 t clear
18395 :clear
18396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18397 t end
18398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18399 :end' >>confcache
18400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18401 if test -w "$cache_file"; then
18402 if test "x$cache_file" != "x/dev/null"; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18404 $as_echo "$as_me: updating cache $cache_file" >&6;}
18405 if test ! -f "$cache_file" || test -h "$cache_file"; then
18406 cat confcache >"$cache_file"
18407 else
18408 case $cache_file in #(
18409 */* | ?:*)
18410 mv -f confcache "$cache_file"$$ &&
18411 mv -f "$cache_file"$$ "$cache_file" ;; #(
18412 *)
18413 mv -f confcache "$cache_file" ;;
18414 esac
18415 fi
18416 fi
18417 else
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18419 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18420 fi
18421 fi
18422 rm -f confcache
18423
18424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18425 # Let make expand exec_prefix.
18426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18427
18428 # Transform confdefs.h into DEFS.
18429 # Protect against shell expansion while executing Makefile rules.
18430 # Protect against Makefile macro expansion.
18431 #
18432 # If the first sed substitution is executed (which looks for macros that
18433 # take arguments), then branch to the quote section. Otherwise,
18434 # look for a macro that doesn't take arguments.
18435 ac_script='
18436 :mline
18437 /\\$/{
18438 N
18439 s,\\\n,,
18440 b mline
18441 }
18442 t clear
18443 :clear
18444 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18445 t quote
18446 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18447 t quote
18448 b any
18449 :quote
18450 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18451 s/\[/\\&/g
18452 s/\]/\\&/g
18453 s/\$/$$/g
18454 H
18455 :any
18456 ${
18457 g
18458 s/^\n//
18459 s/\n/ /g
18460 p
18461 }
18462 '
18463 DEFS=`sed -n "$ac_script" confdefs.h`
18464
18465
18466 ac_libobjs=
18467 ac_ltlibobjs=
18468 U=
18469 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18470 # 1. Remove the extension, and $U if already installed.
18471 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18472 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18473 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18474 # will be set to the directory where LIBOBJS objects are built.
18475 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18476 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18477 done
18478 LIBOBJS=$ac_libobjs
18479
18480 LTLIBOBJS=$ac_ltlibobjs
18481
18482
18483
18484 : "${CONFIG_STATUS=./config.status}"
18485 ac_write_fail=0
18486 ac_clean_files_save=$ac_clean_files
18487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18489 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18490 as_write_fail=0
18491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18492 #! $SHELL
18493 # Generated by $as_me.
18494 # Run this file to recreate the current configuration.
18495 # Compiler output produced by configure, useful for debugging
18496 # configure, is in config.log if it exists.
18497
18498 debug=false
18499 ac_cs_recheck=false
18500 ac_cs_silent=false
18501
18502 SHELL=\${CONFIG_SHELL-$SHELL}
18503 export SHELL
18504 _ASEOF
18505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18506 ## -------------------- ##
18507 ## M4sh Initialization. ##
18508 ## -------------------- ##
18509
18510 # Be more Bourne compatible
18511 DUALCASE=1; export DUALCASE # for MKS sh
18512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18513 emulate sh
18514 NULLCMD=:
18515 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18516 # is contrary to our usage. Disable this feature.
18517 alias -g '${1+"$@"}'='"$@"'
18518 setopt NO_GLOB_SUBST
18519 else
18520 case `(set -o) 2>/dev/null` in #(
18521 *posix*) :
18522 set -o posix ;; #(
18523 *) :
18524 ;;
18525 esac
18526 fi
18527
18528
18529 as_nl='
18530 '
18531 export as_nl
18532 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18533 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18536 # Prefer a ksh shell builtin over an external printf program on Solaris,
18537 # but without wasting forks for bash or zsh.
18538 if test -z "$BASH_VERSION$ZSH_VERSION" \
18539 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18540 as_echo='print -r --'
18541 as_echo_n='print -rn --'
18542 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18543 as_echo='printf %s\n'
18544 as_echo_n='printf %s'
18545 else
18546 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18547 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18548 as_echo_n='/usr/ucb/echo -n'
18549 else
18550 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18551 as_echo_n_body='eval
18552 arg=$1;
18553 case $arg in #(
18554 *"$as_nl"*)
18555 expr "X$arg" : "X\\(.*\\)$as_nl";
18556 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18557 esac;
18558 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18559 '
18560 export as_echo_n_body
18561 as_echo_n='sh -c $as_echo_n_body as_echo'
18562 fi
18563 export as_echo_body
18564 as_echo='sh -c $as_echo_body as_echo'
18565 fi
18566
18567 # The user is always right.
18568 if test "${PATH_SEPARATOR+set}" != set; then
18569 PATH_SEPARATOR=:
18570 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18571 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18572 PATH_SEPARATOR=';'
18573 }
18574 fi
18575
18576
18577 # IFS
18578 # We need space, tab and new line, in precisely that order. Quoting is
18579 # there to prevent editors from complaining about space-tab.
18580 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18581 # splitting by setting IFS to empty value.)
18582 IFS=" "" $as_nl"
18583
18584 # Find who we are. Look in the path if we contain no directory separator.
18585 as_myself=
18586 case $0 in #((
18587 *[\\/]* ) as_myself=$0 ;;
18588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589 for as_dir in $PATH
18590 do
18591 IFS=$as_save_IFS
18592 test -z "$as_dir" && as_dir=.
18593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18594 done
18595 IFS=$as_save_IFS
18596
18597 ;;
18598 esac
18599 # We did not find ourselves, most probably we were run as `sh COMMAND'
18600 # in which case we are not to be found in the path.
18601 if test "x$as_myself" = x; then
18602 as_myself=$0
18603 fi
18604 if test ! -f "$as_myself"; then
18605 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18606 exit 1
18607 fi
18608
18609 # Unset variables that we do not need and which cause bugs (e.g. in
18610 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18611 # suppresses any "Segmentation fault" message there. '((' could
18612 # trigger a bug in pdksh 5.2.14.
18613 for as_var in BASH_ENV ENV MAIL MAILPATH
18614 do eval test x\${$as_var+set} = xset \
18615 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18616 done
18617 PS1='$ '
18618 PS2='> '
18619 PS4='+ '
18620
18621 # NLS nuisances.
18622 LC_ALL=C
18623 export LC_ALL
18624 LANGUAGE=C
18625 export LANGUAGE
18626
18627 # CDPATH.
18628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18629
18630
18631 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18632 # ----------------------------------------
18633 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18634 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18635 # script with STATUS, using 1 if that was 0.
18636 as_fn_error ()
18637 {
18638 as_status=$1; test $as_status -eq 0 && as_status=1
18639 if test "$4"; then
18640 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18641 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18642 fi
18643 $as_echo "$as_me: error: $2" >&2
18644 as_fn_exit $as_status
18645 } # as_fn_error
18646
18647
18648 # as_fn_set_status STATUS
18649 # -----------------------
18650 # Set $? to STATUS, without forking.
18651 as_fn_set_status ()
18652 {
18653 return $1
18654 } # as_fn_set_status
18655
18656 # as_fn_exit STATUS
18657 # -----------------
18658 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18659 as_fn_exit ()
18660 {
18661 set +e
18662 as_fn_set_status $1
18663 exit $1
18664 } # as_fn_exit
18665
18666 # as_fn_unset VAR
18667 # ---------------
18668 # Portably unset VAR.
18669 as_fn_unset ()
18670 {
18671 { eval $1=; unset $1;}
18672 }
18673 as_unset=as_fn_unset
18674 # as_fn_append VAR VALUE
18675 # ----------------------
18676 # Append the text in VALUE to the end of the definition contained in VAR. Take
18677 # advantage of any shell optimizations that allow amortized linear growth over
18678 # repeated appends, instead of the typical quadratic growth present in naive
18679 # implementations.
18680 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18681 eval 'as_fn_append ()
18682 {
18683 eval $1+=\$2
18684 }'
18685 else
18686 as_fn_append ()
18687 {
18688 eval $1=\$$1\$2
18689 }
18690 fi # as_fn_append
18691
18692 # as_fn_arith ARG...
18693 # ------------------
18694 # Perform arithmetic evaluation on the ARGs, and store the result in the
18695 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18696 # must be portable across $(()) and expr.
18697 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18698 eval 'as_fn_arith ()
18699 {
18700 as_val=$(( $* ))
18701 }'
18702 else
18703 as_fn_arith ()
18704 {
18705 as_val=`expr "$@" || test $? -eq 1`
18706 }
18707 fi # as_fn_arith
18708
18709
18710 if expr a : '\(a\)' >/dev/null 2>&1 &&
18711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18712 as_expr=expr
18713 else
18714 as_expr=false
18715 fi
18716
18717 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18718 as_basename=basename
18719 else
18720 as_basename=false
18721 fi
18722
18723 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18724 as_dirname=dirname
18725 else
18726 as_dirname=false
18727 fi
18728
18729 as_me=`$as_basename -- "$0" ||
18730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18731 X"$0" : 'X\(//\)$' \| \
18732 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18733 $as_echo X/"$0" |
18734 sed '/^.*\/\([^/][^/]*\)\/*$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\/\(\/\/\)$/{
18739 s//\1/
18740 q
18741 }
18742 /^X\/\(\/\).*/{
18743 s//\1/
18744 q
18745 }
18746 s/.*/./; q'`
18747
18748 # Avoid depending upon Character Ranges.
18749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18752 as_cr_digits='0123456789'
18753 as_cr_alnum=$as_cr_Letters$as_cr_digits
18754
18755 ECHO_C= ECHO_N= ECHO_T=
18756 case `echo -n x` in #(((((
18757 -n*)
18758 case `echo 'xy\c'` in
18759 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18760 xy) ECHO_C='\c';;
18761 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18762 ECHO_T=' ';;
18763 esac;;
18764 *)
18765 ECHO_N='-n';;
18766 esac
18767
18768 rm -f conf$$ conf$$.exe conf$$.file
18769 if test -d conf$$.dir; then
18770 rm -f conf$$.dir/conf$$.file
18771 else
18772 rm -f conf$$.dir
18773 mkdir conf$$.dir 2>/dev/null
18774 fi
18775 if (echo >conf$$.file) 2>/dev/null; then
18776 if ln -s conf$$.file conf$$ 2>/dev/null; then
18777 as_ln_s='ln -s'
18778 # ... but there are two gotchas:
18779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18781 # In both cases, we have to default to `cp -pR'.
18782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18783 as_ln_s='cp -pR'
18784 elif ln conf$$.file conf$$ 2>/dev/null; then
18785 as_ln_s=ln
18786 else
18787 as_ln_s='cp -pR'
18788 fi
18789 else
18790 as_ln_s='cp -pR'
18791 fi
18792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18793 rmdir conf$$.dir 2>/dev/null
18794
18795
18796 # as_fn_mkdir_p
18797 # -------------
18798 # Create "$as_dir" as a directory, including parents if necessary.
18799 as_fn_mkdir_p ()
18800 {
18801
18802 case $as_dir in #(
18803 -*) as_dir=./$as_dir;;
18804 esac
18805 test -d "$as_dir" || eval $as_mkdir_p || {
18806 as_dirs=
18807 while :; do
18808 case $as_dir in #(
18809 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18810 *) as_qdir=$as_dir;;
18811 esac
18812 as_dirs="'$as_qdir' $as_dirs"
18813 as_dir=`$as_dirname -- "$as_dir" ||
18814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18815 X"$as_dir" : 'X\(//\)[^/]' \| \
18816 X"$as_dir" : 'X\(//\)$' \| \
18817 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18818 $as_echo X"$as_dir" |
18819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18820 s//\1/
18821 q
18822 }
18823 /^X\(\/\/\)[^/].*/{
18824 s//\1/
18825 q
18826 }
18827 /^X\(\/\/\)$/{
18828 s//\1/
18829 q
18830 }
18831 /^X\(\/\).*/{
18832 s//\1/
18833 q
18834 }
18835 s/.*/./; q'`
18836 test -d "$as_dir" && break
18837 done
18838 test -z "$as_dirs" || eval "mkdir $as_dirs"
18839 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18840
18841
18842 } # as_fn_mkdir_p
18843 if mkdir -p . 2>/dev/null; then
18844 as_mkdir_p='mkdir -p "$as_dir"'
18845 else
18846 test -d ./-p && rmdir ./-p
18847 as_mkdir_p=false
18848 fi
18849
18850
18851 # as_fn_executable_p FILE
18852 # -----------------------
18853 # Test if FILE is an executable regular file.
18854 as_fn_executable_p ()
18855 {
18856 test -f "$1" && test -x "$1"
18857 } # as_fn_executable_p
18858 as_test_x='test -x'
18859 as_executable_p=as_fn_executable_p
18860
18861 # Sed expression to map a string onto a valid CPP name.
18862 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18863
18864 # Sed expression to map a string onto a valid variable name.
18865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18866
18867
18868 exec 6>&1
18869 ## ----------------------------------- ##
18870 ## Main body of $CONFIG_STATUS script. ##
18871 ## ----------------------------------- ##
18872 _ASEOF
18873 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18874
18875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18876 # Save the log message, to keep $0 and so on meaningful, and to
18877 # report actual input values of CONFIG_FILES etc. instead of their
18878 # values after options handling.
18879 ac_log="
18880 This file was extended by $as_me, which was
18881 generated by GNU Autoconf 2.69. Invocation command line was
18882
18883 CONFIG_FILES = $CONFIG_FILES
18884 CONFIG_HEADERS = $CONFIG_HEADERS
18885 CONFIG_LINKS = $CONFIG_LINKS
18886 CONFIG_COMMANDS = $CONFIG_COMMANDS
18887 $ $0 $@
18888
18889 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18890 "
18891
18892 _ACEOF
18893
18894 case $ac_config_files in *"
18895 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18896 esac
18897
18898
18899
18900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18901 # Files that config.status was made for.
18902 config_files="$ac_config_files"
18903
18904 _ACEOF
18905
18906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907 ac_cs_usage="\
18908 \`$as_me' instantiates files and other configuration actions
18909 from templates according to the current configuration. Unless the files
18910 and actions are specified as TAGs, all are instantiated by default.
18911
18912 Usage: $0 [OPTION]... [TAG]...
18913
18914 -h, --help print this help, then exit
18915 -V, --version print version number and configuration settings, then exit
18916 --config print configuration, then exit
18917 -q, --quiet, --silent
18918 do not print progress messages
18919 -d, --debug don't remove temporary files
18920 --recheck update $as_me by reconfiguring in the same conditions
18921 --file=FILE[:TEMPLATE]
18922 instantiate the configuration file FILE
18923
18924 Configuration files:
18925 $config_files
18926
18927 Report bugs to the package provider."
18928
18929 _ACEOF
18930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18932 ac_cs_version="\\
18933 config.status
18934 configured by $0, generated by GNU Autoconf 2.69,
18935 with options \\"\$ac_cs_config\\"
18936
18937 Copyright (C) 2012 Free Software Foundation, Inc.
18938 This config.status script is free software; the Free Software Foundation
18939 gives unlimited permission to copy, distribute and modify it."
18940
18941 ac_pwd='$ac_pwd'
18942 srcdir='$srcdir'
18943 INSTALL='$INSTALL'
18944 AWK='$AWK'
18945 test -n "\$AWK" || AWK=awk
18946 _ACEOF
18947
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949 # The default lists apply if the user does not specify any file.
18950 ac_need_defaults=:
18951 while test $# != 0
18952 do
18953 case $1 in
18954 --*=?*)
18955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18957 ac_shift=:
18958 ;;
18959 --*=)
18960 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18961 ac_optarg=
18962 ac_shift=:
18963 ;;
18964 *)
18965 ac_option=$1
18966 ac_optarg=$2
18967 ac_shift=shift
18968 ;;
18969 esac
18970
18971 case $ac_option in
18972 # Handling of the options.
18973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18974 ac_cs_recheck=: ;;
18975 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18976 $as_echo "$ac_cs_version"; exit ;;
18977 --config | --confi | --conf | --con | --co | --c )
18978 $as_echo "$ac_cs_config"; exit ;;
18979 --debug | --debu | --deb | --de | --d | -d )
18980 debug=: ;;
18981 --file | --fil | --fi | --f )
18982 $ac_shift
18983 case $ac_optarg in
18984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18985 '') as_fn_error $? "missing file argument" ;;
18986 esac
18987 as_fn_append CONFIG_FILES " '$ac_optarg'"
18988 ac_need_defaults=false;;
18989 --he | --h | --help | --hel | -h )
18990 $as_echo "$ac_cs_usage"; exit ;;
18991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18992 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18993 ac_cs_silent=: ;;
18994
18995 # This is an error.
18996 -*) as_fn_error $? "unrecognized option: \`$1'
18997 Try \`$0 --help' for more information." ;;
18998
18999 *) as_fn_append ac_config_targets " $1"
19000 ac_need_defaults=false ;;
19001
19002 esac
19003 shift
19004 done
19005
19006 ac_configure_extra_args=
19007
19008 if $ac_cs_silent; then
19009 exec 6>/dev/null
19010 ac_configure_extra_args="$ac_configure_extra_args --silent"
19011 fi
19012
19013 _ACEOF
19014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015 if \$ac_cs_recheck; then
19016 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19017 shift
19018 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19019 CONFIG_SHELL='$SHELL'
19020 export CONFIG_SHELL
19021 exec "\$@"
19022 fi
19023
19024 _ACEOF
19025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026 exec 5>>config.log
19027 {
19028 echo
19029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19030 ## Running $as_me. ##
19031 _ASBOX
19032 $as_echo "$ac_log"
19033 } >&5
19034
19035 _ACEOF
19036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037 #
19038 # INIT-COMMANDS
19039 #
19040 extrasub_build="$extrasub_build"
19041 extrasub_host="$extrasub_host"
19042 extrasub_target="$extrasub_target"
19043
19044 _ACEOF
19045
19046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19047
19048 # Handling of arguments.
19049 for ac_config_target in $ac_config_targets
19050 do
19051 case $ac_config_target in
19052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19053
19054 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19055 esac
19056 done
19057
19058
19059 # If the user did not use the arguments to specify the items to instantiate,
19060 # then the envvar interface is used. Set only those that are not.
19061 # We use the long form for the default assignment because of an extremely
19062 # bizarre bug on SunOS 4.1.3.
19063 if $ac_need_defaults; then
19064 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19065 fi
19066
19067 # Have a temporary directory for convenience. Make it in the build tree
19068 # simply because there is no reason against having it here, and in addition,
19069 # creating and moving files from /tmp can sometimes cause problems.
19070 # Hook for its removal unless debugging.
19071 # Note that there is a small window in which the directory will not be cleaned:
19072 # after its creation but before its name has been assigned to `$tmp'.
19073 $debug ||
19074 {
19075 tmp= ac_tmp=
19076 trap 'exit_status=$?
19077 : "${ac_tmp:=$tmp}"
19078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19079 ' 0
19080 trap 'as_fn_exit 1' 1 2 13 15
19081 }
19082 # Create a (secure) tmp directory for tmp files.
19083
19084 {
19085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19086 test -d "$tmp"
19087 } ||
19088 {
19089 tmp=./conf$$-$RANDOM
19090 (umask 077 && mkdir "$tmp")
19091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19092 ac_tmp=$tmp
19093
19094 # Set up the scripts for CONFIG_FILES section.
19095 # No need to generate them if there are no CONFIG_FILES.
19096 # This happens for instance with `./config.status config.h'.
19097 if test -n "$CONFIG_FILES"; then
19098
19099 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19100 ac_cs_awk_getline=:
19101 ac_cs_awk_pipe_init=
19102 ac_cs_awk_read_file='
19103 while ((getline aline < (F[key])) > 0)
19104 print(aline)
19105 close(F[key])'
19106 ac_cs_awk_pipe_fini=
19107 else
19108 ac_cs_awk_getline=false
19109 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19110 ac_cs_awk_read_file='
19111 print "|#_!!_#|"
19112 print "cat " F[key] " &&"
19113 '$ac_cs_awk_pipe_init
19114 # The final `:' finishes the AND list.
19115 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19116 fi
19117 ac_cr=`echo X | tr X '\015'`
19118 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19119 # But we know of no other shell where ac_cr would be empty at this
19120 # point, so we can use a bashism as a fallback.
19121 if test "x$ac_cr" = x; then
19122 eval ac_cr=\$\'\\r\'
19123 fi
19124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19126 ac_cs_awk_cr='\\r'
19127 else
19128 ac_cs_awk_cr=$ac_cr
19129 fi
19130
19131 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19132 _ACEOF
19133
19134 # Create commands to substitute file output variables.
19135 {
19136 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19137 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19138 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19139 echo "_ACAWK" &&
19140 echo "_ACEOF"
19141 } >conf$$files.sh &&
19142 . ./conf$$files.sh ||
19143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19144 rm -f conf$$files.sh
19145
19146 {
19147 echo "cat >conf$$subs.awk <<_ACEOF" &&
19148 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19149 echo "_ACEOF"
19150 } >conf$$subs.sh ||
19151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19153 ac_delim='%!_!# '
19154 for ac_last_try in false false false false false :; do
19155 . ./conf$$subs.sh ||
19156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19157
19158 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19159 if test $ac_delim_n = $ac_delim_num; then
19160 break
19161 elif $ac_last_try; then
19162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19163 else
19164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19165 fi
19166 done
19167 rm -f conf$$subs.sh
19168
19169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19170 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19171 _ACEOF
19172 sed -n '
19173 h
19174 s/^/S["/; s/!.*/"]=/
19175 p
19176 g
19177 s/^[^!]*!//
19178 :repl
19179 t repl
19180 s/'"$ac_delim"'$//
19181 t delim
19182 :nl
19183 h
19184 s/\(.\{148\}\)..*/\1/
19185 t more1
19186 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19187 p
19188 n
19189 b repl
19190 :more1
19191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19192 p
19193 g
19194 s/.\{148\}//
19195 t nl
19196 :delim
19197 h
19198 s/\(.\{148\}\)..*/\1/
19199 t more2
19200 s/["\\]/\\&/g; s/^/"/; s/$/"/
19201 p
19202 b
19203 :more2
19204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19205 p
19206 g
19207 s/.\{148\}//
19208 t delim
19209 ' <conf$$subs.awk | sed '
19210 /^[^""]/{
19211 N
19212 s/\n//
19213 }
19214 ' >>$CONFIG_STATUS || ac_write_fail=1
19215 rm -f conf$$subs.awk
19216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19217 _ACAWK
19218 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19219 for (key in S) S_is_set[key] = 1
19220 FS = ""
19221 \$ac_cs_awk_pipe_init
19222 }
19223 {
19224 line = $ 0
19225 nfields = split(line, field, "@")
19226 substed = 0
19227 len = length(field[1])
19228 for (i = 2; i < nfields; i++) {
19229 key = field[i]
19230 keylen = length(key)
19231 if (S_is_set[key]) {
19232 value = S[key]
19233 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19234 len += length(value) + length(field[++i])
19235 substed = 1
19236 } else
19237 len += 1 + keylen
19238 }
19239 if (nfields == 3 && !substed) {
19240 key = field[2]
19241 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19242 \$ac_cs_awk_read_file
19243 next
19244 }
19245 }
19246 print line
19247 }
19248 \$ac_cs_awk_pipe_fini
19249 _ACAWK
19250 _ACEOF
19251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19253 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19254 else
19255 cat
19256 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19257 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19258 _ACEOF
19259
19260 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19261 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19262 # trailing colons and then remove the whole line if VPATH becomes empty
19263 # (actually we leave an empty line to preserve line numbers).
19264 if test "x$srcdir" = x.; then
19265 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19266 h
19267 s///
19268 s/^/:/
19269 s/[ ]*$/:/
19270 s/:\$(srcdir):/:/g
19271 s/:\${srcdir}:/:/g
19272 s/:@srcdir@:/:/g
19273 s/^:*//
19274 s/:*$//
19275 x
19276 s/\(=[ ]*\).*/\1/
19277 G
19278 s/\n//
19279 s/^[^=]*=[ ]*$//
19280 }'
19281 fi
19282
19283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284 fi # test -n "$CONFIG_FILES"
19285
19286
19287 eval set X " :F $CONFIG_FILES "
19288 shift
19289 for ac_tag
19290 do
19291 case $ac_tag in
19292 :[FHLC]) ac_mode=$ac_tag; continue;;
19293 esac
19294 case $ac_mode$ac_tag in
19295 :[FHL]*:*);;
19296 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19297 :[FH]-) ac_tag=-:-;;
19298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19299 esac
19300 ac_save_IFS=$IFS
19301 IFS=:
19302 set x $ac_tag
19303 IFS=$ac_save_IFS
19304 shift
19305 ac_file=$1
19306 shift
19307
19308 case $ac_mode in
19309 :L) ac_source=$1;;
19310 :[FH])
19311 ac_file_inputs=
19312 for ac_f
19313 do
19314 case $ac_f in
19315 -) ac_f="$ac_tmp/stdin";;
19316 *) # Look for the file first in the build tree, then in the source tree
19317 # (if the path is not absolute). The absolute path cannot be DOS-style,
19318 # because $ac_f cannot contain `:'.
19319 test -f "$ac_f" ||
19320 case $ac_f in
19321 [\\/$]*) false;;
19322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19323 esac ||
19324 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19325 esac
19326 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19327 as_fn_append ac_file_inputs " '$ac_f'"
19328 done
19329
19330 # Let's still pretend it is `configure' which instantiates (i.e., don't
19331 # use $as_me), people would be surprised to read:
19332 # /* config.h. Generated by config.status. */
19333 configure_input='Generated from '`
19334 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19335 `' by configure.'
19336 if test x"$ac_file" != x-; then
19337 configure_input="$ac_file. $configure_input"
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19339 $as_echo "$as_me: creating $ac_file" >&6;}
19340 fi
19341 # Neutralize special characters interpreted by sed in replacement strings.
19342 case $configure_input in #(
19343 *\&* | *\|* | *\\* )
19344 ac_sed_conf_input=`$as_echo "$configure_input" |
19345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19346 *) ac_sed_conf_input=$configure_input;;
19347 esac
19348
19349 case $ac_tag in
19350 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19352 esac
19353 ;;
19354 esac
19355
19356 ac_dir=`$as_dirname -- "$ac_file" ||
19357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19358 X"$ac_file" : 'X\(//\)[^/]' \| \
19359 X"$ac_file" : 'X\(//\)$' \| \
19360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19361 $as_echo X"$ac_file" |
19362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19363 s//\1/
19364 q
19365 }
19366 /^X\(\/\/\)[^/].*/{
19367 s//\1/
19368 q
19369 }
19370 /^X\(\/\/\)$/{
19371 s//\1/
19372 q
19373 }
19374 /^X\(\/\).*/{
19375 s//\1/
19376 q
19377 }
19378 s/.*/./; q'`
19379 as_dir="$ac_dir"; as_fn_mkdir_p
19380 ac_builddir=.
19381
19382 case "$ac_dir" in
19383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19384 *)
19385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19386 # A ".." for each directory in $ac_dir_suffix.
19387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19388 case $ac_top_builddir_sub in
19389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19391 esac ;;
19392 esac
19393 ac_abs_top_builddir=$ac_pwd
19394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19395 # for backward compatibility:
19396 ac_top_builddir=$ac_top_build_prefix
19397
19398 case $srcdir in
19399 .) # We are building in place.
19400 ac_srcdir=.
19401 ac_top_srcdir=$ac_top_builddir_sub
19402 ac_abs_top_srcdir=$ac_pwd ;;
19403 [\\/]* | ?:[\\/]* ) # Absolute name.
19404 ac_srcdir=$srcdir$ac_dir_suffix;
19405 ac_top_srcdir=$srcdir
19406 ac_abs_top_srcdir=$srcdir ;;
19407 *) # Relative name.
19408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19409 ac_top_srcdir=$ac_top_build_prefix$srcdir
19410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19411 esac
19412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19413
19414
19415 case $ac_mode in
19416 :F)
19417 #
19418 # CONFIG_FILE
19419 #
19420
19421 case $INSTALL in
19422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19424 esac
19425 _ACEOF
19426
19427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19428 # If the template does not know about datarootdir, expand it.
19429 # FIXME: This hack should be removed a few years after 2.60.
19430 ac_datarootdir_hack=; ac_datarootdir_seen=
19431 ac_sed_dataroot='
19432 /datarootdir/ {
19433 p
19434 q
19435 }
19436 /@datadir@/p
19437 /@docdir@/p
19438 /@infodir@/p
19439 /@localedir@/p
19440 /@mandir@/p'
19441 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19442 *datarootdir*) ac_datarootdir_seen=yes;;
19443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19445 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19446 _ACEOF
19447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19448 ac_datarootdir_hack='
19449 s&@datadir@&$datadir&g
19450 s&@docdir@&$docdir&g
19451 s&@infodir@&$infodir&g
19452 s&@localedir@&$localedir&g
19453 s&@mandir@&$mandir&g
19454 s&\\\${datarootdir}&$datarootdir&g' ;;
19455 esac
19456 _ACEOF
19457
19458 # Neutralize VPATH when `$srcdir' = `.'.
19459 # Shell code in configure.ac might set extrasub.
19460 # FIXME: do we really want to maintain this feature?
19461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462 ac_sed_extra="$ac_vpsub
19463 $extrasub
19464 _ACEOF
19465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19466 :t
19467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19468 s|@configure_input@|$ac_sed_conf_input|;t t
19469 s&@top_builddir@&$ac_top_builddir_sub&;t t
19470 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19471 s&@srcdir@&$ac_srcdir&;t t
19472 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19473 s&@top_srcdir@&$ac_top_srcdir&;t t
19474 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19475 s&@builddir@&$ac_builddir&;t t
19476 s&@abs_builddir@&$ac_abs_builddir&;t t
19477 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19478 s&@INSTALL@&$ac_INSTALL&;t t
19479 $ac_datarootdir_hack
19480 "
19481 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19482 if $ac_cs_awk_getline; then
19483 $AWK -f "$ac_tmp/subs.awk"
19484 else
19485 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19486 fi \
19487 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19488
19489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19490 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19492 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19494 which seems to be undefined. Please make sure it is defined" >&5
19495 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19496 which seems to be undefined. Please make sure it is defined" >&2;}
19497
19498 rm -f "$ac_tmp/stdin"
19499 case $ac_file in
19500 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19501 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19502 esac \
19503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19504 ;;
19505
19506
19507
19508 esac
19509
19510
19511 case $ac_file$ac_mode in
19512 "Makefile":F) sed "$extrasub_build" Makefile |
19513 sed "$extrasub_host" |
19514 sed "$extrasub_target" > mf$$
19515 mv -f mf$$ Makefile ;;
19516
19517 esac
19518 done # for ac_tag
19519
19520
19521 as_fn_exit 0
19522 _ACEOF
19523 ac_clean_files=$ac_clean_files_save
19524
19525 test $ac_write_fail = 0 ||
19526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19527
19528
19529 # configure is writing to config.log, and then calls config.status.
19530 # config.status does its own redirection, appending to config.log.
19531 # Unfortunately, on DOS this fails, as config.log is still kept open
19532 # by configure, so config.status won't be able to write to it; its
19533 # output is simply discarded. So we exec the FD to /dev/null,
19534 # effectively closing config.log, so it can be properly (re)opened and
19535 # appended to by config.status. When coming back to configure, we
19536 # need to make the FD available again.
19537 if test "$no_create" != yes; then
19538 ac_cs_success=:
19539 ac_config_status_args=
19540 test "$silent" = yes &&
19541 ac_config_status_args="$ac_config_status_args --quiet"
19542 exec 5>/dev/null
19543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19544 exec 5>>config.log
19545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19546 # would make configure fail if this is the last instruction.
19547 $ac_cs_success || as_fn_exit 1
19548 fi
19549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19552 fi
19553
19554