]> gcc.gnu.org Git - gcc.git/blob - configure
Merge branch 'master' into devel/modula-2.
[gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 GDCFLAGS
624 READELF
625 OTOOL
626 OBJDUMP
627 OBJCOPY
628 WINDMC
629 WINDRES
630 STRIP
631 RANLIB
632 NM
633 LIPO
634 LD
635 DSYMUTIL
636 DLLTOOL
637 AS
638 AR
639 RUNTEST
640 EXPECT
641 MAKEINFO
642 FLEX
643 LEX
644 M4
645 BISON
646 YACC
647 WINDRES_FOR_BUILD
648 WINDMC_FOR_BUILD
649 RANLIB_FOR_BUILD
650 NM_FOR_BUILD
651 LD_FOR_BUILD
652 LDFLAGS_FOR_BUILD
653 GDC_FOR_BUILD
654 GOC_FOR_BUILD
655 GFORTRAN_FOR_BUILD
656 DSYMUTIL_FOR_BUILD
657 DLLTOOL_FOR_BUILD
658 CXX_FOR_BUILD
659 CXXFLAGS_FOR_BUILD
660 CPPFLAGS_FOR_BUILD
661 CPP_FOR_BUILD
662 CFLAGS_FOR_BUILD
663 CC_FOR_BUILD
664 AS_FOR_BUILD
665 AR_FOR_BUILD
666 target_configdirs
667 configdirs
668 build_configdirs
669 INSTALL_GDB_TK
670 GDB_TK
671 CONFIGURE_GDB_TK
672 build_tooldir
673 tooldir
674 GCC_SHLIB_SUBDIR
675 RPATH_ENVVAR
676 target_configargs
677 host_configargs
678 build_configargs
679 BUILD_CONFIG
680 LDFLAGS_FOR_TARGET
681 CXXFLAGS_FOR_TARGET
682 CFLAGS_FOR_TARGET
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
685 get_gcc_base_ver
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
688 stage1_languages
689 host_libs_picflag
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 PGO_BUILD_LTO_CFLAGS
706 PGO_BUILD_USE_CFLAGS
707 PGO_BUILD_GEN_CFLAGS
708 HAVE_CXX11_FOR_BUILD
709 HAVE_CXX11
710 do_compare
711 GDC
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 target_subdir
725 host_subdir
726 build_subdir
727 build_libsubdir
728 AWK
729 SED
730 LN_S
731 LN
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 target_noncanonical
744 host_noncanonical
745 build_noncanonical
746 build_os
747 build_vendor
748 build_cpu
749 build
750 TOPLEVEL_CONFIGURE_ARGUMENTS
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='serialization_dependencies
791 host_makefile_frag
792 target_makefile_frag
793 alphaieee_frag
794 ospace_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_build_libsubdir
798 with_system_zlib
799 enable_as_accelerator_for
800 enable_offload_targets
801 enable_offload_defaulted
802 enable_gold
803 enable_ld
804 enable_compressed_debug_sections
805 enable_libquadmath
806 enable_libquadmath_support
807 enable_libada
808 enable_libgm2
809 enable_libssp
810 enable_libstdcxx
811 enable_bootstrap
812 enable_pgo_build
813 with_mpc
814 with_mpc_include
815 with_mpc_lib
816 with_mpfr
817 with_mpfr_include
818 with_mpfr_lib
819 with_gmp
820 with_gmp_include
821 with_gmp_lib
822 with_stage1_libs
823 with_static_standard_libraries
824 with_stage1_ldflags
825 with_boot_libs
826 with_boot_ldflags
827 with_isl
828 with_isl_include
829 with_isl_lib
830 enable_isl_version_check
831 enable_lto
832 enable_linker_plugin_configure_flags
833 enable_linker_plugin_flags
834 enable_host_shared
835 enable_stage1_languages
836 enable_objc_gc
837 with_target_bdw_gc
838 with_target_bdw_gc_include
839 with_target_bdw_gc_lib
840 with_gcc_major_version_only
841 with_build_sysroot
842 with_debug_prefix_map
843 with_build_config
844 enable_vtable_verify
845 enable_serial_configure
846 with_build_time_tools
847 enable_maintainer_mode
848 enable_stage1_checking
849 enable_werror
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CXX
860 CXXFLAGS
861 CCC
862 build_configargs
863 host_configargs
864 target_configargs
865 AR
866 AS
867 DLLTOOL
868 DSYMUTIL
869 LD
870 LIPO
871 NM
872 RANLIB
873 STRIP
874 WINDRES
875 WINDMC
876 OBJCOPY
877 OBJDUMP
878 OTOOL
879 READELF
880 CC_FOR_TARGET
881 CXX_FOR_TARGET
882 GCC_FOR_TARGET
883 GFORTRAN_FOR_TARGET
884 GOC_FOR_TARGET
885 GDC_FOR_TARGET
886 GM2_FOR_TARGET
887 AR_FOR_TARGET
888 AS_FOR_TARGET
889 DLLTOOL_FOR_TARGET
890 DSYMUTIL_FOR_TARGET
891 LD_FOR_TARGET
892 LIPO_FOR_TARGET
893 NM_FOR_TARGET
894 OBJCOPY_FOR_TARGET
895 OBJDUMP_FOR_TARGET
896 OTOOL_FOR_TARGET
897 RANLIB_FOR_TARGET
898 READELF_FOR_TARGET
899 STRIP_FOR_TARGET
900 WINDRES_FOR_TARGET
901 WINDMC_FOR_TARGET'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 ac_unrecognized_opts=
908 ac_unrecognized_sep=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 runstatedir='${localstatedir}/run'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 case $srcdir in
1439 *" "*)
1440 as_fn_error $? "path to source, $srcdir, contains spaces"
1441 ;;
1442 esac
1443 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1444
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1514
1515 cat <<\_ACEOF
1516
1517 Program names:
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521
1522 System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530
1531 cat <<\_ACEOF
1532
1533 Optional Features:
1534 --disable-option-checking ignore unrecognized --enable/--with options
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-as-accelerator-for=ARG
1538 build as offload target compiler. Specify offload
1539 host triple by ARG
1540 --enable-offload-targets=LIST
1541 enable offloading to devices from comma-separated
1542 LIST of TARGET[=DIR]. Use optional path to find
1543 offload target compiler during the build
1544 --enable-offload-defaulted
1545 If enabled, configured but not installed offload compilers and
1546 libgomp plugins are silently ignored. Useful for distribution
1547 compilers where those are in separate optional packages.
1548
1549 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1550 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
1554 --disable-libquadmath do not build libquadmath directory
1555 --disable-libquadmath-support
1556 disable libquadmath support for Fortran
1557 --enable-libada build libada directory
1558 --enable-libgm2 build libgm2 directory
1559 --enable-libssp build libssp directory
1560 --disable-libstdcxx do not build libstdc++-v3 directory
1561 --enable-bootstrap enable bootstrapping [yes if native build]
1562 --enable-pgo-build[=lto]
1563 enable the PGO build
1564 --disable-isl-version-check
1565 disable check for isl version
1566 --enable-lto enable link time optimization support
1567 --enable-linker-plugin-configure-flags=FLAGS
1568 additional flags for configuring linker plugins
1569 [none]
1570 --enable-linker-plugin-flags=FLAGS
1571 additional flags for configuring and building linker
1572 plugins [none]
1573 --enable-host-shared build host code as shared libraries
1574 --enable-stage1-languages[=all]
1575 choose additional languages to build during stage1.
1576 Mostly useful for compiler development
1577 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1578 Objective-C runtime
1579 --enable-vtable-verify Enable vtable verification feature
1580 --enable-serial-[{host,target,build}-]configure
1581 force sequential configuration of sub-packages for
1582 the host, target or build machine, or all
1583 sub-packages
1584 --enable-maintainer-mode
1585 enable make rules and dependencies not useful (and
1586 sometimes confusing) to the casual installer
1587 --enable-stage1-checking[=all]
1588 choose additional checking for stage1 of the
1589 compiler
1590 --enable-werror enable -Werror in bootstrap stage2 and later
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-build-libsubdir=DIR Directory where to find libraries for build system
1596 --with-system-zlib use installed libz
1597 --with-mpc=PATH specify prefix directory for installed MPC package.
1598 Equivalent to --with-mpc-include=PATH/include plus
1599 --with-mpc-lib=PATH/lib
1600 --with-mpc-include=PATH specify directory for installed MPC include files
1601 --with-mpc-lib=PATH specify directory for the installed MPC library
1602 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1603 Equivalent to --with-mpfr-include=PATH/include plus
1604 --with-mpfr-lib=PATH/lib
1605 --with-mpfr-include=PATH
1606 specify directory for installed MPFR include files
1607 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1608 --with-gmp=PATH specify prefix directory for the installed GMP
1609 package. Equivalent to
1610 --with-gmp-include=PATH/include plus
1611 --with-gmp-lib=PATH/lib
1612 --with-gmp-include=PATH specify directory for installed GMP include files
1613 --with-gmp-lib=PATH specify directory for the installed GMP library
1614 --with-stage1-libs=LIBS libraries for stage1
1615 --with-static-standard-libraries
1616 use -static-libstdc++ and -static-libgcc
1617 (default=auto)
1618 --with-stage1-ldflags=FLAGS
1619 linker flags for stage1
1620 --with-boot-libs=LIBS libraries for stage2 and later
1621 --with-boot-ldflags=FLAGS
1622 linker flags for stage2 and later
1623 --with-isl=PATH Specify prefix directory for the installed isl
1624 package. Equivalent to
1625 --with-isl-include=PATH/include plus
1626 --with-isl-lib=PATH/lib
1627 --with-isl-include=PATH Specify directory for installed isl include files
1628 --with-isl-lib=PATH Specify the directory for the installed isl library
1629 --with-target-bdw-gc=PATHLIST
1630 specify prefix directory for installed bdw-gc
1631 package. Equivalent to
1632 --with-target-bdw-gc-include=PATH/include plus
1633 --with-target-bdw-gc-lib=PATH/lib
1634 --with-target-bdw-gc-include=PATHLIST
1635 specify directories for installed bdw-gc include
1636 files
1637 --with-target-bdw-gc-lib=PATHLIST
1638 specify directories for installed bdw-gc library
1639 --with-gcc-major-version-only
1640 use only GCC major number in filesystem paths
1641 --with-build-sysroot=SYSROOT
1642 use sysroot as the system root during the build
1643 --with-debug-prefix-map='A=B C=D ...'
1644 map A to B, C to D ... in debug information
1645 --with-build-config='NAME NAME2...'
1646 use config/NAME.mk build configuration
1647 --with-build-time-tools=PATH
1648 use given path to find target tools during the build
1649
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 build_configargs
1661 additional configure arguments for build directories
1662 host_configargs
1663 additional configure arguments for host directories
1664 target_configargs
1665 additional configure arguments for target directories
1666 AR AR for the host
1667 AS AS for the host
1668 DLLTOOL DLLTOOL for the host
1669 DSYMUTIL DSYMUTIL for the host
1670 LD LD for the host
1671 LIPO LIPO for the host
1672 NM NM for the host
1673 RANLIB RANLIB for the host
1674 STRIP STRIP for the host
1675 WINDRES WINDRES for the host
1676 WINDMC WINDMC for the host
1677 OBJCOPY OBJCOPY for the host
1678 OBJDUMP OBJDUMP for the host
1679 OTOOL OTOOL for the host
1680 READELF READELF for the host
1681 CC_FOR_TARGET
1682 CC for the target
1683 CXX_FOR_TARGET
1684 CXX for the target
1685 GCC_FOR_TARGET
1686 GCC for the target
1687 GFORTRAN_FOR_TARGET
1688 GFORTRAN for the target
1689 GOC_FOR_TARGET
1690 GOC for the target
1691 GDC_FOR_TARGET
1692 GDC for the target
1693 GM2_FOR_TARGET
1694 GM2 for the target
1695 AR_FOR_TARGET
1696 AR for the target
1697 AS_FOR_TARGET
1698 AS for the target
1699 DLLTOOL_FOR_TARGET
1700 DLLTOOL for the target
1701 DSYMUTIL_FOR_TARGET
1702 DSYMUTIL for the target
1703 LD_FOR_TARGET
1704 LD for the target
1705 LIPO_FOR_TARGET
1706 LIPO for the target
1707 NM_FOR_TARGET
1708 NM for the target
1709 OBJCOPY_FOR_TARGET
1710 OBJCOPY for the target
1711 OBJDUMP_FOR_TARGET
1712 OBJDUMP for the target
1713 OTOOL_FOR_TARGET
1714 OTOOL for the target
1715 RANLIB_FOR_TARGET
1716 RANLIB for the target
1717 READELF_FOR_TARGET
1718 READELF for the target
1719 STRIP_FOR_TARGET
1720 STRIP for the target
1721 WINDRES_FOR_TARGET
1722 WINDRES for the target
1723 WINDMC_FOR_TARGET
1724 WINDMC for the target
1725
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1728
1729 Report bugs to the package provider.
1730 _ACEOF
1731 ac_status=$?
1732 fi
1733
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739 continue
1740 ac_builddir=.
1741
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *)
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751 esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1757
1758 case $srcdir in
1759 .) # We are building in place.
1760 ac_srcdir=.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1767 *) # Relative name.
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1773
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1777 echo &&
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1782 else
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784 fi || ac_status=$?
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1786 done
1787 fi
1788
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791 cat <<\_ACEOF
1792 configure
1793 generated by GNU Autoconf 2.69
1794
1795 Copyright (C) 2012 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799 exit
1800 fi
1801
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1805
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_compile
1843
1844 # ac_fn_cxx_try_compile LINENO
1845 # ----------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_compile ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880 } # ac_fn_cxx_try_compile
1881
1882 # ac_fn_cxx_try_link LINENO
1883 # -------------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_link ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1902 fi
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 test -x conftest$ac_exeext
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917 fi
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_cxx_try_link
1927
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_link ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963 fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972 } # ac_fn_c_try_link
1973 cat >config.log <<_ACEOF
1974 This file contains any messages produced by compilers while
1975 running configure, to aid debugging if configure makes a mistake.
1976
1977 It was created by $as_me, which was
1978 generated by GNU Autoconf 2.69. Invocation command line was
1979
1980 $ $0 $@
1981
1982 _ACEOF
1983 exec 5>>config.log
1984 {
1985 cat <<_ASUNAME
1986 ## --------- ##
1987 ## Platform. ##
1988 ## --------- ##
1989
1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998
1999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006
2007 _ASUNAME
2008
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 $as_echo "PATH: $as_dir"
2015 done
2016 IFS=$as_save_IFS
2017
2018 } >&5
2019
2020 cat >&5 <<_ACEOF
2021
2022
2023 ## ----------- ##
2024 ## Core tests. ##
2025 ## ----------- ##
2026
2027 _ACEOF
2028
2029
2030 # Keep a trace of the command line.
2031 # Strip out --no-create and --no-recursion so they do not pile up.
2032 # Strip out --silent because we don't want to record it for future runs.
2033 # Also quote any args containing shell meta-characters.
2034 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_configure_args=
2036 ac_configure_args0=
2037 ac_configure_args1=
2038 ac_must_keep_next=false
2039 for ac_pass in 1 2
2040 do
2041 for ac_arg
2042 do
2043 case $ac_arg in
2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046 | -silent | --silent | --silen | --sile | --sil)
2047 continue ;;
2048 *\'*)
2049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 esac
2051 case $ac_pass in
2052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053 2)
2054 as_fn_append ac_configure_args1 " '$ac_arg'"
2055 if test $ac_must_keep_next = true; then
2056 ac_must_keep_next=false # Got value, back to normal.
2057 else
2058 case $ac_arg in
2059 *=* | --config-cache | -C | -disable-* | --disable-* \
2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062 | -with-* | --with-* | -without-* | --without-* | --x)
2063 case "$ac_configure_args0 " in
2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 esac
2066 ;;
2067 -* ) ac_must_keep_next=true ;;
2068 esac
2069 fi
2070 as_fn_append ac_configure_args " '$ac_arg'"
2071 ;;
2072 esac
2073 done
2074 done
2075 { ac_configure_args0=; unset ac_configure_args0;}
2076 { ac_configure_args1=; unset ac_configure_args1;}
2077
2078 # When interrupted or exit'd, cleanup temporary files, and complete
2079 # config.log. We remove comments because anyway the quotes in there
2080 # would cause problems or look ugly.
2081 # WARNING: Use '\'' to represent an apostrophe within the trap.
2082 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083 trap 'exit_status=$?
2084 # Save into config.log some information that might help in debugging.
2085 {
2086 echo
2087
2088 $as_echo "## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##"
2091 echo
2092 # The following way of writing the cache mishandles newlines in values,
2093 (
2094 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in #(
2097 *${as_nl}*)
2098 case $ac_var in #(
2099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101 esac
2102 case $ac_var in #(
2103 _ | IFS | as_nl) ;; #(
2104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105 *) { eval $ac_var=; unset $ac_var;} ;;
2106 esac ;;
2107 esac
2108 done
2109 (set) 2>&1 |
2110 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111 *${as_nl}ac_space=\ *)
2112 sed -n \
2113 "s/'\''/'\''\\\\'\'''\''/g;
2114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115 ;; #(
2116 *)
2117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118 ;;
2119 esac |
2120 sort
2121 )
2122 echo
2123
2124 $as_echo "## ----------------- ##
2125 ## Output variables. ##
2126 ## ----------------- ##"
2127 echo
2128 for ac_var in $ac_subst_vars
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
2138 if test -n "$ac_subst_files"; then
2139 $as_echo "## ------------------- ##
2140 ## File substitutions. ##
2141 ## ------------------- ##"
2142 echo
2143 for ac_var in $ac_subst_files
2144 do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2152 fi
2153
2154 if test -s confdefs.h; then
2155 $as_echo "## ----------- ##
2156 ## confdefs.h. ##
2157 ## ----------- ##"
2158 echo
2159 cat confdefs.h
2160 echo
2161 fi
2162 test "$ac_signal" != 0 &&
2163 $as_echo "$as_me: caught signal $ac_signal"
2164 $as_echo "$as_me: exit $exit_status"
2165 } >&5
2166 rm -f core *.core core.conftest.* &&
2167 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168 exit $exit_status
2169 ' 0
2170 for ac_signal in 1 2 13 15; do
2171 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 done
2173 ac_signal=0
2174
2175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2176 rm -f -r conftest* confdefs.h
2177
2178 $as_echo "/* confdefs.h */" > confdefs.h
2179
2180 # Predefined preprocessor variables.
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_URL "$PACKAGE_URL"
2204 _ACEOF
2205
2206
2207 # Let the site file select an alternate cache file if it wants to.
2208 # Prefer an explicitly selected file to automatically selected ones.
2209 ac_site_file1=NONE
2210 ac_site_file2=NONE
2211 if test -n "$CONFIG_SITE"; then
2212 # We do not want a PATH search for config.site.
2213 case $CONFIG_SITE in #((
2214 -*) ac_site_file1=./$CONFIG_SITE;;
2215 */*) ac_site_file1=$CONFIG_SITE;;
2216 *) ac_site_file1=./$CONFIG_SITE;;
2217 esac
2218 elif test "x$prefix" != xNONE; then
2219 ac_site_file1=$prefix/share/config.site
2220 ac_site_file2=$prefix/etc/config.site
2221 else
2222 ac_site_file1=$ac_default_prefix/share/config.site
2223 ac_site_file2=$ac_default_prefix/etc/config.site
2224 fi
2225 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226 do
2227 test "x$ac_site_file" = xNONE && continue
2228 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231 sed 's/^/| /' "$ac_site_file" >&5
2232 . "$ac_site_file" \
2233 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 as_fn_error $? "failed to load site script $ac_site_file
2236 See \`config.log' for more details" "$LINENO" 5; }
2237 fi
2238 done
2239
2240 if test -r "$cache_file"; then
2241 # Some versions of bash will fail to source /dev/null (special files
2242 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2243 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 case $cache_file in
2247 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248 *) . "./$cache_file";;
2249 esac
2250 fi
2251 else
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 >$cache_file
2255 fi
2256
2257 # Check that the precious variables saved in the cache have kept the same
2258 # value.
2259 ac_cache_corrupted=false
2260 for ac_var in $ac_precious_vars; do
2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262 eval ac_new_set=\$ac_env_${ac_var}_set
2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264 eval ac_new_val=\$ac_env_${ac_var}_value
2265 case $ac_old_set,$ac_new_set in
2266 set,)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,set)
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2274 ,);;
2275 *)
2276 if test "x$ac_old_val" != "x$ac_new_val"; then
2277 # differences in whitespace do not lead to failure.
2278 ac_old_val_w=`echo x $ac_old_val`
2279 ac_new_val_w=`echo x $ac_new_val`
2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283 ac_cache_corrupted=:
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287 eval $ac_var=\$ac_old_val
2288 fi
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2290 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2292 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 fi;;
2294 esac
2295 # Pass precious variables to config.status.
2296 if test "$ac_new_set" = set; then
2297 case $ac_new_val in
2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 *) ac_arg=$ac_var=$ac_new_val ;;
2300 esac
2301 case " $ac_configure_args " in
2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 esac
2305 fi
2306 done
2307 if $ac_cache_corrupted; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 fi
2314 ## -------------------- ##
2315 ## Main body of script. ##
2316 ## -------------------- ##
2317
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325
2326
2327
2328
2329
2330
2331 progname=$0
2332 # if PWD already has a value, it is probably wrong.
2333 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2334
2335 # Export original configure arguments for use by sub-configures.
2336 # Quote arguments with shell meta charatcers.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS=
2338 set -- "$progname" "$@"
2339 for ac_arg
2340 do
2341 case "$ac_arg" in
2342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2343 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2344 # if the argument is of the form -foo=baz, quote the baz part only
2345 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2346 *) ;;
2347 esac
2348 # Add the quoted argument to the list.
2349 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2350 done
2351 if test "$silent" = yes; then
2352 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2353 fi
2354 # Remove the initial space we just introduced and, as these will be
2355 # expanded by make, quote '$'.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2357
2358
2359 # Find the build, host, and target systems.
2360 ac_aux_dir=
2361 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2362 if test -f "$ac_dir/install-sh"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/install-sh -c"
2365 break
2366 elif test -f "$ac_dir/install.sh"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/install.sh -c"
2369 break
2370 elif test -f "$ac_dir/shtool"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/shtool install -c"
2373 break
2374 fi
2375 done
2376 if test -z "$ac_aux_dir"; then
2377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2378 fi
2379
2380 # These three variables are undocumented and unsupported,
2381 # and are intended to be withdrawn in a future Autoconf release.
2382 # They can cause serious problems if a builder's source tree is in a directory
2383 # whose full name contains unusual characters.
2384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2387
2388
2389 # Make sure we can run config.sub.
2390 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2391 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2394 $as_echo_n "checking build system type... " >&6; }
2395 if ${ac_cv_build+:} false; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 ac_build_alias=$build_alias
2399 test "x$ac_build_alias" = x &&
2400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2401 test "x$ac_build_alias" = x &&
2402 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2403 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2405
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2408 $as_echo "$ac_cv_build" >&6; }
2409 case $ac_cv_build in
2410 *-*-*) ;;
2411 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2412 esac
2413 build=$ac_cv_build
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_build
2416 shift
2417 build_cpu=$1
2418 build_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 build_os=$*
2423 IFS=$ac_save_IFS
2424 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 case ${build_alias} in
2428 "") build_noncanonical=${build} ;;
2429 *) build_noncanonical=${build_alias} ;;
2430 esac
2431
2432
2433
2434 case ${host_alias} in
2435 "") host_noncanonical=${build_noncanonical} ;;
2436 *) host_noncanonical=${host_alias} ;;
2437 esac
2438
2439
2440
2441 case ${target_alias} in
2442 "") target_noncanonical=${host_noncanonical} ;;
2443 *) target_noncanonical=${target_alias} ;;
2444 esac
2445
2446
2447
2448
2449 test "$host_noncanonical" = "$target_noncanonical" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_transform_name=s,y,y,
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455 $as_echo_n "checking host system type... " >&6; }
2456 if ${ac_cv_host+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2461 else
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2464 fi
2465
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468 $as_echo "$ac_cv_host" >&6; }
2469 case $ac_cv_host in
2470 *-*-*) ;;
2471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2472 esac
2473 host=$ac_cv_host
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_host
2476 shift
2477 host_cpu=$1
2478 host_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 host_os=$*
2483 IFS=$ac_save_IFS
2484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2488 $as_echo_n "checking target system type... " >&6; }
2489 if ${ac_cv_target+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test "x$target_alias" = x; then
2493 ac_cv_target=$ac_cv_host
2494 else
2495 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2497 fi
2498
2499 fi
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2501 $as_echo "$ac_cv_target" >&6; }
2502 case $ac_cv_target in
2503 *-*-*) ;;
2504 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2505 esac
2506 target=$ac_cv_target
2507 ac_save_IFS=$IFS; IFS='-'
2508 set x $ac_cv_target
2509 shift
2510 target_cpu=$1
2511 target_vendor=$2
2512 shift; shift
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2515 target_os=$*
2516 IFS=$ac_save_IFS
2517 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2518
2519
2520 # The aliases save the names the user supplied, while $host etc.
2521 # will get canonicalized.
2522 test -n "$target_alias" &&
2523 test "$program_prefix$program_suffix$program_transform_name" = \
2524 NONENONEs,x,x, &&
2525 program_prefix=${target_alias}-
2526
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2536
2537
2538
2539 # Get 'install' or 'install-sh' and its variants.
2540 # Find a good install program. We prefer a C program (faster),
2541 # so one script is as good as another. But avoid the broken or
2542 # incompatible versions:
2543 # SysV /etc/install, /usr/sbin/install
2544 # SunOS /usr/etc/install
2545 # IRIX /sbin/install
2546 # AIX /bin/install
2547 # AmigaOS /C/install, which installs bootblocks on floppy discs
2548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2551 # OS/2's system install, which has a completely different semantic
2552 # ./install, which can be erroneously created by make from ./install.sh.
2553 # Reject install programs that cannot install multiple files.
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2555 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2556 if test -z "$INSTALL"; then
2557 if ${ac_cv_path_install+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 # Account for people who put trailing slashes in PATH elements.
2566 case $as_dir/ in #((
2567 ./ | .// | /[cC]/* | \
2568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2569 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2570 /usr/ucb/* ) ;;
2571 *)
2572 # OSF1 and SCO ODT 3.0 have their own names for install.
2573 # Don't use installbsd from OSF since it installs stuff as root
2574 # by default.
2575 for ac_prog in ginstall scoinst install; do
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2578 if test $ac_prog = install &&
2579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580 # AIX install. It has an incompatible calling convention.
2581 :
2582 elif test $ac_prog = install &&
2583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2584 # program-specific install script used by HP pwplus--don't use.
2585 :
2586 else
2587 rm -rf conftest.one conftest.two conftest.dir
2588 echo one > conftest.one
2589 echo two > conftest.two
2590 mkdir conftest.dir
2591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2592 test -s conftest.one && test -s conftest.two &&
2593 test -s conftest.dir/conftest.one &&
2594 test -s conftest.dir/conftest.two
2595 then
2596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2597 break 3
2598 fi
2599 fi
2600 fi
2601 done
2602 done
2603 ;;
2604 esac
2605
2606 done
2607 IFS=$as_save_IFS
2608
2609 rm -rf conftest.one conftest.two conftest.dir
2610
2611 fi
2612 if test "${ac_cv_path_install+set}" = set; then
2613 INSTALL=$ac_cv_path_install
2614 else
2615 # As a last resort, use the slow shell script. Don't cache a
2616 # value for INSTALL within a source directory, because that will
2617 # break other packages using the cache if that directory is
2618 # removed, or if the value is a relative name.
2619 INSTALL=$ac_install_sh
2620 fi
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2623 $as_echo "$INSTALL" >&6; }
2624
2625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2626 # It thinks the first close brace ends the variable substitution.
2627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2628
2629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2630
2631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2632
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2634 $as_echo_n "checking whether ln works... " >&6; }
2635 if ${acx_cv_prog_LN+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 rm -f conftestdata_t
2639 echo >conftestdata_f
2640 if ln conftestdata_f conftestdata_t 2>/dev/null
2641 then
2642 acx_cv_prog_LN=ln
2643 else
2644 acx_cv_prog_LN=no
2645 fi
2646 rm -f conftestdata_f conftestdata_t
2647
2648 fi
2649 if test $acx_cv_prog_LN = no; then
2650 LN="cp"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2652 $as_echo "no, using $LN" >&6; }
2653 else
2654 LN="$acx_cv_prog_LN"
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656 $as_echo "yes" >&6; }
2657 fi
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2660 $as_echo_n "checking whether ln -s works... " >&6; }
2661 LN_S=$as_ln_s
2662 if test "$LN_S" = "ln -s"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2667 $as_echo "no, using $LN_S" >&6; }
2668 fi
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2672 if ${ac_cv_path_SED+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2676 for ac_i in 1 2 3 4 5 6 7; do
2677 ac_script="$ac_script$as_nl$ac_script"
2678 done
2679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2680 { ac_script=; unset ac_script;}
2681 if test -z "$SED"; then
2682 ac_path_SED_found=false
2683 # Loop through the user's path and test for each of PROGNAME-LIST
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_prog in sed gsed; do
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2692 as_fn_executable_p "$ac_path_SED" || continue
2693 # Check for GNU ac_path_SED and select it if it is found.
2694 # Check for GNU $ac_path_SED
2695 case `"$ac_path_SED" --version 2>&1` in
2696 *GNU*)
2697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2698 *)
2699 ac_count=0
2700 $as_echo_n 0123456789 >"conftest.in"
2701 while :
2702 do
2703 cat "conftest.in" "conftest.in" >"conftest.tmp"
2704 mv "conftest.tmp" "conftest.in"
2705 cp "conftest.in" "conftest.nl"
2706 $as_echo '' >> "conftest.nl"
2707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2709 as_fn_arith $ac_count + 1 && ac_count=$as_val
2710 if test $ac_count -gt ${ac_path_SED_max-0}; then
2711 # Best one so far, save it but keep looking for a better one
2712 ac_cv_path_SED="$ac_path_SED"
2713 ac_path_SED_max=$ac_count
2714 fi
2715 # 10*(2^10) chars as input seems more than enough
2716 test $ac_count -gt 10 && break
2717 done
2718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2719 esac
2720
2721 $ac_path_SED_found && break 3
2722 done
2723 done
2724 done
2725 IFS=$as_save_IFS
2726 if test -z "$ac_cv_path_SED"; then
2727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2728 fi
2729 else
2730 ac_cv_path_SED=$SED
2731 fi
2732
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2735 $as_echo "$ac_cv_path_SED" >&6; }
2736 SED="$ac_cv_path_SED"
2737 rm -f conftest.sed
2738
2739 for ac_prog in gawk mawk nawk awk
2740 do
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if ${ac_cv_prog_AWK+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test -n "$AWK"; then
2749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_AWK="$ac_prog"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 AWK=$ac_cv_prog_AWK
2769 if test -n "$AWK"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2771 $as_echo "$AWK" >&6; }
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778 test -n "$AWK" && break
2779 done
2780
2781
2782 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2783
2784 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2785 # a relative path.
2786 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2787 INSTALL="${srcpwd}/install-sh -c"
2788 fi
2789
2790 # Set srcdir to "." if that's what it is.
2791 # This is important for multilib support.
2792 pwd=`${PWDCMD-pwd}`
2793 if test "${pwd}" = "${srcpwd}" ; then
2794 srcdir=.
2795 fi
2796
2797 topsrcdir=$srcpwd
2798
2799 extra_host_args=
2800
2801 ### To add a new directory to the tree, first choose whether it is a target
2802 ### or a host dependent tool. Then put it into the appropriate list
2803 ### (library or tools, host or target), doing a dependency sort.
2804
2805 # Subdirs will be configured in the order listed in build_configdirs,
2806 # configdirs, or target_configdirs; see the serialization section below.
2807
2808 # Dependency sorting is only needed when *configuration* must be done in
2809 # a particular order. In all cases a dependency should be specified in
2810 # the Makefile, whether or not it's implicitly specified here.
2811
2812 # Double entries in build_configdirs, configdirs, or target_configdirs may
2813 # cause circular dependencies and break everything horribly.
2814
2815 # these library is used by various programs built for the build
2816 # environment
2817 #
2818 build_libs="build-libiberty build-libcpp"
2819
2820 # these tools are built for the build environment
2821 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2822
2823 # these libraries are used by various programs built for the host environment
2824 #f
2825 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2826
2827 # these tools are built for the host environment
2828 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2829 # know that we are building the simulator.
2830 # binutils, gas and ld appear in that order because it makes sense to run
2831 # "make check" in that particular order.
2832 # If --enable-gold is used, "gold" may replace "ld".
2833 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2834
2835 # these libraries are built for the target environment, and are built after
2836 # the host libraries and the host tools (which may be a cross compiler)
2837 # Note that libiberty is not a target library.
2838 target_libraries="target-libgcc \
2839 target-libbacktrace \
2840 target-libgloss \
2841 target-newlib \
2842 target-libgomp \
2843 target-libatomic \
2844 target-libitm \
2845 target-libstdc++-v3 \
2846 target-libsanitizer \
2847 target-libvtv \
2848 target-libssp \
2849 target-libquadmath \
2850 target-libgfortran \
2851 target-libffi \
2852 target-libobjc \
2853 target-libada \
2854 target-libgm2 \
2855 target-libgo \
2856 target-libphobos \
2857 target-zlib"
2858
2859 # these tools are built using the target libraries, and are intended to
2860 # run only in the target environment
2861 #
2862 # note: any program that *uses* libraries that are in the "target_libraries"
2863 # list belongs in this list.
2864 #
2865 target_tools="target-rda"
2866
2867 ################################################################################
2868
2869 ## All tools belong in one of the four categories, and are assigned above
2870 ## We assign ${configdirs} this way to remove all embedded newlines. This
2871 ## is important because configure will choke if they ever get through.
2872 ## ${configdirs} is directories we build using the host tools.
2873 ## ${target_configdirs} is directories we build using the target tools.
2874 configdirs=`echo ${host_libs} ${host_tools}`
2875 target_configdirs=`echo ${target_libraries} ${target_tools}`
2876 build_configdirs=`echo ${build_libs} ${build_tools}`
2877
2878
2879
2880 ################################################################################
2881
2882 srcname="gnu development package"
2883
2884 # This gets set non-empty for some net releases of packages.
2885 appdirs=""
2886
2887 # Define is_cross_compiler to save on calls to 'test'.
2888 is_cross_compiler=
2889 if test x"${host}" = x"${target}" ; then
2890 is_cross_compiler=no
2891 else
2892 is_cross_compiler=yes
2893 fi
2894
2895 # Find the build and target subdir names.
2896
2897 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2898 # have matching libraries, they should use host libraries: Makefile.tpl
2899 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2900 # However, they still use the build modules, because the corresponding
2901 # host modules (e.g. bison) are only built for the host when bootstrap
2902 # finishes. So:
2903 # - build_subdir is where we find build modules, and never changes.
2904 # - build_libsubdir is where we find build libraries, and can be overridden.
2905
2906 # Prefix 'build-' so this never conflicts with target_subdir.
2907 build_subdir="build-${build_noncanonical}"
2908
2909 # Check whether --with-build-libsubdir was given.
2910 if test "${with_build_libsubdir+set}" = set; then :
2911 withval=$with_build_libsubdir; build_libsubdir="$withval"
2912 else
2913 build_libsubdir="$build_subdir"
2914 fi
2915
2916 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2917 if ( test $srcdir = . && test -d gcc ) \
2918 || test -d $srcdir/../host-${host_noncanonical}; then
2919 host_subdir="host-${host_noncanonical}"
2920 else
2921 host_subdir=.
2922 fi
2923 # No prefix.
2924 target_subdir=${target_noncanonical}
2925
2926 # Be sure to cover against remnants of an in-tree build.
2927 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2928 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2929 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2930 fi
2931
2932 # Skipdirs are removed silently.
2933 skipdirs=
2934 # Noconfigdirs are removed loudly.
2935 noconfigdirs=""
2936
2937 use_gnu_ld=
2938 # Make sure we don't let GNU ld be added if we didn't want it.
2939 if test x$with_gnu_ld = xno ; then
2940 use_gnu_ld=no
2941 noconfigdirs="$noconfigdirs ld gold"
2942 fi
2943
2944 use_gnu_as=
2945 # Make sure we don't let GNU as be added if we didn't want it.
2946 if test x$with_gnu_as = xno ; then
2947 use_gnu_as=no
2948 noconfigdirs="$noconfigdirs gas"
2949 fi
2950
2951 use_included_zlib=
2952
2953 # Check whether --with-system-zlib was given.
2954 if test "${with_system_zlib+set}" = set; then :
2955 withval=$with_system_zlib;
2956 fi
2957
2958 # Make sure we don't let ZLIB be added if we didn't want it.
2959 if test x$with_system_zlib = xyes ; then
2960 use_included_zlib=no
2961 noconfigdirs="$noconfigdirs zlib"
2962 fi
2963
2964 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2965 # is provided.
2966 if test x$with_system_readline = xyes ; then
2967 noconfigdirs="$noconfigdirs readline"
2968 fi
2969
2970 # some tools are so dependent upon X11 that if we're not building with X,
2971 # it's not even worth trying to configure, much less build, that tool.
2972
2973 case ${with_x} in
2974 yes | "") ;; # the default value for this tree is that X11 is available
2975 no)
2976 skipdirs="${skipdirs} tk itcl libgui"
2977 # We won't be able to build gdbtk without X.
2978 enable_gdbtk=no
2979 ;;
2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2981 esac
2982
2983 # Some are only suitable for cross toolchains.
2984 # Remove these if host=target.
2985 cross_only="target-libgloss target-newlib target-opcodes"
2986
2987 case $is_cross_compiler in
2988 no) skipdirs="${skipdirs} ${cross_only}" ;;
2989 esac
2990
2991 # If both --with-headers and --with-libs are specified, default to
2992 # --without-newlib.
2993 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2994 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2995 if test x"${with_newlib}" = x ; then
2996 with_newlib=no
2997 fi
2998 fi
2999
3000 # Recognize --with-newlib/--without-newlib.
3001 case ${with_newlib} in
3002 no) skipdirs="${skipdirs} target-newlib" ;;
3003 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3004 esac
3005
3006 # Check whether --enable-as-accelerator-for was given.
3007 if test "${enable_as_accelerator_for+set}" = set; then :
3008 enableval=$enable_as_accelerator_for;
3009 fi
3010
3011
3012 # Check whether --enable-offload-targets was given.
3013 if test "${enable_offload_targets+set}" = set; then :
3014 enableval=$enable_offload_targets;
3015 if test x"$enable_offload_targets" = x; then
3016 as_fn_error $? "no offload targets specified" "$LINENO" 5
3017 fi
3018
3019 else
3020 enable_offload_targets=
3021 fi
3022
3023
3024 # Check whether --enable-offload-defaulted was given.
3025 if test "${enable_offload_defaulted+set}" = set; then :
3026 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3027 else
3028 enable_offload_defaulted=
3029 fi
3030
3031
3032 # Handle --enable-gold, --enable-ld.
3033 # --disable-gold [--enable-ld]
3034 # Build only ld. Default option.
3035 # --enable-gold [--enable-ld]
3036 # Build both gold and ld. Install gold as "ld.gold", install ld
3037 # as "ld.bfd" and "ld".
3038 # --enable-gold=default [--enable-ld]
3039 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3040 # install ld as "ld.bfd".
3041 # --enable-gold[=default] --disable-ld
3042 # Build only gold, which is then installed as both "ld.gold" and "ld".
3043 # --enable-gold --enable-ld=default
3044 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3045 # and ld.bfd).
3046 # In other words, ld is default
3047 # --enable-gold=default --enable-ld=default
3048 # Error.
3049
3050 default_ld=
3051 # Check whether --enable-gold was given.
3052 if test "${enable_gold+set}" = set; then :
3053 enableval=$enable_gold; ENABLE_GOLD=$enableval
3054 else
3055 ENABLE_GOLD=no
3056 fi
3057
3058 case "${ENABLE_GOLD}" in
3059 yes|default)
3060 # Check for ELF target.
3061 is_elf=no
3062 case "${target}" in
3063 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3064 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3065 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3066 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3067 case "${target}" in
3068 *-*-linux*aout* | *-*-linux*oldld*)
3069 ;;
3070 *)
3071 is_elf=yes
3072 ;;
3073 esac
3074 esac
3075
3076 if test "$is_elf" = "yes"; then
3077 # Check for target supported by gold.
3078 case "${target}" in
3079 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3080 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3081 configdirs="$configdirs gold"
3082 if test x${ENABLE_GOLD} = xdefault; then
3083 default_ld=gold
3084 fi
3085 ENABLE_GOLD=yes
3086 ;;
3087 esac
3088 fi
3089 ;;
3090 no)
3091 ;;
3092 *)
3093 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3094 ;;
3095 esac
3096
3097 # Check whether --enable-ld was given.
3098 if test "${enable_ld+set}" = set; then :
3099 enableval=$enable_ld; ENABLE_LD=$enableval
3100 else
3101 ENABLE_LD=yes
3102 fi
3103
3104
3105 case "${ENABLE_LD}" in
3106 default)
3107 if test x${default_ld} != x; then
3108 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3109 fi
3110 ;;
3111 yes)
3112 ;;
3113 no)
3114 if test x${ENABLE_GOLD} != xyes; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3116 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3117 fi
3118 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3119 ;;
3120 *)
3121 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3122 ;;
3123 esac
3124
3125 # PR gas/19109
3126 # Decide the default method for compressing debug sections.
3127 # Provide a configure time option to override our default.
3128 # Check whether --enable-compressed_debug_sections was given.
3129 if test "${enable_compressed_debug_sections+set}" = set; then :
3130 enableval=$enable_compressed_debug_sections;
3131 if test x"$enable_compressed_debug_sections" = xyes; then
3132 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3133 fi
3134
3135 else
3136 enable_compressed_debug_sections=
3137 fi
3138
3139
3140 # Configure extra directories which are host specific
3141
3142 case "${host}" in
3143 *-cygwin*)
3144 configdirs="$configdirs libtermcap" ;;
3145 esac
3146
3147 # A target can indicate whether a language isn't supported for some reason.
3148 # Only spaces may be used in this macro; not newlines or tabs.
3149 unsupported_languages=
3150
3151 # Remove more programs from consideration, based on the host or
3152 # target this usually means that a port of the program doesn't
3153 # exist yet.
3154
3155 case "${host}" in
3156 i[3456789]86-*-msdosdjgpp*)
3157 noconfigdirs="$noconfigdirs tcl tk itcl"
3158 ;;
3159 esac
3160
3161
3162 # Check whether --enable-libquadmath was given.
3163 if test "${enable_libquadmath+set}" = set; then :
3164 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3165 else
3166 ENABLE_LIBQUADMATH=yes
3167 fi
3168
3169 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3170 noconfigdirs="$noconfigdirs target-libquadmath"
3171 fi
3172
3173
3174 # Check whether --enable-libquadmath-support was given.
3175 if test "${enable_libquadmath_support+set}" = set; then :
3176 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3177 else
3178 ENABLE_LIBQUADMATH_SUPPORT=yes
3179 fi
3180
3181 enable_libquadmath_support=
3182 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3183 enable_libquadmath_support=no
3184 fi
3185
3186
3187 # Check whether --enable-libada was given.
3188 if test "${enable_libada+set}" = set; then :
3189 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3190 else
3191 ENABLE_LIBADA=yes
3192 fi
3193
3194 if test "${ENABLE_LIBADA}" != "yes" ; then
3195 noconfigdirs="$noconfigdirs gnattools"
3196 fi
3197
3198 # Check whether --enable-libgm2 was given.
3199 if test "${enable_libgm2+set}" = set; then :
3200 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3201 else
3202 ENABLE_LIBGM2=no
3203 fi
3204
3205 if test "${ENABLE_LIBGM2}" != "yes" ; then
3206 noconfigdirs="$noconfigdirs gm2tools"
3207 fi
3208
3209 # Check whether --enable-libssp was given.
3210 if test "${enable_libssp+set}" = set; then :
3211 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3212 else
3213 ENABLE_LIBSSP=yes
3214 fi
3215
3216
3217 # Check whether --enable-libstdcxx was given.
3218 if test "${enable_libstdcxx+set}" = set; then :
3219 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3220 else
3221 ENABLE_LIBSTDCXX=default
3222 fi
3223
3224 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3225 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3226 fi
3227
3228 # Enable libgomp by default on hosted POSIX systems, and a few others.
3229 if test x$enable_libgomp = x ; then
3230 case "${target}" in
3231 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3232 ;;
3233 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3234 ;;
3235 *-*-solaris2* | *-*-hpux11*)
3236 ;;
3237 *-*-darwin* | *-*-aix*)
3238 ;;
3239 nvptx*-*-* | amdgcn*-*-*)
3240 ;;
3241 *)
3242 noconfigdirs="$noconfigdirs target-libgomp"
3243 ;;
3244 esac
3245 fi
3246
3247 # Disable libatomic on unsupported systems.
3248 if test -d ${srcdir}/libatomic; then
3249 if test x$enable_libatomic = x; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3251 $as_echo_n "checking for libatomic support... " >&6; }
3252 if (srcdir=${srcdir}/libatomic; \
3253 . ${srcdir}/configure.tgt; \
3254 test -n "$UNSUPPORTED")
3255 then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 noconfigdirs="$noconfigdirs target-libatomic"
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 fi
3263 fi
3264 fi
3265
3266 # Disable libitm on unsupported systems.
3267 if test -d ${srcdir}/libitm; then
3268 if test x$enable_libitm = x; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3270 $as_echo_n "checking for libitm support... " >&6; }
3271 if (srcdir=${srcdir}/libitm; \
3272 . ${srcdir}/configure.tgt; \
3273 test -n "$UNSUPPORTED")
3274 then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 noconfigdirs="$noconfigdirs target-libitm"
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281 fi
3282 fi
3283 fi
3284
3285 # Disable libsanitizer on unsupported systems.
3286 if test -d ${srcdir}/libsanitizer; then
3287 if test x$enable_libsanitizer = x; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3289 $as_echo_n "checking for libsanitizer support... " >&6; }
3290 if (srcdir=${srcdir}/libsanitizer; \
3291 . ${srcdir}/configure.tgt; \
3292 test -n "$UNSUPPORTED")
3293 then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 noconfigdirs="$noconfigdirs target-libsanitizer"
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300 fi
3301 fi
3302 fi
3303
3304 # Disable libvtv on unsupported systems.
3305 if test -d ${srcdir}/libvtv; then
3306 if test x$enable_libvtv = x; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3308 $as_echo_n "checking for libvtv support... " >&6; }
3309 if (srcdir=${srcdir}/libvtv; \
3310 . ${srcdir}/configure.tgt; \
3311 test "$VTV_SUPPORTED" != "yes")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libvtv"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319 fi
3320 fi
3321 fi
3322
3323 # Disable libquadmath for some systems.
3324 case "${target}" in
3325 avr-*-*)
3326 noconfigdirs="$noconfigdirs target-libquadmath"
3327 ;;
3328 # libquadmath is unused on AIX and libquadmath build process use of
3329 # LD_LIBRARY_PATH can break AIX bootstrap.
3330 powerpc-*-aix* | rs6000-*-aix*)
3331 noconfigdirs="$noconfigdirs target-libquadmath"
3332 ;;
3333 esac
3334
3335 # Disable libssp for some systems.
3336 case "${target}" in
3337 avr-*-*)
3338 # No hosted I/O support.
3339 noconfigdirs="$noconfigdirs target-libssp"
3340 ;;
3341 bpf-*-*)
3342 noconfigdirs="$noconfigdirs target-libssp"
3343 ;;
3344 powerpc-*-aix* | rs6000-*-aix*)
3345 noconfigdirs="$noconfigdirs target-libssp"
3346 ;;
3347 pru-*-*)
3348 # No hosted I/O support.
3349 noconfigdirs="$noconfigdirs target-libssp"
3350 ;;
3351 rl78-*-*)
3352 # libssp uses a misaligned load to trigger a fault, but the RL78
3353 # doesn't fault for those - instead, it gives a build-time error
3354 # for explicit misaligned loads.
3355 noconfigdirs="$noconfigdirs target-libssp"
3356 ;;
3357 visium-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 esac
3362
3363 # Disable libstdc++-v3 for some systems.
3364 # Allow user to override this if they pass --enable-libstdcxx
3365 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3366 case "${target}" in
3367 *-*-vxworks*)
3368 # VxWorks uses the Dinkumware C++ library.
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 ;;
3371 amdgcn*-*-*)
3372 # Not ported/fails to build when using newlib.
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 arm*-wince-pe*)
3376 # the C++ libraries don't build on top of CE's C libraries
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381 ;;
3382 bpf-*-*)
3383 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 ;;
3385 ft32-*-*)
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 esac
3389 fi
3390
3391 # Disable C++ on systems where it is known to not work.
3392 # For testing, you can override this with --enable-languages=c++.
3393 case ,${enable_languages}, in
3394 *,c++,*)
3395 ;;
3396 *)
3397 case "${target}" in
3398 bpf-*-*)
3399 unsupported_languages="$unsupported_languages c++"
3400 ;;
3401 esac
3402 ;;
3403 esac
3404
3405 # Disable Objc on systems where it is known to not work.
3406 # For testing, you can override this with --enable-languages=objc.
3407 case ,${enable_languages}, in
3408 *,objc,*)
3409 ;;
3410 *)
3411 case "${target}" in
3412 bpf-*-*)
3413 unsupported_languages="$unsupported_languages objc"
3414 ;;
3415 esac
3416 ;;
3417 esac
3418
3419 # Disable D on systems where it is known to not work.
3420 # For testing, you can override this with --enable-languages=d.
3421 case ,${enable_languages}, in
3422 *,d,*)
3423 ;;
3424 *)
3425 case "${target}" in
3426 bpf-*-*)
3427 unsupported_languages="$unsupported_languages d"
3428 ;;
3429 esac
3430 ;;
3431 esac
3432
3433 # Disable libphobos on unsupported systems.
3434 # For testing, you can override this with --enable-libphobos.
3435 if test -d ${srcdir}/libphobos; then
3436 if test x$enable_libphobos = x; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3438 $as_echo_n "checking for libphobos support... " >&6; }
3439 if (srcdir=${srcdir}/libphobos; \
3440 . ${srcdir}/configure.tgt; \
3441 test "$LIBPHOBOS_SUPPORTED" != "yes")
3442 then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 noconfigdirs="$noconfigdirs target-libphobos"
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449 fi
3450 fi
3451 fi
3452
3453 # Disable Fortran for some systems.
3454 case "${target}" in
3455 mmix-*-*)
3456 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3457 unsupported_languages="$unsupported_languages fortran"
3458 ;;
3459 bpf-*-*)
3460 unsupported_languages="$unsupported_languages fortran"
3461 ;;
3462 esac
3463
3464 # Disable libffi for some systems.
3465 case "${target}" in
3466 powerpc-*-darwin*)
3467 ;;
3468 i[3456789]86-*-darwin*)
3469 ;;
3470 x86_64-*-darwin[912]*)
3471 ;;
3472 *-*-darwin*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 *-*-netware*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 *-*-phoenix*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
3481 *-*-rtems*)
3482 noconfigdirs="$noconfigdirs target-libffi"
3483 ;;
3484 *-*-tpf*)
3485 noconfigdirs="$noconfigdirs target-libffi"
3486 ;;
3487 *-*-uclinux*)
3488 noconfigdirs="$noconfigdirs target-libffi"
3489 ;;
3490 *-*-vxworks*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 aarch64*-*-freebsd*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 alpha*-*-*vms*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 arm*-*-freebsd*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 arm-wince-pe)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 arm*-*-symbianelf*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 bpf-*-*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 cris-*-* | crisv32-*-*)
3512 case "${target}" in
3513 *-*-linux*)
3514 ;;
3515 *) # See PR46792 regarding target-libffi.
3516 noconfigdirs="$noconfigdirs target-libffi";;
3517 esac
3518 ;;
3519 hppa*64*-*-hpux*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 ia64*-*-*vms*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 i[3456789]86-w64-mingw*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 i[3456789]86-*-mingw*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 x86_64-*-mingw*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 mmix-*-*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 powerpc-*-aix*)
3538 ;;
3539 rs6000-*-aix*)
3540 ;;
3541 ft32-*-*)
3542 noconfigdirs="$noconfigdirs target-libffi"
3543 ;;
3544 *-*-lynxos*)
3545 noconfigdirs="$noconfigdirs target-libffi"
3546 ;;
3547 esac
3548
3549 # Disable the go frontend on systems where it is known to not work. Please keep
3550 # this in sync with contrib/config-list.mk.
3551 case "${target}" in
3552 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3553 unsupported_languages="$unsupported_languages go"
3554 ;;
3555 esac
3556
3557 # Only allow gdbserver on some systems.
3558 if test -d ${srcdir}/gdbserver; then
3559 if test x$enable_gdbserver = x; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3561 $as_echo_n "checking for gdbserver support... " >&6; }
3562 if (srcdir=${srcdir}/gdbserver; \
3563 . ${srcdir}/configure.srv; \
3564 test -n "$UNSUPPORTED")
3565 then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 noconfigdirs="$noconfigdirs gdbserver"
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 fi
3573 fi
3574 fi
3575
3576 # Disable libgo for some systems where it is known to not work.
3577 # For testing, you can easily override this with --enable-libgo.
3578 if test x$enable_libgo = x; then
3579 case "${target}" in
3580 *-*-darwin*)
3581 # PR 46986
3582 noconfigdirs="$noconfigdirs target-libgo"
3583 ;;
3584 *-*-cygwin* | *-*-mingw*)
3585 noconfigdirs="$noconfigdirs target-libgo"
3586 ;;
3587 bpf-*-*)
3588 noconfigdirs="$noconfigdirs target-libgo"
3589 ;;
3590 esac
3591 fi
3592
3593 # Default libgloss CPU subdirectory.
3594 libgloss_dir="$target_cpu"
3595
3596 case "${target}" in
3597 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3598 libgloss_dir=wince
3599 ;;
3600 aarch64*-*-* )
3601 libgloss_dir=aarch64
3602 ;;
3603 arm*-*-*)
3604 libgloss_dir=arm
3605 ;;
3606 cris-*-* | crisv32-*-*)
3607 libgloss_dir=cris
3608 ;;
3609 hppa*-*-*)
3610 libgloss_dir=pa
3611 ;;
3612 i[3456789]86-*-*)
3613 libgloss_dir=i386
3614 ;;
3615 loongarch*-*-*)
3616 libgloss_dir=loongarch
3617 ;;
3618 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3619 libgloss_dir=m68hc11
3620 ;;
3621 m68*-*-* | fido-*-*)
3622 libgloss_dir=m68k
3623 ;;
3624 mips*-*-*)
3625 libgloss_dir=mips
3626 ;;
3627 powerpc*-*-*)
3628 libgloss_dir=rs6000
3629 ;;
3630 pru-*-*)
3631 libgloss_dir=pru
3632 ;;
3633 sparc*-*-*)
3634 libgloss_dir=sparc
3635 ;;
3636 esac
3637
3638 # Disable newlib and libgloss for various target OSes.
3639 case "${target}" in
3640 alpha*-dec-osf*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 i[3456789]86-*-linux*)
3644 # This section makes it possible to build newlib natively on linux.
3645 # If we are using a cross compiler then don't configure newlib.
3646 if test x${is_cross_compiler} != xno ; then
3647 noconfigdirs="$noconfigdirs target-newlib"
3648 fi
3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 # If we are not using a cross compiler, do configure newlib.
3651 # Note however, that newlib will only be configured in this situation
3652 # if the --with-newlib option has been given, because otherwise
3653 # 'target-newlib' will appear in skipdirs.
3654 ;;
3655 i[3456789]86-*-rdos*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 sparc-*-sunos4*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 bpf-*-*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-aix*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-beos*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-chorusos)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-dragonfly*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-freebsd*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 *-*-lynxos*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 *-*-mingw*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-netbsd*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 *-*-netware*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
3697 *-*-tpf*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-uclinux*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-vxworks*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 esac
3707
3708 case "${target}" in
3709 *-*-chorusos)
3710 ;;
3711 aarch64-*-darwin*)
3712 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3713 noconfigdirs="$noconfigdirs sim target-rda"
3714 ;;
3715 amdgcn*-*-*)
3716 ;;
3717 arm-*-darwin*)
3718 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3720 ;;
3721 powerpc-*-darwin*)
3722 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
3724 ;;
3725 i[3456789]86-*-darwin*)
3726 noconfigdirs="$noconfigdirs ld gprof"
3727 noconfigdirs="$noconfigdirs sim target-rda"
3728 ;;
3729 x86_64-*-darwin[912]*)
3730 noconfigdirs="$noconfigdirs ld gas gprof"
3731 noconfigdirs="$noconfigdirs sim target-rda"
3732 ;;
3733 *-*-darwin*)
3734 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3735 noconfigdirs="$noconfigdirs sim target-rda"
3736 ;;
3737 *-*-dragonfly*)
3738 ;;
3739 *-*-freebsd*)
3740 if test "x$with_gmp" = x \
3741 && ! test -d ${srcdir}/gmp \
3742 && test -f /usr/local/include/gmp.h; then
3743 with_gmp=/usr/local
3744 fi
3745 ;;
3746 *-*-kaos*)
3747 # Remove unsupported stuff on all kaOS configurations.
3748 noconfigdirs="$noconfigdirs target-libgloss"
3749 ;;
3750 *-*-netbsd*)
3751 ;;
3752 *-*-netware*)
3753 ;;
3754 *-*-phoenix*)
3755 noconfigdirs="$noconfigdirs target-libgloss"
3756 ;;
3757 *-*-rtems*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3759 ;;
3760 # The tpf target doesn't support gdb yet.
3761 *-*-tpf*)
3762 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3763 ;;
3764 *-*-uclinux*)
3765 noconfigdirs="$noconfigdirs target-rda"
3766 ;;
3767 *-*-vxworks*)
3768 ;;
3769 alpha*-dec-osf*)
3770 # ld works, but does not support shared libraries.
3771 # gas doesn't generate exception information.
3772 noconfigdirs="$noconfigdirs gas ld"
3773 ;;
3774 alpha*-*-*vms*)
3775 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3776 ;;
3777 alpha*-*-*)
3778 # newlib is not 64 bit ready
3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3780 ;;
3781 bpf-*-*)
3782 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3783 ;;
3784 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3785 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3786 ;;
3787 arc*-*-*)
3788 noconfigdirs="$noconfigdirs sim"
3789 ;;
3790 arm-*-pe*)
3791 noconfigdirs="$noconfigdirs target-libgloss"
3792 ;;
3793 arm-*-riscix*)
3794 noconfigdirs="$noconfigdirs ld target-libgloss"
3795 ;;
3796 avr-*-*)
3797 if test x${with_avrlibc} != xno; then
3798 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3799 fi
3800 ;;
3801 c4x-*-* | tic4x-*-*)
3802 noconfigdirs="$noconfigdirs target-libgloss"
3803 ;;
3804 tic54x-*-*)
3805 noconfigdirs="$noconfigdirs target-libgloss gdb"
3806 ;;
3807 d10v-*-*)
3808 noconfigdirs="$noconfigdirs target-libgloss"
3809 ;;
3810 d30v-*-*)
3811 noconfigdirs="$noconfigdirs gdb"
3812 ;;
3813 fr30-*-elf*)
3814 noconfigdirs="$noconfigdirs gdb"
3815 ;;
3816 ft32-*-*)
3817 noconfigdirs="$noconfigdirs target-rda gprof"
3818 ;;
3819 moxie-*-*)
3820 noconfigdirs="$noconfigdirs"
3821 ;;
3822 h8300*-*-*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3824 ;;
3825 h8500-*-*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3827 ;;
3828 hppa*64*-*-hpux*)
3829 noconfigdirs="$noconfigdirs gdb"
3830 ;;
3831 hppa*64*-*-linux*)
3832 ;;
3833 hppa*-*-linux*)
3834 ;;
3835 hppa*-*-*elf* | \
3836 hppa*-*-lites* | \
3837 hppa*-*-openbsd* | \
3838 hppa*64*-*-*)
3839 ;;
3840 hppa*-*-pro*)
3841 ;;
3842 hppa*-*-*)
3843 noconfigdirs="$noconfigdirs ld"
3844 ;;
3845 i960-*-*)
3846 noconfigdirs="$noconfigdirs gdb"
3847 ;;
3848 ia64*-*-elf*)
3849 # No gdb support yet.
3850 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3851 ;;
3852 ia64*-**-hpux*)
3853 # No ld support yet.
3854 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3855 ;;
3856 ia64*-*-*vms*)
3857 # No ld support yet.
3858 noconfigdirs="$noconfigdirs libgui itcl ld"
3859 ;;
3860 i[3456789]86-w64-mingw*)
3861 ;;
3862 i[3456789]86-*-mingw*)
3863 target_configdirs="$target_configdirs target-winsup"
3864 ;;
3865 *-*-cygwin*)
3866 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3867 noconfigdirs="$noconfigdirs target-libgloss"
3868 # always build newlib if winsup directory is present.
3869 if test -d "$srcdir/winsup/cygwin"; then
3870 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3871 elif test -d "$srcdir/newlib"; then
3872 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3873 fi
3874 ;;
3875 i[3456789]86-*-pe)
3876 noconfigdirs="$noconfigdirs target-libgloss"
3877 ;;
3878 i[3456789]86-*-sco3.2v5*)
3879 # The linker does not yet know about weak symbols in COFF,
3880 # and is not configured to handle mixed ELF and COFF.
3881 noconfigdirs="$noconfigdirs ld target-libgloss"
3882 ;;
3883 i[3456789]86-*-sco*)
3884 noconfigdirs="$noconfigdirs gprof target-libgloss"
3885 ;;
3886 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3887 noconfigdirs="$noconfigdirs target-libgloss"
3888 ;;
3889 i[3456789]86-*-sysv4*)
3890 noconfigdirs="$noconfigdirs target-libgloss"
3891 ;;
3892 i[3456789]86-*-beos*)
3893 noconfigdirs="$noconfigdirs gdb"
3894 ;;
3895 i[3456789]86-*-rdos*)
3896 noconfigdirs="$noconfigdirs gdb"
3897 ;;
3898 mmix-*-*)
3899 noconfigdirs="$noconfigdirs gdb"
3900 ;;
3901 mt-*-*)
3902 noconfigdirs="$noconfigdirs sim"
3903 ;;
3904 nfp-*-*)
3905 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3906 noconfigdirs="$noconfigdirs $target_libraries"
3907 ;;
3908 pdp11-*-*)
3909 noconfigdirs="$noconfigdirs gdb gprof"
3910 ;;
3911 powerpc-*-aix*)
3912 # copied from rs6000-*-* entry
3913 noconfigdirs="$noconfigdirs gprof"
3914 ;;
3915 powerpc*-*-winnt* | powerpc*-*-pe*)
3916 target_configdirs="$target_configdirs target-winsup"
3917 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3918 # always build newlib.
3919 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3920 ;;
3921 # This is temporary until we can link against shared libraries
3922 powerpcle-*-solaris*)
3923 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3924 ;;
3925 powerpc-*-beos*)
3926 noconfigdirs="$noconfigdirs gdb"
3927 ;;
3928 rs6000-*-lynxos*)
3929 noconfigdirs="$noconfigdirs gprof"
3930 ;;
3931 rs6000-*-aix*)
3932 noconfigdirs="$noconfigdirs gprof"
3933 ;;
3934 rs6000-*-*)
3935 noconfigdirs="$noconfigdirs gprof"
3936 ;;
3937 m68k-apollo-*)
3938 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3939 ;;
3940 microblaze*)
3941 noconfigdirs="$noconfigdirs gprof"
3942 ;;
3943 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3944 if test x$with_newlib = xyes; then
3945 noconfigdirs="$noconfigdirs gprof"
3946 fi
3947 ;;
3948 mips*-*-irix5*)
3949 noconfigdirs="$noconfigdirs gprof target-libgloss"
3950 ;;
3951 mips*-*-irix6*)
3952 noconfigdirs="$noconfigdirs gprof target-libgloss"
3953 ;;
3954 mips*-*-bsd*)
3955 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3956 ;;
3957 mips*-*-linux*)
3958 ;;
3959 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3960 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3961 noconfigdirs="$noconfigdirs ld gas gprof"
3962 ;;
3963 mips*-*-*)
3964 noconfigdirs="$noconfigdirs gprof"
3965 ;;
3966 nvptx*-*-*)
3967 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3968 ;;
3969 sh-*-*)
3970 case "${target}" in
3971 sh*-*-elf)
3972 ;;
3973 *)
3974 noconfigdirs="$noconfigdirs target-libgloss" ;;
3975 esac
3976 ;;
3977 sparc-*-sunos4*)
3978 if test x${is_cross_compiler} = xno ; then
3979 use_gnu_ld=no
3980 fi
3981 ;;
3982 tic6x-*-*)
3983 noconfigdirs="$noconfigdirs sim"
3984 ;;
3985 v810-*-*)
3986 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3987 ;;
3988 vax-*-*)
3989 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3990 ;;
3991 wasm32-*-*)
3992 noconfigdirs="$noconfigdirs ld"
3993 ;;
3994 loongarch*-*-linux*)
3995 ;;
3996 loongarch*-*-*)
3997 noconfigdirs="$noconfigdirs gprof"
3998 ;;
3999 esac
4000
4001 # If we aren't building newlib, then don't build libgloss, since libgloss
4002 # depends upon some newlib header files.
4003 case "${noconfigdirs}" in
4004 *target-libgloss*) ;;
4005 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4006 esac
4007
4008 # Work in distributions that contain no compiler tools, like Autoconf.
4009 host_makefile_frag=/dev/null
4010 if test -d ${srcdir}/config ; then
4011 case "${host}" in
4012 i[3456789]86-*-msdosdjgpp*)
4013 host_makefile_frag="config/mh-djgpp"
4014 ;;
4015 *-cygwin*)
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4018 $as_echo_n "checking to see if cat works as expected... " >&6; }
4019 echo a >cygwin-cat-check
4020 if test `cat cygwin-cat-check` = a ; then
4021 rm cygwin-cat-check
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023 $as_echo "yes" >&6; }
4024 else
4025 rm cygwin-cat-check
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 as_fn_error $? "The cat command does not ignore carriage return characters.
4029 Please either mount the build directory in binary mode or run the following
4030 commands before running any configure script:
4031 set -o igncr
4032 export SHELLOPTS
4033 " "$LINENO" 5
4034 fi
4035
4036 host_makefile_frag="config/mh-cygwin"
4037 ;;
4038 *-mingw*)
4039 host_makefile_frag="config/mh-mingw"
4040 ;;
4041 alpha*-linux*)
4042 host_makefile_frag="config/mh-alpha-linux"
4043 ;;
4044 hppa*-hp-hpux*)
4045 host_makefile_frag="config/mh-pa"
4046 ;;
4047 hppa*-*)
4048 host_makefile_frag="config/mh-pa"
4049 ;;
4050 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4051 host_makefile_frag="config/mh-darwin"
4052 ;;
4053 powerpc-*-aix*)
4054 host_makefile_frag="config/mh-ppc-aix"
4055 ;;
4056 rs6000-*-aix*)
4057 host_makefile_frag="config/mh-ppc-aix"
4058 ;;
4059 esac
4060 fi
4061
4062 if test "${build}" != "${host}" ; then
4063 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4064 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4065 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4066 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4067 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4068 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4069 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4070 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4071 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4072 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4073 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4074 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4075 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4076 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4077 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4078 else
4079 AR_FOR_BUILD="\$(AR)"
4080 AS_FOR_BUILD="\$(AS)"
4081 CC_FOR_BUILD="\$(CC)"
4082 CXX_FOR_BUILD="\$(CXX)"
4083 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4084 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4085 GOC_FOR_BUILD="\$(GOC)"
4086 GDC_FOR_BUILD="\$(GDC)"
4087 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4088 LD_FOR_BUILD="\$(LD)"
4089 NM_FOR_BUILD="\$(NM)"
4090 RANLIB_FOR_BUILD="\$(RANLIB)"
4091 WINDRES_FOR_BUILD="\$(WINDRES)"
4092 WINDMC_FOR_BUILD="\$(WINDMC)"
4093 fi
4094
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if ${ac_cv_prog_CC+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 CC=$ac_cv_prog_CC
4129 if test -n "$CC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4131 $as_echo "$CC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137
4138 fi
4139 if test -z "$ac_cv_prog_CC"; then
4140 ac_ct_CC=$CC
4141 # Extract the first word of "gcc", so it can be a program name with args.
4142 set dummy gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169 if test -n "$ac_ct_CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171 $as_echo "$ac_ct_CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177 if test "x$ac_ct_CC" = x; then
4178 CC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 CC=$ac_ct_CC
4187 fi
4188 else
4189 CC="$ac_cv_prog_CC"
4190 fi
4191
4192 if test -z "$CC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}cc; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="${ac_tool_prefix}cc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215 done
4216 done
4217 IFS=$as_save_IFS
4218
4219 fi
4220 fi
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231 fi
4232 fi
4233 if test -z "$CC"; then
4234 # Extract the first word of "cc", so it can be a program name with args.
4235 set dummy cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4253 ac_prog_rejected=yes
4254 continue
4255 fi
4256 ac_cv_prog_CC="cc"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_CC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set CC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4274 fi
4275 fi
4276 fi
4277 fi
4278 CC=$ac_cv_prog_CC
4279 if test -n "$CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287
4288 fi
4289 if test -z "$CC"; then
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in cl.exe
4292 do
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_CC+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 fi
4319 fi
4320 CC=$ac_cv_prog_CC
4321 if test -n "$CC"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4323 $as_echo "$CC" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4327 fi
4328
4329
4330 test -n "$CC" && break
4331 done
4332 fi
4333 if test -z "$CC"; then
4334 ac_ct_CC=$CC
4335 for ac_prog in cl.exe
4336 do
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$ac_ct_CC"; then
4345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_ac_ct_CC="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362 fi
4363 fi
4364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4365 if test -n "$ac_ct_CC"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4367 $as_echo "$ac_ct_CC" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 fi
4372
4373
4374 test -n "$ac_ct_CC" && break
4375 done
4376
4377 if test "x$ac_ct_CC" = x; then
4378 CC=""
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 CC=$ac_ct_CC
4387 fi
4388 fi
4389
4390 fi
4391
4392
4393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error $? "no acceptable C compiler found in \$PATH
4396 See \`config.log' for more details" "$LINENO" 5; }
4397
4398 # Provide some information about the compiler.
4399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4400 set X $ac_compile
4401 ac_compiler=$2
4402 for ac_option in --version -v -V -qversion; do
4403 { { ac_try="$ac_compiler $ac_option >&5"
4404 case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4411 ac_status=$?
4412 if test -s conftest.err; then
4413 sed '10a\
4414 ... rest of stderr output deleted ...
4415 10q' conftest.err >conftest.er1
4416 cat conftest.er1 >&5
4417 fi
4418 rm -f conftest.er1 conftest.err
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }
4421 done
4422
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425
4426 int
4427 main ()
4428 {
4429
4430 ;
4431 return 0;
4432 }
4433 _ACEOF
4434 ac_clean_files_save=$ac_clean_files
4435 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4436 # Try to create an executable without -o first, disregard a.out.
4437 # It will help us diagnose broken compilers, and finding out an intuition
4438 # of exeext.
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4440 $as_echo_n "checking whether the C compiler works... " >&6; }
4441 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4442
4443 # The possible output files:
4444 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4445
4446 ac_rmfiles=
4447 for ac_file in $ac_files
4448 do
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4452 esac
4453 done
4454 rm -f $ac_rmfiles
4455
4456 if { { ac_try="$ac_link_default"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_link_default") 2>&5
4464 ac_status=$?
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
4467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4469 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4470 # so that the user can short-circuit this test for compilers unknown to
4471 # Autoconf.
4472 for ac_file in $ac_files ''
4473 do
4474 test -f "$ac_file" || continue
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4477 ;;
4478 [ab].out )
4479 # We found the default executable, but exeext='' is most
4480 # certainly right.
4481 break;;
4482 *.* )
4483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4484 then :; else
4485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486 fi
4487 # We set ac_cv_exeext here because the later test for it is not
4488 # safe: cross compilers may not add the suffix if given an `-o'
4489 # argument, so we may need to know it at that point already.
4490 # Even if this section looks crufty: it has the advantage of
4491 # actually working.
4492 break;;
4493 * )
4494 break;;
4495 esac
4496 done
4497 test "$ac_cv_exeext" = no && ac_cv_exeext=
4498
4499 else
4500 ac_file=''
4501 fi
4502 if test -z "$ac_file"; then :
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error 77 "C compiler cannot create executables
4511 See \`config.log' for more details" "$LINENO" 5; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4514 $as_echo "yes" >&6; }
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4517 $as_echo_n "checking for C compiler default output file name... " >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4519 $as_echo "$ac_file" >&6; }
4520 ac_exeext=$ac_cv_exeext
4521
4522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4523 ac_clean_files=$ac_clean_files_save
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4525 $as_echo_n "checking for suffix of executables... " >&6; }
4526 if { { ac_try="$ac_link"
4527 case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_link") 2>&5
4534 ac_status=$?
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; then :
4537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4539 # work properly (i.e., refer to `conftest.exe'), while it won't with
4540 # `rm'.
4541 for ac_file in conftest.exe conftest conftest.*; do
4542 test -f "$ac_file" || continue
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546 break;;
4547 * ) break;;
4548 esac
4549 done
4550 else
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4554 See \`config.log' for more details" "$LINENO" 5; }
4555 fi
4556 rm -f conftest conftest$ac_cv_exeext
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4558 $as_echo "$ac_cv_exeext" >&6; }
4559
4560 rm -f conftest.$ac_ext
4561 EXEEXT=$ac_cv_exeext
4562 ac_exeext=$EXEEXT
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <stdio.h>
4566 int
4567 main ()
4568 {
4569 FILE *f = fopen ("conftest.out", "w");
4570 return ferror (f) || fclose (f) != 0;
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 ac_clean_files="$ac_clean_files conftest.out"
4577 # Check that the compiler produces executables we can run. If not, either
4578 # the compiler is broken, or we cross compile.
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4580 $as_echo_n "checking whether we are cross compiling... " >&6; }
4581 if test "$cross_compiling" != yes; then
4582 { { ac_try="$ac_link"
4583 case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588 $as_echo "$ac_try_echo"; } >&5
4589 (eval "$ac_link") 2>&5
4590 ac_status=$?
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593 if { ac_try='./conftest$ac_cv_exeext'
4594 { { case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599 $as_echo "$ac_try_echo"; } >&5
4600 (eval "$ac_try") 2>&5
4601 ac_status=$?
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }; }; then
4604 cross_compiling=no
4605 else
4606 if test "$cross_compiling" = maybe; then
4607 cross_compiling=yes
4608 else
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error $? "cannot run C compiled programs.
4612 If you meant to cross compile, use \`--host'.
4613 See \`config.log' for more details" "$LINENO" 5; }
4614 fi
4615 fi
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4618 $as_echo "$cross_compiling" >&6; }
4619
4620 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4621 ac_clean_files=$ac_clean_files_save
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4623 $as_echo_n "checking for suffix of object files... " >&6; }
4624 if ${ac_cv_objext+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.o conftest.obj
4639 if { { ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646 (eval "$ac_compile") 2>&5
4647 ac_status=$?
4648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649 test $ac_status = 0; }; then :
4650 for ac_file in conftest.o conftest.obj conftest.*; do
4651 test -f "$ac_file" || continue;
4652 case $ac_file in
4653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4655 break;;
4656 esac
4657 done
4658 else
4659 $as_echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664 as_fn_error $? "cannot compute suffix of object files: cannot compile
4665 See \`config.log' for more details" "$LINENO" 5; }
4666 fi
4667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4670 $as_echo "$ac_cv_objext" >&6; }
4671 OBJEXT=$ac_cv_objext
4672 ac_objext=$OBJEXT
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4675 if ${ac_cv_c_compiler_gnu+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680
4681 int
4682 main ()
4683 {
4684 #ifndef __GNUC__
4685 choke me
4686 #endif
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_compiler_gnu=yes
4694 else
4695 ac_compiler_gnu=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4704 GCC=yes
4705 else
4706 GCC=
4707 fi
4708 ac_test_CFLAGS=${CFLAGS+set}
4709 ac_save_CFLAGS=$CFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4712 if ${ac_cv_prog_cc_g+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_save_c_werror_flag=$ac_c_werror_flag
4716 ac_c_werror_flag=yes
4717 ac_cv_prog_cc_g=no
4718 CFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_prog_cc_g=yes
4732 else
4733 CFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746
4747 else
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4772 $as_echo "$ac_cv_prog_cc_g" >&6; }
4773 if test "$ac_test_CFLAGS" = set; then
4774 CFLAGS=$ac_save_CFLAGS
4775 elif test $ac_cv_prog_cc_g = yes; then
4776 if test "$GCC" = yes; then
4777 CFLAGS="-g -O2"
4778 else
4779 CFLAGS="-g"
4780 fi
4781 else
4782 if test "$GCC" = yes; then
4783 CFLAGS="-O2"
4784 else
4785 CFLAGS=
4786 fi
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4790 if ${ac_cv_prog_cc_c89+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 ac_cv_prog_cc_c89=no
4794 ac_save_CC=$CC
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdarg.h>
4798 #include <stdio.h>
4799 struct stat;
4800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4801 struct buf { int x; };
4802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4803 static char *e (p, i)
4804 char **p;
4805 int i;
4806 {
4807 return p[i];
4808 }
4809 static char *f (char * (*g) (char **, int), char **p, ...)
4810 {
4811 char *s;
4812 va_list v;
4813 va_start (v,p);
4814 s = g (p, va_arg (v,int));
4815 va_end (v);
4816 return s;
4817 }
4818
4819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4820 function prototypes and stuff, but not '\xHH' hex character constants.
4821 These don't provoke an error unfortunately, instead are silently treated
4822 as 'x'. The following induces an error, until -std is added to get
4823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4824 array size at least. It's necessary to write '\x00'==0 to get something
4825 that's true only with -std. */
4826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4827
4828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4829 inside strings and character constants. */
4830 #define FOO(x) 'x'
4831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4832
4833 int test (int i, double x);
4834 struct s1 {int (*f) (int a);};
4835 struct s2 {int (*f) (double a);};
4836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4837 int argc;
4838 char **argv;
4839 int
4840 main ()
4841 {
4842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4849 do
4850 CC="$ac_save_CC $ac_arg"
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_prog_cc_c89=$ac_arg
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext
4855 test "x$ac_cv_prog_cc_c89" != "xno" && break
4856 done
4857 rm -f conftest.$ac_ext
4858 CC=$ac_save_CC
4859
4860 fi
4861 # AC_CACHE_VAL
4862 case "x$ac_cv_prog_cc_c89" in
4863 x)
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4865 $as_echo "none needed" >&6; } ;;
4866 xno)
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4868 $as_echo "unsupported" >&6; } ;;
4869 *)
4870 CC="$CC $ac_cv_prog_cc_c89"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4873 esac
4874 if test "x$ac_cv_prog_cc_c89" != xno; then :
4875
4876 fi
4877
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4885 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4886 if ${ac_cv_prog_cc_c99+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 ac_cv_prog_cc_c99=no
4890 ac_save_CC=$CC
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <stdarg.h>
4894 #include <stdbool.h>
4895 #include <stdlib.h>
4896 #include <wchar.h>
4897 #include <stdio.h>
4898
4899 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4900 #define debug(...) fprintf (stderr, __VA_ARGS__)
4901 #define showlist(...) puts (#__VA_ARGS__)
4902 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4903 static void
4904 test_varargs_macros (void)
4905 {
4906 int x = 1234;
4907 int y = 5678;
4908 debug ("Flag");
4909 debug ("X = %d\n", x);
4910 showlist (The first, second, and third items.);
4911 report (x>y, "x is %d but y is %d", x, y);
4912 }
4913
4914 // Check long long types.
4915 #define BIG64 18446744073709551615ull
4916 #define BIG32 4294967295ul
4917 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4918 #if !BIG_OK
4919 your preprocessor is broken;
4920 #endif
4921 #if BIG_OK
4922 #else
4923 your preprocessor is broken;
4924 #endif
4925 static long long int bignum = -9223372036854775807LL;
4926 static unsigned long long int ubignum = BIG64;
4927
4928 struct incomplete_array
4929 {
4930 int datasize;
4931 double data[];
4932 };
4933
4934 struct named_init {
4935 int number;
4936 const wchar_t *name;
4937 double average;
4938 };
4939
4940 typedef const char *ccp;
4941
4942 static inline int
4943 test_restrict (ccp restrict text)
4944 {
4945 // See if C++-style comments work.
4946 // Iterate through items via the restricted pointer.
4947 // Also check for declarations in for loops.
4948 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4949 continue;
4950 return 0;
4951 }
4952
4953 // Check varargs and va_copy.
4954 static void
4955 test_varargs (const char *format, ...)
4956 {
4957 va_list args;
4958 va_start (args, format);
4959 va_list args_copy;
4960 va_copy (args_copy, args);
4961
4962 const char *str;
4963 int number;
4964 float fnumber;
4965
4966 while (*format)
4967 {
4968 switch (*format++)
4969 {
4970 case 's': // string
4971 str = va_arg (args_copy, const char *);
4972 break;
4973 case 'd': // int
4974 number = va_arg (args_copy, int);
4975 break;
4976 case 'f': // float
4977 fnumber = va_arg (args_copy, double);
4978 break;
4979 default:
4980 break;
4981 }
4982 }
4983 va_end (args_copy);
4984 va_end (args);
4985 }
4986
4987 int
4988 main ()
4989 {
4990
4991 // Check bool.
4992 _Bool success = false;
4993
4994 // Check restrict.
4995 if (test_restrict ("String literal") == 0)
4996 success = true;
4997 char *restrict newvar = "Another string";
4998
4999 // Check varargs.
5000 test_varargs ("s, d' f .", "string", 65, 34.234);
5001 test_varargs_macros ();
5002
5003 // Check flexible array members.
5004 struct incomplete_array *ia =
5005 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5006 ia->datasize = 10;
5007 for (int i = 0; i < ia->datasize; ++i)
5008 ia->data[i] = i * 1.234;
5009
5010 // Check named initializers.
5011 struct named_init ni = {
5012 .number = 34,
5013 .name = L"Test wide string",
5014 .average = 543.34343,
5015 };
5016
5017 ni.number = 58;
5018
5019 int dynamic_array[ni.number];
5020 dynamic_array[ni.number - 1] = 543;
5021
5022 // work around unused variable warnings
5023 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5024 || dynamic_array[ni.number - 1] != 543);
5025
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5031 do
5032 CC="$ac_save_CC $ac_arg"
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 ac_cv_prog_cc_c99=$ac_arg
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext
5037 test "x$ac_cv_prog_cc_c99" != "xno" && break
5038 done
5039 rm -f conftest.$ac_ext
5040 CC=$ac_save_CC
5041
5042 fi
5043 # AC_CACHE_VAL
5044 case "x$ac_cv_prog_cc_c99" in
5045 x)
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5047 $as_echo "none needed" >&6; } ;;
5048 xno)
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5050 $as_echo "unsupported" >&6; } ;;
5051 *)
5052 CC="$CC $ac_cv_prog_cc_c99"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5054 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5055 esac
5056 if test "x$ac_cv_prog_cc_c99" != xno; then :
5057
5058 fi
5059
5060
5061 ac_ext=cpp
5062 ac_cpp='$CXXCPP $CPPFLAGS'
5063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5066 if test -z "$CXX"; then
5067 if test -n "$CCC"; then
5068 CXX=$CCC
5069 else
5070 if test -n "$ac_tool_prefix"; then
5071 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5072 do
5073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_CXX+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 if test -n "$CXX"; then
5081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 CXX=$ac_cv_prog_CXX
5101 if test -n "$CXX"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5103 $as_echo "$CXX" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110 test -n "$CXX" && break
5111 done
5112 fi
5113 if test -z "$CXX"; then
5114 ac_ct_CXX=$CXX
5115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5116 do
5117 # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_CXX"; then
5125 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_CXX="$ac_prog"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5145 if test -n "$ac_ct_CXX"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5147 $as_echo "$ac_ct_CXX" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 test -n "$ac_ct_CXX" && break
5155 done
5156
5157 if test "x$ac_ct_CXX" = x; then
5158 CXX="g++"
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161 yes:)
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5165 esac
5166 CXX=$ac_ct_CXX
5167 fi
5168 fi
5169
5170 fi
5171 fi
5172 # Provide some information about the compiler.
5173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5174 set X $ac_compile
5175 ac_compiler=$2
5176 for ac_option in --version -v -V -qversion; do
5177 { { ac_try="$ac_compiler $ac_option >&5"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183 $as_echo "$ac_try_echo"; } >&5
5184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5185 ac_status=$?
5186 if test -s conftest.err; then
5187 sed '10a\
5188 ... rest of stderr output deleted ...
5189 10q' conftest.err >conftest.er1
5190 cat conftest.er1 >&5
5191 fi
5192 rm -f conftest.er1 conftest.err
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; }
5195 done
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5198 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5199 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204
5205 int
5206 main ()
5207 {
5208 #ifndef __GNUC__
5209 choke me
5210 #endif
5211
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_cxx_try_compile "$LINENO"; then :
5217 ac_compiler_gnu=yes
5218 else
5219 ac_compiler_gnu=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5223
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5227 if test $ac_compiler_gnu = yes; then
5228 GXX=yes
5229 else
5230 GXX=
5231 fi
5232 ac_test_CXXFLAGS=${CXXFLAGS+set}
5233 ac_save_CXXFLAGS=$CXXFLAGS
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5236 if ${ac_cv_prog_cxx_g+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5240 ac_cxx_werror_flag=yes
5241 ac_cv_prog_cxx_g=no
5242 CXXFLAGS="-g"
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246 int
5247 main ()
5248 {
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5255 ac_cv_prog_cxx_g=yes
5256 else
5257 CXXFLAGS=""
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260
5261 int
5262 main ()
5263 {
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_cxx_try_compile "$LINENO"; then :
5270
5271 else
5272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5273 CXXFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276
5277 int
5278 main ()
5279 {
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_cv_prog_cxx_g=yes
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5296 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5297 if test "$ac_test_CXXFLAGS" = set; then
5298 CXXFLAGS=$ac_save_CXXFLAGS
5299 elif test $ac_cv_prog_cxx_g = yes; then
5300 if test "$GXX" = yes; then
5301 CXXFLAGS="-g -O2"
5302 else
5303 CXXFLAGS="-g"
5304 fi
5305 else
5306 if test "$GXX" = yes; then
5307 CXXFLAGS="-O2"
5308 else
5309 CXXFLAGS=
5310 fi
5311 fi
5312 ac_ext=c
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318
5319 # We must set the default linker to the linker used by gcc for the correct
5320 # operation of libtool. If LD is not defined and we are using gcc, try to
5321 # set the LD default to the ld used by gcc.
5322 if test -z "$LD"; then
5323 if test "$GCC" = yes; then
5324 case $build in
5325 *-*-mingw*)
5326 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5327 *)
5328 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5329 esac
5330 case $gcc_prog_ld in
5331 # Accept absolute paths.
5332 [\\/]* | [A-Za-z]:[\\/]*)
5333 LD="$gcc_prog_ld" ;;
5334 esac
5335 fi
5336 fi
5337
5338 # Check whether -static-libstdc++ -static-libgcc is supported.
5339 have_static_libs=no
5340 if test "$GCC" = yes; then
5341 saved_LDFLAGS="$LDFLAGS"
5342
5343 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5345 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5346 ac_ext=cpp
5347 ac_cpp='$CXXCPP $CPPFLAGS'
5348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5351
5352
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355
5356 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5357 #error -static-libstdc++ not implemented
5358 #endif
5359 int main() {}
5360 _ACEOF
5361 if ac_fn_cxx_try_link "$LINENO"; then :
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363 $as_echo "yes" >&6; }; have_static_libs=yes
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext conftest.$ac_ext
5370 ac_ext=c
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375
5376
5377 LDFLAGS="$saved_LDFLAGS"
5378 fi
5379
5380
5381
5382
5383 if test -n "$ac_tool_prefix"; then
5384 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5385 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_GNATBIND+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$GNATBIND"; then
5392 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5404 fi
5405 done
5406 done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 GNATBIND=$ac_cv_prog_GNATBIND
5412 if test -n "$GNATBIND"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5414 $as_echo "$GNATBIND" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420
5421 fi
5422 if test -z "$ac_cv_prog_GNATBIND"; then
5423 ac_ct_GNATBIND=$GNATBIND
5424 # Extract the first word of "gnatbind", so it can be a program name with args.
5425 set dummy gnatbind; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$ac_ct_GNATBIND"; then
5432 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5452 if test -n "$ac_ct_GNATBIND"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5454 $as_echo "$ac_ct_GNATBIND" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460 if test "x$ac_ct_GNATBIND" = x; then
5461 GNATBIND="no"
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469 GNATBIND=$ac_ct_GNATBIND
5470 fi
5471 else
5472 GNATBIND="$ac_cv_prog_GNATBIND"
5473 fi
5474
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_GNATMAKE+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$GNATMAKE"; then
5484 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 GNATMAKE=$ac_cv_prog_GNATMAKE
5504 if test -n "$GNATMAKE"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5506 $as_echo "$GNATMAKE" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512
5513 fi
5514 if test -z "$ac_cv_prog_GNATMAKE"; then
5515 ac_ct_GNATMAKE=$GNATMAKE
5516 # Extract the first word of "gnatmake", so it can be a program name with args.
5517 set dummy gnatmake; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$ac_ct_GNATMAKE"; then
5524 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5544 if test -n "$ac_ct_GNATMAKE"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5546 $as_echo "$ac_ct_GNATMAKE" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552 if test "x$ac_ct_GNATMAKE" = x; then
5553 GNATMAKE="no"
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556 yes:)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561 GNATMAKE=$ac_ct_GNATMAKE
5562 fi
5563 else
5564 GNATMAKE="$ac_cv_prog_GNATMAKE"
5565 fi
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5568 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5569 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 cat >conftest.adb <<EOF
5573 pragma Warnings (Off);
5574 with System.CRTL;
5575 pragma Warnings (On);
5576 use type System.CRTL.int64;
5577 procedure conftest is begin null; end conftest;
5578 EOF
5579 acx_cv_cc_gcc_supports_ada=no
5580 # There is a bug in old released versions of GCC which causes the
5581 # driver to exit successfully when the appropriate language module
5582 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5583 # Therefore we must check for the error message as well as an
5584 # unsuccessful exit.
5585 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5586 # given a .adb file, but produce no object file. So we must check
5587 # if an object file was really produced to guard against this.
5588 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5589 if test x"$errors" = x && test -f conftest.$ac_objext; then
5590 acx_cv_cc_gcc_supports_ada=yes
5591 fi
5592 rm -f conftest.*
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5595 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5596
5597 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5598 have_gnat=yes
5599 else
5600 have_gnat=no
5601 fi
5602
5603
5604
5605 if test -n "$ac_tool_prefix"; then
5606 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5607 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_GDC+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$GDC"; then
5614 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627 done
5628 done
5629 IFS=$as_save_IFS
5630
5631 fi
5632 fi
5633 GDC=$ac_cv_prog_GDC
5634 if test -n "$GDC"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5636 $as_echo "$GDC" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642
5643 fi
5644 if test -z "$ac_cv_prog_GDC"; then
5645 ac_ct_GDC=$GDC
5646 # Extract the first word of "gdc", so it can be a program name with args.
5647 set dummy gdc; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$ac_ct_GDC"; then
5654 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_ac_ct_GDC="gdc"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5674 if test -n "$ac_ct_GDC"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5676 $as_echo "$ac_ct_GDC" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682 if test "x$ac_ct_GDC" = x; then
5683 GDC="no"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691 GDC=$ac_ct_GDC
5692 fi
5693 else
5694 GDC="$ac_cv_prog_GDC"
5695 fi
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5698 $as_echo_n "checking whether the D compiler works... " >&6; }
5699 if ${acx_cv_d_compiler_works+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 cat >conftest.d <<EOF
5703 module conftest; int main() { return 0; }
5704 EOF
5705 acx_cv_d_compiler_works=no
5706 if test "x$GDC" != xno; then
5707 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5708 if test x"$errors" = x && test -f conftest.$ac_objext; then
5709 acx_cv_d_compiler_works=yes
5710 fi
5711 rm -f conftest.*
5712 fi
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5715 $as_echo "$acx_cv_d_compiler_works" >&6; }
5716 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5717 have_gdc=yes
5718 else
5719 have_gdc=no
5720 fi
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5723 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5724 if ${gcc_cv_prog_cmp_skip+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 echo abfoo >t1
5728 echo cdfoo >t2
5729 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5730 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5731 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5732 :
5733 else
5734 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5735 fi
5736 fi
5737 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5738 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5739 :
5740 else
5741 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5742 fi
5743 fi
5744 rm t1 t2
5745
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5748 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5749 do_compare="$gcc_cv_prog_cmp_skip"
5750
5751
5752
5753 # Check whether --enable-bootstrap was given.
5754 if test "${enable_bootstrap+set}" = set; then :
5755 enableval=$enable_bootstrap;
5756 else
5757 enable_bootstrap=default
5758 fi
5759
5760
5761 # Issue errors and warnings for invalid/strange bootstrap combinations.
5762 if test -r $srcdir/gcc/configure; then
5763 have_compiler=yes
5764 else
5765 have_compiler=no
5766 fi
5767
5768 case "$have_compiler:$host:$target:$enable_bootstrap" in
5769 *:*:*:no) ;;
5770
5771 # Default behavior. Enable bootstrap if we have a compiler
5772 # and we are in a native configuration.
5773 yes:$build:$build:default)
5774 enable_bootstrap=yes ;;
5775
5776 *:*:*:default)
5777 enable_bootstrap=no ;;
5778
5779 # We have a compiler and we are in a native configuration, bootstrap is ok
5780 yes:$build:$build:yes)
5781 ;;
5782
5783 # Other configurations, but we have a compiler. Assume the user knows
5784 # what he's doing.
5785 yes:*:*:yes)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5787 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5788 ;;
5789
5790 # No compiler: if they passed --enable-bootstrap explicitly, fail
5791 no:*:*:yes)
5792 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5793
5794 # Fail if wrong command line
5795 *)
5796 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5797 ;;
5798 esac
5799
5800 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5801 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5802 # require C++11 (or higher).
5803 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5804 CXX="$CXX -std=c++11"
5805 elif test "$have_compiler" = yes; then
5806 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5807 ac_ext=cpp
5808 ac_cpp='$CXXCPP $CPPFLAGS'
5809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 ac_success=no
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5815 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5816 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821
5822
5823 // If the compiler admits that it is not ready for C++11, why torture it?
5824 // Hopefully, this will speed up the test.
5825
5826 #ifndef __cplusplus
5827
5828 #error "This is not a C++ compiler"
5829
5830 #elif __cplusplus < 201103L
5831
5832 #error "This is not a C++11 compiler"
5833
5834 #else
5835
5836 namespace cxx11
5837 {
5838
5839 namespace test_static_assert
5840 {
5841
5842 template <typename T>
5843 struct check
5844 {
5845 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5846 };
5847
5848 }
5849
5850 namespace test_final_override
5851 {
5852
5853 struct Base
5854 {
5855 virtual ~Base() {}
5856 virtual void f() {}
5857 };
5858
5859 struct Derived : public Base
5860 {
5861 virtual ~Derived() override {}
5862 virtual void f() override {}
5863 };
5864
5865 }
5866
5867 namespace test_double_right_angle_brackets
5868 {
5869
5870 template < typename T >
5871 struct check {};
5872
5873 typedef check<void> single_type;
5874 typedef check<check<void>> double_type;
5875 typedef check<check<check<void>>> triple_type;
5876 typedef check<check<check<check<void>>>> quadruple_type;
5877
5878 }
5879
5880 namespace test_decltype
5881 {
5882
5883 int
5884 f()
5885 {
5886 int a = 1;
5887 decltype(a) b = 2;
5888 return a + b;
5889 }
5890
5891 }
5892
5893 namespace test_type_deduction
5894 {
5895
5896 template < typename T1, typename T2 >
5897 struct is_same
5898 {
5899 static const bool value = false;
5900 };
5901
5902 template < typename T >
5903 struct is_same<T, T>
5904 {
5905 static const bool value = true;
5906 };
5907
5908 template < typename T1, typename T2 >
5909 auto
5910 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5911 {
5912 return a1 + a2;
5913 }
5914
5915 int
5916 test(const int c, volatile int v)
5917 {
5918 static_assert(is_same<int, decltype(0)>::value == true, "");
5919 static_assert(is_same<int, decltype(c)>::value == false, "");
5920 static_assert(is_same<int, decltype(v)>::value == false, "");
5921 auto ac = c;
5922 auto av = v;
5923 auto sumi = ac + av + 'x';
5924 auto sumf = ac + av + 1.0;
5925 static_assert(is_same<int, decltype(ac)>::value == true, "");
5926 static_assert(is_same<int, decltype(av)>::value == true, "");
5927 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5928 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5929 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5930 return (sumf > 0.0) ? sumi : add(c, v);
5931 }
5932
5933 }
5934
5935 namespace test_noexcept
5936 {
5937
5938 int f() { return 0; }
5939 int g() noexcept { return 0; }
5940
5941 static_assert(noexcept(f()) == false, "");
5942 static_assert(noexcept(g()) == true, "");
5943
5944 }
5945
5946 namespace test_constexpr
5947 {
5948
5949 template < typename CharT >
5950 unsigned long constexpr
5951 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5952 {
5953 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5954 }
5955
5956 template < typename CharT >
5957 unsigned long constexpr
5958 strlen_c(const CharT *const s) noexcept
5959 {
5960 return strlen_c_r(s, 0UL);
5961 }
5962
5963 static_assert(strlen_c("") == 0UL, "");
5964 static_assert(strlen_c("1") == 1UL, "");
5965 static_assert(strlen_c("example") == 7UL, "");
5966 static_assert(strlen_c("another\0example") == 7UL, "");
5967
5968 }
5969
5970 namespace test_rvalue_references
5971 {
5972
5973 template < int N >
5974 struct answer
5975 {
5976 static constexpr int value = N;
5977 };
5978
5979 answer<1> f(int&) { return answer<1>(); }
5980 answer<2> f(const int&) { return answer<2>(); }
5981 answer<3> f(int&&) { return answer<3>(); }
5982
5983 void
5984 test()
5985 {
5986 int i = 0;
5987 const int c = 0;
5988 static_assert(decltype(f(i))::value == 1, "");
5989 static_assert(decltype(f(c))::value == 2, "");
5990 static_assert(decltype(f(0))::value == 3, "");
5991 }
5992
5993 }
5994
5995 namespace test_uniform_initialization
5996 {
5997
5998 struct test
5999 {
6000 static const int zero {};
6001 static const int one {1};
6002 };
6003
6004 static_assert(test::zero == 0, "");
6005 static_assert(test::one == 1, "");
6006
6007 }
6008
6009 namespace test_lambdas
6010 {
6011
6012 void
6013 test1()
6014 {
6015 auto lambda1 = [](){};
6016 auto lambda2 = lambda1;
6017 lambda1();
6018 lambda2();
6019 }
6020
6021 int
6022 test2()
6023 {
6024 auto a = [](int i, int j){ return i + j; }(1, 2);
6025 auto b = []() -> int { return '0'; }();
6026 auto c = [=](){ return a + b; }();
6027 auto d = [&](){ return c; }();
6028 auto e = [a, &b](int x) mutable {
6029 const auto identity = [](int y){ return y; };
6030 for (auto i = 0; i < a; ++i)
6031 a += b--;
6032 return x + identity(a + b);
6033 }(0);
6034 return a + b + c + d + e;
6035 }
6036
6037 int
6038 test3()
6039 {
6040 const auto nullary = [](){ return 0; };
6041 const auto unary = [](int x){ return x; };
6042 using nullary_t = decltype(nullary);
6043 using unary_t = decltype(unary);
6044 const auto higher1st = [](nullary_t f){ return f(); };
6045 const auto higher2nd = [unary](nullary_t f1){
6046 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6047 };
6048 return higher1st(nullary) + higher2nd(nullary)(unary);
6049 }
6050
6051 }
6052
6053 namespace test_variadic_templates
6054 {
6055
6056 template <int...>
6057 struct sum;
6058
6059 template <int N0, int... N1toN>
6060 struct sum<N0, N1toN...>
6061 {
6062 static constexpr auto value = N0 + sum<N1toN...>::value;
6063 };
6064
6065 template <>
6066 struct sum<>
6067 {
6068 static constexpr auto value = 0;
6069 };
6070
6071 static_assert(sum<>::value == 0, "");
6072 static_assert(sum<1>::value == 1, "");
6073 static_assert(sum<23>::value == 23, "");
6074 static_assert(sum<1, 2>::value == 3, "");
6075 static_assert(sum<5, 5, 11>::value == 21, "");
6076 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6077
6078 }
6079
6080 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6081 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6082 // because of this.
6083 namespace test_template_alias_sfinae
6084 {
6085
6086 struct foo {};
6087
6088 template<typename T>
6089 using member = typename T::member_type;
6090
6091 template<typename T>
6092 void func(...) {}
6093
6094 template<typename T>
6095 void func(member<T>*) {}
6096
6097 void test();
6098
6099 void test() { func<foo>(0); }
6100
6101 }
6102
6103 } // namespace cxx11
6104
6105 #endif // __cplusplus >= 201103L
6106
6107
6108
6109 _ACEOF
6110 if ac_fn_cxx_try_compile "$LINENO"; then :
6111 ax_cv_cxx_compile_cxx11=yes
6112 else
6113 ax_cv_cxx_compile_cxx11=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6118 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6119 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6120 ac_success=yes
6121 fi
6122
6123 if test x$ac_success = xno; then
6124 for alternative in ${ax_cxx_compile_alternatives}; do
6125 switch="-std=gnu++${alternative}"
6126 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6128 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6129 if eval \${$cachevar+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 ac_save_CXX="$CXX"
6133 CXX="$CXX $switch"
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136
6137
6138 // If the compiler admits that it is not ready for C++11, why torture it?
6139 // Hopefully, this will speed up the test.
6140
6141 #ifndef __cplusplus
6142
6143 #error "This is not a C++ compiler"
6144
6145 #elif __cplusplus < 201103L
6146
6147 #error "This is not a C++11 compiler"
6148
6149 #else
6150
6151 namespace cxx11
6152 {
6153
6154 namespace test_static_assert
6155 {
6156
6157 template <typename T>
6158 struct check
6159 {
6160 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6161 };
6162
6163 }
6164
6165 namespace test_final_override
6166 {
6167
6168 struct Base
6169 {
6170 virtual ~Base() {}
6171 virtual void f() {}
6172 };
6173
6174 struct Derived : public Base
6175 {
6176 virtual ~Derived() override {}
6177 virtual void f() override {}
6178 };
6179
6180 }
6181
6182 namespace test_double_right_angle_brackets
6183 {
6184
6185 template < typename T >
6186 struct check {};
6187
6188 typedef check<void> single_type;
6189 typedef check<check<void>> double_type;
6190 typedef check<check<check<void>>> triple_type;
6191 typedef check<check<check<check<void>>>> quadruple_type;
6192
6193 }
6194
6195 namespace test_decltype
6196 {
6197
6198 int
6199 f()
6200 {
6201 int a = 1;
6202 decltype(a) b = 2;
6203 return a + b;
6204 }
6205
6206 }
6207
6208 namespace test_type_deduction
6209 {
6210
6211 template < typename T1, typename T2 >
6212 struct is_same
6213 {
6214 static const bool value = false;
6215 };
6216
6217 template < typename T >
6218 struct is_same<T, T>
6219 {
6220 static const bool value = true;
6221 };
6222
6223 template < typename T1, typename T2 >
6224 auto
6225 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6226 {
6227 return a1 + a2;
6228 }
6229
6230 int
6231 test(const int c, volatile int v)
6232 {
6233 static_assert(is_same<int, decltype(0)>::value == true, "");
6234 static_assert(is_same<int, decltype(c)>::value == false, "");
6235 static_assert(is_same<int, decltype(v)>::value == false, "");
6236 auto ac = c;
6237 auto av = v;
6238 auto sumi = ac + av + 'x';
6239 auto sumf = ac + av + 1.0;
6240 static_assert(is_same<int, decltype(ac)>::value == true, "");
6241 static_assert(is_same<int, decltype(av)>::value == true, "");
6242 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6243 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6244 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6245 return (sumf > 0.0) ? sumi : add(c, v);
6246 }
6247
6248 }
6249
6250 namespace test_noexcept
6251 {
6252
6253 int f() { return 0; }
6254 int g() noexcept { return 0; }
6255
6256 static_assert(noexcept(f()) == false, "");
6257 static_assert(noexcept(g()) == true, "");
6258
6259 }
6260
6261 namespace test_constexpr
6262 {
6263
6264 template < typename CharT >
6265 unsigned long constexpr
6266 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6267 {
6268 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6269 }
6270
6271 template < typename CharT >
6272 unsigned long constexpr
6273 strlen_c(const CharT *const s) noexcept
6274 {
6275 return strlen_c_r(s, 0UL);
6276 }
6277
6278 static_assert(strlen_c("") == 0UL, "");
6279 static_assert(strlen_c("1") == 1UL, "");
6280 static_assert(strlen_c("example") == 7UL, "");
6281 static_assert(strlen_c("another\0example") == 7UL, "");
6282
6283 }
6284
6285 namespace test_rvalue_references
6286 {
6287
6288 template < int N >
6289 struct answer
6290 {
6291 static constexpr int value = N;
6292 };
6293
6294 answer<1> f(int&) { return answer<1>(); }
6295 answer<2> f(const int&) { return answer<2>(); }
6296 answer<3> f(int&&) { return answer<3>(); }
6297
6298 void
6299 test()
6300 {
6301 int i = 0;
6302 const int c = 0;
6303 static_assert(decltype(f(i))::value == 1, "");
6304 static_assert(decltype(f(c))::value == 2, "");
6305 static_assert(decltype(f(0))::value == 3, "");
6306 }
6307
6308 }
6309
6310 namespace test_uniform_initialization
6311 {
6312
6313 struct test
6314 {
6315 static const int zero {};
6316 static const int one {1};
6317 };
6318
6319 static_assert(test::zero == 0, "");
6320 static_assert(test::one == 1, "");
6321
6322 }
6323
6324 namespace test_lambdas
6325 {
6326
6327 void
6328 test1()
6329 {
6330 auto lambda1 = [](){};
6331 auto lambda2 = lambda1;
6332 lambda1();
6333 lambda2();
6334 }
6335
6336 int
6337 test2()
6338 {
6339 auto a = [](int i, int j){ return i + j; }(1, 2);
6340 auto b = []() -> int { return '0'; }();
6341 auto c = [=](){ return a + b; }();
6342 auto d = [&](){ return c; }();
6343 auto e = [a, &b](int x) mutable {
6344 const auto identity = [](int y){ return y; };
6345 for (auto i = 0; i < a; ++i)
6346 a += b--;
6347 return x + identity(a + b);
6348 }(0);
6349 return a + b + c + d + e;
6350 }
6351
6352 int
6353 test3()
6354 {
6355 const auto nullary = [](){ return 0; };
6356 const auto unary = [](int x){ return x; };
6357 using nullary_t = decltype(nullary);
6358 using unary_t = decltype(unary);
6359 const auto higher1st = [](nullary_t f){ return f(); };
6360 const auto higher2nd = [unary](nullary_t f1){
6361 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6362 };
6363 return higher1st(nullary) + higher2nd(nullary)(unary);
6364 }
6365
6366 }
6367
6368 namespace test_variadic_templates
6369 {
6370
6371 template <int...>
6372 struct sum;
6373
6374 template <int N0, int... N1toN>
6375 struct sum<N0, N1toN...>
6376 {
6377 static constexpr auto value = N0 + sum<N1toN...>::value;
6378 };
6379
6380 template <>
6381 struct sum<>
6382 {
6383 static constexpr auto value = 0;
6384 };
6385
6386 static_assert(sum<>::value == 0, "");
6387 static_assert(sum<1>::value == 1, "");
6388 static_assert(sum<23>::value == 23, "");
6389 static_assert(sum<1, 2>::value == 3, "");
6390 static_assert(sum<5, 5, 11>::value == 21, "");
6391 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6392
6393 }
6394
6395 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6396 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6397 // because of this.
6398 namespace test_template_alias_sfinae
6399 {
6400
6401 struct foo {};
6402
6403 template<typename T>
6404 using member = typename T::member_type;
6405
6406 template<typename T>
6407 void func(...) {}
6408
6409 template<typename T>
6410 void func(member<T>*) {}
6411
6412 void test();
6413
6414 void test() { func<foo>(0); }
6415
6416 }
6417
6418 } // namespace cxx11
6419
6420 #endif // __cplusplus >= 201103L
6421
6422
6423
6424 _ACEOF
6425 if ac_fn_cxx_try_compile "$LINENO"; then :
6426 eval $cachevar=yes
6427 else
6428 eval $cachevar=no
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 CXX="$ac_save_CXX"
6432 fi
6433 eval ac_res=\$$cachevar
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6435 $as_echo "$ac_res" >&6; }
6436 if eval test x\$$cachevar = xyes; then
6437 CXX="$CXX $switch"
6438 if test -n "$CXXCPP" ; then
6439 CXXCPP="$CXXCPP $switch"
6440 fi
6441 ac_success=yes
6442 break
6443 fi
6444 done
6445 fi
6446
6447 if test x$ac_success = xno; then
6448 for alternative in ${ax_cxx_compile_alternatives}; do
6449 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6450 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6452 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6453 if eval \${$cachevar+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_save_CXX="$CXX"
6457 CXX="$CXX $switch"
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460
6461
6462 // If the compiler admits that it is not ready for C++11, why torture it?
6463 // Hopefully, this will speed up the test.
6464
6465 #ifndef __cplusplus
6466
6467 #error "This is not a C++ compiler"
6468
6469 #elif __cplusplus < 201103L
6470
6471 #error "This is not a C++11 compiler"
6472
6473 #else
6474
6475 namespace cxx11
6476 {
6477
6478 namespace test_static_assert
6479 {
6480
6481 template <typename T>
6482 struct check
6483 {
6484 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6485 };
6486
6487 }
6488
6489 namespace test_final_override
6490 {
6491
6492 struct Base
6493 {
6494 virtual ~Base() {}
6495 virtual void f() {}
6496 };
6497
6498 struct Derived : public Base
6499 {
6500 virtual ~Derived() override {}
6501 virtual void f() override {}
6502 };
6503
6504 }
6505
6506 namespace test_double_right_angle_brackets
6507 {
6508
6509 template < typename T >
6510 struct check {};
6511
6512 typedef check<void> single_type;
6513 typedef check<check<void>> double_type;
6514 typedef check<check<check<void>>> triple_type;
6515 typedef check<check<check<check<void>>>> quadruple_type;
6516
6517 }
6518
6519 namespace test_decltype
6520 {
6521
6522 int
6523 f()
6524 {
6525 int a = 1;
6526 decltype(a) b = 2;
6527 return a + b;
6528 }
6529
6530 }
6531
6532 namespace test_type_deduction
6533 {
6534
6535 template < typename T1, typename T2 >
6536 struct is_same
6537 {
6538 static const bool value = false;
6539 };
6540
6541 template < typename T >
6542 struct is_same<T, T>
6543 {
6544 static const bool value = true;
6545 };
6546
6547 template < typename T1, typename T2 >
6548 auto
6549 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6550 {
6551 return a1 + a2;
6552 }
6553
6554 int
6555 test(const int c, volatile int v)
6556 {
6557 static_assert(is_same<int, decltype(0)>::value == true, "");
6558 static_assert(is_same<int, decltype(c)>::value == false, "");
6559 static_assert(is_same<int, decltype(v)>::value == false, "");
6560 auto ac = c;
6561 auto av = v;
6562 auto sumi = ac + av + 'x';
6563 auto sumf = ac + av + 1.0;
6564 static_assert(is_same<int, decltype(ac)>::value == true, "");
6565 static_assert(is_same<int, decltype(av)>::value == true, "");
6566 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6567 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6568 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6569 return (sumf > 0.0) ? sumi : add(c, v);
6570 }
6571
6572 }
6573
6574 namespace test_noexcept
6575 {
6576
6577 int f() { return 0; }
6578 int g() noexcept { return 0; }
6579
6580 static_assert(noexcept(f()) == false, "");
6581 static_assert(noexcept(g()) == true, "");
6582
6583 }
6584
6585 namespace test_constexpr
6586 {
6587
6588 template < typename CharT >
6589 unsigned long constexpr
6590 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6591 {
6592 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6593 }
6594
6595 template < typename CharT >
6596 unsigned long constexpr
6597 strlen_c(const CharT *const s) noexcept
6598 {
6599 return strlen_c_r(s, 0UL);
6600 }
6601
6602 static_assert(strlen_c("") == 0UL, "");
6603 static_assert(strlen_c("1") == 1UL, "");
6604 static_assert(strlen_c("example") == 7UL, "");
6605 static_assert(strlen_c("another\0example") == 7UL, "");
6606
6607 }
6608
6609 namespace test_rvalue_references
6610 {
6611
6612 template < int N >
6613 struct answer
6614 {
6615 static constexpr int value = N;
6616 };
6617
6618 answer<1> f(int&) { return answer<1>(); }
6619 answer<2> f(const int&) { return answer<2>(); }
6620 answer<3> f(int&&) { return answer<3>(); }
6621
6622 void
6623 test()
6624 {
6625 int i = 0;
6626 const int c = 0;
6627 static_assert(decltype(f(i))::value == 1, "");
6628 static_assert(decltype(f(c))::value == 2, "");
6629 static_assert(decltype(f(0))::value == 3, "");
6630 }
6631
6632 }
6633
6634 namespace test_uniform_initialization
6635 {
6636
6637 struct test
6638 {
6639 static const int zero {};
6640 static const int one {1};
6641 };
6642
6643 static_assert(test::zero == 0, "");
6644 static_assert(test::one == 1, "");
6645
6646 }
6647
6648 namespace test_lambdas
6649 {
6650
6651 void
6652 test1()
6653 {
6654 auto lambda1 = [](){};
6655 auto lambda2 = lambda1;
6656 lambda1();
6657 lambda2();
6658 }
6659
6660 int
6661 test2()
6662 {
6663 auto a = [](int i, int j){ return i + j; }(1, 2);
6664 auto b = []() -> int { return '0'; }();
6665 auto c = [=](){ return a + b; }();
6666 auto d = [&](){ return c; }();
6667 auto e = [a, &b](int x) mutable {
6668 const auto identity = [](int y){ return y; };
6669 for (auto i = 0; i < a; ++i)
6670 a += b--;
6671 return x + identity(a + b);
6672 }(0);
6673 return a + b + c + d + e;
6674 }
6675
6676 int
6677 test3()
6678 {
6679 const auto nullary = [](){ return 0; };
6680 const auto unary = [](int x){ return x; };
6681 using nullary_t = decltype(nullary);
6682 using unary_t = decltype(unary);
6683 const auto higher1st = [](nullary_t f){ return f(); };
6684 const auto higher2nd = [unary](nullary_t f1){
6685 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6686 };
6687 return higher1st(nullary) + higher2nd(nullary)(unary);
6688 }
6689
6690 }
6691
6692 namespace test_variadic_templates
6693 {
6694
6695 template <int...>
6696 struct sum;
6697
6698 template <int N0, int... N1toN>
6699 struct sum<N0, N1toN...>
6700 {
6701 static constexpr auto value = N0 + sum<N1toN...>::value;
6702 };
6703
6704 template <>
6705 struct sum<>
6706 {
6707 static constexpr auto value = 0;
6708 };
6709
6710 static_assert(sum<>::value == 0, "");
6711 static_assert(sum<1>::value == 1, "");
6712 static_assert(sum<23>::value == 23, "");
6713 static_assert(sum<1, 2>::value == 3, "");
6714 static_assert(sum<5, 5, 11>::value == 21, "");
6715 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6716
6717 }
6718
6719 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6720 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6721 // because of this.
6722 namespace test_template_alias_sfinae
6723 {
6724
6725 struct foo {};
6726
6727 template<typename T>
6728 using member = typename T::member_type;
6729
6730 template<typename T>
6731 void func(...) {}
6732
6733 template<typename T>
6734 void func(member<T>*) {}
6735
6736 void test();
6737
6738 void test() { func<foo>(0); }
6739
6740 }
6741
6742 } // namespace cxx11
6743
6744 #endif // __cplusplus >= 201103L
6745
6746
6747
6748 _ACEOF
6749 if ac_fn_cxx_try_compile "$LINENO"; then :
6750 eval $cachevar=yes
6751 else
6752 eval $cachevar=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 CXX="$ac_save_CXX"
6756 fi
6757 eval ac_res=\$$cachevar
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6759 $as_echo "$ac_res" >&6; }
6760 if eval test x\$$cachevar = xyes; then
6761 CXX="$CXX $switch"
6762 if test -n "$CXXCPP" ; then
6763 CXXCPP="$CXXCPP $switch"
6764 fi
6765 ac_success=yes
6766 break
6767 fi
6768 done
6769 if test x$ac_success = xyes; then
6770 break
6771 fi
6772 done
6773 fi
6774
6775 ac_ext=c
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780
6781 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6782 if test x$ac_success = xno; then
6783 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6784 fi
6785 fi
6786 if test x$ac_success = xno; then
6787 HAVE_CXX11=0
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6789 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6790 else
6791 HAVE_CXX11=1
6792
6793 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6794
6795 fi
6796
6797
6798
6799 if test "${build}" != "${host}"; then
6800 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6801 ac_ext=cpp
6802 ac_cpp='$CXXCPP $CPPFLAGS'
6803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6806 ac_success=no
6807 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6808 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6809 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6810 CXX="$CXX_FOR_BUILD"
6811 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6812 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6814 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6815 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820
6821
6822 // If the compiler admits that it is not ready for C++11, why torture it?
6823 // Hopefully, this will speed up the test.
6824
6825 #ifndef __cplusplus
6826
6827 #error "This is not a C++ compiler"
6828
6829 #elif __cplusplus < 201103L
6830
6831 #error "This is not a C++11 compiler"
6832
6833 #else
6834
6835 namespace cxx11
6836 {
6837
6838 namespace test_static_assert
6839 {
6840
6841 template <typename T>
6842 struct check
6843 {
6844 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6845 };
6846
6847 }
6848
6849 namespace test_final_override
6850 {
6851
6852 struct Base
6853 {
6854 virtual ~Base() {}
6855 virtual void f() {}
6856 };
6857
6858 struct Derived : public Base
6859 {
6860 virtual ~Derived() override {}
6861 virtual void f() override {}
6862 };
6863
6864 }
6865
6866 namespace test_double_right_angle_brackets
6867 {
6868
6869 template < typename T >
6870 struct check {};
6871
6872 typedef check<void> single_type;
6873 typedef check<check<void>> double_type;
6874 typedef check<check<check<void>>> triple_type;
6875 typedef check<check<check<check<void>>>> quadruple_type;
6876
6877 }
6878
6879 namespace test_decltype
6880 {
6881
6882 int
6883 f()
6884 {
6885 int a = 1;
6886 decltype(a) b = 2;
6887 return a + b;
6888 }
6889
6890 }
6891
6892 namespace test_type_deduction
6893 {
6894
6895 template < typename T1, typename T2 >
6896 struct is_same
6897 {
6898 static const bool value = false;
6899 };
6900
6901 template < typename T >
6902 struct is_same<T, T>
6903 {
6904 static const bool value = true;
6905 };
6906
6907 template < typename T1, typename T2 >
6908 auto
6909 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6910 {
6911 return a1 + a2;
6912 }
6913
6914 int
6915 test(const int c, volatile int v)
6916 {
6917 static_assert(is_same<int, decltype(0)>::value == true, "");
6918 static_assert(is_same<int, decltype(c)>::value == false, "");
6919 static_assert(is_same<int, decltype(v)>::value == false, "");
6920 auto ac = c;
6921 auto av = v;
6922 auto sumi = ac + av + 'x';
6923 auto sumf = ac + av + 1.0;
6924 static_assert(is_same<int, decltype(ac)>::value == true, "");
6925 static_assert(is_same<int, decltype(av)>::value == true, "");
6926 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6927 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6928 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6929 return (sumf > 0.0) ? sumi : add(c, v);
6930 }
6931
6932 }
6933
6934 namespace test_noexcept
6935 {
6936
6937 int f() { return 0; }
6938 int g() noexcept { return 0; }
6939
6940 static_assert(noexcept(f()) == false, "");
6941 static_assert(noexcept(g()) == true, "");
6942
6943 }
6944
6945 namespace test_constexpr
6946 {
6947
6948 template < typename CharT >
6949 unsigned long constexpr
6950 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6951 {
6952 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6953 }
6954
6955 template < typename CharT >
6956 unsigned long constexpr
6957 strlen_c(const CharT *const s) noexcept
6958 {
6959 return strlen_c_r(s, 0UL);
6960 }
6961
6962 static_assert(strlen_c("") == 0UL, "");
6963 static_assert(strlen_c("1") == 1UL, "");
6964 static_assert(strlen_c("example") == 7UL, "");
6965 static_assert(strlen_c("another\0example") == 7UL, "");
6966
6967 }
6968
6969 namespace test_rvalue_references
6970 {
6971
6972 template < int N >
6973 struct answer
6974 {
6975 static constexpr int value = N;
6976 };
6977
6978 answer<1> f(int&) { return answer<1>(); }
6979 answer<2> f(const int&) { return answer<2>(); }
6980 answer<3> f(int&&) { return answer<3>(); }
6981
6982 void
6983 test()
6984 {
6985 int i = 0;
6986 const int c = 0;
6987 static_assert(decltype(f(i))::value == 1, "");
6988 static_assert(decltype(f(c))::value == 2, "");
6989 static_assert(decltype(f(0))::value == 3, "");
6990 }
6991
6992 }
6993
6994 namespace test_uniform_initialization
6995 {
6996
6997 struct test
6998 {
6999 static const int zero {};
7000 static const int one {1};
7001 };
7002
7003 static_assert(test::zero == 0, "");
7004 static_assert(test::one == 1, "");
7005
7006 }
7007
7008 namespace test_lambdas
7009 {
7010
7011 void
7012 test1()
7013 {
7014 auto lambda1 = [](){};
7015 auto lambda2 = lambda1;
7016 lambda1();
7017 lambda2();
7018 }
7019
7020 int
7021 test2()
7022 {
7023 auto a = [](int i, int j){ return i + j; }(1, 2);
7024 auto b = []() -> int { return '0'; }();
7025 auto c = [=](){ return a + b; }();
7026 auto d = [&](){ return c; }();
7027 auto e = [a, &b](int x) mutable {
7028 const auto identity = [](int y){ return y; };
7029 for (auto i = 0; i < a; ++i)
7030 a += b--;
7031 return x + identity(a + b);
7032 }(0);
7033 return a + b + c + d + e;
7034 }
7035
7036 int
7037 test3()
7038 {
7039 const auto nullary = [](){ return 0; };
7040 const auto unary = [](int x){ return x; };
7041 using nullary_t = decltype(nullary);
7042 using unary_t = decltype(unary);
7043 const auto higher1st = [](nullary_t f){ return f(); };
7044 const auto higher2nd = [unary](nullary_t f1){
7045 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7046 };
7047 return higher1st(nullary) + higher2nd(nullary)(unary);
7048 }
7049
7050 }
7051
7052 namespace test_variadic_templates
7053 {
7054
7055 template <int...>
7056 struct sum;
7057
7058 template <int N0, int... N1toN>
7059 struct sum<N0, N1toN...>
7060 {
7061 static constexpr auto value = N0 + sum<N1toN...>::value;
7062 };
7063
7064 template <>
7065 struct sum<>
7066 {
7067 static constexpr auto value = 0;
7068 };
7069
7070 static_assert(sum<>::value == 0, "");
7071 static_assert(sum<1>::value == 1, "");
7072 static_assert(sum<23>::value == 23, "");
7073 static_assert(sum<1, 2>::value == 3, "");
7074 static_assert(sum<5, 5, 11>::value == 21, "");
7075 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7076
7077 }
7078
7079 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7080 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7081 // because of this.
7082 namespace test_template_alias_sfinae
7083 {
7084
7085 struct foo {};
7086
7087 template<typename T>
7088 using member = typename T::member_type;
7089
7090 template<typename T>
7091 void func(...) {}
7092
7093 template<typename T>
7094 void func(member<T>*) {}
7095
7096 void test();
7097
7098 void test() { func<foo>(0); }
7099
7100 }
7101
7102 } // namespace cxx11
7103
7104 #endif // __cplusplus >= 201103L
7105
7106
7107
7108 _ACEOF
7109 if ac_fn_cxx_try_compile "$LINENO"; then :
7110 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7111 else
7112 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7117 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7118 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7119 ac_success=yes
7120 fi
7121
7122 if test x$ac_success = xno; then
7123 for alternative in ${ax_cxx_compile_alternatives}; do
7124 switch="-std=gnu++${alternative}"
7125 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7127 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7128 if eval \${$cachevar+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 ac_save_CXX="$CXX"
7132 CXX="$CXX $switch"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135
7136
7137 // If the compiler admits that it is not ready for C++11, why torture it?
7138 // Hopefully, this will speed up the test.
7139
7140 #ifndef __cplusplus
7141
7142 #error "This is not a C++ compiler"
7143
7144 #elif __cplusplus < 201103L
7145
7146 #error "This is not a C++11 compiler"
7147
7148 #else
7149
7150 namespace cxx11
7151 {
7152
7153 namespace test_static_assert
7154 {
7155
7156 template <typename T>
7157 struct check
7158 {
7159 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7160 };
7161
7162 }
7163
7164 namespace test_final_override
7165 {
7166
7167 struct Base
7168 {
7169 virtual ~Base() {}
7170 virtual void f() {}
7171 };
7172
7173 struct Derived : public Base
7174 {
7175 virtual ~Derived() override {}
7176 virtual void f() override {}
7177 };
7178
7179 }
7180
7181 namespace test_double_right_angle_brackets
7182 {
7183
7184 template < typename T >
7185 struct check {};
7186
7187 typedef check<void> single_type;
7188 typedef check<check<void>> double_type;
7189 typedef check<check<check<void>>> triple_type;
7190 typedef check<check<check<check<void>>>> quadruple_type;
7191
7192 }
7193
7194 namespace test_decltype
7195 {
7196
7197 int
7198 f()
7199 {
7200 int a = 1;
7201 decltype(a) b = 2;
7202 return a + b;
7203 }
7204
7205 }
7206
7207 namespace test_type_deduction
7208 {
7209
7210 template < typename T1, typename T2 >
7211 struct is_same
7212 {
7213 static const bool value = false;
7214 };
7215
7216 template < typename T >
7217 struct is_same<T, T>
7218 {
7219 static const bool value = true;
7220 };
7221
7222 template < typename T1, typename T2 >
7223 auto
7224 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7225 {
7226 return a1 + a2;
7227 }
7228
7229 int
7230 test(const int c, volatile int v)
7231 {
7232 static_assert(is_same<int, decltype(0)>::value == true, "");
7233 static_assert(is_same<int, decltype(c)>::value == false, "");
7234 static_assert(is_same<int, decltype(v)>::value == false, "");
7235 auto ac = c;
7236 auto av = v;
7237 auto sumi = ac + av + 'x';
7238 auto sumf = ac + av + 1.0;
7239 static_assert(is_same<int, decltype(ac)>::value == true, "");
7240 static_assert(is_same<int, decltype(av)>::value == true, "");
7241 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7242 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7243 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7244 return (sumf > 0.0) ? sumi : add(c, v);
7245 }
7246
7247 }
7248
7249 namespace test_noexcept
7250 {
7251
7252 int f() { return 0; }
7253 int g() noexcept { return 0; }
7254
7255 static_assert(noexcept(f()) == false, "");
7256 static_assert(noexcept(g()) == true, "");
7257
7258 }
7259
7260 namespace test_constexpr
7261 {
7262
7263 template < typename CharT >
7264 unsigned long constexpr
7265 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7266 {
7267 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7268 }
7269
7270 template < typename CharT >
7271 unsigned long constexpr
7272 strlen_c(const CharT *const s) noexcept
7273 {
7274 return strlen_c_r(s, 0UL);
7275 }
7276
7277 static_assert(strlen_c("") == 0UL, "");
7278 static_assert(strlen_c("1") == 1UL, "");
7279 static_assert(strlen_c("example") == 7UL, "");
7280 static_assert(strlen_c("another\0example") == 7UL, "");
7281
7282 }
7283
7284 namespace test_rvalue_references
7285 {
7286
7287 template < int N >
7288 struct answer
7289 {
7290 static constexpr int value = N;
7291 };
7292
7293 answer<1> f(int&) { return answer<1>(); }
7294 answer<2> f(const int&) { return answer<2>(); }
7295 answer<3> f(int&&) { return answer<3>(); }
7296
7297 void
7298 test()
7299 {
7300 int i = 0;
7301 const int c = 0;
7302 static_assert(decltype(f(i))::value == 1, "");
7303 static_assert(decltype(f(c))::value == 2, "");
7304 static_assert(decltype(f(0))::value == 3, "");
7305 }
7306
7307 }
7308
7309 namespace test_uniform_initialization
7310 {
7311
7312 struct test
7313 {
7314 static const int zero {};
7315 static const int one {1};
7316 };
7317
7318 static_assert(test::zero == 0, "");
7319 static_assert(test::one == 1, "");
7320
7321 }
7322
7323 namespace test_lambdas
7324 {
7325
7326 void
7327 test1()
7328 {
7329 auto lambda1 = [](){};
7330 auto lambda2 = lambda1;
7331 lambda1();
7332 lambda2();
7333 }
7334
7335 int
7336 test2()
7337 {
7338 auto a = [](int i, int j){ return i + j; }(1, 2);
7339 auto b = []() -> int { return '0'; }();
7340 auto c = [=](){ return a + b; }();
7341 auto d = [&](){ return c; }();
7342 auto e = [a, &b](int x) mutable {
7343 const auto identity = [](int y){ return y; };
7344 for (auto i = 0; i < a; ++i)
7345 a += b--;
7346 return x + identity(a + b);
7347 }(0);
7348 return a + b + c + d + e;
7349 }
7350
7351 int
7352 test3()
7353 {
7354 const auto nullary = [](){ return 0; };
7355 const auto unary = [](int x){ return x; };
7356 using nullary_t = decltype(nullary);
7357 using unary_t = decltype(unary);
7358 const auto higher1st = [](nullary_t f){ return f(); };
7359 const auto higher2nd = [unary](nullary_t f1){
7360 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7361 };
7362 return higher1st(nullary) + higher2nd(nullary)(unary);
7363 }
7364
7365 }
7366
7367 namespace test_variadic_templates
7368 {
7369
7370 template <int...>
7371 struct sum;
7372
7373 template <int N0, int... N1toN>
7374 struct sum<N0, N1toN...>
7375 {
7376 static constexpr auto value = N0 + sum<N1toN...>::value;
7377 };
7378
7379 template <>
7380 struct sum<>
7381 {
7382 static constexpr auto value = 0;
7383 };
7384
7385 static_assert(sum<>::value == 0, "");
7386 static_assert(sum<1>::value == 1, "");
7387 static_assert(sum<23>::value == 23, "");
7388 static_assert(sum<1, 2>::value == 3, "");
7389 static_assert(sum<5, 5, 11>::value == 21, "");
7390 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7391
7392 }
7393
7394 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7395 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7396 // because of this.
7397 namespace test_template_alias_sfinae
7398 {
7399
7400 struct foo {};
7401
7402 template<typename T>
7403 using member = typename T::member_type;
7404
7405 template<typename T>
7406 void func(...) {}
7407
7408 template<typename T>
7409 void func(member<T>*) {}
7410
7411 void test();
7412
7413 void test() { func<foo>(0); }
7414
7415 }
7416
7417 } // namespace cxx11
7418
7419 #endif // __cplusplus >= 201103L
7420
7421
7422
7423 _ACEOF
7424 if ac_fn_cxx_try_compile "$LINENO"; then :
7425 eval $cachevar=yes
7426 else
7427 eval $cachevar=no
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 CXX="$ac_save_CXX"
7431 fi
7432 eval ac_res=\$$cachevar
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7434 $as_echo "$ac_res" >&6; }
7435 if eval test x\$$cachevar = xyes; then
7436 CXX="$CXX $switch"
7437 if test -n "$CXXCPP" ; then
7438 CXXCPP="$CXXCPP $switch"
7439 fi
7440 ac_success=yes
7441 break
7442 fi
7443 done
7444 fi
7445
7446 if test x$ac_success = xno; then
7447 for alternative in ${ax_cxx_compile_alternatives}; do
7448 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7449 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7451 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7452 if eval \${$cachevar+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 ac_save_CXX="$CXX"
7456 CXX="$CXX $switch"
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459
7460
7461 // If the compiler admits that it is not ready for C++11, why torture it?
7462 // Hopefully, this will speed up the test.
7463
7464 #ifndef __cplusplus
7465
7466 #error "This is not a C++ compiler"
7467
7468 #elif __cplusplus < 201103L
7469
7470 #error "This is not a C++11 compiler"
7471
7472 #else
7473
7474 namespace cxx11
7475 {
7476
7477 namespace test_static_assert
7478 {
7479
7480 template <typename T>
7481 struct check
7482 {
7483 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7484 };
7485
7486 }
7487
7488 namespace test_final_override
7489 {
7490
7491 struct Base
7492 {
7493 virtual ~Base() {}
7494 virtual void f() {}
7495 };
7496
7497 struct Derived : public Base
7498 {
7499 virtual ~Derived() override {}
7500 virtual void f() override {}
7501 };
7502
7503 }
7504
7505 namespace test_double_right_angle_brackets
7506 {
7507
7508 template < typename T >
7509 struct check {};
7510
7511 typedef check<void> single_type;
7512 typedef check<check<void>> double_type;
7513 typedef check<check<check<void>>> triple_type;
7514 typedef check<check<check<check<void>>>> quadruple_type;
7515
7516 }
7517
7518 namespace test_decltype
7519 {
7520
7521 int
7522 f()
7523 {
7524 int a = 1;
7525 decltype(a) b = 2;
7526 return a + b;
7527 }
7528
7529 }
7530
7531 namespace test_type_deduction
7532 {
7533
7534 template < typename T1, typename T2 >
7535 struct is_same
7536 {
7537 static const bool value = false;
7538 };
7539
7540 template < typename T >
7541 struct is_same<T, T>
7542 {
7543 static const bool value = true;
7544 };
7545
7546 template < typename T1, typename T2 >
7547 auto
7548 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7549 {
7550 return a1 + a2;
7551 }
7552
7553 int
7554 test(const int c, volatile int v)
7555 {
7556 static_assert(is_same<int, decltype(0)>::value == true, "");
7557 static_assert(is_same<int, decltype(c)>::value == false, "");
7558 static_assert(is_same<int, decltype(v)>::value == false, "");
7559 auto ac = c;
7560 auto av = v;
7561 auto sumi = ac + av + 'x';
7562 auto sumf = ac + av + 1.0;
7563 static_assert(is_same<int, decltype(ac)>::value == true, "");
7564 static_assert(is_same<int, decltype(av)>::value == true, "");
7565 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7566 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7567 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7568 return (sumf > 0.0) ? sumi : add(c, v);
7569 }
7570
7571 }
7572
7573 namespace test_noexcept
7574 {
7575
7576 int f() { return 0; }
7577 int g() noexcept { return 0; }
7578
7579 static_assert(noexcept(f()) == false, "");
7580 static_assert(noexcept(g()) == true, "");
7581
7582 }
7583
7584 namespace test_constexpr
7585 {
7586
7587 template < typename CharT >
7588 unsigned long constexpr
7589 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7590 {
7591 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7592 }
7593
7594 template < typename CharT >
7595 unsigned long constexpr
7596 strlen_c(const CharT *const s) noexcept
7597 {
7598 return strlen_c_r(s, 0UL);
7599 }
7600
7601 static_assert(strlen_c("") == 0UL, "");
7602 static_assert(strlen_c("1") == 1UL, "");
7603 static_assert(strlen_c("example") == 7UL, "");
7604 static_assert(strlen_c("another\0example") == 7UL, "");
7605
7606 }
7607
7608 namespace test_rvalue_references
7609 {
7610
7611 template < int N >
7612 struct answer
7613 {
7614 static constexpr int value = N;
7615 };
7616
7617 answer<1> f(int&) { return answer<1>(); }
7618 answer<2> f(const int&) { return answer<2>(); }
7619 answer<3> f(int&&) { return answer<3>(); }
7620
7621 void
7622 test()
7623 {
7624 int i = 0;
7625 const int c = 0;
7626 static_assert(decltype(f(i))::value == 1, "");
7627 static_assert(decltype(f(c))::value == 2, "");
7628 static_assert(decltype(f(0))::value == 3, "");
7629 }
7630
7631 }
7632
7633 namespace test_uniform_initialization
7634 {
7635
7636 struct test
7637 {
7638 static const int zero {};
7639 static const int one {1};
7640 };
7641
7642 static_assert(test::zero == 0, "");
7643 static_assert(test::one == 1, "");
7644
7645 }
7646
7647 namespace test_lambdas
7648 {
7649
7650 void
7651 test1()
7652 {
7653 auto lambda1 = [](){};
7654 auto lambda2 = lambda1;
7655 lambda1();
7656 lambda2();
7657 }
7658
7659 int
7660 test2()
7661 {
7662 auto a = [](int i, int j){ return i + j; }(1, 2);
7663 auto b = []() -> int { return '0'; }();
7664 auto c = [=](){ return a + b; }();
7665 auto d = [&](){ return c; }();
7666 auto e = [a, &b](int x) mutable {
7667 const auto identity = [](int y){ return y; };
7668 for (auto i = 0; i < a; ++i)
7669 a += b--;
7670 return x + identity(a + b);
7671 }(0);
7672 return a + b + c + d + e;
7673 }
7674
7675 int
7676 test3()
7677 {
7678 const auto nullary = [](){ return 0; };
7679 const auto unary = [](int x){ return x; };
7680 using nullary_t = decltype(nullary);
7681 using unary_t = decltype(unary);
7682 const auto higher1st = [](nullary_t f){ return f(); };
7683 const auto higher2nd = [unary](nullary_t f1){
7684 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7685 };
7686 return higher1st(nullary) + higher2nd(nullary)(unary);
7687 }
7688
7689 }
7690
7691 namespace test_variadic_templates
7692 {
7693
7694 template <int...>
7695 struct sum;
7696
7697 template <int N0, int... N1toN>
7698 struct sum<N0, N1toN...>
7699 {
7700 static constexpr auto value = N0 + sum<N1toN...>::value;
7701 };
7702
7703 template <>
7704 struct sum<>
7705 {
7706 static constexpr auto value = 0;
7707 };
7708
7709 static_assert(sum<>::value == 0, "");
7710 static_assert(sum<1>::value == 1, "");
7711 static_assert(sum<23>::value == 23, "");
7712 static_assert(sum<1, 2>::value == 3, "");
7713 static_assert(sum<5, 5, 11>::value == 21, "");
7714 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7715
7716 }
7717
7718 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7719 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7720 // because of this.
7721 namespace test_template_alias_sfinae
7722 {
7723
7724 struct foo {};
7725
7726 template<typename T>
7727 using member = typename T::member_type;
7728
7729 template<typename T>
7730 void func(...) {}
7731
7732 template<typename T>
7733 void func(member<T>*) {}
7734
7735 void test();
7736
7737 void test() { func<foo>(0); }
7738
7739 }
7740
7741 } // namespace cxx11
7742
7743 #endif // __cplusplus >= 201103L
7744
7745
7746
7747 _ACEOF
7748 if ac_fn_cxx_try_compile "$LINENO"; then :
7749 eval $cachevar=yes
7750 else
7751 eval $cachevar=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 CXX="$ac_save_CXX"
7755 fi
7756 eval ac_res=\$$cachevar
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7758 $as_echo "$ac_res" >&6; }
7759 if eval test x\$$cachevar = xyes; then
7760 CXX="$CXX $switch"
7761 if test -n "$CXXCPP" ; then
7762 CXXCPP="$CXXCPP $switch"
7763 fi
7764 ac_success=yes
7765 break
7766 fi
7767 done
7768 if test x$ac_success = xyes; then
7769 break
7770 fi
7771 done
7772 fi
7773 CXX_FOR_BUILD="$CXX"
7774 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7775 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7776 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7777 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7778 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7779 ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7786 if test x$ac_success = xno; then
7787 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7788 fi
7789 fi
7790 if test x$ac_success = xno; then
7791 HAVE_CXX11_FOR_BUILD=0
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7793 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7794 else
7795 HAVE_CXX11_FOR_BUILD=1
7796
7797 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7798
7799 fi
7800
7801
7802 fi
7803 fi
7804
7805 # Check whether --enable-pgo-build was given.
7806 if test "${enable_pgo_build+set}" = set; then :
7807 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7808 else
7809 enable_pgo_build=no
7810 fi
7811
7812
7813 # Issue errors and warnings for invalid/strange PGO build combinations.
7814 case "$have_compiler:$host:$target:$enable_pgo_build" in
7815 *:*:*:no) ;;
7816
7817 # Allow the PGO build only if we aren't building a compiler and
7818 # we are in a native configuration.
7819 no:$build:$build:yes | no:$build:$build:lto) ;;
7820
7821 # Disallow the PGO bootstrap if we are building a compiler.
7822 yes:*:*:yes | yes:*:*:lto)
7823 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7824
7825 *)
7826 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7827 ;;
7828 esac
7829
7830 if test "$enable_pgo_build" != "no"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7832 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7833 old_CFLAGS="$CFLAGS"
7834 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7835 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7836
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 int foo;
7840 _ACEOF
7841 if ac_fn_c_try_compile "$LINENO"; then :
7842
7843 else
7844 PGO_BUILD_GEN_CFLAGS=
7845 fi
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847 CFLAGS="$old_CFLAGS"
7848 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7850 $as_echo "yes" >&6; }
7851 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7852 else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7856 fi
7857
7858 if test "$enable_pgo_build" = "lto"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7860 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7861 old_CFLAGS="$CFLAGS"
7862 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7863 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 int foo;
7867 _ACEOF
7868 if ac_fn_c_try_compile "$LINENO"; then :
7869
7870 else
7871 PGO_BUILD_LTO_CFLAGS=
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 CFLAGS="$old_CFLAGS"
7875 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877 $as_echo "yes" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7882 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7883 fi
7884 fi
7885 fi
7886
7887
7888
7889
7890 # Used for setting $lt_cv_objdir
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7892 $as_echo_n "checking for objdir... " >&6; }
7893 if ${lt_cv_objdir+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 rm -f .libs 2>/dev/null
7897 mkdir .libs 2>/dev/null
7898 if test -d .libs; then
7899 lt_cv_objdir=.libs
7900 else
7901 # MS-DOS does not allow filenames that begin with a dot.
7902 lt_cv_objdir=_libs
7903 fi
7904 rmdir .libs 2>/dev/null
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7907 $as_echo "$lt_cv_objdir" >&6; }
7908 objdir=$lt_cv_objdir
7909
7910
7911
7912
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define LT_OBJDIR "$lt_cv_objdir/"
7916 _ACEOF
7917
7918
7919
7920 # Check for GMP, MPFR and MPC
7921 gmplibs="-lmpc -lmpfr -lgmp"
7922 gmpinc=
7923 have_gmp=no
7924
7925 # Specify a location for mpc
7926 # check for this first so it ends up on the link line before mpfr.
7927
7928 # Check whether --with-mpc was given.
7929 if test "${with_mpc+set}" = set; then :
7930 withval=$with_mpc;
7931 fi
7932
7933
7934 # Check whether --with-mpc-include was given.
7935 if test "${with_mpc_include+set}" = set; then :
7936 withval=$with_mpc_include;
7937 fi
7938
7939
7940 # Check whether --with-mpc-lib was given.
7941 if test "${with_mpc_lib+set}" = set; then :
7942 withval=$with_mpc_lib;
7943 fi
7944
7945
7946 if test "x$with_mpc" != x; then
7947 gmplibs="-L$with_mpc/lib $gmplibs"
7948 gmpinc="-I$with_mpc/include $gmpinc"
7949 fi
7950 if test "x$with_mpc_include" != x; then
7951 gmpinc="-I$with_mpc_include $gmpinc"
7952 fi
7953 if test "x$with_mpc_lib" != x; then
7954 gmplibs="-L$with_mpc_lib $gmplibs"
7955 fi
7956 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7957 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7958 gmpinc='-I$$s/mpc/src '"$gmpinc"
7959 # Do not test the mpc version. Assume that it is sufficient, since
7960 # it is in the source tree, and the library has not been built yet
7961 # but it would be included on the link line in the version check below
7962 # hence making the test fail.
7963 have_gmp=yes
7964 fi
7965
7966 # Specify a location for mpfr
7967 # check for this first so it ends up on the link line before gmp.
7968
7969 # Check whether --with-mpfr was given.
7970 if test "${with_mpfr+set}" = set; then :
7971 withval=$with_mpfr;
7972 fi
7973
7974
7975 # Check whether --with-mpfr-include was given.
7976 if test "${with_mpfr_include+set}" = set; then :
7977 withval=$with_mpfr_include;
7978 fi
7979
7980
7981 # Check whether --with-mpfr-lib was given.
7982 if test "${with_mpfr_lib+set}" = set; then :
7983 withval=$with_mpfr_lib;
7984 fi
7985
7986
7987 if test "x$with_mpfr" != x; then
7988 gmplibs="-L$with_mpfr/lib $gmplibs"
7989 gmpinc="-I$with_mpfr/include $gmpinc"
7990 fi
7991 if test "x$with_mpfr_include" != x; then
7992 gmpinc="-I$with_mpfr_include $gmpinc"
7993 fi
7994 if test "x$with_mpfr_lib" != x; then
7995 gmplibs="-L$with_mpfr_lib $gmplibs"
7996 fi
7997 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7998 # MPFR v3.1.0 moved the sources into a src sub-directory.
7999 if ! test -d ${srcdir}/mpfr/src; then
8000 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8001 fi
8002 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8003 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8004 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8005 # Do not test the mpfr version. Assume that it is sufficient, since
8006 # it is in the source tree, and the library has not been built yet
8007 # but it would be included on the link line in the version check below
8008 # hence making the test fail.
8009 have_gmp=yes
8010 fi
8011
8012 # Specify a location for gmp
8013
8014 # Check whether --with-gmp was given.
8015 if test "${with_gmp+set}" = set; then :
8016 withval=$with_gmp;
8017 fi
8018
8019
8020 # Check whether --with-gmp-include was given.
8021 if test "${with_gmp_include+set}" = set; then :
8022 withval=$with_gmp_include;
8023 fi
8024
8025
8026 # Check whether --with-gmp-lib was given.
8027 if test "${with_gmp_lib+set}" = set; then :
8028 withval=$with_gmp_lib;
8029 fi
8030
8031
8032
8033 if test "x$with_gmp" != x; then
8034 gmplibs="-L$with_gmp/lib $gmplibs"
8035 gmpinc="-I$with_gmp/include $gmpinc"
8036 fi
8037 if test "x$with_gmp_include" != x; then
8038 gmpinc="-I$with_gmp_include $gmpinc"
8039 fi
8040 if test "x$with_gmp_lib" != x; then
8041 gmplibs="-L$with_gmp_lib $gmplibs"
8042 fi
8043 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8044 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8045 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8046 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8047 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8048 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8049 # Do not test the gmp version. Assume that it is sufficient, since
8050 # it is in the source tree, and the library has not been built yet
8051 # but it would be included on the link line in the version check below
8052 # hence making the test fail.
8053 have_gmp=yes
8054 fi
8055
8056 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8057 have_gmp=yes
8058 saved_CFLAGS="$CFLAGS"
8059 CFLAGS="$CFLAGS $gmpinc"
8060 # Check for the recommended and required versions of GMP.
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8062 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 #include "gmp.h"
8066 int
8067 main ()
8068 {
8069
8070 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8071 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8072 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8073 choke me
8074 #endif
8075
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <gmp.h>
8084 int
8085 main ()
8086 {
8087
8088 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8089 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8090 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8091 choke me
8092 #endif
8093
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100 $as_echo "yes" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8103 $as_echo "buggy but acceptable" >&6; }
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }; have_gmp=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111
8112 # If we have GMP, check the MPFR version.
8113 if test x"$have_gmp" = xyes; then
8114 # Check for the recommended and required versions of MPFR.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8116 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <gmp.h>
8120 #include <mpfr.h>
8121 int
8122 main ()
8123 {
8124
8125 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8126 choke me
8127 #endif
8128
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include <gmp.h>
8137 #include <mpfr.h>
8138 int
8139 main ()
8140 {
8141
8142 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8143 choke me
8144 #endif
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8152 $as_echo "yes" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8155 $as_echo "buggy but acceptable" >&6; }
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }; have_gmp=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 fi
8164
8165 # Check for the MPC header version.
8166 if test x"$have_gmp" = xyes ; then
8167 # Check for the recommended and required versions of MPC.
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8169 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8172 #include <mpc.h>
8173 int
8174 main ()
8175 {
8176
8177 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8178 choke me
8179 #endif
8180
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_compile "$LINENO"; then :
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 #include <mpc.h>
8189 int
8190 main ()
8191 {
8192
8193 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8194 choke me
8195 #endif
8196
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8203 $as_echo "yes" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8206 $as_echo "buggy but acceptable" >&6; }
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }; have_gmp=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215
8216 # Now check the MPFR library.
8217 if test x"$have_gmp" = xyes; then
8218 saved_LIBS="$LIBS"
8219 LIBS="$LIBS $gmplibs"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8221 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <mpc.h>
8225 int
8226 main ()
8227 {
8228
8229 mpfr_t n;
8230 mpfr_t x;
8231 mpc_t c;
8232 int t;
8233 mpfr_init (n);
8234 mpfr_init (x);
8235 mpfr_atan2 (n, n, x, MPFR_RNDN);
8236 mpfr_erfc (n, x, MPFR_RNDN);
8237 mpfr_subnormalize (x, t, MPFR_RNDN);
8238 mpfr_clear(n);
8239 mpfr_clear(x);
8240 mpc_init2 (c, 53);
8241 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8242 mpc_cosh (c, c, MPC_RNDNN);
8243 mpc_pow (c, c, c, MPC_RNDNN);
8244 mpc_acosh (c, c, MPC_RNDNN);
8245 mpc_clear (c);
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }; have_gmp=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS="$saved_LIBS"
8261 fi
8262
8263 CFLAGS="$saved_CFLAGS"
8264
8265 # The library versions listed in the error message below should match
8266 # the HARD-minimums enforced above.
8267 if test x$have_gmp != xyes; then
8268 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8269 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8270 their locations. Source code for these libraries can be found at
8271 their respective hosting sites as well as at
8272 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8273 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8274 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8275 make sure that you have installed both the libraries and the header
8276 files. They may be located in separate packages." "$LINENO" 5
8277 fi
8278 fi
8279
8280 # Flags needed for both GMP, MPFR and/or MPC.
8281
8282
8283
8284
8285
8286
8287
8288 # Libraries to use for stage1 or when not bootstrapping.
8289
8290 # Check whether --with-stage1-libs was given.
8291 if test "${with_stage1_libs+set}" = set; then :
8292 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8293 stage1_libs=
8294 else
8295 stage1_libs=$withval
8296 fi
8297 else
8298 stage1_libs=
8299 fi
8300
8301
8302
8303 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8304 # default is yes if gcc is being built; no otherwise. The reason for
8305 # this default is that gdb is sometimes linked against GNU Source
8306 # Highlight, which is a shared library that uses C++ exceptions. In
8307 # this case, -static-libstdc++ will cause crashes.
8308
8309 # Check whether --with-static-standard-libraries was given.
8310 if test "${with_static_standard_libraries+set}" = set; then :
8311 withval=$with_static_standard_libraries;
8312 else
8313 with_static_standard_libraries=auto
8314 fi
8315
8316 if test "$with_static_standard_libraries" = auto; then
8317 with_static_standard_libraries=$have_compiler
8318 fi
8319
8320 # Linker flags to use for stage1 or when not bootstrapping.
8321
8322 # Check whether --with-stage1-ldflags was given.
8323 if test "${with_stage1_ldflags+set}" = set; then :
8324 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8325 stage1_ldflags=
8326 else
8327 stage1_ldflags=$withval
8328 fi
8329 else
8330 stage1_ldflags=
8331 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8332 # if supported. But if the user explicitly specified the libraries to use,
8333 # trust that they are doing what they want.
8334 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8335 -a "$have_static_libs" = yes; then
8336 stage1_ldflags="-static-libstdc++ -static-libgcc"
8337 fi
8338 fi
8339
8340
8341
8342 # Libraries to use for stage2 and later builds.
8343
8344 # Check whether --with-boot-libs was given.
8345 if test "${with_boot_libs+set}" = set; then :
8346 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8347 poststage1_libs=
8348 else
8349 poststage1_libs=$withval
8350 fi
8351 else
8352 poststage1_libs=
8353 fi
8354
8355
8356
8357 # Linker flags to use for stage2 and later builds.
8358
8359 # Check whether --with-boot-ldflags was given.
8360 if test "${with_boot_ldflags+set}" = set; then :
8361 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8362 poststage1_ldflags=
8363 else
8364 poststage1_ldflags=$withval
8365 fi
8366 else
8367 poststage1_ldflags=
8368 # In stages 2 and 3, default to linking libstdc++ and libgcc
8369 # statically. But if the user explicitly specified the libraries to
8370 # use, trust that they are doing what they want.
8371 if test "$poststage1_libs" = ""; then
8372 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8373 fi
8374 fi
8375
8376
8377
8378 # GCC GRAPHITE dependency isl.
8379 # Basic setup is inlined here, actual checks are in config/isl.m4
8380
8381
8382 # Check whether --with-isl was given.
8383 if test "${with_isl+set}" = set; then :
8384 withval=$with_isl;
8385 fi
8386
8387
8388 # Treat --without-isl as a request to disable
8389 # GRAPHITE support and skip all following checks.
8390 if test "x$with_isl" != "xno"; then
8391 # Check for isl
8392
8393
8394 # Check whether --with-isl-include was given.
8395 if test "${with_isl_include+set}" = set; then :
8396 withval=$with_isl_include;
8397 fi
8398
8399
8400 # Check whether --with-isl-lib was given.
8401 if test "${with_isl_lib+set}" = set; then :
8402 withval=$with_isl_lib;
8403 fi
8404
8405
8406 # Check whether --enable-isl-version-check was given.
8407 if test "${enable_isl_version_check+set}" = set; then :
8408 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8409 else
8410 ENABLE_ISL_CHECK=yes
8411 fi
8412
8413
8414 # Initialize isllibs and islinc.
8415 case $with_isl in
8416 no)
8417 isllibs=
8418 islinc=
8419 ;;
8420 "" | yes)
8421 ;;
8422 *)
8423 isllibs="-L$with_isl/lib"
8424 islinc="-I$with_isl/include"
8425 ;;
8426 esac
8427 if test "x${with_isl_include}" != x ; then
8428 islinc="-I$with_isl_include"
8429 fi
8430 if test "x${with_isl_lib}" != x; then
8431 isllibs="-L$with_isl_lib"
8432 fi
8433 if test "x${islinc}" = x && test "x${isllibs}" = x \
8434 && test -d ${srcdir}/isl; then
8435 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8436 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8437 ENABLE_ISL_CHECK=no
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8439 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8440 fi
8441
8442 isllibs="${isllibs} -lisl"
8443
8444
8445
8446 if test "${ENABLE_ISL_CHECK}" = yes ; then
8447 _isl_saved_CFLAGS=$CFLAGS
8448 _isl_saved_LDFLAGS=$LDFLAGS
8449 _isl_saved_LIBS=$LIBS
8450
8451 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8452 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8453 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8454
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8456 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <isl/schedule.h>
8460 int
8461 main ()
8462 {
8463 isl_options_set_schedule_serialize_sccs (NULL, 0);
8464 ;
8465 return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 gcc_cv_isl=yes
8470 else
8471 gcc_cv_isl=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8476 $as_echo "$gcc_cv_isl" >&6; }
8477
8478 if test "${gcc_cv_isl}" = no ; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8480 $as_echo "required isl version is 0.15 or later" >&6; }
8481 fi
8482
8483 CFLAGS=$_isl_saved_CFLAGS
8484 LDFLAGS=$_isl_saved_LDFLAGS
8485 LIBS=$_isl_saved_LIBS
8486 fi
8487
8488
8489
8490
8491
8492
8493 if test "x${with_isl}" = xno; then
8494 graphite_requested=no
8495 elif test "x${with_isl}" != x \
8496 || test "x${with_isl_include}" != x \
8497 || test "x${with_isl_lib}" != x ; then
8498 graphite_requested=yes
8499 else
8500 graphite_requested=no
8501 fi
8502
8503
8504
8505 if test "${gcc_cv_isl}" = no ; then
8506 isllibs=
8507 islinc=
8508 fi
8509
8510 if test "${graphite_requested}" = yes \
8511 && test "x${isllibs}" = x \
8512 && test "x${islinc}" = x ; then
8513
8514 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8515 fi
8516
8517
8518 fi
8519
8520 # If the isl check failed, disable builds of in-tree variant of isl
8521 if test "x$with_isl" = xno ||
8522 test "x$gcc_cv_isl" = xno; then
8523 noconfigdirs="$noconfigdirs isl"
8524 islinc=
8525 fi
8526
8527
8528
8529
8530 # Check for LTO support.
8531 # Check whether --enable-lto was given.
8532 if test "${enable_lto+set}" = set; then :
8533 enableval=$enable_lto; enable_lto=$enableval
8534 else
8535 enable_lto=yes; default_enable_lto=yes
8536 fi
8537
8538
8539
8540
8541
8542 target_elf=no
8543 case $target in
8544 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8545 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8546 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8547 nvptx-*-none)
8548 target_elf=no
8549 ;;
8550 *)
8551 target_elf=yes
8552 ;;
8553 esac
8554
8555 if test $target_elf = yes; then :
8556 # ELF platforms build the lto-plugin always.
8557 build_lto_plugin=yes
8558
8559 else
8560 if test x"$default_enable_lto" = x"yes" ; then
8561 case $target in
8562 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8563 # On other non-ELF platforms, LTO has yet to be validated.
8564 *) enable_lto=no ;;
8565 esac
8566 else
8567 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8568 # It would also be nice to check the binutils support, but we don't
8569 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8570 # warn during gcc/ subconfigure; unless you're bootstrapping with
8571 # -flto it won't be needed until after installation anyway.
8572 case $target in
8573 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8574 *) if test x"$enable_lto" = x"yes"; then
8575 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8576 fi
8577 ;;
8578 esac
8579 fi
8580 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8581 # Build it unless LTO was explicitly disabled.
8582 case $target in
8583 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8584 *) ;;
8585 esac
8586
8587 fi
8588
8589
8590 # Check whether --enable-linker-plugin-configure-flags was given.
8591 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8592 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8593 else
8594 extra_linker_plugin_configure_flags=
8595 fi
8596
8597
8598 # Check whether --enable-linker-plugin-flags was given.
8599 if test "${enable_linker_plugin_flags+set}" = set; then :
8600 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8601 else
8602 extra_linker_plugin_flags=
8603 fi
8604
8605
8606
8607 # Enable --enable-host-shared.
8608 # Checked early to determine whether jit is an 'all' language
8609 # Check whether --enable-host-shared was given.
8610 if test "${enable_host_shared+set}" = set; then :
8611 enableval=$enable_host_shared; host_shared=$enableval
8612 case $host in
8613 x86_64-*-darwin* | aarch64-*-darwin*)
8614 if test x$host_shared != xyes ; then
8615 # PIC is the default, and actually cannot be switched off.
8616 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8617 host_shared=yes
8618 fi ;;
8619 *) ;;
8620 esac
8621 else
8622 case $host in
8623 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8624 *) host_shared=no ;;
8625 esac
8626 fi
8627
8628
8629
8630
8631 # If we are building PIC/PIE host executables, and we are building dependent
8632 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8633 # code.
8634 host_libs_picflag=
8635 if test "$host_shared" = "yes";then
8636 host_libs_picflag='--with-pic'
8637 fi
8638
8639
8640 # By default, C and C++ are the only stage 1 languages.
8641 stage1_languages=,c,
8642
8643 # Target libraries that we bootstrap.
8644 bootstrap_target_libs=,target-libgcc,
8645
8646 # Figure out what language subdirectories are present.
8647 # Look if the user specified --enable-languages="..."; if not, use
8648 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8649 # go away some day.
8650 # NB: embedded tabs in this IF block -- do not untabify
8651 if test -d ${srcdir}/gcc; then
8652 if test x"${enable_languages+set}" != xset; then
8653 if test x"${LANGUAGES+set}" = xset; then
8654 enable_languages="${LANGUAGES}"
8655 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8656 else
8657 enable_languages=default
8658 fi
8659 else
8660 if test x"${enable_languages}" = x ||
8661 test x"${enable_languages}" = xyes;
8662 then
8663 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8664 exit 1
8665 fi
8666 fi
8667 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8668
8669 # 'f95' is the old name for the 'fortran' language. We issue a warning
8670 # and make the substitution.
8671 case ,${enable_languages}, in
8672 *,f95,*)
8673 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8674 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8675 ;;
8676 esac
8677
8678 # If bootstrapping, C++ must be enabled.
8679 case ",$enable_languages,:$enable_bootstrap" in
8680 *,c++,*:*) ;;
8681 *:yes)
8682 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8683 enable_languages="${enable_languages},c++"
8684 else
8685 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8686 fi
8687 ;;
8688 esac
8689
8690 # First scan to see if an enabled language requires some other language.
8691 # We assume that a given config-lang.in will list all the language
8692 # front ends it requires, even if some are required indirectly.
8693 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8694 case ${lang_frag} in
8695 ..) ;;
8696 # The odd quoting in the next line works around
8697 # an apparent bug in bash 1.12 on linux.
8698 ${srcdir}/gcc/[*]/config-lang.in) ;;
8699 *)
8700 # From the config-lang.in, get $language, $lang_requires, and
8701 # $lang_requires_boot_languages.
8702 language=
8703 lang_requires=
8704 lang_requires_boot_languages=
8705 # set srcdir during sourcing lang_frag to the gcc dir.
8706 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8707 # polutes this shell
8708 saved_srcdir=${srcdir}
8709 srcdir=${srcdir}/gcc . ${lang_frag}
8710 srcdir=${saved_srcdir}
8711 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8712 case ,${enable_languages}, in
8713 *,$other,*) ;;
8714 *,default,*) ;;
8715 *,all,*) ;;
8716 *,$language,*)
8717 echo " \`$other' language required by \`$language'; enabling" 1>&2
8718 enable_languages="${enable_languages},${other}"
8719 ;;
8720 esac
8721 done
8722 for other in ${lang_requires_boot_languages} ; do
8723 if test "$other" != "c"; then
8724 case ,${enable_stage1_languages}, in
8725 *,$other,*) ;;
8726 *,default,*) ;;
8727 *,all,*) ;;
8728 *)
8729 case ,${enable_languages}, in
8730 *,$language,*)
8731 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8732 enable_stage1_languages="$enable_stage1_languages,${other}"
8733 ;;
8734 esac
8735 ;;
8736 esac
8737 fi
8738 done
8739 ;;
8740 esac
8741 done
8742
8743 new_enable_languages=,c,
8744
8745 # If LTO is enabled, add the LTO front end.
8746 if test "$enable_lto" = "yes" ; then
8747 case ,${enable_languages}, in
8748 *,lto,*) ;;
8749 *) enable_languages="${enable_languages},lto" ;;
8750 esac
8751 if test "${build_lto_plugin}" = "yes" ; then
8752 configdirs="$configdirs lto-plugin"
8753 fi
8754 fi
8755
8756 # If we're building an offloading compiler, add the LTO front end.
8757 if test x"$enable_as_accelerator_for" != x ; then
8758 case ,${enable_languages}, in
8759 *,lto,*) ;;
8760 *) enable_languages="${enable_languages},lto" ;;
8761 esac
8762 fi
8763
8764 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8765 potential_languages=,c,
8766
8767 enabled_target_libs=
8768 disabled_target_libs=
8769
8770 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8771 case ${lang_frag} in
8772 ..) ;;
8773 # The odd quoting in the next line works around
8774 # an apparent bug in bash 1.12 on linux.
8775 ${srcdir}/gcc/[*]/config-lang.in) ;;
8776 *)
8777 # From the config-lang.in, get $language, $target_libs,
8778 # $lang_dirs, $boot_language, and $build_by_default
8779 language=
8780 target_libs=
8781 lang_dirs=
8782 subdir_requires=
8783 boot_language=no
8784 build_by_default=yes
8785 # set srcdir during sourcing. See above about save & restore
8786 saved_srcdir=${srcdir}
8787 srcdir=${srcdir}/gcc . ${lang_frag}
8788 srcdir=${saved_srcdir}
8789 if test x${language} = x; then
8790 echo "${lang_frag} doesn't set \$language." 1>&2
8791 exit 1
8792 fi
8793
8794 if test "$language" = "c++"; then
8795 boot_language=yes
8796 fi
8797
8798 add_this_lang=no
8799 # C is always enabled, so no need to add it again
8800 if test "$language" != "c"; then
8801 case ,${enable_languages}, in
8802 *,${language},*)
8803 # Language was explicitly selected; include it
8804 add_this_lang=yes
8805 ;;
8806 *,all,*)
8807 # All languages are enabled
8808 add_this_lang=all
8809 ;;
8810 *,default,*)
8811 # 'default' was selected, select it if it is a default language
8812 add_this_lang=${build_by_default}
8813 ;;
8814 esac
8815 fi
8816
8817 # Disable languages that need other directories if these aren't available.
8818 for i in $subdir_requires; do
8819 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8820 case ${add_this_lang} in
8821 yes)
8822 # Specifically requested language; tell them.
8823 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8824 ;;
8825 all)
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8827 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8828 add_this_lang=unsupported
8829 ;;
8830 *)
8831 # Silently disable.
8832 add_this_lang=unsupported
8833 ;;
8834 esac
8835 done
8836
8837 # Disable Ada if no preexisting GNAT is available.
8838 case ${add_this_lang}:${language}:${have_gnat} in
8839 yes:ada:no)
8840 # Specifically requested language; tell them.
8841 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8842 ;;
8843 all:ada:no)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8845 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8846 add_this_lang=unsupported
8847 ;;
8848 *:ada:no)
8849 # Silently disable.
8850 add_this_lang=unsupported
8851 ;;
8852 esac
8853
8854 # Disable D if no preexisting GDC is available.
8855 case ${add_this_lang}:${language}:${have_gdc} in
8856 yes:d:no)
8857 # Specifically requested language; tell them.
8858 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8859 ;;
8860 all:d:no)
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8862 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8863 add_this_lang=unsupported
8864 ;;
8865 *:d:no)
8866 # Silently disable.
8867 add_this_lang=unsupported
8868 ;;
8869 esac
8870
8871 # Disable jit if -enable-host-shared not specified
8872 # but not if building for Mingw. All code in Windows
8873 # is position independent code (PIC).
8874 case $target in
8875 *mingw*) ;;
8876 *)
8877 case ${add_this_lang}:${language}:${host_shared} in
8878 yes:jit:no)
8879 # PR jit/64780: explicitly specify --enable-host-shared
8880 as_fn_error $? "
8881 Enabling language \"jit\" requires --enable-host-shared.
8882
8883 --enable-host-shared typically slows the rest of the compiler down by
8884 a few %, so you must explicitly enable it.
8885
8886 If you want to build both the jit and the regular compiler, it is often
8887 best to do this via two separate configure/builds, in separate
8888 directories, to avoid imposing the performance cost of
8889 --enable-host-shared on the regular compiler." "$LINENO" 5
8890 ;;
8891 all:jit:no)
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8893 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8894 add_this_lang=unsupported
8895 ;;
8896 *:jit:no)
8897 # Silently disable.
8898 add_this_lang=unsupported
8899 ;;
8900 esac
8901 ;;
8902 esac
8903
8904 # Disable a language that is unsupported by the target.
8905 case "${add_this_lang}: $unsupported_languages " in
8906 no:*) ;;
8907 unsupported:*) ;;
8908 *:*" $language "*)
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8910 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8911 add_this_lang=unsupported
8912 ;;
8913 esac
8914
8915 case $add_this_lang in
8916 unsupported)
8917 # Remove language-dependent dirs.
8918 disabled_target_libs="$disabled_target_libs $target_libs"
8919 noconfigdirs="$noconfigdirs $lang_dirs"
8920 ;;
8921 no)
8922 # Remove language-dependent dirs; still show language as supported.
8923 disabled_target_libs="$disabled_target_libs $target_libs"
8924 noconfigdirs="$noconfigdirs $lang_dirs"
8925 potential_languages="${potential_languages}${language},"
8926 ;;
8927 all|yes)
8928 new_enable_languages="${new_enable_languages}${language},"
8929 potential_languages="${potential_languages}${language},"
8930 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8931 enabled_target_libs="$enabled_target_libs $target_libs"
8932 case "${boot_language}:,$enable_stage1_languages," in
8933 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8934 # Add to (comma-separated) list of stage 1 languages.
8935 case ",$stage1_languages," in
8936 *,$language,* | ,yes, | ,all,) ;;
8937 *) stage1_languages="${stage1_languages}${language}," ;;
8938 esac
8939 # We need to bootstrap any supporting libraries.
8940 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8941 ;;
8942 esac
8943 ;;
8944 esac
8945 ;;
8946 esac
8947 done
8948
8949 # Add target libraries which are only needed for disabled languages
8950 # to noconfigdirs.
8951 if test -n "$disabled_target_libs"; then
8952 for dir in $disabled_target_libs; do
8953 case " $enabled_target_libs " in
8954 *" ${dir} "*) ;;
8955 *) noconfigdirs="$noconfigdirs $dir" ;;
8956 esac
8957 done
8958 fi
8959
8960 # Check whether --enable-stage1-languages was given.
8961 if test "${enable_stage1_languages+set}" = set; then :
8962 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8963 ,no,|,,)
8964 # Set it to something that will have no effect in the loop below
8965 enable_stage1_languages=c ;;
8966 ,yes,)
8967 enable_stage1_languages=`echo $new_enable_languages | \
8968 sed -e "s/^,//" -e "s/,$//" ` ;;
8969 *,all,*)
8970 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8971 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8972 esac
8973
8974 # Add "good" languages from enable_stage1_languages to stage1_languages,
8975 # while "bad" languages go in missing_languages. Leave no duplicates.
8976 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8977 case $potential_languages in
8978 *,$i,*)
8979 case $stage1_languages in
8980 *,$i,*) ;;
8981 *) stage1_languages="$stage1_languages$i," ;;
8982 esac ;;
8983 *)
8984 case $missing_languages in
8985 *,$i,*) ;;
8986 *) missing_languages="$missing_languages$i," ;;
8987 esac ;;
8988 esac
8989 done
8990 fi
8991
8992
8993 # Remove leading/trailing commas that were added for simplicity
8994 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8995 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8996 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8997 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8998
8999 if test "x$missing_languages" != x; then
9000 as_fn_error $? "
9001 The following requested languages could not be built: ${missing_languages}
9002 Supported languages are: ${potential_languages}" "$LINENO" 5
9003 fi
9004 if test "x$new_enable_languages" != "x$enable_languages"; then
9005 echo The following languages will be built: ${new_enable_languages}
9006 enable_languages="$new_enable_languages"
9007 fi
9008
9009
9010 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9011 fi
9012
9013 # Handle --disable-<component> generically.
9014 for dir in $configdirs $build_configdirs $target_configdirs ; do
9015 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9016 varname=`echo $dirname | sed -e s/+/_/g`
9017 if eval test x\${enable_${varname}} "=" xno ; then
9018 noconfigdirs="$noconfigdirs $dir"
9019 fi
9020 done
9021
9022 # Check for Boehm's garbage collector
9023 # Check whether --enable-objc-gc was given.
9024 if test "${enable_objc_gc+set}" = set; then :
9025 enableval=$enable_objc_gc;
9026 fi
9027
9028
9029 # Check whether --with-target-bdw-gc was given.
9030 if test "${with_target_bdw_gc+set}" = set; then :
9031 withval=$with_target_bdw_gc;
9032 fi
9033
9034
9035 # Check whether --with-target-bdw-gc-include was given.
9036 if test "${with_target_bdw_gc_include+set}" = set; then :
9037 withval=$with_target_bdw_gc_include;
9038 fi
9039
9040
9041 # Check whether --with-target-bdw-gc-lib was given.
9042 if test "${with_target_bdw_gc_lib+set}" = set; then :
9043 withval=$with_target_bdw_gc_lib;
9044 fi
9045
9046
9047 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9049 $as_echo_n "checking for bdw garbage collector... " >&6; }
9050 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9052 $as_echo "using bdw-gc in default locations" >&6; }
9053 else
9054 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9055 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9056 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9057 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9058 else
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9060 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9061 fi
9062 fi
9063 esac
9064
9065 # Disable libitm, libsanitizer, libvtv if we're not building C++
9066 case ,${enable_languages}, in
9067 *,c++,*)
9068 # Disable libitm, libsanitizer if we're not building libstdc++
9069 case "${noconfigdirs}" in
9070 *target-libstdc++-v3*)
9071 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9072 ;;
9073 *) ;;
9074 esac
9075 ;;
9076 *)
9077 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9078 ;;
9079 esac
9080
9081 # If gcc/ is not in the source tree then we'll not be building a
9082 # target compiler, assume in that case we don't want to build any
9083 # target libraries or tools.
9084 #
9085 # This was added primarily for the benefit for binutils-gdb who reuse
9086 # this configure script, but don't always have target tools available.
9087 if test ! -d ${srcdir}/gcc; then
9088 skipdirs="${skipdirs} ${target_configdirs}"
9089 fi
9090
9091 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9092 # $build_configdirs and $target_configdirs.
9093 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9094
9095 notsupp=""
9096 for dir in . $skipdirs $noconfigdirs ; do
9097 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9098 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9099 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9100 if test -r $srcdir/$dirname/configure ; then
9101 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9102 true
9103 else
9104 notsupp="$notsupp $dir"
9105 fi
9106 fi
9107 fi
9108 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9109 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9110 if test -r $srcdir/$dirname/configure ; then
9111 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9112 true
9113 else
9114 notsupp="$notsupp $dir"
9115 fi
9116 fi
9117 fi
9118 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9119 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9120 if test -r $srcdir/$dirname/configure ; then
9121 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9122 true
9123 else
9124 notsupp="$notsupp $dir"
9125 fi
9126 fi
9127 fi
9128 done
9129
9130 # Quietly strip out all directories which aren't configurable in this tree.
9131 # This relies on all configurable subdirectories being autoconfiscated, which
9132 # is now the case.
9133 build_configdirs_all="$build_configdirs"
9134 build_configdirs=
9135 for i in ${build_configdirs_all} ; do
9136 j=`echo $i | sed -e s/build-//g`
9137 if test -f ${srcdir}/$j/configure ; then
9138 build_configdirs="${build_configdirs} $i"
9139 fi
9140 done
9141
9142 configdirs_all="$configdirs"
9143 configdirs=
9144 for i in ${configdirs_all} ; do
9145 if test -f ${srcdir}/$i/configure ; then
9146 configdirs="${configdirs} $i"
9147 fi
9148 done
9149
9150 target_configdirs_all="$target_configdirs"
9151 target_configdirs=
9152 for i in ${target_configdirs_all} ; do
9153 j=`echo $i | sed -e s/target-//g`
9154 if test -f ${srcdir}/$j/configure ; then
9155 target_configdirs="${target_configdirs} $i"
9156 fi
9157 done
9158
9159 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9160 # so we have to add it after the preceding checks.
9161 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9162 then
9163 case " $configdirs " in
9164 *" libiberty "*)
9165 # If we can build libiberty, we can also build libiberty-linker-plugin.
9166 configdirs="$configdirs libiberty-linker-plugin"
9167 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9168 --with-libiberty=../libiberty-linker-plugin";;
9169 *)
9170 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9171 esac
9172 fi
9173
9174 # Sometimes we have special requirements for the host libiberty.
9175 extra_host_libiberty_configure_flags=
9176 case " $configdirs " in
9177 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9178 # When these are to be built as shared libraries, the same applies to
9179 # libiberty.
9180 extra_host_libiberty_configure_flags=--enable-shared
9181 ;;
9182 esac
9183
9184
9185 # Sometimes we have special requirements for the host zlib.
9186 extra_host_zlib_configure_flags=
9187 case " $configdirs " in
9188 *" bfd "*)
9189 # When bfd is to be built as a shared library, the same applies to
9190 # zlib.
9191 if test "$enable_shared" = "yes"; then
9192 extra_host_zlib_configure_flags=--enable-host-shared
9193 fi
9194 ;;
9195 esac
9196
9197
9198 # Produce a warning message for the subdirs we can't configure.
9199 # This isn't especially interesting in the Cygnus tree, but in the individual
9200 # FSF releases, it's important to let people know when their machine isn't
9201 # supported by the one or two programs in a package.
9202
9203 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9204 # If $appdirs is non-empty, at least one of those directories must still
9205 # be configured, or we error out. (E.g., if the gas release supports a
9206 # specified target in some subdirs but not the gas subdir, we shouldn't
9207 # pretend that all is well.)
9208 if test -n "$appdirs" ; then
9209 for dir in $appdirs ; do
9210 if test -r $dir/Makefile.in ; then
9211 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9212 appdirs=""
9213 break
9214 fi
9215 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9216 appdirs=""
9217 break
9218 fi
9219 fi
9220 done
9221 if test -n "$appdirs" ; then
9222 echo "*** This configuration is not supported by this package." 1>&2
9223 exit 1
9224 fi
9225 fi
9226 # Okay, some application will build, or we don't care to check. Still
9227 # notify of subdirs not getting built.
9228 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9229 echo " ${notsupp}" 1>&2
9230 echo " (Any other directories should still work fine.)" 1>&2
9231 fi
9232
9233 case "$host" in
9234 *msdosdjgpp*)
9235 enable_gdbtk=no ;;
9236 esac
9237
9238 # To find our prefix, in gcc_cv_tool_prefix.
9239
9240 # The user is always right.
9241 if test "${PATH_SEPARATOR+set}" != set; then
9242 echo "#! /bin/sh" >conf$$.sh
9243 echo "exit 0" >>conf$$.sh
9244 chmod +x conf$$.sh
9245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9246 PATH_SEPARATOR=';'
9247 else
9248 PATH_SEPARATOR=:
9249 fi
9250 rm -f conf$$.sh
9251 fi
9252
9253
9254 get_gcc_base_ver="cat"
9255
9256 # Check whether --with-gcc-major-version-only was given.
9257 if test "${with_gcc_major_version_only+set}" = set; then :
9258 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9259 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9260 fi
9261
9262 fi
9263
9264
9265
9266
9267
9268
9269 if test "x$exec_prefix" = xNONE; then
9270 if test "x$prefix" = xNONE; then
9271 gcc_cv_tool_prefix=$ac_default_prefix
9272 else
9273 gcc_cv_tool_prefix=$prefix
9274 fi
9275 else
9276 gcc_cv_tool_prefix=$exec_prefix
9277 fi
9278
9279 # If there is no compiler in the tree, use the PATH only. In any
9280 # case, if there is no compiler in the tree nobody should use
9281 # AS_FOR_TARGET and LD_FOR_TARGET.
9282 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9283 if test x$with_gcc_major_version_only = xyes ; then
9284 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9285 else
9286 gcc_version=`cat $srcdir/gcc/BASE-VER`
9287 fi
9288 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9289 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9290 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9291 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9292 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9293 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9294 else
9295 gcc_cv_tool_dirs=
9296 fi
9297
9298 if test x$build = x$target && test -n "$md_exec_prefix"; then
9299 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9300 fi
9301
9302
9303
9304 copy_dirs=
9305
9306
9307 # Check whether --with-build-sysroot was given.
9308 if test "${with_build_sysroot+set}" = set; then :
9309 withval=$with_build_sysroot; if test x"$withval" != x ; then
9310 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9311 fi
9312 else
9313 SYSROOT_CFLAGS_FOR_TARGET=
9314 fi
9315
9316
9317
9318
9319 # Check whether --with-debug-prefix-map was given.
9320 if test "${with_debug_prefix_map+set}" = set; then :
9321 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9322 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9323 for debug_map in $withval; do
9324 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9325 done
9326 fi
9327 else
9328 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9329 fi
9330
9331
9332
9333 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9334 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9335 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9336 # We want to ensure that TARGET libraries (which we know are built with
9337 # gcc) are built with "-O2 -g", so include those options when setting
9338 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9339 if test "x$CFLAGS_FOR_TARGET" = x; then
9340 if test "x${is_cross_compiler}" = xyes; then
9341 CFLAGS_FOR_TARGET="-g -O2"
9342 else
9343 CFLAGS_FOR_TARGET=$CFLAGS
9344 case " $CFLAGS " in
9345 *" -O2 "*) ;;
9346 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9347 esac
9348 case " $CFLAGS " in
9349 *" -g "* | *" -g3 "*) ;;
9350 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9351 esac
9352 fi
9353 fi
9354
9355
9356 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9357 if test "x${is_cross_compiler}" = xyes; then
9358 CXXFLAGS_FOR_TARGET="-g -O2"
9359 else
9360 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9361 case " $CXXFLAGS " in
9362 *" -O2 "*) ;;
9363 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9364 esac
9365 case " $CXXFLAGS " in
9366 *" -g "* | *" -g3 "*) ;;
9367 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9368 esac
9369 fi
9370 fi
9371
9372
9373
9374
9375 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9376 # the named directory are copied to $(tooldir)/sys-include.
9377 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9378 if test x${is_cross_compiler} = xno ; then
9379 echo 1>&2 '***' --with-headers is only supported when cross compiling
9380 exit 1
9381 fi
9382 if test x"${with_headers}" != xyes ; then
9383 x=${gcc_cv_tool_prefix}
9384 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9385 fi
9386 fi
9387
9388 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9389 # the name directories are copied to $(tooldir)/lib. Multiple directories
9390 # are permitted.
9391 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9392 if test x${is_cross_compiler} = xno ; then
9393 echo 1>&2 '***' --with-libs is only supported when cross compiling
9394 exit 1
9395 fi
9396 if test x"${with_libs}" != xyes ; then
9397 # Copy the libraries in reverse order, so that files in the first named
9398 # library override files in subsequent libraries.
9399 x=${gcc_cv_tool_prefix}
9400 for l in ${with_libs}; do
9401 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9402 done
9403 fi
9404 fi
9405
9406 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9407 #
9408 # This is done by determining whether or not the appropriate directory
9409 # is available, and by checking whether or not specific configurations
9410 # have requested that this magic not happen.
9411 #
9412 # The command line options always override the explicit settings in
9413 # configure.ac, and the settings in configure.ac override this magic.
9414 #
9415 # If the default for a toolchain is to use GNU as and ld, and you don't
9416 # want to do that, then you should use the --without-gnu-as and
9417 # --without-gnu-ld options for the configure script. Similarly, if
9418 # the default is to use the included zlib and you don't want to do that,
9419 # you should use the --with-system-zlib option for the configure script.
9420
9421 if test x${use_gnu_as} = x &&
9422 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9423 with_gnu_as=yes
9424 extra_host_args="$extra_host_args --with-gnu-as"
9425 fi
9426
9427 if test x${use_gnu_ld} = x &&
9428 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9429 with_gnu_ld=yes
9430 extra_host_args="$extra_host_args --with-gnu-ld"
9431 fi
9432
9433 if test x${use_included_zlib} = x &&
9434 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9435 :
9436 else
9437 with_system_zlib=yes
9438 extra_host_args="$extra_host_args --with-system-zlib"
9439 fi
9440
9441 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9442 # can detect this case.
9443
9444 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9445 with_newlib=yes
9446 extra_host_args="$extra_host_args --with-newlib"
9447 fi
9448
9449 # Handle ${copy_dirs}
9450 set fnord ${copy_dirs}
9451 shift
9452 while test $# != 0 ; do
9453 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9454 :
9455 else
9456 echo Copying $1 to $2
9457
9458 # Use the install script to create the directory and all required
9459 # parent directories.
9460 if test -d $2 ; then
9461 :
9462 else
9463 echo >config.temp
9464 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9465 fi
9466
9467 # Copy the directory, assuming we have tar.
9468 # FIXME: Should we use B in the second tar? Not all systems support it.
9469 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9470
9471 # It is the responsibility of the user to correctly adjust all
9472 # symlinks. If somebody can figure out how to handle them correctly
9473 # here, feel free to add the code.
9474
9475 echo $1 > $2/COPIED
9476 fi
9477 shift; shift
9478 done
9479
9480 # Determine a target-dependent exec_prefix that the installed
9481 # gcc will search in. Keep this list sorted by triplet, with
9482 # the *-*-osname triplets last.
9483 md_exec_prefix=
9484 case "${target}" in
9485 i[34567]86-pc-msdosdjgpp*)
9486 md_exec_prefix=/dev/env/DJDIR/bin
9487 ;;
9488 *-*-hpux* | \
9489 *-*-nto-qnx* | \
9490 *-*-solaris2*)
9491 md_exec_prefix=/usr/ccs/bin
9492 ;;
9493 esac
9494
9495 extra_arflags_for_target=
9496 extra_nmflags_for_target=
9497 extra_ranlibflags_for_target=
9498 target_makefile_frag=/dev/null
9499 case "${target}" in
9500 spu-*-*)
9501 target_makefile_frag="config/mt-spu"
9502 ;;
9503 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9504 target_makefile_frag="config/mt-sde"
9505 ;;
9506 mipsisa*-*-elfoabi*)
9507 target_makefile_frag="config/mt-mips-elfoabi"
9508 ;;
9509 mips*-*-*linux* | mips*-*-gnu*)
9510 target_makefile_frag="config/mt-mips-gnu"
9511 ;;
9512 nios2-*-elf*)
9513 target_makefile_frag="config/mt-nios2-elf"
9514 ;;
9515 *-*-linux-android*)
9516 target_makefile_frag="config/mt-android"
9517 ;;
9518 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9519 target_makefile_frag="config/mt-gnu"
9520 ;;
9521 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9522 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9523 # commands to handle both 32-bit and 64-bit objects. These flags are
9524 # harmless if we're using GNU nm or ar.
9525 extra_arflags_for_target=" -X32_64"
9526 extra_nmflags_for_target=" -B -X32_64"
9527 ;;
9528 esac
9529
9530 alphaieee_frag=/dev/null
9531 case $target in
9532 alpha*-*-*)
9533 # This just makes sure to use the -mieee option to build target libs.
9534 # This should probably be set individually by each library.
9535 alphaieee_frag="config/mt-alphaieee"
9536 ;;
9537 esac
9538
9539 # If --enable-target-optspace always use -Os instead of -O2 to build
9540 # the target libraries, similarly if it is not specified, use -Os
9541 # on selected platforms.
9542 ospace_frag=/dev/null
9543 case "${enable_target_optspace}:${target}" in
9544 yes:*)
9545 ospace_frag="config/mt-ospace"
9546 ;;
9547 :d30v-*)
9548 ospace_frag="config/mt-d30v"
9549 ;;
9550 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9551 ospace_frag="config/mt-ospace"
9552 ;;
9553 no:* | :*)
9554 ;;
9555 *)
9556 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9557 ;;
9558 esac
9559
9560 # Some systems (e.g., one of the i386-aix systems the gas testers are
9561 # using) don't handle "\$" correctly, so don't use it here.
9562 tooldir='${exec_prefix}'/${target_noncanonical}
9563 build_tooldir=${tooldir}
9564
9565 # Create a .gdbinit file which runs the one in srcdir
9566 # and tells GDB to look there for source files.
9567
9568 if test -r ${srcdir}/.gdbinit ; then
9569 case ${srcdir} in
9570 .) ;;
9571 *) cat > ./.gdbinit <<EOF
9572 # ${NO_EDIT}
9573 dir ${srcdir}
9574 dir .
9575 source ${srcdir}/.gdbinit
9576 EOF
9577 ;;
9578 esac
9579 fi
9580
9581 # Make sure that the compiler is able to generate an executable. If it
9582 # can't, we are probably in trouble. We don't care whether we can run the
9583 # executable--we might be using a cross compiler--we only care whether it
9584 # can be created. At this point the main configure script has set CC.
9585 we_are_ok=no
9586 echo "int main () { return 0; }" > conftest.c
9587 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9588 if test $? = 0 ; then
9589 if test -s conftest || test -s conftest.exe ; then
9590 we_are_ok=yes
9591 fi
9592 fi
9593 case $we_are_ok in
9594 no)
9595 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9596 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9597 rm -f conftest*
9598 exit 1
9599 ;;
9600 esac
9601 rm -f conftest*
9602
9603 # Decide which environment variable is used to find dynamic libraries.
9604 case "${host}" in
9605 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9606 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9607 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9608 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9609 esac
9610
9611 # On systems where the dynamic library environment variable is PATH,
9612 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9613 # built executables to PATH.
9614 if test "$RPATH_ENVVAR" = PATH; then
9615 GCC_SHLIB_SUBDIR=/shlib
9616 else
9617 GCC_SHLIB_SUBDIR=
9618 fi
9619
9620 # Adjust the toplevel makefile according to whether bootstrap was selected.
9621 case $enable_bootstrap in
9622 yes)
9623 bootstrap_suffix=bootstrap
9624 BUILD_CONFIG=bootstrap-debug
9625 ;;
9626 no)
9627 bootstrap_suffix=no-bootstrap
9628 BUILD_CONFIG=
9629 ;;
9630 esac
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9633 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9634
9635
9636 # Check whether --with-build-config was given.
9637 if test "${with_build_config+set}" = set; then :
9638 withval=$with_build_config; case $with_build_config in
9639 yes) with_build_config= ;;
9640 no) with_build_config= BUILD_CONFIG= ;;
9641 esac
9642 fi
9643
9644
9645 if test "x${with_build_config}" != x; then
9646 BUILD_CONFIG=$with_build_config
9647 else
9648 case $BUILD_CONFIG in
9649 bootstrap-debug)
9650 if echo "int f (void) { return 0; }" > conftest.c &&
9651 ${CC} -c conftest.c &&
9652 mv conftest.o conftest.o.g0 &&
9653 ${CC} -c -g conftest.c &&
9654 mv conftest.o conftest.o.g &&
9655 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9656 :
9657 else
9658 BUILD_CONFIG=
9659 fi
9660 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9661 ;;
9662 esac
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9665 $as_echo "$BUILD_CONFIG" >&6; }
9666
9667
9668 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9670 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9671 # Check whether --enable-vtable-verify was given.
9672 if test "${enable_vtable_verify+set}" = set; then :
9673 enableval=$enable_vtable_verify; case "$enableval" in
9674 yes) enable_vtable_verify=yes ;;
9675 no) enable_vtable_verify=no ;;
9676 *) enable_vtable_verify=no;;
9677 esac
9678 else
9679 enable_vtable_verify=no
9680 fi
9681
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9683 $as_echo "$enable_vtable_verify" >&6; }
9684
9685 # Record target_configdirs and the configure arguments for target and
9686 # build configuration in Makefile.
9687 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9688 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9689 bootstrap_fixincludes=no
9690
9691 # If we are building libgomp, bootstrap it.
9692 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9693 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9694 fi
9695
9696 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9697 # or bootstrap-ubsan, bootstrap it.
9698 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9699 case "$BUILD_CONFIG" in
9700 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9701 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9702 bootstrap_fixincludes=yes
9703 ;;
9704 esac
9705 fi
9706
9707 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9708 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9709 test "$enable_vtable_verify" != no; then
9710 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9711 fi
9712
9713 # If we are building libatomic and the list of enabled languages includes the
9714 # D frontend, bootstrap it.
9715 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9716 case ,${enable_languages}, in
9717 *,d,*)
9718 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9719 ;;
9720 esac
9721 fi
9722
9723 # Determine whether gdb needs tk/tcl or not.
9724 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9725 # and in that case we want gdb to be built without tk. Ugh!
9726 # In fact I believe gdb is the *only* package directly dependent on tk,
9727 # so we should be able to put the 'maybe's in unconditionally and
9728 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9729 # 100% sure that that's safe though.
9730
9731 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9732 case "$enable_gdbtk" in
9733 no)
9734 GDB_TK="" ;;
9735 yes)
9736 GDB_TK="${gdb_tk}" ;;
9737 *)
9738 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9739 # distro. Eventually someone will fix this and move Insight, nee
9740 # gdbtk to a separate directory.
9741 if test -d ${srcdir}/gdb/gdbtk ; then
9742 GDB_TK="${gdb_tk}"
9743 else
9744 GDB_TK=""
9745 fi
9746 ;;
9747 esac
9748 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9749 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9750
9751 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9752 # else does, only include them if one of these is built. The Makefile
9753 # provides the ordering, so it's enough here to add to the list.
9754 case " ${configdirs} " in
9755 *\ gdb\ *)
9756 configdirs="${configdirs} gnulib gdbsupport"
9757 ;;
9758 *\ gdbserver\ *)
9759 configdirs="${configdirs} gnulib gdbsupport"
9760 ;;
9761 *\ sim\ *)
9762 configdirs="${configdirs} gnulib"
9763 ;;
9764 esac
9765
9766 # Strip out unwanted targets.
9767
9768 # While at that, we remove Makefiles if we were started for recursive
9769 # configuration, so that the top-level Makefile reconfigures them,
9770 # like we used to do when configure itself was recursive.
9771
9772 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9773 # but now we're fixing up the Makefile ourselves with the additional
9774 # commands passed to AC_CONFIG_FILES. Use separate variables
9775 # extrasub-{build,host,target} not because there is any reason to split
9776 # the substitutions up that way, but only to remain below the limit of
9777 # 99 commands in a script, for HP-UX sed.
9778
9779 # Do not nest @if/@endif or @unless/@endunless pairs, because
9780 # configure will not warn you at all.
9781
9782 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9783 yes:yes:*\ gold\ *:*,c++,*) ;;
9784 yes:yes:*\ gold\ *:*)
9785 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9786 ;;
9787 esac
9788
9789 extrasub_build=
9790 for module in ${build_configdirs} ; do
9791 if test -z "${no_recursion}" \
9792 && test -f ${build_subdir}/${module}/Makefile; then
9793 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9794 rm -f ${build_subdir}/${module}/Makefile
9795 fi
9796 extrasub_build="$extrasub_build
9797 /^@if build-$module\$/d
9798 /^@endif build-$module\$/d
9799 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9800 /^@if build-$module-$bootstrap_suffix\$/d
9801 /^@endif build-$module-$bootstrap_suffix\$/d
9802 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9803 done
9804 extrasub_host=
9805 for module in ${configdirs} ; do
9806 if test -z "${no_recursion}"; then
9807 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9808 if test -f ${file}; then
9809 echo 1>&2 "*** removing ${file} to force reconfigure"
9810 rm -f ${file}
9811 fi
9812 done
9813 fi
9814 case ${module},${bootstrap_fixincludes} in
9815 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9816 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9817 esac
9818 extrasub_host="$extrasub_host
9819 /^@if $module\$/d
9820 /^@endif $module\$/d
9821 /^@unless $module\$/,/^@endunless $module\$/d
9822 /^@if $module-$host_bootstrap_suffix\$/d
9823 /^@endif $module-$host_bootstrap_suffix\$/d
9824 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9825 done
9826 extrasub_target=
9827 for module in ${target_configdirs} ; do
9828 if test -z "${no_recursion}" \
9829 && test -f ${target_subdir}/${module}/Makefile; then
9830 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9831 rm -f ${target_subdir}/${module}/Makefile
9832 fi
9833
9834 # We only bootstrap target libraries listed in bootstrap_target_libs.
9835 case $bootstrap_target_libs in
9836 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9837 *) target_bootstrap_suffix=no-bootstrap ;;
9838 esac
9839
9840 extrasub_target="$extrasub_target
9841 /^@if target-$module\$/d
9842 /^@endif target-$module\$/d
9843 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9844 /^@if target-$module-$target_bootstrap_suffix\$/d
9845 /^@endif target-$module-$target_bootstrap_suffix\$/d
9846 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9847 done
9848
9849 # Do the final fixup along with target modules.
9850 extrasub_target="$extrasub_target
9851 /^@if /,/^@endif /d
9852 /^@unless /d
9853 /^@endunless /d"
9854
9855 if test "$enable_pgo_build" != "no"; then
9856 extrasub_build="$extrasub_build
9857 /^@if pgo-build\$/d
9858 /^@endif pgo-build\$/d"
9859 fi
9860
9861 # Create the serialization dependencies. This uses a temporary file.
9862
9863 # Check whether --enable-serial-configure was given.
9864 if test "${enable_serial_configure+set}" = set; then :
9865 enableval=$enable_serial_configure;
9866 fi
9867
9868
9869 case ${enable_serial_configure} in
9870 yes)
9871 enable_serial_build_configure=yes
9872 enable_serial_host_configure=yes
9873 enable_serial_target_configure=yes
9874 ;;
9875 esac
9876
9877 # These force 'configure's to be done one at a time, to avoid problems
9878 # with contention over a shared config.cache.
9879 rm -f serdep.tmp
9880 echo '# serdep.tmp' > serdep.tmp
9881 olditem=
9882 test "x${enable_serial_build_configure}" = xyes &&
9883 for item in ${build_configdirs} ; do
9884 case ${olditem} in
9885 "") ;;
9886 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9887 esac
9888 olditem=${item}
9889 done
9890 olditem=
9891 test "x${enable_serial_host_configure}" = xyes &&
9892 for item in ${configdirs} ; do
9893 case ${olditem} in
9894 "") ;;
9895 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9896 esac
9897 olditem=${item}
9898 done
9899 olditem=
9900 test "x${enable_serial_target_configure}" = xyes &&
9901 for item in ${target_configdirs} ; do
9902 case ${olditem} in
9903 "") ;;
9904 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9905 esac
9906 olditem=${item}
9907 done
9908 serialization_dependencies=serdep.tmp
9909
9910
9911 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9912 # target, nonopt, and variable assignments. These are the ones we
9913 # might not want to pass down to subconfigures. The exception being
9914 # --cache-file=/dev/null, which is used to turn off the use of cache
9915 # files altogether, and which should be passed on to subconfigures.
9916 # Also strip program-prefix, program-suffix, and program-transform-name,
9917 # so that we can pass down a consistent program-transform-name.
9918 baseargs=
9919 tbaseargs=
9920 keep_next=no
9921 skip_next=no
9922 eval "set -- $ac_configure_args"
9923 for ac_arg
9924 do
9925 if test X"$skip_next" = X"yes"; then
9926 skip_next=no
9927 continue
9928 fi
9929 if test X"$keep_next" = X"yes"; then
9930 case $ac_arg in
9931 *\'*)
9932 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9933 esac
9934 baseargs="$baseargs '$ac_arg'"
9935 tbaseargs="$tbaseargs '$ac_arg'"
9936 keep_next=no
9937 continue
9938 fi
9939
9940 # Handle separated arguments. Based on the logic generated by
9941 # autoconf 2.59.
9942 case $ac_arg in
9943 *=* | --config-cache | -C | -disable-* | --disable-* \
9944 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9945 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9946 | -with-* | --with-* | -without-* | --without-* | --x)
9947 separate_arg=no
9948 ;;
9949 -*)
9950 separate_arg=yes
9951 ;;
9952 *)
9953 separate_arg=no
9954 ;;
9955 esac
9956
9957 skip_targ=no
9958 case $ac_arg in
9959
9960 --with-* | --without-*)
9961 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9962
9963 case $libopt in
9964 *[-_]include)
9965 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9966 ;;
9967 *[-_]lib)
9968 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9969 ;;
9970 *)
9971 lib=$libopt
9972 ;;
9973 esac
9974
9975
9976 case $lib in
9977 mpc | mpfr | gmp | isl)
9978 # If we're processing --with-$lib, --with-$lib-include or
9979 # --with-$lib-lib, for one of the libs above, and target is
9980 # different from host, don't pass the current argument to any
9981 # target library's configure.
9982 if test x$is_cross_compiler = xyes; then
9983 skip_targ=yes
9984 fi
9985 ;;
9986 esac
9987 ;;
9988 esac
9989
9990 case "$ac_arg" in
9991 --cache-file=/dev/null | \
9992 -cache-file=/dev/null )
9993 # Handled here to avoid the test to skip args below.
9994 baseargs="$baseargs '$ac_arg'"
9995 tbaseargs="$tbaseargs '$ac_arg'"
9996 # Assert: $separate_arg should always be no.
9997 keep_next=$separate_arg
9998 ;;
9999 --no*)
10000 continue
10001 ;;
10002 --c* | \
10003 --sr* | \
10004 --ho* | \
10005 --bu* | \
10006 --t* | \
10007 --program-* | \
10008 -cache_file* | \
10009 -srcdir* | \
10010 -host* | \
10011 -build* | \
10012 -target* | \
10013 -program-prefix* | \
10014 -program-suffix* | \
10015 -program-transform-name* )
10016 skip_next=$separate_arg
10017 continue
10018 ;;
10019 -*)
10020 # An option. Add it.
10021 case $ac_arg in
10022 *\'*)
10023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10024 esac
10025 baseargs="$baseargs '$ac_arg'"
10026 if test X"$skip_targ" = Xno; then
10027 tbaseargs="$tbaseargs '$ac_arg'"
10028 fi
10029 keep_next=$separate_arg
10030 ;;
10031 *)
10032 # Either a variable assignment, or a nonopt (triplet). Don't
10033 # pass it down; let the Makefile handle this.
10034 continue
10035 ;;
10036 esac
10037 done
10038 # Remove the initial space we just introduced and, as these will be
10039 # expanded by make, quote '$'.
10040 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10041
10042 # Add in --program-transform-name, after --program-prefix and
10043 # --program-suffix have been applied to it. Autoconf has already
10044 # doubled dollar signs and backslashes in program_transform_name; we want
10045 # the backslashes un-doubled, and then the entire thing wrapped in single
10046 # quotes, because this will be expanded first by make and then by the shell.
10047 # Also, because we want to override the logic in subdir configure scripts to
10048 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10049 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10050 ${program_transform_name}
10051 EOF_SED
10052 gcc_transform_name=`cat conftestsed.out`
10053 rm -f conftestsed.out
10054 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10055 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10056 if test "$silent" = yes; then
10057 baseargs="$baseargs --silent"
10058 tbaseargs="$tbaseargs --silent"
10059 fi
10060 baseargs="$baseargs --disable-option-checking"
10061 tbaseargs="$tbaseargs --disable-option-checking"
10062
10063 # Record and document user additions to sub configure arguments.
10064
10065
10066
10067
10068 # For the build-side libraries, we just need to pretend we're native,
10069 # and not use the same cache file. Multilibs are neither needed nor
10070 # desired. We can't even use the same cache file for all build-side
10071 # libraries, as they're compiled differently; some with C, some with
10072 # C++ or with different feature-enabling options.
10073 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10074
10075 # For host modules, accept cache file option, or specification as blank.
10076 case "${cache_file}" in
10077 "") # empty
10078 cache_file_option="" ;;
10079 /* | [A-Za-z]:[\\/]* ) # absolute path
10080 cache_file_option="--cache-file=${cache_file}" ;;
10081 *) # relative path
10082 cache_file_option="--cache-file=../${cache_file}" ;;
10083 esac
10084
10085 # Host dirs don't like to share a cache file either, horribly enough.
10086 # This seems to be due to autoconf 2.5x stupidity.
10087 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10088
10089 target_configargs="$target_configargs ${tbaseargs}"
10090
10091 # Passing a --with-cross-host argument lets the target libraries know
10092 # whether they are being built with a cross-compiler or being built
10093 # native. However, it would be better to use other mechanisms to make the
10094 # sorts of decisions they want to make on this basis. Please consider
10095 # this option to be deprecated. FIXME.
10096 if test x${is_cross_compiler} = xyes ; then
10097 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10098 fi
10099
10100 # Special user-friendly check for native x86_64-linux build, if
10101 # multilib is not explicitly enabled.
10102 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10103 x86_64-*linux*:yes:$build:$build:)
10104 # Make sure we have a development environment that handles 32-bit
10105 dev64=no
10106 echo "int main () { return 0; }" > conftest.c
10107 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10108 if test $? = 0 ; then
10109 if test -s conftest || test -s conftest.exe ; then
10110 dev64=yes
10111 fi
10112 fi
10113 rm -f conftest*
10114 if test x${dev64} != xyes ; then
10115 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
10116 fi
10117 ;;
10118 esac
10119
10120 # Default to --enable-multilib.
10121 if test x${enable_multilib} = x ; then
10122 target_configargs="--enable-multilib ${target_configargs}"
10123 fi
10124
10125 # Pass --with-newlib if appropriate. Note that target_configdirs has
10126 # changed from the earlier setting of with_newlib.
10127 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10128 target_configargs="--with-newlib ${target_configargs}"
10129 fi
10130
10131 # Different target subdirs use different values of certain variables
10132 # (notably CXX). Worse, multilibs use *lots* of different values.
10133 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10134 # it doesn't automatically accept command-line overrides of them.
10135 # This means it's not safe for target subdirs to share a cache file,
10136 # which is disgusting, but there you have it. Hopefully this can be
10137 # fixed in future. It's still worthwhile to use a cache file for each
10138 # directory. I think.
10139
10140 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10141 # We need to pass --target, as newer autoconf's requires consistency
10142 # for target_alias and gcc doesn't manage it consistently.
10143 target_configargs="--cache-file=./config.cache ${target_configargs}"
10144
10145 FLAGS_FOR_TARGET=
10146 case " $target_configdirs " in
10147 *" newlib "*)
10148 case " $target_configargs " in
10149 *" --with-newlib "*)
10150 case "$target" in
10151 *-cygwin*)
10152 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10153 ;;
10154 esac
10155
10156 # If we're not building GCC, don't discard standard headers.
10157 if test -d ${srcdir}/gcc; then
10158 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10159
10160 if test "${build}" != "${host}"; then
10161 # On Canadian crosses, CC_FOR_TARGET will have already been set
10162 # by `configure', so we won't have an opportunity to add -Bgcc/
10163 # to it. This is right: we don't want to search that directory
10164 # for binaries, but we want the header files in there, so add
10165 # them explicitly.
10166 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10167
10168 # Someone might think of using the pre-installed headers on
10169 # Canadian crosses, in case the installed compiler is not fully
10170 # compatible with the compiler being built. In this case, it
10171 # would be better to flag an error than risking having
10172 # incompatible object files being constructed. We can't
10173 # guarantee that an error will be flagged, but let's hope the
10174 # compiler will do it, when presented with incompatible header
10175 # files.
10176 fi
10177 fi
10178
10179 case "${target}-${is_cross_compiler}" in
10180 i[3456789]86-*-linux*-no)
10181 # Here host == target, so we don't need to build gcc,
10182 # so we don't want to discard standard headers.
10183 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10184 ;;
10185 *)
10186 # If we're building newlib, use its generic headers last, but search
10187 # for any libc-related directories first (so make it the last -B
10188 # switch).
10189 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10190
10191 # If we're building libgloss, find the startup file, simulator library
10192 # and linker script.
10193 case " $target_configdirs " in
10194 *" libgloss "*)
10195 # Look for startup file, simulator library and maybe linker script.
10196 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10197 # Look for libnosys.a in case the target needs it.
10198 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10199 # Most targets have the linker script in the source directory.
10200 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10201 ;;
10202 esac
10203 ;;
10204 esac
10205 ;;
10206 esac
10207 ;;
10208 esac
10209
10210 case "$target" in
10211 x86_64-*mingw* | *-w64-mingw*)
10212 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10213 # however, use a symlink named 'mingw' in ${prefix} .
10214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10215 ;;
10216 *-mingw*)
10217 # MinGW can't be handled as Cygwin above since it does not use newlib.
10218 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'
10219 ;;
10220 esac
10221
10222 # Allow the user to override the flags for
10223 # our build compiler if desired.
10224 if test x"${build}" = x"${host}" ; then
10225 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10226 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10227 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10228 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10229 fi
10230
10231 # On Canadian crosses, we'll be searching the right directories for
10232 # the previously-installed cross compiler, so don't bother to add
10233 # flags for directories within the install tree of the compiler
10234 # being built; programs in there won't even run.
10235 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10236 # Search for pre-installed headers if nothing else fits.
10237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10238 fi
10239
10240 if test "x${use_gnu_ld}" = x &&
10241 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10242 # Arrange for us to find uninstalled linker scripts.
10243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10244 fi
10245
10246 # Search for other target-specific linker scripts and such.
10247 case "${target}" in
10248 mep*)
10249 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10250 ;;
10251 # The VxWorks support for shared libraries is getting in
10252 # incrementally. Make sure it doesn't get activated implicitly:
10253 *vxworks*)
10254 if test "${enable_shared-unset}" = unset ; then
10255 enable_shared=no
10256 # So the build of libraries knows ...
10257 target_configargs="${target_configargs} --disable-shared"
10258 # So gcc knows ...
10259 host_configargs="${host_configargs} --disable-shared"
10260 fi
10261 ;;
10262 esac
10263
10264 # Makefile fragments.
10265 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10266 do
10267 eval fragval=\$$frag
10268 if test $fragval != /dev/null; then
10269 eval $frag=${srcdir}/$fragval
10270 fi
10271 done
10272
10273
10274
10275
10276
10277 # Miscellanea: directories, flags, etc.
10278
10279
10280
10281
10282
10283
10284
10285
10286 # Build module lists & subconfigure args.
10287
10288
10289
10290 # Host module lists & subconfigure args.
10291
10292
10293
10294
10295 # Target module lists & subconfigure args.
10296
10297
10298
10299 # Build tools.
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 # Generate default definitions for YACC, M4, LEX and other programs that run
10321 # on the build machine. These are used if the Makefile can't locate these
10322 # programs in objdir.
10323 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10324
10325 for ac_prog in 'bison -y' byacc yacc
10326 do
10327 # Extract the first word of "$ac_prog", so it can be a program name with args.
10328 set dummy $ac_prog; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_prog_YACC+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 if test -n "$YACC"; then
10335 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10339 do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_YACC="$ac_prog"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348 done
10349 done
10350 IFS=$as_save_IFS
10351
10352 fi
10353 fi
10354 YACC=$ac_cv_prog_YACC
10355 if test -n "$YACC"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10357 $as_echo "$YACC" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 fi
10362
10363
10364 test -n "$YACC" && break
10365 done
10366 test -n "$YACC" || YACC="$MISSING bison -y"
10367
10368 case " $build_configdirs " in
10369 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10370 esac
10371
10372 for ac_prog in bison
10373 do
10374 # Extract the first word of "$ac_prog", so it can be a program name with args.
10375 set dummy $ac_prog; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if ${ac_cv_prog_BISON+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 if test -n "$BISON"; then
10382 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10383 else
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391 ac_cv_prog_BISON="$ac_prog"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10394 fi
10395 done
10396 done
10397 IFS=$as_save_IFS
10398
10399 fi
10400 fi
10401 BISON=$ac_cv_prog_BISON
10402 if test -n "$BISON"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10404 $as_echo "$BISON" >&6; }
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10408 fi
10409
10410
10411 test -n "$BISON" && break
10412 done
10413 test -n "$BISON" || BISON="$MISSING bison"
10414
10415 case " $build_configdirs " in
10416 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10417 esac
10418
10419 for ac_prog in gm4 gnum4 m4
10420 do
10421 # Extract the first word of "$ac_prog", so it can be a program name with args.
10422 set dummy $ac_prog; ac_word=$2
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424 $as_echo_n "checking for $ac_word... " >&6; }
10425 if ${ac_cv_prog_M4+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 if test -n "$M4"; then
10429 ac_cv_prog_M4="$M4" # Let the user override the test.
10430 else
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10433 do
10434 IFS=$as_save_IFS
10435 test -z "$as_dir" && as_dir=.
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10438 ac_cv_prog_M4="$ac_prog"
10439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440 break 2
10441 fi
10442 done
10443 done
10444 IFS=$as_save_IFS
10445
10446 fi
10447 fi
10448 M4=$ac_cv_prog_M4
10449 if test -n "$M4"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10451 $as_echo "$M4" >&6; }
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10455 fi
10456
10457
10458 test -n "$M4" && break
10459 done
10460 test -n "$M4" || M4="$MISSING m4"
10461
10462 case " $build_configdirs " in
10463 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10464 esac
10465
10466 for ac_prog in flex lex
10467 do
10468 # Extract the first word of "$ac_prog", so it can be a program name with args.
10469 set dummy $ac_prog; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_prog_LEX+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 if test -n "$LEX"; then
10476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485 ac_cv_prog_LEX="$ac_prog"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10488 fi
10489 done
10490 done
10491 IFS=$as_save_IFS
10492
10493 fi
10494 fi
10495 LEX=$ac_cv_prog_LEX
10496 if test -n "$LEX"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10498 $as_echo "$LEX" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503
10504
10505 test -n "$LEX" && break
10506 done
10507 test -n "$LEX" || LEX="$MISSING flex"
10508
10509 case " $build_configdirs " in
10510 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10511 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10512 esac
10513
10514 for ac_prog in flex
10515 do
10516 # Extract the first word of "$ac_prog", so it can be a program name with args.
10517 set dummy $ac_prog; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_FLEX+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test -n "$FLEX"; then
10524 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_FLEX="$ac_prog"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537 done
10538 done
10539 IFS=$as_save_IFS
10540
10541 fi
10542 fi
10543 FLEX=$ac_cv_prog_FLEX
10544 if test -n "$FLEX"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10546 $as_echo "$FLEX" >&6; }
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552
10553 test -n "$FLEX" && break
10554 done
10555 test -n "$FLEX" || FLEX="$MISSING flex"
10556
10557 case " $build_configdirs " in
10558 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10559 esac
10560
10561 for ac_prog in makeinfo
10562 do
10563 # Extract the first word of "$ac_prog", so it can be a program name with args.
10564 set dummy $ac_prog; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if ${ac_cv_prog_MAKEINFO+:} false; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 if test -n "$MAKEINFO"; then
10571 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10572 else
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10575 do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10580 ac_cv_prog_MAKEINFO="$ac_prog"
10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10583 fi
10584 done
10585 done
10586 IFS=$as_save_IFS
10587
10588 fi
10589 fi
10590 MAKEINFO=$ac_cv_prog_MAKEINFO
10591 if test -n "$MAKEINFO"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10593 $as_echo "$MAKEINFO" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598
10599
10600 test -n "$MAKEINFO" && break
10601 done
10602 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10603
10604 case " $build_configdirs " in
10605 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10606 *)
10607
10608 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10609 # higher, else we use the "missing" dummy.
10610 if ${MAKEINFO} --version \
10611 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10612 :
10613 else
10614 MAKEINFO="$MISSING makeinfo"
10615 fi
10616 ;;
10617
10618 esac
10619
10620 # FIXME: expect and dejagnu may become build tools?
10621
10622 for ac_prog in expect
10623 do
10624 # Extract the first word of "$ac_prog", so it can be a program name with args.
10625 set dummy $ac_prog; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if ${ac_cv_prog_EXPECT+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 if test -n "$EXPECT"; then
10632 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10636 do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_EXPECT="$ac_prog"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645 done
10646 done
10647 IFS=$as_save_IFS
10648
10649 fi
10650 fi
10651 EXPECT=$ac_cv_prog_EXPECT
10652 if test -n "$EXPECT"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10654 $as_echo "$EXPECT" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10658 fi
10659
10660
10661 test -n "$EXPECT" && break
10662 done
10663 test -n "$EXPECT" || EXPECT="expect"
10664
10665 case " $configdirs " in
10666 *" expect "*)
10667 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10668 ;;
10669 esac
10670
10671 for ac_prog in runtest
10672 do
10673 # Extract the first word of "$ac_prog", so it can be a program name with args.
10674 set dummy $ac_prog; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_RUNTEST+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 if test -n "$RUNTEST"; then
10681 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_RUNTEST="$ac_prog"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694 done
10695 done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 RUNTEST=$ac_cv_prog_RUNTEST
10701 if test -n "$RUNTEST"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10703 $as_echo "$RUNTEST" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709
10710 test -n "$RUNTEST" && break
10711 done
10712 test -n "$RUNTEST" || RUNTEST="runtest"
10713
10714 case " $configdirs " in
10715 *" dejagnu "*)
10716 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10717 ;;
10718 esac
10719
10720
10721 # Host tools.
10722 ncn_tool_prefix=
10723 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10724 ncn_target_tool_prefix=
10725 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10726
10727
10728
10729 if test -n "$AR"; then
10730 ac_cv_prog_AR=$AR
10731 elif test -n "$ac_cv_prog_AR"; then
10732 AR=$ac_cv_prog_AR
10733 fi
10734
10735 if test -n "$ac_cv_prog_AR"; then
10736 for ncn_progname in ar; do
10737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10738 set dummy ${ncn_progname}; ac_word=$2
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if ${ac_cv_prog_AR+:} false; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 if test -n "$AR"; then
10745 ac_cv_prog_AR="$AR" # Let the user override the test.
10746 else
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10749 do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_prog_AR="${ncn_progname}"
10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10757 fi
10758 done
10759 done
10760 IFS=$as_save_IFS
10761
10762 fi
10763 fi
10764 AR=$ac_cv_prog_AR
10765 if test -n "$AR"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10767 $as_echo "$AR" >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 fi
10772
10773
10774 done
10775 fi
10776
10777 for ncn_progname in ar; do
10778 if test -n "$ncn_tool_prefix"; then
10779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if ${ac_cv_prog_AR+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 if test -n "$AR"; then
10787 ac_cv_prog_AR="$AR" # Let the user override the test.
10788 else
10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10791 do
10792 IFS=$as_save_IFS
10793 test -z "$as_dir" && as_dir=.
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10796 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10798 break 2
10799 fi
10800 done
10801 done
10802 IFS=$as_save_IFS
10803
10804 fi
10805 fi
10806 AR=$ac_cv_prog_AR
10807 if test -n "$AR"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10809 $as_echo "$AR" >&6; }
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10813 fi
10814
10815
10816 fi
10817 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819 set dummy ${ncn_progname}; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_prog_AR+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 if test -n "$AR"; then
10826 ac_cv_prog_AR="$AR" # Let the user override the test.
10827 else
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10830 do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_AR="${ncn_progname}"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839 done
10840 done
10841 IFS=$as_save_IFS
10842
10843 fi
10844 fi
10845 AR=$ac_cv_prog_AR
10846 if test -n "$AR"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10848 $as_echo "$AR" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 fi
10853
10854
10855 fi
10856 test -n "$ac_cv_prog_AR" && break
10857 done
10858
10859 if test -z "$ac_cv_prog_AR" ; then
10860 set dummy ar
10861 if test $build = $host ; then
10862 AR="$2"
10863 else
10864 AR="${ncn_tool_prefix}$2"
10865 fi
10866 fi
10867
10868
10869
10870 if test -n "$AS"; then
10871 ac_cv_prog_AS=$AS
10872 elif test -n "$ac_cv_prog_AS"; then
10873 AS=$ac_cv_prog_AS
10874 fi
10875
10876 if test -n "$ac_cv_prog_AS"; then
10877 for ncn_progname in as; do
10878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10879 set dummy ${ncn_progname}; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_prog_AS+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 if test -n "$AS"; then
10886 ac_cv_prog_AS="$AS" # Let the user override the test.
10887 else
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_AS="${ncn_progname}"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899 done
10900 done
10901 IFS=$as_save_IFS
10902
10903 fi
10904 fi
10905 AS=$ac_cv_prog_AS
10906 if test -n "$AS"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10908 $as_echo "$AS" >&6; }
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10912 fi
10913
10914
10915 done
10916 fi
10917
10918 for ncn_progname in as; do
10919 if test -n "$ncn_tool_prefix"; then
10920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if ${ac_cv_prog_AS+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test -n "$AS"; then
10928 ac_cv_prog_AS="$AS" # Let the user override the test.
10929 else
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10932 do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941 done
10942 done
10943 IFS=$as_save_IFS
10944
10945 fi
10946 fi
10947 AS=$ac_cv_prog_AS
10948 if test -n "$AS"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10950 $as_echo "$AS" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955
10956
10957 fi
10958 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10960 set dummy ${ncn_progname}; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_prog_AS+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 if test -n "$AS"; then
10967 ac_cv_prog_AS="$AS" # Let the user override the test.
10968 else
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10971 do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_prog_AS="${ncn_progname}"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10979 fi
10980 done
10981 done
10982 IFS=$as_save_IFS
10983
10984 fi
10985 fi
10986 AS=$ac_cv_prog_AS
10987 if test -n "$AS"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10989 $as_echo "$AS" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 fi
10994
10995
10996 fi
10997 test -n "$ac_cv_prog_AS" && break
10998 done
10999
11000 if test -z "$ac_cv_prog_AS" ; then
11001 set dummy as
11002 if test $build = $host ; then
11003 AS="$2"
11004 else
11005 AS="${ncn_tool_prefix}$2"
11006 fi
11007 fi
11008
11009
11010
11011 if test -n "$DLLTOOL"; then
11012 ac_cv_prog_DLLTOOL=$DLLTOOL
11013 elif test -n "$ac_cv_prog_DLLTOOL"; then
11014 DLLTOOL=$ac_cv_prog_DLLTOOL
11015 fi
11016
11017 if test -n "$ac_cv_prog_DLLTOOL"; then
11018 for ncn_progname in dlltool; do
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if ${ac_cv_prog_DLLTOOL+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 if test -n "$DLLTOOL"; then
11027 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036 ac_cv_prog_DLLTOOL="${ncn_progname}"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040 done
11041 done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 DLLTOOL=$ac_cv_prog_DLLTOOL
11047 if test -n "$DLLTOOL"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11049 $as_echo "$DLLTOOL" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056 done
11057 fi
11058
11059 for ncn_progname in dlltool; do
11060 if test -n "$ncn_tool_prefix"; then
11061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if ${ac_cv_prog_DLLTOOL+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 if test -n "$DLLTOOL"; then
11069 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11070 else
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11073 do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082 done
11083 done
11084 IFS=$as_save_IFS
11085
11086 fi
11087 fi
11088 DLLTOOL=$ac_cv_prog_DLLTOOL
11089 if test -n "$DLLTOOL"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11091 $as_echo "$DLLTOOL" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096
11097
11098 fi
11099 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11101 set dummy ${ncn_progname}; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_prog_DLLTOOL+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 if test -n "$DLLTOOL"; then
11108 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11109 else
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11112 do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_prog_DLLTOOL="${ncn_progname}"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121 done
11122 done
11123 IFS=$as_save_IFS
11124
11125 fi
11126 fi
11127 DLLTOOL=$ac_cv_prog_DLLTOOL
11128 if test -n "$DLLTOOL"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11130 $as_echo "$DLLTOOL" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135
11136
11137 fi
11138 test -n "$ac_cv_prog_DLLTOOL" && break
11139 done
11140
11141 if test -z "$ac_cv_prog_DLLTOOL" ; then
11142 set dummy dlltool
11143 if test $build = $host ; then
11144 DLLTOOL="$2"
11145 else
11146 DLLTOOL="${ncn_tool_prefix}$2"
11147 fi
11148 fi
11149
11150
11151
11152 if test -n "$DSYMUTIL"; then
11153 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11154 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11155 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11156 fi
11157
11158 if test -n "$ac_cv_prog_DSYMUTIL"; then
11159 for ncn_progname in dsymutil; do
11160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11161 set dummy ${ncn_progname}; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 if test -n "$DSYMUTIL"; then
11168 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11169 else
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11172 do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11177 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11180 fi
11181 done
11182 done
11183 IFS=$as_save_IFS
11184
11185 fi
11186 fi
11187 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11188 if test -n "$DSYMUTIL"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11190 $as_echo "$DSYMUTIL" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 fi
11195
11196
11197 done
11198 fi
11199
11200 for ncn_progname in dsymutil; do
11201 if test -n "$ncn_tool_prefix"; then
11202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11203 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205 $as_echo_n "checking for $ac_word... " >&6; }
11206 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test -n "$DSYMUTIL"; then
11210 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11211 else
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11214 do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223 done
11224 done
11225 IFS=$as_save_IFS
11226
11227 fi
11228 fi
11229 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11230 if test -n "$DSYMUTIL"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11232 $as_echo "$DSYMUTIL" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11236 fi
11237
11238
11239 fi
11240 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11242 set dummy ${ncn_progname}; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test -n "$DSYMUTIL"; then
11249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262 done
11263 done
11264 IFS=$as_save_IFS
11265
11266 fi
11267 fi
11268 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11269 if test -n "$DSYMUTIL"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11271 $as_echo "$DSYMUTIL" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276
11277
11278 fi
11279 test -n "$ac_cv_prog_DSYMUTIL" && break
11280 done
11281
11282 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11283 set dummy dsymutil
11284 if test $build = $host ; then
11285 DSYMUTIL="$2"
11286 else
11287 DSYMUTIL="${ncn_tool_prefix}$2"
11288 fi
11289 fi
11290
11291
11292
11293 if test -n "$LD"; then
11294 ac_cv_prog_LD=$LD
11295 elif test -n "$ac_cv_prog_LD"; then
11296 LD=$ac_cv_prog_LD
11297 fi
11298
11299 if test -n "$ac_cv_prog_LD"; then
11300 for ncn_progname in ld; do
11301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11302 set dummy ${ncn_progname}; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_prog_LD+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 if test -n "$LD"; then
11309 ac_cv_prog_LD="$LD" # Let the user override the test.
11310 else
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_LD="${ncn_progname}"
11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322 done
11323 done
11324 IFS=$as_save_IFS
11325
11326 fi
11327 fi
11328 LD=$ac_cv_prog_LD
11329 if test -n "$LD"; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11331 $as_echo "$LD" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 fi
11336
11337
11338 done
11339 fi
11340
11341 for ncn_progname in ld; do
11342 if test -n "$ncn_tool_prefix"; then
11343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_prog_LD+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 if test -n "$LD"; then
11351 ac_cv_prog_LD="$LD" # Let the user override the test.
11352 else
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11355 do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11360 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 break 2
11363 fi
11364 done
11365 done
11366 IFS=$as_save_IFS
11367
11368 fi
11369 fi
11370 LD=$ac_cv_prog_LD
11371 if test -n "$LD"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11373 $as_echo "$LD" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378
11379
11380 fi
11381 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11383 set dummy ${ncn_progname}; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if ${ac_cv_prog_LD+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test -n "$LD"; then
11390 ac_cv_prog_LD="$LD" # Let the user override the test.
11391 else
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399 ac_cv_prog_LD="${ncn_progname}"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403 done
11404 done
11405 IFS=$as_save_IFS
11406
11407 fi
11408 fi
11409 LD=$ac_cv_prog_LD
11410 if test -n "$LD"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11412 $as_echo "$LD" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417
11418
11419 fi
11420 test -n "$ac_cv_prog_LD" && break
11421 done
11422
11423 if test -z "$ac_cv_prog_LD" ; then
11424 set dummy ld
11425 if test $build = $host ; then
11426 LD="$2"
11427 else
11428 LD="${ncn_tool_prefix}$2"
11429 fi
11430 fi
11431
11432
11433
11434 if test -n "$LIPO"; then
11435 ac_cv_prog_LIPO=$LIPO
11436 elif test -n "$ac_cv_prog_LIPO"; then
11437 LIPO=$ac_cv_prog_LIPO
11438 fi
11439
11440 if test -n "$ac_cv_prog_LIPO"; then
11441 for ncn_progname in lipo; do
11442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11443 set dummy ${ncn_progname}; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_prog_LIPO+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 if test -n "$LIPO"; then
11450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_prog_LIPO="${ncn_progname}"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 LIPO=$ac_cv_prog_LIPO
11470 if test -n "$LIPO"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11472 $as_echo "$LIPO" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 done
11480 fi
11481
11482 for ncn_progname in lipo; do
11483 if test -n "$ncn_tool_prefix"; then
11484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_prog_LIPO+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 if test -n "$LIPO"; then
11492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11493 else
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11496 do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11501 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505 done
11506 done
11507 IFS=$as_save_IFS
11508
11509 fi
11510 fi
11511 LIPO=$ac_cv_prog_LIPO
11512 if test -n "$LIPO"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11514 $as_echo "$LIPO" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11518 fi
11519
11520
11521 fi
11522 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11524 set dummy ${ncn_progname}; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if ${ac_cv_prog_LIPO+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test -n "$LIPO"; then
11531 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11535 do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_LIPO="${ncn_progname}"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544 done
11545 done
11546 IFS=$as_save_IFS
11547
11548 fi
11549 fi
11550 LIPO=$ac_cv_prog_LIPO
11551 if test -n "$LIPO"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11553 $as_echo "$LIPO" >&6; }
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11557 fi
11558
11559
11560 fi
11561 test -n "$ac_cv_prog_LIPO" && break
11562 done
11563
11564 if test -z "$ac_cv_prog_LIPO" ; then
11565 set dummy lipo
11566 if test $build = $host ; then
11567 LIPO="$2"
11568 else
11569 LIPO="${ncn_tool_prefix}$2"
11570 fi
11571 fi
11572
11573
11574
11575 if test -n "$NM"; then
11576 ac_cv_prog_NM=$NM
11577 elif test -n "$ac_cv_prog_NM"; then
11578 NM=$ac_cv_prog_NM
11579 fi
11580
11581 if test -n "$ac_cv_prog_NM"; then
11582 for ncn_progname in nm; do
11583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11584 set dummy ${ncn_progname}; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_prog_NM+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test -n "$NM"; then
11591 ac_cv_prog_NM="$NM" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11595 do
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600 ac_cv_prog_NM="${ncn_progname}"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11603 fi
11604 done
11605 done
11606 IFS=$as_save_IFS
11607
11608 fi
11609 fi
11610 NM=$ac_cv_prog_NM
11611 if test -n "$NM"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11613 $as_echo "$NM" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618
11619
11620 done
11621 fi
11622
11623 for ncn_progname in nm; do
11624 if test -n "$ncn_tool_prefix"; then
11625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_prog_NM+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test -n "$NM"; then
11633 ac_cv_prog_NM="$NM" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646 done
11647 done
11648 IFS=$as_save_IFS
11649
11650 fi
11651 fi
11652 NM=$ac_cv_prog_NM
11653 if test -n "$NM"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11655 $as_echo "$NM" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 fi
11660
11661
11662 fi
11663 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if ${ac_cv_prog_NM+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test -n "$NM"; then
11672 ac_cv_prog_NM="$NM" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11676 do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_NM="${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685 done
11686 done
11687 IFS=$as_save_IFS
11688
11689 fi
11690 fi
11691 NM=$ac_cv_prog_NM
11692 if test -n "$NM"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11694 $as_echo "$NM" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699
11700
11701 fi
11702 test -n "$ac_cv_prog_NM" && break
11703 done
11704
11705 if test -z "$ac_cv_prog_NM" ; then
11706 set dummy nm
11707 if test $build = $host ; then
11708 NM="$2"
11709 else
11710 NM="${ncn_tool_prefix}$2"
11711 fi
11712 fi
11713
11714
11715
11716 if test -n "$RANLIB"; then
11717 ac_cv_prog_RANLIB=$RANLIB
11718 elif test -n "$ac_cv_prog_RANLIB"; then
11719 RANLIB=$ac_cv_prog_RANLIB
11720 fi
11721
11722 if test -n "$ac_cv_prog_RANLIB"; then
11723 for ncn_progname in ranlib; do
11724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11725 set dummy ${ncn_progname}; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if ${ac_cv_prog_RANLIB+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 if test -n "$RANLIB"; then
11732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11733 else
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11736 do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741 ac_cv_prog_RANLIB="${ncn_progname}"
11742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11744 fi
11745 done
11746 done
11747 IFS=$as_save_IFS
11748
11749 fi
11750 fi
11751 RANLIB=$ac_cv_prog_RANLIB
11752 if test -n "$RANLIB"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11754 $as_echo "$RANLIB" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 fi
11759
11760
11761 done
11762 fi
11763
11764 for ncn_progname in ranlib; do
11765 if test -n "$ncn_tool_prefix"; then
11766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_prog_RANLIB+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 if test -n "$RANLIB"; then
11774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11775 else
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787 done
11788 done
11789 IFS=$as_save_IFS
11790
11791 fi
11792 fi
11793 RANLIB=$ac_cv_prog_RANLIB
11794 if test -n "$RANLIB"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11796 $as_echo "$RANLIB" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803 fi
11804 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11806 set dummy ${ncn_progname}; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_RANLIB+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 if test -n "$RANLIB"; then
11813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11817 do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_prog_RANLIB="${ncn_progname}"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826 done
11827 done
11828 IFS=$as_save_IFS
11829
11830 fi
11831 fi
11832 RANLIB=$ac_cv_prog_RANLIB
11833 if test -n "$RANLIB"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11835 $as_echo "$RANLIB" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842 fi
11843 test -n "$ac_cv_prog_RANLIB" && break
11844 done
11845
11846 if test -z "$ac_cv_prog_RANLIB" ; then
11847 RANLIB="true"
11848 fi
11849
11850
11851
11852 if test -n "$STRIP"; then
11853 ac_cv_prog_STRIP=$STRIP
11854 elif test -n "$ac_cv_prog_STRIP"; then
11855 STRIP=$ac_cv_prog_STRIP
11856 fi
11857
11858 if test -n "$ac_cv_prog_STRIP"; then
11859 for ncn_progname in strip; do
11860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11861 set dummy ${ncn_progname}; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_STRIP+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 if test -n "$STRIP"; then
11868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11872 do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_prog_STRIP="${ncn_progname}"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11880 fi
11881 done
11882 done
11883 IFS=$as_save_IFS
11884
11885 fi
11886 fi
11887 STRIP=$ac_cv_prog_STRIP
11888 if test -n "$STRIP"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11890 $as_echo "$STRIP" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897 done
11898 fi
11899
11900 for ncn_progname in strip; do
11901 if test -n "$ncn_tool_prefix"; then
11902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if ${ac_cv_prog_STRIP+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$STRIP"; then
11910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 fi
11928 fi
11929 STRIP=$ac_cv_prog_STRIP
11930 if test -n "$STRIP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11932 $as_echo "$STRIP" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938
11939 fi
11940 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_prog_STRIP+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$STRIP"; then
11949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_STRIP="${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962 done
11963 done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 STRIP=$ac_cv_prog_STRIP
11969 if test -n "$STRIP"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11971 $as_echo "$STRIP" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976
11977
11978 fi
11979 test -n "$ac_cv_prog_STRIP" && break
11980 done
11981
11982 if test -z "$ac_cv_prog_STRIP" ; then
11983 STRIP="true"
11984 fi
11985
11986
11987
11988 if test -n "$WINDRES"; then
11989 ac_cv_prog_WINDRES=$WINDRES
11990 elif test -n "$ac_cv_prog_WINDRES"; then
11991 WINDRES=$ac_cv_prog_WINDRES
11992 fi
11993
11994 if test -n "$ac_cv_prog_WINDRES"; then
11995 for ncn_progname in windres; do
11996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11997 set dummy ${ncn_progname}; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_WINDRES+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 if test -n "$WINDRES"; then
12004 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12005 else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_prog_WINDRES="${ncn_progname}"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017 done
12018 done
12019 IFS=$as_save_IFS
12020
12021 fi
12022 fi
12023 WINDRES=$ac_cv_prog_WINDRES
12024 if test -n "$WINDRES"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12026 $as_echo "$WINDRES" >&6; }
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 fi
12031
12032
12033 done
12034 fi
12035
12036 for ncn_progname in windres; do
12037 if test -n "$ncn_tool_prefix"; then
12038 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_prog_WINDRES+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 if test -n "$WINDRES"; then
12046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061 IFS=$as_save_IFS
12062
12063 fi
12064 fi
12065 WINDRES=$ac_cv_prog_WINDRES
12066 if test -n "$WINDRES"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12068 $as_echo "$WINDRES" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075 fi
12076 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12078 set dummy ${ncn_progname}; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_WINDRES+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -n "$WINDRES"; then
12085 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12089 do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094 ac_cv_prog_WINDRES="${ncn_progname}"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 break 2
12097 fi
12098 done
12099 done
12100 IFS=$as_save_IFS
12101
12102 fi
12103 fi
12104 WINDRES=$ac_cv_prog_WINDRES
12105 if test -n "$WINDRES"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12107 $as_echo "$WINDRES" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113
12114 fi
12115 test -n "$ac_cv_prog_WINDRES" && break
12116 done
12117
12118 if test -z "$ac_cv_prog_WINDRES" ; then
12119 set dummy windres
12120 if test $build = $host ; then
12121 WINDRES="$2"
12122 else
12123 WINDRES="${ncn_tool_prefix}$2"
12124 fi
12125 fi
12126
12127
12128
12129 if test -n "$WINDMC"; then
12130 ac_cv_prog_WINDMC=$WINDMC
12131 elif test -n "$ac_cv_prog_WINDMC"; then
12132 WINDMC=$ac_cv_prog_WINDMC
12133 fi
12134
12135 if test -n "$ac_cv_prog_WINDMC"; then
12136 for ncn_progname in windmc; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138 set dummy ${ncn_progname}; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_prog_WINDMC+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test -n "$WINDMC"; then
12145 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154 ac_cv_prog_WINDMC="${ncn_progname}"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158 done
12159 done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 WINDMC=$ac_cv_prog_WINDMC
12165 if test -n "$WINDMC"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12167 $as_echo "$WINDMC" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174 done
12175 fi
12176
12177 for ncn_progname in windmc; do
12178 if test -n "$ncn_tool_prefix"; then
12179 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12180 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_prog_WINDMC+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 if test -n "$WINDMC"; then
12187 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12188 else
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200 done
12201 done
12202 IFS=$as_save_IFS
12203
12204 fi
12205 fi
12206 WINDMC=$ac_cv_prog_WINDMC
12207 if test -n "$WINDMC"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12209 $as_echo "$WINDMC" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215
12216 fi
12217 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12219 set dummy ${ncn_progname}; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_WINDMC+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$WINDMC"; then
12226 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_WINDMC="${ncn_progname}"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 fi
12244 fi
12245 WINDMC=$ac_cv_prog_WINDMC
12246 if test -n "$WINDMC"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12248 $as_echo "$WINDMC" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253
12254
12255 fi
12256 test -n "$ac_cv_prog_WINDMC" && break
12257 done
12258
12259 if test -z "$ac_cv_prog_WINDMC" ; then
12260 set dummy windmc
12261 if test $build = $host ; then
12262 WINDMC="$2"
12263 else
12264 WINDMC="${ncn_tool_prefix}$2"
12265 fi
12266 fi
12267
12268
12269
12270 if test -n "$OBJCOPY"; then
12271 ac_cv_prog_OBJCOPY=$OBJCOPY
12272 elif test -n "$ac_cv_prog_OBJCOPY"; then
12273 OBJCOPY=$ac_cv_prog_OBJCOPY
12274 fi
12275
12276 if test -n "$ac_cv_prog_OBJCOPY"; then
12277 for ncn_progname in objcopy; do
12278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12279 set dummy ${ncn_progname}; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_OBJCOPY+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$OBJCOPY"; then
12286 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_prog_OBJCOPY="${ncn_progname}"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12298 fi
12299 done
12300 done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 OBJCOPY=$ac_cv_prog_OBJCOPY
12306 if test -n "$OBJCOPY"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12308 $as_echo "$OBJCOPY" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 done
12316 fi
12317
12318 for ncn_progname in objcopy; do
12319 if test -n "$ncn_tool_prefix"; then
12320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12321 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_prog_OBJCOPY+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 if test -n "$OBJCOPY"; then
12328 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12329 else
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12332 do
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12340 fi
12341 done
12342 done
12343 IFS=$as_save_IFS
12344
12345 fi
12346 fi
12347 OBJCOPY=$ac_cv_prog_OBJCOPY
12348 if test -n "$OBJCOPY"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12350 $as_echo "$OBJCOPY" >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354 fi
12355
12356
12357 fi
12358 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12360 set dummy ${ncn_progname}; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if ${ac_cv_prog_OBJCOPY+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test -n "$OBJCOPY"; then
12367 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12368 else
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376 ac_cv_prog_OBJCOPY="${ncn_progname}"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12379 fi
12380 done
12381 done
12382 IFS=$as_save_IFS
12383
12384 fi
12385 fi
12386 OBJCOPY=$ac_cv_prog_OBJCOPY
12387 if test -n "$OBJCOPY"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12389 $as_echo "$OBJCOPY" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395
12396 fi
12397 test -n "$ac_cv_prog_OBJCOPY" && break
12398 done
12399
12400 if test -z "$ac_cv_prog_OBJCOPY" ; then
12401 set dummy objcopy
12402 if test $build = $host ; then
12403 OBJCOPY="$2"
12404 else
12405 OBJCOPY="${ncn_tool_prefix}$2"
12406 fi
12407 fi
12408
12409
12410
12411 if test -n "$OBJDUMP"; then
12412 ac_cv_prog_OBJDUMP=$OBJDUMP
12413 elif test -n "$ac_cv_prog_OBJDUMP"; then
12414 OBJDUMP=$ac_cv_prog_OBJDUMP
12415 fi
12416
12417 if test -n "$ac_cv_prog_OBJDUMP"; then
12418 for ncn_progname in objdump; do
12419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12420 set dummy ${ncn_progname}; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if ${ac_cv_prog_OBJDUMP+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 if test -n "$OBJDUMP"; then
12427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_prog_OBJDUMP="${ncn_progname}"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12439 fi
12440 done
12441 done
12442 IFS=$as_save_IFS
12443
12444 fi
12445 fi
12446 OBJDUMP=$ac_cv_prog_OBJDUMP
12447 if test -n "$OBJDUMP"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12449 $as_echo "$OBJDUMP" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455
12456 done
12457 fi
12458
12459 for ncn_progname in objdump; do
12460 if test -n "$ncn_tool_prefix"; then
12461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if ${ac_cv_prog_OBJDUMP+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 if test -n "$OBJDUMP"; then
12469 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12470 else
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12473 do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12478 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 break 2
12481 fi
12482 done
12483 done
12484 IFS=$as_save_IFS
12485
12486 fi
12487 fi
12488 OBJDUMP=$ac_cv_prog_OBJDUMP
12489 if test -n "$OBJDUMP"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12491 $as_echo "$OBJDUMP" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496
12497
12498 fi
12499 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12501 set dummy ${ncn_progname}; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_prog_OBJDUMP+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 if test -n "$OBJDUMP"; then
12508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12509 else
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in $PATH
12512 do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12517 ac_cv_prog_OBJDUMP="${ncn_progname}"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12520 fi
12521 done
12522 done
12523 IFS=$as_save_IFS
12524
12525 fi
12526 fi
12527 OBJDUMP=$ac_cv_prog_OBJDUMP
12528 if test -n "$OBJDUMP"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12530 $as_echo "$OBJDUMP" >&6; }
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12534 fi
12535
12536
12537 fi
12538 test -n "$ac_cv_prog_OBJDUMP" && break
12539 done
12540
12541 if test -z "$ac_cv_prog_OBJDUMP" ; then
12542 set dummy objdump
12543 if test $build = $host ; then
12544 OBJDUMP="$2"
12545 else
12546 OBJDUMP="${ncn_tool_prefix}$2"
12547 fi
12548 fi
12549
12550
12551
12552 if test -n "$OTOOL"; then
12553 ac_cv_prog_OTOOL=$OTOOL
12554 elif test -n "$ac_cv_prog_OTOOL"; then
12555 OTOOL=$ac_cv_prog_OTOOL
12556 fi
12557
12558 if test -n "$ac_cv_prog_OTOOL"; then
12559 for ncn_progname in otool; do
12560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_prog_OTOOL+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if test -n "$OTOOL"; then
12568 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_prog_OTOOL="${ncn_progname}"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12580 fi
12581 done
12582 done
12583 IFS=$as_save_IFS
12584
12585 fi
12586 fi
12587 OTOOL=$ac_cv_prog_OTOOL
12588 if test -n "$OTOOL"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12590 $as_echo "$OTOOL" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12594 fi
12595
12596
12597 done
12598 fi
12599
12600 for ncn_progname in otool; do
12601 if test -n "$ncn_tool_prefix"; then
12602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12603 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if ${ac_cv_prog_OTOOL+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 if test -n "$OTOOL"; then
12610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12611 else
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12614 do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12622 fi
12623 done
12624 done
12625 IFS=$as_save_IFS
12626
12627 fi
12628 fi
12629 OTOOL=$ac_cv_prog_OTOOL
12630 if test -n "$OTOOL"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12632 $as_echo "$OTOOL" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637
12638
12639 fi
12640 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12642 set dummy ${ncn_progname}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_prog_OTOOL+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 if test -n "$OTOOL"; then
12649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12653 do
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658 ac_cv_prog_OTOOL="${ncn_progname}"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12661 fi
12662 done
12663 done
12664 IFS=$as_save_IFS
12665
12666 fi
12667 fi
12668 OTOOL=$ac_cv_prog_OTOOL
12669 if test -n "$OTOOL"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12671 $as_echo "$OTOOL" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677
12678 fi
12679 test -n "$ac_cv_prog_OTOOL" && break
12680 done
12681
12682 if test -z "$ac_cv_prog_OTOOL" ; then
12683 set dummy otool
12684 if test $build = $host ; then
12685 OTOOL="$2"
12686 else
12687 OTOOL="${ncn_tool_prefix}$2"
12688 fi
12689 fi
12690
12691
12692
12693 if test -n "$READELF"; then
12694 ac_cv_prog_READELF=$READELF
12695 elif test -n "$ac_cv_prog_READELF"; then
12696 READELF=$ac_cv_prog_READELF
12697 fi
12698
12699 if test -n "$ac_cv_prog_READELF"; then
12700 for ncn_progname in readelf; do
12701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12702 set dummy ${ncn_progname}; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if ${ac_cv_prog_READELF+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 if test -n "$READELF"; then
12709 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12710 else
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12713 do
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
12716 for ac_exec_ext in '' $ac_executable_extensions; do
12717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12718 ac_cv_prog_READELF="${ncn_progname}"
12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 break 2
12721 fi
12722 done
12723 done
12724 IFS=$as_save_IFS
12725
12726 fi
12727 fi
12728 READELF=$ac_cv_prog_READELF
12729 if test -n "$READELF"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12731 $as_echo "$READELF" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736
12737
12738 done
12739 fi
12740
12741 for ncn_progname in readelf; do
12742 if test -n "$ncn_tool_prefix"; then
12743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12744 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if ${ac_cv_prog_READELF+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 if test -n "$READELF"; then
12751 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12752 else
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12755 do
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12760 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12763 fi
12764 done
12765 done
12766 IFS=$as_save_IFS
12767
12768 fi
12769 fi
12770 READELF=$ac_cv_prog_READELF
12771 if test -n "$READELF"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12773 $as_echo "$READELF" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 fi
12778
12779
12780 fi
12781 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12783 set dummy ${ncn_progname}; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_prog_READELF+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 if test -n "$READELF"; then
12790 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12791 else
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12794 do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_prog_READELF="${ncn_progname}"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803 done
12804 done
12805 IFS=$as_save_IFS
12806
12807 fi
12808 fi
12809 READELF=$ac_cv_prog_READELF
12810 if test -n "$READELF"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12812 $as_echo "$READELF" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 fi
12817
12818
12819 fi
12820 test -n "$ac_cv_prog_READELF" && break
12821 done
12822
12823 if test -z "$ac_cv_prog_READELF" ; then
12824 set dummy readelf
12825 if test $build = $host ; then
12826 READELF="$2"
12827 else
12828 READELF="${ncn_tool_prefix}$2"
12829 fi
12830 fi
12831
12832
12833
12834
12835
12836
12837
12838
12839 # Target tools.
12840
12841 # Check whether --with-build-time-tools was given.
12842 if test "${with_build_time_tools+set}" = set; then :
12843 withval=$with_build_time_tools; case x"$withval" in
12844 x/*) ;;
12845 *)
12846 with_build_time_tools=
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12848 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12849 ;;
12850 esac
12851 else
12852 with_build_time_tools=
12853 fi
12854
12855
12856
12857
12858 if test -n "$CC_FOR_TARGET"; then
12859 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12860 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12861 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12862 fi
12863
12864 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12865 for ncn_progname in cc gcc; do
12866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12867 set dummy ${ncn_progname}; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$CC_FOR_TARGET"; then
12874 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12875 else
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891 fi
12892 fi
12893 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12894 if test -n "$CC_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12896 $as_echo "$CC_FOR_TARGET" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12900 fi
12901
12902
12903 done
12904 fi
12905
12906 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12907 for ncn_progname in cc gcc; do
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12909 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12910 if test -x $with_build_time_tools/${ncn_progname}; then
12911 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913 $as_echo "yes" >&6; }
12914 break
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919 done
12920 fi
12921
12922 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12923 for ncn_progname in cc gcc; do
12924 if test -n "$ncn_target_tool_prefix"; then
12925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12926 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 if test -n "$CC_FOR_TARGET"; then
12933 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12934 else
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12937 do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12942 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12945 fi
12946 done
12947 done
12948 IFS=$as_save_IFS
12949
12950 fi
12951 fi
12952 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12953 if test -n "$CC_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12955 $as_echo "$CC_FOR_TARGET" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12959 fi
12960
12961
12962 fi
12963 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$CC_FOR_TARGET"; then
12972 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12976 do
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12984 fi
12985 done
12986 done
12987 IFS=$as_save_IFS
12988
12989 fi
12990 fi
12991 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12992 if test -n "$CC_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12994 $as_echo "$CC_FOR_TARGET" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998 fi
12999
13000
13001 fi
13002 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13003 done
13004 fi
13005
13006 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13007 set dummy cc gcc
13008 if test $build = $target ; then
13009 CC_FOR_TARGET="$2"
13010 else
13011 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13012 fi
13013 else
13014 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13015 fi
13016
13017
13018
13019 if test -n "$CXX_FOR_TARGET"; then
13020 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13021 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13022 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13023 fi
13024
13025 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13026 for ncn_progname in c++ g++ cxx gxx; do
13027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13028 set dummy ${ncn_progname}; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 if test -n "$CXX_FOR_TARGET"; then
13035 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13036 else
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13039 do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048 done
13049 done
13050 IFS=$as_save_IFS
13051
13052 fi
13053 fi
13054 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13055 if test -n "$CXX_FOR_TARGET"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13057 $as_echo "$CXX_FOR_TARGET" >&6; }
13058 else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13061 fi
13062
13063
13064 done
13065 fi
13066
13067 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13068 for ncn_progname in c++ g++ cxx gxx; do
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13071 if test -x $with_build_time_tools/${ncn_progname}; then
13072 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13075 break
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080 done
13081 fi
13082
13083 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13084 for ncn_progname in c++ g++ cxx gxx; do
13085 if test -n "$ncn_target_tool_prefix"; then
13086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 $as_echo_n "checking for $ac_word... " >&6; }
13090 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 if test -n "$CXX_FOR_TARGET"; then
13094 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13095 else
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13098 do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13103 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107 done
13108 done
13109 IFS=$as_save_IFS
13110
13111 fi
13112 fi
13113 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13114 if test -n "$CXX_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13116 $as_echo "$CXX_FOR_TARGET" >&6; }
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120 fi
13121
13122
13123 fi
13124 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13126 set dummy ${ncn_progname}; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 if test -n "$CXX_FOR_TARGET"; then
13133 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13134 else
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13137 do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13145 fi
13146 done
13147 done
13148 IFS=$as_save_IFS
13149
13150 fi
13151 fi
13152 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13153 if test -n "$CXX_FOR_TARGET"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13155 $as_echo "$CXX_FOR_TARGET" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159 fi
13160
13161
13162 fi
13163 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13164 done
13165 fi
13166
13167 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13168 set dummy c++ g++ cxx gxx
13169 if test $build = $target ; then
13170 CXX_FOR_TARGET="$2"
13171 else
13172 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13173 fi
13174 else
13175 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13176 fi
13177
13178
13179
13180 if test -n "$GCC_FOR_TARGET"; then
13181 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13182 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13183 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13184 fi
13185
13186 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13187 for ncn_progname in gcc; do
13188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13189 set dummy ${ncn_progname}; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 if test -n "$GCC_FOR_TARGET"; then
13196 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209 done
13210 done
13211 IFS=$as_save_IFS
13212
13213 fi
13214 fi
13215 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13216 if test -n "$GCC_FOR_TARGET"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13218 $as_echo "$GCC_FOR_TARGET" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222 fi
13223
13224
13225 done
13226 fi
13227
13228 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13229 for ncn_progname in gcc; do
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13231 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13232 if test -x $with_build_time_tools/${ncn_progname}; then
13233 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13235 $as_echo "yes" >&6; }
13236 break
13237 else
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13240 fi
13241 done
13242 fi
13243
13244 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13245 for ncn_progname in gcc; do
13246 if test -n "$ncn_target_tool_prefix"; then
13247 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13248 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 if test -n "$GCC_FOR_TARGET"; then
13255 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13256 else
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268 done
13269 done
13270 IFS=$as_save_IFS
13271
13272 fi
13273 fi
13274 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13275 if test -n "$GCC_FOR_TARGET"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13277 $as_echo "$GCC_FOR_TARGET" >&6; }
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280 $as_echo "no" >&6; }
13281 fi
13282
13283
13284 fi
13285 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13287 set dummy ${ncn_progname}; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 if test -n "$GCC_FOR_TARGET"; then
13294 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13295 else
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13298 do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307 done
13308 done
13309 IFS=$as_save_IFS
13310
13311 fi
13312 fi
13313 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13314 if test -n "$GCC_FOR_TARGET"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13316 $as_echo "$GCC_FOR_TARGET" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 fi
13324 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13325 done
13326 fi
13327
13328 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13329 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13330 else
13331 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13332 fi
13333
13334
13335
13336 if test -n "$GFORTRAN_FOR_TARGET"; then
13337 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13338 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13339 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13340 fi
13341
13342 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13343 for ncn_progname in gfortran; do
13344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_progname}; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$GFORTRAN_FOR_TARGET"; then
13352 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13361 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13372 if test -n "$GFORTRAN_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13374 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380
13381 done
13382 fi
13383
13384 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13385 for ncn_progname in gfortran; do
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13387 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13388 if test -x $with_build_time_tools/${ncn_progname}; then
13389 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13391 $as_echo "yes" >&6; }
13392 break
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397 done
13398 fi
13399
13400 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13401 for ncn_progname in gfortran; do
13402 if test -n "$ncn_target_tool_prefix"; then
13403 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13404 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13406 $as_echo_n "checking for $ac_word... " >&6; }
13407 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if test -n "$GFORTRAN_FOR_TARGET"; then
13411 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13412 else
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13415 do
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13423 fi
13424 done
13425 done
13426 IFS=$as_save_IFS
13427
13428 fi
13429 fi
13430 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13431 if test -n "$GFORTRAN_FOR_TARGET"; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13433 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13437 fi
13438
13439
13440 fi
13441 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13443 set dummy ${ncn_progname}; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if test -n "$GFORTRAN_FOR_TARGET"; then
13450 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13470 if test -n "$GFORTRAN_FOR_TARGET"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13472 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478
13479 fi
13480 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13481 done
13482 fi
13483
13484 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13485 set dummy gfortran
13486 if test $build = $target ; then
13487 GFORTRAN_FOR_TARGET="$2"
13488 else
13489 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13490 fi
13491 else
13492 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13493 fi
13494
13495
13496
13497 if test -n "$GOC_FOR_TARGET"; then
13498 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13499 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13500 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13501 fi
13502
13503 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13504 for ncn_progname in gccgo; do
13505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13506 set dummy ${ncn_progname}; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 if test -n "$GOC_FOR_TARGET"; then
13513 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13514 else
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13517 do
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13525 fi
13526 done
13527 done
13528 IFS=$as_save_IFS
13529
13530 fi
13531 fi
13532 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13533 if test -n "$GOC_FOR_TARGET"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13535 $as_echo "$GOC_FOR_TARGET" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13539 fi
13540
13541
13542 done
13543 fi
13544
13545 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13546 for ncn_progname in gccgo; do
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13548 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13549 if test -x $with_build_time_tools/${ncn_progname}; then
13550 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13552 $as_echo "yes" >&6; }
13553 break
13554 else
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13557 fi
13558 done
13559 fi
13560
13561 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13562 for ncn_progname in gccgo; do
13563 if test -n "$ncn_target_tool_prefix"; then
13564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13565 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567 $as_echo_n "checking for $ac_word... " >&6; }
13568 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 if test -n "$GOC_FOR_TARGET"; then
13572 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13581 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13584 fi
13585 done
13586 done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13592 if test -n "$GOC_FOR_TARGET"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13594 $as_echo "$GOC_FOR_TARGET" >&6; }
13595 else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599
13600
13601 fi
13602 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13604 set dummy ${ncn_progname}; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$GOC_FOR_TARGET"; then
13611 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624 done
13625 done
13626 IFS=$as_save_IFS
13627
13628 fi
13629 fi
13630 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13631 if test -n "$GOC_FOR_TARGET"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13633 $as_echo "$GOC_FOR_TARGET" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639
13640 fi
13641 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13642 done
13643 fi
13644
13645 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13646 set dummy gccgo
13647 if test $build = $target ; then
13648 GOC_FOR_TARGET="$2"
13649 else
13650 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13651 fi
13652 else
13653 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13654 fi
13655
13656
13657
13658 if test -n "$GDC_FOR_TARGET"; then
13659 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13660 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13661 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13662 fi
13663
13664 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13665 for ncn_progname in gdc; do
13666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13667 set dummy ${ncn_progname}; ac_word=$2
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13669 $as_echo_n "checking for $ac_word... " >&6; }
13670 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 if test -n "$GDC_FOR_TARGET"; then
13674 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687 done
13688 done
13689 IFS=$as_save_IFS
13690
13691 fi
13692 fi
13693 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13694 if test -n "$GDC_FOR_TARGET"; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13696 $as_echo "$GDC_FOR_TARGET" >&6; }
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13700 fi
13701
13702
13703 done
13704 fi
13705
13706 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13707 for ncn_progname in gdc; do
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13709 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13710 if test -x $with_build_time_tools/${ncn_progname}; then
13711 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713 $as_echo "yes" >&6; }
13714 break
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718 fi
13719 done
13720 fi
13721
13722 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13723 for ncn_progname in gdc; do
13724 if test -n "$ncn_target_tool_prefix"; then
13725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13726 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728 $as_echo_n "checking for $ac_word... " >&6; }
13729 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 if test -n "$GDC_FOR_TARGET"; then
13733 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13734 else
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13737 do
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13742 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 break 2
13745 fi
13746 done
13747 done
13748 IFS=$as_save_IFS
13749
13750 fi
13751 fi
13752 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13753 if test -n "$GDC_FOR_TARGET"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13755 $as_echo "$GDC_FOR_TARGET" >&6; }
13756 else
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13759 fi
13760
13761
13762 fi
13763 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$GDC_FOR_TARGET"; then
13772 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13784 fi
13785 done
13786 done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13792 if test -n "$GDC_FOR_TARGET"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13794 $as_echo "$GDC_FOR_TARGET" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800
13801 fi
13802 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13803 done
13804 fi
13805
13806 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13807 set dummy gdc
13808 if test $build = $target ; then
13809 GDC_FOR_TARGET="$2"
13810 else
13811 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13812 fi
13813 else
13814 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13815 fi
13816
13817
13818
13819 if test -n "$GM2_FOR_TARGET"; then
13820 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13821 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13822 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13823 fi
13824
13825 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13826 for ncn_progname in gm2; do
13827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13828 set dummy ${ncn_progname}; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 if test -n "$GM2_FOR_TARGET"; then
13835 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13836 else
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi
13853 fi
13854 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13855 if test -n "$GM2_FOR_TARGET"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13857 $as_echo "$GM2_FOR_TARGET" >&6; }
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13861 fi
13862
13863
13864 done
13865 fi
13866
13867 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13868 for ncn_progname in gm2; do
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13870 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13871 if test -x $with_build_time_tools/${ncn_progname}; then
13872 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13874 $as_echo "yes" >&6; }
13875 break
13876 else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 $as_echo "no" >&6; }
13879 fi
13880 done
13881 fi
13882
13883 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13884 for ncn_progname in gm2; do
13885 if test -n "$ncn_target_tool_prefix"; then
13886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13887 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13889 $as_echo_n "checking for $ac_word... " >&6; }
13890 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 if test -n "$GM2_FOR_TARGET"; then
13894 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13895 else
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13898 do
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
13902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13903 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 break 2
13906 fi
13907 done
13908 done
13909 IFS=$as_save_IFS
13910
13911 fi
13912 fi
13913 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13914 if test -n "$GM2_FOR_TARGET"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13916 $as_echo "$GM2_FOR_TARGET" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920 fi
13921
13922
13923 fi
13924 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13926 set dummy ${ncn_progname}; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -n "$GM2_FOR_TARGET"; then
13933 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13937 do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946 done
13947 done
13948 IFS=$as_save_IFS
13949
13950 fi
13951 fi
13952 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13953 if test -n "$GM2_FOR_TARGET"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13955 $as_echo "$GM2_FOR_TARGET" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 fi
13960
13961
13962 fi
13963 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
13964 done
13965 fi
13966
13967 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
13968 set dummy gm2
13969 if test $build = $target ; then
13970 GM2_FOR_TARGET="$2"
13971 else
13972 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
13973 fi
13974 else
13975 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
13976 fi
13977
13978
13979
13980 cat > conftest.c << \EOF
13981 #ifdef __GNUC__
13982 gcc_yay;
13983 #endif
13984 EOF
13985 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13986 have_gcc_for_target=yes
13987 else
13988 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13989 have_gcc_for_target=no
13990 fi
13991 rm conftest.c
13992
13993
13994
13995
13996 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13997 if test -n "$with_build_time_tools"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13999 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14000 if test -x $with_build_time_tools/ar; then
14001 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14002 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14004 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14008 fi
14009 elif test $build != $host && test $have_gcc_for_target = yes; then
14010 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14011 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14012 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14013 fi
14014 fi
14015 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14016 # Extract the first word of "ar", so it can be a program name with args.
14017 set dummy ar; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 case $AR_FOR_TARGET in
14024 [\\/]* | ?:[\\/]*)
14025 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14026 ;;
14027 *)
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $gcc_cv_tool_dirs
14030 do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14035 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039 done
14040 done
14041 IFS=$as_save_IFS
14042
14043 ;;
14044 esac
14045 fi
14046 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14047 if test -n "$AR_FOR_TARGET"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14049 $as_echo "$AR_FOR_TARGET" >&6; }
14050 else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14053 fi
14054
14055
14056 fi
14057 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14058
14059
14060 if test -n "$AR_FOR_TARGET"; then
14061 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14062 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14063 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14064 fi
14065
14066 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14067 for ncn_progname in ar; do
14068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14069 set dummy ${ncn_progname}; ac_word=$2
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071 $as_echo_n "checking for $ac_word... " >&6; }
14072 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 if test -n "$AR_FOR_TARGET"; then
14076 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14077 else
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14080 do
14081 IFS=$as_save_IFS
14082 test -z "$as_dir" && as_dir=.
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14085 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087 break 2
14088 fi
14089 done
14090 done
14091 IFS=$as_save_IFS
14092
14093 fi
14094 fi
14095 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14096 if test -n "$AR_FOR_TARGET"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14098 $as_echo "$AR_FOR_TARGET" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102 fi
14103
14104
14105 done
14106 fi
14107
14108 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14109 for ncn_progname in ar; do
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14111 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14112 if test -x $with_build_time_tools/${ncn_progname}; then
14113 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14115 $as_echo "yes" >&6; }
14116 break
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 fi
14121 done
14122 fi
14123
14124 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14125 for ncn_progname in ar; do
14126 if test -n "$ncn_target_tool_prefix"; then
14127 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14128 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test -n "$AR_FOR_TARGET"; then
14135 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14147 fi
14148 done
14149 done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14155 if test -n "$AR_FOR_TARGET"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14157 $as_echo "$AR_FOR_TARGET" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161 fi
14162
14163
14164 fi
14165 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14167 set dummy ${ncn_progname}; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$AR_FOR_TARGET"; then
14174 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14175 else
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14178 do
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14186 fi
14187 done
14188 done
14189 IFS=$as_save_IFS
14190
14191 fi
14192 fi
14193 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14194 if test -n "$AR_FOR_TARGET"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14196 $as_echo "$AR_FOR_TARGET" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200 fi
14201
14202
14203 fi
14204 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14205 done
14206 fi
14207
14208 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14209 set dummy ar
14210 if test $build = $target ; then
14211 AR_FOR_TARGET="$2"
14212 else
14213 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14214 fi
14215 else
14216 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14217 fi
14218
14219 else
14220 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14221 fi
14222
14223
14224
14225
14226 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14227 if test -n "$with_build_time_tools"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14229 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14230 if test -x $with_build_time_tools/as; then
14231 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14232 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14234 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239 elif test $build != $host && test $have_gcc_for_target = yes; then
14240 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14241 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14242 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14243 fi
14244 fi
14245 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14246 # Extract the first word of "as", so it can be a program name with args.
14247 set dummy as; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 case $AS_FOR_TARGET in
14254 [\\/]* | ?:[\\/]*)
14255 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14256 ;;
14257 *)
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $gcc_cv_tool_dirs
14260 do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14268 fi
14269 done
14270 done
14271 IFS=$as_save_IFS
14272
14273 ;;
14274 esac
14275 fi
14276 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14277 if test -n "$AS_FOR_TARGET"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14279 $as_echo "$AS_FOR_TARGET" >&6; }
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14283 fi
14284
14285
14286 fi
14287 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14288
14289
14290 if test -n "$AS_FOR_TARGET"; then
14291 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14292 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14293 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14294 fi
14295
14296 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14297 for ncn_progname in as; do
14298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14299 set dummy ${ncn_progname}; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 if test -n "$AS_FOR_TARGET"; then
14306 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14326 if test -n "$AS_FOR_TARGET"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14328 $as_echo "$AS_FOR_TARGET" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14332 fi
14333
14334
14335 done
14336 fi
14337
14338 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14339 for ncn_progname in as; do
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14341 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14342 if test -x $with_build_time_tools/${ncn_progname}; then
14343 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346 break
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351 done
14352 fi
14353
14354 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14355 for ncn_progname in as; do
14356 if test -n "$ncn_target_tool_prefix"; then
14357 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14358 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 if test -n "$AS_FOR_TARGET"; then
14365 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14366 else
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14369 do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378 done
14379 done
14380 IFS=$as_save_IFS
14381
14382 fi
14383 fi
14384 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14385 if test -n "$AS_FOR_TARGET"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14387 $as_echo "$AS_FOR_TARGET" >&6; }
14388 else
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14391 fi
14392
14393
14394 fi
14395 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14397 set dummy ${ncn_progname}; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$AS_FOR_TARGET"; then
14404 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14408 do
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14416 fi
14417 done
14418 done
14419 IFS=$as_save_IFS
14420
14421 fi
14422 fi
14423 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14424 if test -n "$AS_FOR_TARGET"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14426 $as_echo "$AS_FOR_TARGET" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430 fi
14431
14432
14433 fi
14434 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14435 done
14436 fi
14437
14438 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14439 set dummy as
14440 if test $build = $target ; then
14441 AS_FOR_TARGET="$2"
14442 else
14443 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14444 fi
14445 else
14446 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14447 fi
14448
14449 else
14450 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14451 fi
14452
14453
14454
14455
14456 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14457 if test -n "$with_build_time_tools"; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14459 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14460 if test -x $with_build_time_tools/dlltool; then
14461 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14462 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14464 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469 elif test $build != $host && test $have_gcc_for_target = yes; then
14470 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14471 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14472 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14473 fi
14474 fi
14475 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14476 # Extract the first word of "dlltool", so it can be a program name with args.
14477 set dummy dlltool; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 case $DLLTOOL_FOR_TARGET in
14484 [\\/]* | ?:[\\/]*)
14485 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14486 ;;
14487 *)
14488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489 for as_dir in $gcc_cv_tool_dirs
14490 do
14491 IFS=$as_save_IFS
14492 test -z "$as_dir" && as_dir=.
14493 for ac_exec_ext in '' $ac_executable_extensions; do
14494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14495 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14497 break 2
14498 fi
14499 done
14500 done
14501 IFS=$as_save_IFS
14502
14503 ;;
14504 esac
14505 fi
14506 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14507 if test -n "$DLLTOOL_FOR_TARGET"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14509 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512 $as_echo "no" >&6; }
14513 fi
14514
14515
14516 fi
14517 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14518
14519
14520 if test -n "$DLLTOOL_FOR_TARGET"; then
14521 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14522 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14523 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14524 fi
14525
14526 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14527 for ncn_progname in dlltool; do
14528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14529 set dummy ${ncn_progname}; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test -n "$DLLTOOL_FOR_TARGET"; then
14536 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14548 fi
14549 done
14550 done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14556 if test -n "$DLLTOOL_FOR_TARGET"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14558 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563
14564
14565 done
14566 fi
14567
14568 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14569 for ncn_progname in dlltool; do
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14571 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14572 if test -x $with_build_time_tools/${ncn_progname}; then
14573 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14575 $as_echo "yes" >&6; }
14576 break
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14580 fi
14581 done
14582 fi
14583
14584 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14585 for ncn_progname in dlltool; do
14586 if test -n "$ncn_target_tool_prefix"; then
14587 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14588 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 if test -n "$DLLTOOL_FOR_TARGET"; then
14595 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14596 else
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14599 do
14600 IFS=$as_save_IFS
14601 test -z "$as_dir" && as_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14604 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14606 break 2
14607 fi
14608 done
14609 done
14610 IFS=$as_save_IFS
14611
14612 fi
14613 fi
14614 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14615 if test -n "$DLLTOOL_FOR_TARGET"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14617 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622
14623
14624 fi
14625 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14627 set dummy ${ncn_progname}; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14638 do
14639 IFS=$as_save_IFS
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 break 2
14646 fi
14647 done
14648 done
14649 IFS=$as_save_IFS
14650
14651 fi
14652 fi
14653 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14654 if test -n "$DLLTOOL_FOR_TARGET"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14656 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14657 else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659 $as_echo "no" >&6; }
14660 fi
14661
14662
14663 fi
14664 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14665 done
14666 fi
14667
14668 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14669 set dummy dlltool
14670 if test $build = $target ; then
14671 DLLTOOL_FOR_TARGET="$2"
14672 else
14673 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14674 fi
14675 else
14676 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14677 fi
14678
14679 else
14680 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14681 fi
14682
14683
14684
14685
14686 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14687 if test -n "$with_build_time_tools"; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14689 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14690 if test -x $with_build_time_tools/dsymutil; then
14691 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14692 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14694 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699 elif test $build != $host && test $have_gcc_for_target = yes; then
14700 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14701 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14702 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14703 fi
14704 fi
14705 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14706 # Extract the first word of "dsymutil", so it can be a program name with args.
14707 set dummy dsymutil; ac_word=$2
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709 $as_echo_n "checking for $ac_word... " >&6; }
14710 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 case $DSYMUTIL_FOR_TARGET in
14714 [\\/]* | ?:[\\/]*)
14715 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14716 ;;
14717 *)
14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719 for as_dir in $gcc_cv_tool_dirs
14720 do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729 done
14730 done
14731 IFS=$as_save_IFS
14732
14733 ;;
14734 esac
14735 fi
14736 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14737 if test -n "$DSYMUTIL_FOR_TARGET"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14739 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14740 else
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742 $as_echo "no" >&6; }
14743 fi
14744
14745
14746 fi
14747 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14748
14749
14750 if test -n "$DSYMUTIL_FOR_TARGET"; then
14751 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14752 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14753 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14754 fi
14755
14756 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14757 for ncn_progname in dsymutil; do
14758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14759 set dummy ${ncn_progname}; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761 $as_echo_n "checking for $ac_word... " >&6; }
14762 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 if test -n "$DSYMUTIL_FOR_TARGET"; then
14766 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14767 else
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769 for as_dir in $PATH
14770 do
14771 IFS=$as_save_IFS
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14775 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14777 break 2
14778 fi
14779 done
14780 done
14781 IFS=$as_save_IFS
14782
14783 fi
14784 fi
14785 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14786 if test -n "$DSYMUTIL_FOR_TARGET"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14788 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14789 else
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 $as_echo "no" >&6; }
14792 fi
14793
14794
14795 done
14796 fi
14797
14798 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14799 for ncn_progname in dsymutil; do
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14801 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14802 if test -x $with_build_time_tools/${ncn_progname}; then
14803 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14805 $as_echo "yes" >&6; }
14806 break
14807 else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809 $as_echo "no" >&6; }
14810 fi
14811 done
14812 fi
14813
14814 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14815 for ncn_progname in dsymutil; do
14816 if test -n "$ncn_target_tool_prefix"; then
14817 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14818 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14820 $as_echo_n "checking for $ac_word... " >&6; }
14821 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14824 if test -n "$DSYMUTIL_FOR_TARGET"; then
14825 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14826 else
14827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14828 for as_dir in $PATH
14829 do
14830 IFS=$as_save_IFS
14831 test -z "$as_dir" && as_dir=.
14832 for ac_exec_ext in '' $ac_executable_extensions; do
14833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14834 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14836 break 2
14837 fi
14838 done
14839 done
14840 IFS=$as_save_IFS
14841
14842 fi
14843 fi
14844 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14845 if test -n "$DSYMUTIL_FOR_TARGET"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14847 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14848 else
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14850 $as_echo "no" >&6; }
14851 fi
14852
14853
14854 fi
14855 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14857 set dummy ${ncn_progname}; ac_word=$2
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 $as_echo_n "checking for $ac_word... " >&6; }
14860 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14865 else
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875 break 2
14876 fi
14877 done
14878 done
14879 IFS=$as_save_IFS
14880
14881 fi
14882 fi
14883 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14884 if test -n "$DSYMUTIL_FOR_TARGET"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14886 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14890 fi
14891
14892
14893 fi
14894 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14895 done
14896 fi
14897
14898 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14899 set dummy dsymutil
14900 if test $build = $target ; then
14901 DSYMUTIL_FOR_TARGET="$2"
14902 else
14903 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14904 fi
14905 else
14906 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14907 fi
14908
14909 else
14910 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14911 fi
14912
14913
14914
14915
14916 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14917 if test -n "$with_build_time_tools"; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14919 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14920 if test -x $with_build_time_tools/ld; then
14921 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14922 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14924 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929 elif test $build != $host && test $have_gcc_for_target = yes; then
14930 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14931 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14932 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14933 fi
14934 fi
14935 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14936 # Extract the first word of "ld", so it can be a program name with args.
14937 set dummy ld; ac_word=$2
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14939 $as_echo_n "checking for $ac_word... " >&6; }
14940 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 case $LD_FOR_TARGET in
14944 [\\/]* | ?:[\\/]*)
14945 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14946 ;;
14947 *)
14948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949 for as_dir in $gcc_cv_tool_dirs
14950 do
14951 IFS=$as_save_IFS
14952 test -z "$as_dir" && as_dir=.
14953 for ac_exec_ext in '' $ac_executable_extensions; do
14954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14955 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14957 break 2
14958 fi
14959 done
14960 done
14961 IFS=$as_save_IFS
14962
14963 ;;
14964 esac
14965 fi
14966 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14967 if test -n "$LD_FOR_TARGET"; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14969 $as_echo "$LD_FOR_TARGET" >&6; }
14970 else
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14972 $as_echo "no" >&6; }
14973 fi
14974
14975
14976 fi
14977 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14978
14979
14980 if test -n "$LD_FOR_TARGET"; then
14981 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14982 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14983 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14984 fi
14985
14986 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14987 for ncn_progname in ld; do
14988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14989 set dummy ${ncn_progname}; ac_word=$2
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14991 $as_echo_n "checking for $ac_word... " >&6; }
14992 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 if test -n "$LD_FOR_TARGET"; then
14996 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14997 else
14998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999 for as_dir in $PATH
15000 do
15001 IFS=$as_save_IFS
15002 test -z "$as_dir" && as_dir=.
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15005 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15007 break 2
15008 fi
15009 done
15010 done
15011 IFS=$as_save_IFS
15012
15013 fi
15014 fi
15015 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15016 if test -n "$LD_FOR_TARGET"; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15018 $as_echo "$LD_FOR_TARGET" >&6; }
15019 else
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022 fi
15023
15024
15025 done
15026 fi
15027
15028 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15029 for ncn_progname in ld; do
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15031 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15032 if test -x $with_build_time_tools/${ncn_progname}; then
15033 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15035 $as_echo "yes" >&6; }
15036 break
15037 else
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15040 fi
15041 done
15042 fi
15043
15044 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15045 for ncn_progname in ld; do
15046 if test -n "$ncn_target_tool_prefix"; then
15047 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15048 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15050 $as_echo_n "checking for $ac_word... " >&6; }
15051 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 if test -n "$LD_FOR_TARGET"; then
15055 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15056 else
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15059 do
15060 IFS=$as_save_IFS
15061 test -z "$as_dir" && as_dir=.
15062 for ac_exec_ext in '' $ac_executable_extensions; do
15063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15066 break 2
15067 fi
15068 done
15069 done
15070 IFS=$as_save_IFS
15071
15072 fi
15073 fi
15074 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15075 if test -n "$LD_FOR_TARGET"; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15077 $as_echo "$LD_FOR_TARGET" >&6; }
15078 else
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 $as_echo "no" >&6; }
15081 fi
15082
15083
15084 fi
15085 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15087 set dummy ${ncn_progname}; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15089 $as_echo_n "checking for $ac_word... " >&6; }
15090 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 if test -n "$LD_FOR_TARGET"; then
15094 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15095 else
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15098 do
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15105 break 2
15106 fi
15107 done
15108 done
15109 IFS=$as_save_IFS
15110
15111 fi
15112 fi
15113 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15114 if test -n "$LD_FOR_TARGET"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15116 $as_echo "$LD_FOR_TARGET" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15120 fi
15121
15122
15123 fi
15124 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15125 done
15126 fi
15127
15128 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15129 set dummy ld
15130 if test $build = $target ; then
15131 LD_FOR_TARGET="$2"
15132 else
15133 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15134 fi
15135 else
15136 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15137 fi
15138
15139 else
15140 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15141 fi
15142
15143
15144
15145
15146 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15147 if test -n "$with_build_time_tools"; then
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15149 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15150 if test -x $with_build_time_tools/lipo; then
15151 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15152 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15154 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158 fi
15159 elif test $build != $host && test $have_gcc_for_target = yes; then
15160 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15161 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15162 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15163 fi
15164 fi
15165 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15166 # Extract the first word of "lipo", so it can be a program name with args.
15167 set dummy lipo; ac_word=$2
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15169 $as_echo_n "checking for $ac_word... " >&6; }
15170 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 case $LIPO_FOR_TARGET in
15174 [\\/]* | ?:[\\/]*)
15175 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15176 ;;
15177 *)
15178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179 for as_dir in $gcc_cv_tool_dirs
15180 do
15181 IFS=$as_save_IFS
15182 test -z "$as_dir" && as_dir=.
15183 for ac_exec_ext in '' $ac_executable_extensions; do
15184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15185 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15187 break 2
15188 fi
15189 done
15190 done
15191 IFS=$as_save_IFS
15192
15193 ;;
15194 esac
15195 fi
15196 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15197 if test -n "$LIPO_FOR_TARGET"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15199 $as_echo "$LIPO_FOR_TARGET" >&6; }
15200 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15203 fi
15204
15205
15206 fi
15207 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15208
15209
15210 if test -n "$LIPO_FOR_TARGET"; then
15211 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15212 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15213 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15214 fi
15215
15216 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15217 for ncn_progname in lipo; do
15218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15219 set dummy ${ncn_progname}; ac_word=$2
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15221 $as_echo_n "checking for $ac_word... " >&6; }
15222 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225 if test -n "$LIPO_FOR_TARGET"; then
15226 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15227 else
15228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229 for as_dir in $PATH
15230 do
15231 IFS=$as_save_IFS
15232 test -z "$as_dir" && as_dir=.
15233 for ac_exec_ext in '' $ac_executable_extensions; do
15234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15235 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15237 break 2
15238 fi
15239 done
15240 done
15241 IFS=$as_save_IFS
15242
15243 fi
15244 fi
15245 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15246 if test -n "$LIPO_FOR_TARGET"; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15248 $as_echo "$LIPO_FOR_TARGET" >&6; }
15249 else
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15251 $as_echo "no" >&6; }
15252 fi
15253
15254
15255 done
15256 fi
15257
15258 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15259 for ncn_progname in lipo; do
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15261 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15262 if test -x $with_build_time_tools/${ncn_progname}; then
15263 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15265 $as_echo "yes" >&6; }
15266 break
15267 else
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269 $as_echo "no" >&6; }
15270 fi
15271 done
15272 fi
15273
15274 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15275 for ncn_progname in lipo; do
15276 if test -n "$ncn_target_tool_prefix"; then
15277 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15278 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15280 $as_echo_n "checking for $ac_word... " >&6; }
15281 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15282 $as_echo_n "(cached) " >&6
15283 else
15284 if test -n "$LIPO_FOR_TARGET"; then
15285 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15286 else
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15289 do
15290 IFS=$as_save_IFS
15291 test -z "$as_dir" && as_dir=.
15292 for ac_exec_ext in '' $ac_executable_extensions; do
15293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15294 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15296 break 2
15297 fi
15298 done
15299 done
15300 IFS=$as_save_IFS
15301
15302 fi
15303 fi
15304 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15305 if test -n "$LIPO_FOR_TARGET"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15307 $as_echo "$LIPO_FOR_TARGET" >&6; }
15308 else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15311 fi
15312
15313
15314 fi
15315 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15317 set dummy ${ncn_progname}; ac_word=$2
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15319 $as_echo_n "checking for $ac_word... " >&6; }
15320 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15325 else
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15328 do
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335 break 2
15336 fi
15337 done
15338 done
15339 IFS=$as_save_IFS
15340
15341 fi
15342 fi
15343 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15344 if test -n "$LIPO_FOR_TARGET"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15346 $as_echo "$LIPO_FOR_TARGET" >&6; }
15347 else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15350 fi
15351
15352
15353 fi
15354 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15355 done
15356 fi
15357
15358 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15359 set dummy lipo
15360 if test $build = $target ; then
15361 LIPO_FOR_TARGET="$2"
15362 else
15363 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15364 fi
15365 else
15366 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15367 fi
15368
15369 else
15370 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15371 fi
15372
15373
15374
15375
15376 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15377 if test -n "$with_build_time_tools"; then
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15379 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15380 if test -x $with_build_time_tools/nm; then
15381 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15382 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15384 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15388 fi
15389 elif test $build != $host && test $have_gcc_for_target = yes; then
15390 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15391 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15392 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15393 fi
15394 fi
15395 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15396 # Extract the first word of "nm", so it can be a program name with args.
15397 set dummy nm; ac_word=$2
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15399 $as_echo_n "checking for $ac_word... " >&6; }
15400 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 case $NM_FOR_TARGET in
15404 [\\/]* | ?:[\\/]*)
15405 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15406 ;;
15407 *)
15408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15409 for as_dir in $gcc_cv_tool_dirs
15410 do
15411 IFS=$as_save_IFS
15412 test -z "$as_dir" && as_dir=.
15413 for ac_exec_ext in '' $ac_executable_extensions; do
15414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15415 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15417 break 2
15418 fi
15419 done
15420 done
15421 IFS=$as_save_IFS
15422
15423 ;;
15424 esac
15425 fi
15426 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15427 if test -n "$NM_FOR_TARGET"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15429 $as_echo "$NM_FOR_TARGET" >&6; }
15430 else
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432 $as_echo "no" >&6; }
15433 fi
15434
15435
15436 fi
15437 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15438
15439
15440 if test -n "$NM_FOR_TARGET"; then
15441 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15442 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15443 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15444 fi
15445
15446 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15447 for ncn_progname in nm; do
15448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15449 set dummy ${ncn_progname}; ac_word=$2
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15451 $as_echo_n "checking for $ac_word... " >&6; }
15452 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 if test -n "$NM_FOR_TARGET"; then
15456 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15457 else
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in $PATH
15460 do
15461 IFS=$as_save_IFS
15462 test -z "$as_dir" && as_dir=.
15463 for ac_exec_ext in '' $ac_executable_extensions; do
15464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15465 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15467 break 2
15468 fi
15469 done
15470 done
15471 IFS=$as_save_IFS
15472
15473 fi
15474 fi
15475 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15476 if test -n "$NM_FOR_TARGET"; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15478 $as_echo "$NM_FOR_TARGET" >&6; }
15479 else
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15482 fi
15483
15484
15485 done
15486 fi
15487
15488 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15489 for ncn_progname in nm; do
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15491 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15492 if test -x $with_build_time_tools/${ncn_progname}; then
15493 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15495 $as_echo "yes" >&6; }
15496 break
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499 $as_echo "no" >&6; }
15500 fi
15501 done
15502 fi
15503
15504 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15505 for ncn_progname in nm; do
15506 if test -n "$ncn_target_tool_prefix"; then
15507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15508 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15510 $as_echo_n "checking for $ac_word... " >&6; }
15511 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15514 if test -n "$NM_FOR_TARGET"; then
15515 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15516 else
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15519 do
15520 IFS=$as_save_IFS
15521 test -z "$as_dir" && as_dir=.
15522 for ac_exec_ext in '' $ac_executable_extensions; do
15523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15526 break 2
15527 fi
15528 done
15529 done
15530 IFS=$as_save_IFS
15531
15532 fi
15533 fi
15534 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15535 if test -n "$NM_FOR_TARGET"; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15537 $as_echo "$NM_FOR_TARGET" >&6; }
15538 else
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541 fi
15542
15543
15544 fi
15545 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15547 set dummy ${ncn_progname}; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552 else
15553 if test -n "$NM_FOR_TARGET"; then
15554 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15555 else
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15558 do
15559 IFS=$as_save_IFS
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15563 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15565 break 2
15566 fi
15567 done
15568 done
15569 IFS=$as_save_IFS
15570
15571 fi
15572 fi
15573 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15574 if test -n "$NM_FOR_TARGET"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15576 $as_echo "$NM_FOR_TARGET" >&6; }
15577 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15580 fi
15581
15582
15583 fi
15584 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15585 done
15586 fi
15587
15588 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15589 set dummy nm
15590 if test $build = $target ; then
15591 NM_FOR_TARGET="$2"
15592 else
15593 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15594 fi
15595 else
15596 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15597 fi
15598
15599 else
15600 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15601 fi
15602
15603
15604
15605
15606 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15607 if test -n "$with_build_time_tools"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15609 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15610 if test -x $with_build_time_tools/objcopy; then
15611 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15612 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15614 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619 elif test $build != $host && test $have_gcc_for_target = yes; then
15620 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15621 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15622 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15623 fi
15624 fi
15625 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15626 # Extract the first word of "objcopy", so it can be a program name with args.
15627 set dummy objcopy; ac_word=$2
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15629 $as_echo_n "checking for $ac_word... " >&6; }
15630 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15631 $as_echo_n "(cached) " >&6
15632 else
15633 case $OBJCOPY_FOR_TARGET in
15634 [\\/]* | ?:[\\/]*)
15635 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15636 ;;
15637 *)
15638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 for as_dir in $gcc_cv_tool_dirs
15640 do
15641 IFS=$as_save_IFS
15642 test -z "$as_dir" && as_dir=.
15643 for ac_exec_ext in '' $ac_executable_extensions; do
15644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15645 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15647 break 2
15648 fi
15649 done
15650 done
15651 IFS=$as_save_IFS
15652
15653 ;;
15654 esac
15655 fi
15656 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15657 if test -n "$OBJCOPY_FOR_TARGET"; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15659 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15660 else
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15662 $as_echo "no" >&6; }
15663 fi
15664
15665
15666 fi
15667 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15668
15669
15670 if test -n "$OBJCOPY_FOR_TARGET"; then
15671 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15672 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15673 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15674 fi
15675
15676 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15677 for ncn_progname in objcopy; do
15678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15679 set dummy ${ncn_progname}; ac_word=$2
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15681 $as_echo_n "checking for $ac_word... " >&6; }
15682 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 if test -n "$OBJCOPY_FOR_TARGET"; then
15686 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15690 do
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15695 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15698 fi
15699 done
15700 done
15701 IFS=$as_save_IFS
15702
15703 fi
15704 fi
15705 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15706 if test -n "$OBJCOPY_FOR_TARGET"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15708 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15712 fi
15713
15714
15715 done
15716 fi
15717
15718 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15719 for ncn_progname in objcopy; do
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15721 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15722 if test -x $with_build_time_tools/${ncn_progname}; then
15723 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15725 $as_echo "yes" >&6; }
15726 break
15727 else
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15730 fi
15731 done
15732 fi
15733
15734 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15735 for ncn_progname in objcopy; do
15736 if test -n "$ncn_target_tool_prefix"; then
15737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15738 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15740 $as_echo_n "checking for $ac_word... " >&6; }
15741 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 if test -n "$OBJCOPY_FOR_TARGET"; then
15745 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15746 else
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15749 do
15750 IFS=$as_save_IFS
15751 test -z "$as_dir" && as_dir=.
15752 for ac_exec_ext in '' $ac_executable_extensions; do
15753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15754 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15756 break 2
15757 fi
15758 done
15759 done
15760 IFS=$as_save_IFS
15761
15762 fi
15763 fi
15764 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15765 if test -n "$OBJCOPY_FOR_TARGET"; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15767 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15768 else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15771 fi
15772
15773
15774 fi
15775 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15777 set dummy ${ncn_progname}; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15785 else
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15788 do
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15796 fi
15797 done
15798 done
15799 IFS=$as_save_IFS
15800
15801 fi
15802 fi
15803 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15804 if test -n "$OBJCOPY_FOR_TARGET"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15806 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15807 else
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15810 fi
15811
15812
15813 fi
15814 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15815 done
15816 fi
15817
15818 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15819 set dummy objcopy
15820 if test $build = $target ; then
15821 OBJCOPY_FOR_TARGET="$2"
15822 else
15823 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15824 fi
15825 else
15826 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15827 fi
15828
15829 else
15830 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15831 fi
15832
15833
15834
15835
15836 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15837 if test -n "$with_build_time_tools"; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15839 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15840 if test -x $with_build_time_tools/objdump; then
15841 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15842 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15844 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15845 else
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849 elif test $build != $host && test $have_gcc_for_target = yes; then
15850 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15851 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15852 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15853 fi
15854 fi
15855 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15856 # Extract the first word of "objdump", so it can be a program name with args.
15857 set dummy objdump; ac_word=$2
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15859 $as_echo_n "checking for $ac_word... " >&6; }
15860 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15861 $as_echo_n "(cached) " >&6
15862 else
15863 case $OBJDUMP_FOR_TARGET in
15864 [\\/]* | ?:[\\/]*)
15865 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15866 ;;
15867 *)
15868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869 for as_dir in $gcc_cv_tool_dirs
15870 do
15871 IFS=$as_save_IFS
15872 test -z "$as_dir" && as_dir=.
15873 for ac_exec_ext in '' $ac_executable_extensions; do
15874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15875 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15877 break 2
15878 fi
15879 done
15880 done
15881 IFS=$as_save_IFS
15882
15883 ;;
15884 esac
15885 fi
15886 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15887 if test -n "$OBJDUMP_FOR_TARGET"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15889 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15890 else
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892 $as_echo "no" >&6; }
15893 fi
15894
15895
15896 fi
15897 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15898
15899
15900 if test -n "$OBJDUMP_FOR_TARGET"; then
15901 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15902 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15903 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15904 fi
15905
15906 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15907 for ncn_progname in objdump; do
15908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15909 set dummy ${ncn_progname}; ac_word=$2
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911 $as_echo_n "checking for $ac_word... " >&6; }
15912 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15915 if test -n "$OBJDUMP_FOR_TARGET"; then
15916 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15917 else
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15920 do
15921 IFS=$as_save_IFS
15922 test -z "$as_dir" && as_dir=.
15923 for ac_exec_ext in '' $ac_executable_extensions; do
15924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15925 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15927 break 2
15928 fi
15929 done
15930 done
15931 IFS=$as_save_IFS
15932
15933 fi
15934 fi
15935 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15936 if test -n "$OBJDUMP_FOR_TARGET"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15938 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15939 else
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942 fi
15943
15944
15945 done
15946 fi
15947
15948 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15949 for ncn_progname in objdump; do
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15951 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15952 if test -x $with_build_time_tools/${ncn_progname}; then
15953 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15955 $as_echo "yes" >&6; }
15956 break
15957 else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959 $as_echo "no" >&6; }
15960 fi
15961 done
15962 fi
15963
15964 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15965 for ncn_progname in objdump; do
15966 if test -n "$ncn_target_tool_prefix"; then
15967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15968 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15970 $as_echo_n "checking for $ac_word... " >&6; }
15971 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 if test -n "$OBJDUMP_FOR_TARGET"; then
15975 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15976 else
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15979 do
15980 IFS=$as_save_IFS
15981 test -z "$as_dir" && as_dir=.
15982 for ac_exec_ext in '' $ac_executable_extensions; do
15983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15986 break 2
15987 fi
15988 done
15989 done
15990 IFS=$as_save_IFS
15991
15992 fi
15993 fi
15994 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15995 if test -n "$OBJDUMP_FOR_TARGET"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15997 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15998 else
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 $as_echo "no" >&6; }
16001 fi
16002
16003
16004 fi
16005 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16007 set dummy ${ncn_progname}; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009 $as_echo_n "checking for $ac_word... " >&6; }
16010 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16015 else
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16018 do
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16026 fi
16027 done
16028 done
16029 IFS=$as_save_IFS
16030
16031 fi
16032 fi
16033 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16034 if test -n "$OBJDUMP_FOR_TARGET"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16036 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16037 else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16040 fi
16041
16042
16043 fi
16044 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16045 done
16046 fi
16047
16048 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16049 set dummy objdump
16050 if test $build = $target ; then
16051 OBJDUMP_FOR_TARGET="$2"
16052 else
16053 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16054 fi
16055 else
16056 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16057 fi
16058
16059 else
16060 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16061 fi
16062
16063
16064
16065
16066 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16067 if test -n "$with_build_time_tools"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16069 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16070 if test -x $with_build_time_tools/otool; then
16071 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16072 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16074 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16075 else
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078 fi
16079 elif test $build != $host && test $have_gcc_for_target = yes; then
16080 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16081 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16082 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16083 fi
16084 fi
16085 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16086 # Extract the first word of "otool", so it can be a program name with args.
16087 set dummy otool; ac_word=$2
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089 $as_echo_n "checking for $ac_word... " >&6; }
16090 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 case $OTOOL_FOR_TARGET in
16094 [\\/]* | ?:[\\/]*)
16095 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16096 ;;
16097 *)
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $gcc_cv_tool_dirs
16100 do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109 done
16110 done
16111 IFS=$as_save_IFS
16112
16113 ;;
16114 esac
16115 fi
16116 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16117 if test -n "$OTOOL_FOR_TARGET"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16119 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16120 else
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16123 fi
16124
16125
16126 fi
16127 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16128
16129
16130 if test -n "$OTOOL_FOR_TARGET"; then
16131 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16132 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16133 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16134 fi
16135
16136 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16137 for ncn_progname in otool; do
16138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16139 set dummy ${ncn_progname}; ac_word=$2
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16141 $as_echo_n "checking for $ac_word... " >&6; }
16142 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16143 $as_echo_n "(cached) " >&6
16144 else
16145 if test -n "$OTOOL_FOR_TARGET"; then
16146 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16147 else
16148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16149 for as_dir in $PATH
16150 do
16151 IFS=$as_save_IFS
16152 test -z "$as_dir" && as_dir=.
16153 for ac_exec_ext in '' $ac_executable_extensions; do
16154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16155 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16157 break 2
16158 fi
16159 done
16160 done
16161 IFS=$as_save_IFS
16162
16163 fi
16164 fi
16165 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16166 if test -n "$OTOOL_FOR_TARGET"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16168 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16169 else
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171 $as_echo "no" >&6; }
16172 fi
16173
16174
16175 done
16176 fi
16177
16178 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16179 for ncn_progname in otool; do
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16181 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16182 if test -x $with_build_time_tools/${ncn_progname}; then
16183 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16185 $as_echo "yes" >&6; }
16186 break
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191 done
16192 fi
16193
16194 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16195 for ncn_progname in otool; do
16196 if test -n "$ncn_target_tool_prefix"; then
16197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16198 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200 $as_echo_n "checking for $ac_word... " >&6; }
16201 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16202 $as_echo_n "(cached) " >&6
16203 else
16204 if test -n "$OTOOL_FOR_TARGET"; then
16205 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16206 else
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16209 do
16210 IFS=$as_save_IFS
16211 test -z "$as_dir" && as_dir=.
16212 for ac_exec_ext in '' $ac_executable_extensions; do
16213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16214 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16216 break 2
16217 fi
16218 done
16219 done
16220 IFS=$as_save_IFS
16221
16222 fi
16223 fi
16224 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16225 if test -n "$OTOOL_FOR_TARGET"; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16227 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16228 else
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16231 fi
16232
16233
16234 fi
16235 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16237 set dummy ${ncn_progname}; ac_word=$2
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16239 $as_echo_n "checking for $ac_word... " >&6; }
16240 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16245 else
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $PATH
16248 do
16249 IFS=$as_save_IFS
16250 test -z "$as_dir" && as_dir=.
16251 for ac_exec_ext in '' $ac_executable_extensions; do
16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16253 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16255 break 2
16256 fi
16257 done
16258 done
16259 IFS=$as_save_IFS
16260
16261 fi
16262 fi
16263 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16264 if test -n "$OTOOL_FOR_TARGET"; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16266 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16267 else
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16269 $as_echo "no" >&6; }
16270 fi
16271
16272
16273 fi
16274 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16275 done
16276 fi
16277
16278 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16279 set dummy otool
16280 if test $build = $target ; then
16281 OTOOL_FOR_TARGET="$2"
16282 else
16283 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16284 fi
16285 else
16286 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16287 fi
16288
16289 else
16290 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16291 fi
16292
16293
16294
16295
16296 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16297 if test -n "$with_build_time_tools"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16299 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16300 if test -x $with_build_time_tools/ranlib; then
16301 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16302 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16304 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16308 fi
16309 elif test $build != $host && test $have_gcc_for_target = yes; then
16310 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16311 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16312 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16313 fi
16314 fi
16315 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16316 # Extract the first word of "ranlib", so it can be a program name with args.
16317 set dummy ranlib; ac_word=$2
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16319 $as_echo_n "checking for $ac_word... " >&6; }
16320 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 case $RANLIB_FOR_TARGET in
16324 [\\/]* | ?:[\\/]*)
16325 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16326 ;;
16327 *)
16328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16329 for as_dir in $gcc_cv_tool_dirs
16330 do
16331 IFS=$as_save_IFS
16332 test -z "$as_dir" && as_dir=.
16333 for ac_exec_ext in '' $ac_executable_extensions; do
16334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16335 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16337 break 2
16338 fi
16339 done
16340 done
16341 IFS=$as_save_IFS
16342
16343 ;;
16344 esac
16345 fi
16346 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16347 if test -n "$RANLIB_FOR_TARGET"; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16349 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16350 else
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16352 $as_echo "no" >&6; }
16353 fi
16354
16355
16356 fi
16357 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16358
16359
16360 if test -n "$RANLIB_FOR_TARGET"; then
16361 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16362 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16363 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16364 fi
16365
16366 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16367 for ncn_progname in ranlib; do
16368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16369 set dummy ${ncn_progname}; ac_word=$2
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16371 $as_echo_n "checking for $ac_word... " >&6; }
16372 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 if test -n "$RANLIB_FOR_TARGET"; then
16376 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16377 else
16378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16379 for as_dir in $PATH
16380 do
16381 IFS=$as_save_IFS
16382 test -z "$as_dir" && as_dir=.
16383 for ac_exec_ext in '' $ac_executable_extensions; do
16384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16385 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16387 break 2
16388 fi
16389 done
16390 done
16391 IFS=$as_save_IFS
16392
16393 fi
16394 fi
16395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16396 if test -n "$RANLIB_FOR_TARGET"; then
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16398 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16399 else
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16402 fi
16403
16404
16405 done
16406 fi
16407
16408 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16409 for ncn_progname in ranlib; do
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16411 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16412 if test -x $with_build_time_tools/${ncn_progname}; then
16413 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16415 $as_echo "yes" >&6; }
16416 break
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16420 fi
16421 done
16422 fi
16423
16424 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16425 for ncn_progname in ranlib; do
16426 if test -n "$ncn_target_tool_prefix"; then
16427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16428 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16430 $as_echo_n "checking for $ac_word... " >&6; }
16431 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16432 $as_echo_n "(cached) " >&6
16433 else
16434 if test -n "$RANLIB_FOR_TARGET"; then
16435 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16436 else
16437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438 for as_dir in $PATH
16439 do
16440 IFS=$as_save_IFS
16441 test -z "$as_dir" && as_dir=.
16442 for ac_exec_ext in '' $ac_executable_extensions; do
16443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16446 break 2
16447 fi
16448 done
16449 done
16450 IFS=$as_save_IFS
16451
16452 fi
16453 fi
16454 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16455 if test -n "$RANLIB_FOR_TARGET"; then
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16457 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16458 else
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461 fi
16462
16463
16464 fi
16465 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16467 set dummy ${ncn_progname}; ac_word=$2
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16469 $as_echo_n "checking for $ac_word... " >&6; }
16470 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16475 else
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $PATH
16478 do
16479 IFS=$as_save_IFS
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16483 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 break 2
16486 fi
16487 done
16488 done
16489 IFS=$as_save_IFS
16490
16491 fi
16492 fi
16493 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16494 if test -n "$RANLIB_FOR_TARGET"; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16496 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16497 else
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16499 $as_echo "no" >&6; }
16500 fi
16501
16502
16503 fi
16504 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16505 done
16506 fi
16507
16508 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16509 set dummy ranlib
16510 if test $build = $target ; then
16511 RANLIB_FOR_TARGET="$2"
16512 else
16513 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16514 fi
16515 else
16516 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16517 fi
16518
16519 else
16520 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16521 fi
16522
16523
16524
16525
16526 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16527 if test -n "$with_build_time_tools"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16529 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16530 if test -x $with_build_time_tools/readelf; then
16531 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16532 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16534 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16538 fi
16539 elif test $build != $host && test $have_gcc_for_target = yes; then
16540 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16541 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16542 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16543 fi
16544 fi
16545 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16546 # Extract the first word of "readelf", so it can be a program name with args.
16547 set dummy readelf; ac_word=$2
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16549 $as_echo_n "checking for $ac_word... " >&6; }
16550 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16551 $as_echo_n "(cached) " >&6
16552 else
16553 case $READELF_FOR_TARGET in
16554 [\\/]* | ?:[\\/]*)
16555 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16556 ;;
16557 *)
16558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16559 for as_dir in $gcc_cv_tool_dirs
16560 do
16561 IFS=$as_save_IFS
16562 test -z "$as_dir" && as_dir=.
16563 for ac_exec_ext in '' $ac_executable_extensions; do
16564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16565 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16567 break 2
16568 fi
16569 done
16570 done
16571 IFS=$as_save_IFS
16572
16573 ;;
16574 esac
16575 fi
16576 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16577 if test -n "$READELF_FOR_TARGET"; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16579 $as_echo "$READELF_FOR_TARGET" >&6; }
16580 else
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16582 $as_echo "no" >&6; }
16583 fi
16584
16585
16586 fi
16587 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16588
16589
16590 if test -n "$READELF_FOR_TARGET"; then
16591 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16592 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16593 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16594 fi
16595
16596 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16597 for ncn_progname in readelf; do
16598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16599 set dummy ${ncn_progname}; ac_word=$2
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16601 $as_echo_n "checking for $ac_word... " >&6; }
16602 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 if test -n "$READELF_FOR_TARGET"; then
16606 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16607 else
16608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16609 for as_dir in $PATH
16610 do
16611 IFS=$as_save_IFS
16612 test -z "$as_dir" && as_dir=.
16613 for ac_exec_ext in '' $ac_executable_extensions; do
16614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16615 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16617 break 2
16618 fi
16619 done
16620 done
16621 IFS=$as_save_IFS
16622
16623 fi
16624 fi
16625 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16626 if test -n "$READELF_FOR_TARGET"; then
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16628 $as_echo "$READELF_FOR_TARGET" >&6; }
16629 else
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631 $as_echo "no" >&6; }
16632 fi
16633
16634
16635 done
16636 fi
16637
16638 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16639 for ncn_progname in readelf; do
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16641 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16642 if test -x $with_build_time_tools/${ncn_progname}; then
16643 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16645 $as_echo "yes" >&6; }
16646 break
16647 else
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16650 fi
16651 done
16652 fi
16653
16654 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16655 for ncn_progname in readelf; do
16656 if test -n "$ncn_target_tool_prefix"; then
16657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16658 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16660 $as_echo_n "checking for $ac_word... " >&6; }
16661 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664 if test -n "$READELF_FOR_TARGET"; then
16665 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16666 else
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $PATH
16669 do
16670 IFS=$as_save_IFS
16671 test -z "$as_dir" && as_dir=.
16672 for ac_exec_ext in '' $ac_executable_extensions; do
16673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16676 break 2
16677 fi
16678 done
16679 done
16680 IFS=$as_save_IFS
16681
16682 fi
16683 fi
16684 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16685 if test -n "$READELF_FOR_TARGET"; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16687 $as_echo "$READELF_FOR_TARGET" >&6; }
16688 else
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690 $as_echo "no" >&6; }
16691 fi
16692
16693
16694 fi
16695 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16697 set dummy ${ncn_progname}; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 if test -n "$READELF_FOR_TARGET"; then
16704 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16705 else
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16708 do
16709 IFS=$as_save_IFS
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715 break 2
16716 fi
16717 done
16718 done
16719 IFS=$as_save_IFS
16720
16721 fi
16722 fi
16723 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16724 if test -n "$READELF_FOR_TARGET"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16726 $as_echo "$READELF_FOR_TARGET" >&6; }
16727 else
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16730 fi
16731
16732
16733 fi
16734 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16735 done
16736 fi
16737
16738 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16739 set dummy readelf
16740 if test $build = $target ; then
16741 READELF_FOR_TARGET="$2"
16742 else
16743 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16744 fi
16745 else
16746 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16747 fi
16748
16749 else
16750 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16751 fi
16752
16753
16754
16755
16756 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16757 if test -n "$with_build_time_tools"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16759 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16760 if test -x $with_build_time_tools/strip; then
16761 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16762 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16764 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769 elif test $build != $host && test $have_gcc_for_target = yes; then
16770 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16771 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16772 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16773 fi
16774 fi
16775 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16776 # Extract the first word of "strip", so it can be a program name with args.
16777 set dummy strip; ac_word=$2
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16779 $as_echo_n "checking for $ac_word... " >&6; }
16780 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 case $STRIP_FOR_TARGET in
16784 [\\/]* | ?:[\\/]*)
16785 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16786 ;;
16787 *)
16788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16789 for as_dir in $gcc_cv_tool_dirs
16790 do
16791 IFS=$as_save_IFS
16792 test -z "$as_dir" && as_dir=.
16793 for ac_exec_ext in '' $ac_executable_extensions; do
16794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16795 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16797 break 2
16798 fi
16799 done
16800 done
16801 IFS=$as_save_IFS
16802
16803 ;;
16804 esac
16805 fi
16806 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16807 if test -n "$STRIP_FOR_TARGET"; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16809 $as_echo "$STRIP_FOR_TARGET" >&6; }
16810 else
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16812 $as_echo "no" >&6; }
16813 fi
16814
16815
16816 fi
16817 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16818
16819
16820 if test -n "$STRIP_FOR_TARGET"; then
16821 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16822 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16823 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16824 fi
16825
16826 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16827 for ncn_progname in strip; do
16828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16829 set dummy ${ncn_progname}; ac_word=$2
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16831 $as_echo_n "checking for $ac_word... " >&6; }
16832 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16833 $as_echo_n "(cached) " >&6
16834 else
16835 if test -n "$STRIP_FOR_TARGET"; then
16836 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16837 else
16838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16839 for as_dir in $PATH
16840 do
16841 IFS=$as_save_IFS
16842 test -z "$as_dir" && as_dir=.
16843 for ac_exec_ext in '' $ac_executable_extensions; do
16844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16845 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16847 break 2
16848 fi
16849 done
16850 done
16851 IFS=$as_save_IFS
16852
16853 fi
16854 fi
16855 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16856 if test -n "$STRIP_FOR_TARGET"; then
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16858 $as_echo "$STRIP_FOR_TARGET" >&6; }
16859 else
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861 $as_echo "no" >&6; }
16862 fi
16863
16864
16865 done
16866 fi
16867
16868 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16869 for ncn_progname in strip; do
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16871 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16872 if test -x $with_build_time_tools/${ncn_progname}; then
16873 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876 break
16877 else
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16880 fi
16881 done
16882 fi
16883
16884 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16885 for ncn_progname in strip; do
16886 if test -n "$ncn_target_tool_prefix"; then
16887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16888 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16890 $as_echo_n "checking for $ac_word... " >&6; }
16891 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16892 $as_echo_n "(cached) " >&6
16893 else
16894 if test -n "$STRIP_FOR_TARGET"; then
16895 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16896 else
16897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16899 do
16900 IFS=$as_save_IFS
16901 test -z "$as_dir" && as_dir=.
16902 for ac_exec_ext in '' $ac_executable_extensions; do
16903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16904 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16906 break 2
16907 fi
16908 done
16909 done
16910 IFS=$as_save_IFS
16911
16912 fi
16913 fi
16914 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16915 if test -n "$STRIP_FOR_TARGET"; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16917 $as_echo "$STRIP_FOR_TARGET" >&6; }
16918 else
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16920 $as_echo "no" >&6; }
16921 fi
16922
16923
16924 fi
16925 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16927 set dummy ${ncn_progname}; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16935 else
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16938 do
16939 IFS=$as_save_IFS
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945 break 2
16946 fi
16947 done
16948 done
16949 IFS=$as_save_IFS
16950
16951 fi
16952 fi
16953 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16954 if test -n "$STRIP_FOR_TARGET"; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16956 $as_echo "$STRIP_FOR_TARGET" >&6; }
16957 else
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16960 fi
16961
16962
16963 fi
16964 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16965 done
16966 fi
16967
16968 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16969 set dummy strip
16970 if test $build = $target ; then
16971 STRIP_FOR_TARGET="$2"
16972 else
16973 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16974 fi
16975 else
16976 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16977 fi
16978
16979 else
16980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16981 fi
16982
16983
16984
16985
16986 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16987 if test -n "$with_build_time_tools"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16989 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16990 if test -x $with_build_time_tools/windres; then
16991 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16992 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16994 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16995 else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
16998 fi
16999 elif test $build != $host && test $have_gcc_for_target = yes; then
17000 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17001 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17002 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17003 fi
17004 fi
17005 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17006 # Extract the first word of "windres", so it can be a program name with args.
17007 set dummy windres; ac_word=$2
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17009 $as_echo_n "checking for $ac_word... " >&6; }
17010 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 case $WINDRES_FOR_TARGET in
17014 [\\/]* | ?:[\\/]*)
17015 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17016 ;;
17017 *)
17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019 for as_dir in $gcc_cv_tool_dirs
17020 do
17021 IFS=$as_save_IFS
17022 test -z "$as_dir" && as_dir=.
17023 for ac_exec_ext in '' $ac_executable_extensions; do
17024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17025 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17027 break 2
17028 fi
17029 done
17030 done
17031 IFS=$as_save_IFS
17032
17033 ;;
17034 esac
17035 fi
17036 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17037 if test -n "$WINDRES_FOR_TARGET"; then
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17039 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17040 else
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17042 $as_echo "no" >&6; }
17043 fi
17044
17045
17046 fi
17047 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17048
17049
17050 if test -n "$WINDRES_FOR_TARGET"; then
17051 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17052 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17053 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17054 fi
17055
17056 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17057 for ncn_progname in windres; do
17058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17059 set dummy ${ncn_progname}; ac_word=$2
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17061 $as_echo_n "checking for $ac_word... " >&6; }
17062 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17063 $as_echo_n "(cached) " >&6
17064 else
17065 if test -n "$WINDRES_FOR_TARGET"; then
17066 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17067 else
17068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17069 for as_dir in $PATH
17070 do
17071 IFS=$as_save_IFS
17072 test -z "$as_dir" && as_dir=.
17073 for ac_exec_ext in '' $ac_executable_extensions; do
17074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17075 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17077 break 2
17078 fi
17079 done
17080 done
17081 IFS=$as_save_IFS
17082
17083 fi
17084 fi
17085 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17086 if test -n "$WINDRES_FOR_TARGET"; then
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17088 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17089 else
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17091 $as_echo "no" >&6; }
17092 fi
17093
17094
17095 done
17096 fi
17097
17098 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17099 for ncn_progname in windres; do
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17101 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17102 if test -x $with_build_time_tools/${ncn_progname}; then
17103 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105 $as_echo "yes" >&6; }
17106 break
17107 else
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109 $as_echo "no" >&6; }
17110 fi
17111 done
17112 fi
17113
17114 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17115 for ncn_progname in windres; do
17116 if test -n "$ncn_target_tool_prefix"; then
17117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17118 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17120 $as_echo_n "checking for $ac_word... " >&6; }
17121 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17122 $as_echo_n "(cached) " >&6
17123 else
17124 if test -n "$WINDRES_FOR_TARGET"; then
17125 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17126 else
17127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in $PATH
17129 do
17130 IFS=$as_save_IFS
17131 test -z "$as_dir" && as_dir=.
17132 for ac_exec_ext in '' $ac_executable_extensions; do
17133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17134 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17136 break 2
17137 fi
17138 done
17139 done
17140 IFS=$as_save_IFS
17141
17142 fi
17143 fi
17144 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17145 if test -n "$WINDRES_FOR_TARGET"; then
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17147 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17148 else
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150 $as_echo "no" >&6; }
17151 fi
17152
17153
17154 fi
17155 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17157 set dummy ${ncn_progname}; ac_word=$2
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17159 $as_echo_n "checking for $ac_word... " >&6; }
17160 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17165 else
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17168 do
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17175 break 2
17176 fi
17177 done
17178 done
17179 IFS=$as_save_IFS
17180
17181 fi
17182 fi
17183 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17184 if test -n "$WINDRES_FOR_TARGET"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17186 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190 fi
17191
17192
17193 fi
17194 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17195 done
17196 fi
17197
17198 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17199 set dummy windres
17200 if test $build = $target ; then
17201 WINDRES_FOR_TARGET="$2"
17202 else
17203 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17204 fi
17205 else
17206 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17207 fi
17208
17209 else
17210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17211 fi
17212
17213
17214
17215
17216 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17217 if test -n "$with_build_time_tools"; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17219 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17220 if test -x $with_build_time_tools/windmc; then
17221 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17222 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17224 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17225 else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228 fi
17229 elif test $build != $host && test $have_gcc_for_target = yes; then
17230 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17231 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17232 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17233 fi
17234 fi
17235 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17236 # Extract the first word of "windmc", so it can be a program name with args.
17237 set dummy windmc; ac_word=$2
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17239 $as_echo_n "checking for $ac_word... " >&6; }
17240 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 case $WINDMC_FOR_TARGET in
17244 [\\/]* | ?:[\\/]*)
17245 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17246 ;;
17247 *)
17248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17249 for as_dir in $gcc_cv_tool_dirs
17250 do
17251 IFS=$as_save_IFS
17252 test -z "$as_dir" && as_dir=.
17253 for ac_exec_ext in '' $ac_executable_extensions; do
17254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17255 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17257 break 2
17258 fi
17259 done
17260 done
17261 IFS=$as_save_IFS
17262
17263 ;;
17264 esac
17265 fi
17266 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17267 if test -n "$WINDMC_FOR_TARGET"; then
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17269 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17270 else
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17273 fi
17274
17275
17276 fi
17277 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17278
17279
17280 if test -n "$WINDMC_FOR_TARGET"; then
17281 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17282 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17283 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17284 fi
17285
17286 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17287 for ncn_progname in windmc; do
17288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17289 set dummy ${ncn_progname}; ac_word=$2
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17291 $as_echo_n "checking for $ac_word... " >&6; }
17292 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17293 $as_echo_n "(cached) " >&6
17294 else
17295 if test -n "$WINDMC_FOR_TARGET"; then
17296 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17297 else
17298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in $PATH
17300 do
17301 IFS=$as_save_IFS
17302 test -z "$as_dir" && as_dir=.
17303 for ac_exec_ext in '' $ac_executable_extensions; do
17304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17305 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17307 break 2
17308 fi
17309 done
17310 done
17311 IFS=$as_save_IFS
17312
17313 fi
17314 fi
17315 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17316 if test -n "$WINDMC_FOR_TARGET"; then
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17318 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17319 else
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17322 fi
17323
17324
17325 done
17326 fi
17327
17328 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17329 for ncn_progname in windmc; do
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17331 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17332 if test -x $with_build_time_tools/${ncn_progname}; then
17333 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17335 $as_echo "yes" >&6; }
17336 break
17337 else
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 done
17342 fi
17343
17344 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17345 for ncn_progname in windmc; do
17346 if test -n "$ncn_target_tool_prefix"; then
17347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17350 $as_echo_n "checking for $ac_word... " >&6; }
17351 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17352 $as_echo_n "(cached) " >&6
17353 else
17354 if test -n "$WINDMC_FOR_TARGET"; then
17355 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17356 else
17357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17358 for as_dir in $PATH
17359 do
17360 IFS=$as_save_IFS
17361 test -z "$as_dir" && as_dir=.
17362 for ac_exec_ext in '' $ac_executable_extensions; do
17363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17364 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17366 break 2
17367 fi
17368 done
17369 done
17370 IFS=$as_save_IFS
17371
17372 fi
17373 fi
17374 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17375 if test -n "$WINDMC_FOR_TARGET"; then
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17377 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17378 else
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17380 $as_echo "no" >&6; }
17381 fi
17382
17383
17384 fi
17385 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17387 set dummy ${ncn_progname}; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17395 else
17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17398 do
17399 IFS=$as_save_IFS
17400 test -z "$as_dir" && as_dir=.
17401 for ac_exec_ext in '' $ac_executable_extensions; do
17402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17405 break 2
17406 fi
17407 done
17408 done
17409 IFS=$as_save_IFS
17410
17411 fi
17412 fi
17413 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17414 if test -n "$WINDMC_FOR_TARGET"; then
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17416 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17417 else
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17420 fi
17421
17422
17423 fi
17424 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17425 done
17426 fi
17427
17428 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17429 set dummy windmc
17430 if test $build = $target ; then
17431 WINDMC_FOR_TARGET="$2"
17432 else
17433 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17434 fi
17435 else
17436 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17437 fi
17438
17439 else
17440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17441 fi
17442
17443
17444 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17445
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17447 $as_echo_n "checking where to find the target ar... " >&6; }
17448 if test "x${build}" != "x${host}" ; then
17449 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17450 # We already found the complete path
17451 ac_dir=`dirname $AR_FOR_TARGET`
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17453 $as_echo "pre-installed in $ac_dir" >&6; }
17454 else
17455 # Canadian cross, just use what we found
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17457 $as_echo "pre-installed" >&6; }
17458 fi
17459 else
17460 ok=yes
17461 case " ${configdirs} " in
17462 *" binutils "*) ;;
17463 *) ok=no ;;
17464 esac
17465
17466 if test $ok = yes; then
17467 # An in-tree tool is available and we can use it
17468 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17470 $as_echo "just compiled" >&6; }
17471 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17472 # We already found the complete path
17473 ac_dir=`dirname $AR_FOR_TARGET`
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17475 $as_echo "pre-installed in $ac_dir" >&6; }
17476 elif test "x$target" = "x$host"; then
17477 # We can use an host tool
17478 AR_FOR_TARGET='$(AR)'
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17480 $as_echo "host tool" >&6; }
17481 else
17482 # We need a cross tool
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17484 $as_echo "pre-installed" >&6; }
17485 fi
17486 fi
17487
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17489 $as_echo_n "checking where to find the target as... " >&6; }
17490 if test "x${build}" != "x${host}" ; then
17491 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17492 # We already found the complete path
17493 ac_dir=`dirname $AS_FOR_TARGET`
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17495 $as_echo "pre-installed in $ac_dir" >&6; }
17496 else
17497 # Canadian cross, just use what we found
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17499 $as_echo "pre-installed" >&6; }
17500 fi
17501 else
17502 ok=yes
17503 case " ${configdirs} " in
17504 *" gas "*) ;;
17505 *) ok=no ;;
17506 esac
17507
17508 if test $ok = yes; then
17509 # An in-tree tool is available and we can use it
17510 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17512 $as_echo "just compiled" >&6; }
17513 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17514 # We already found the complete path
17515 ac_dir=`dirname $AS_FOR_TARGET`
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17517 $as_echo "pre-installed in $ac_dir" >&6; }
17518 elif test "x$target" = "x$host"; then
17519 # We can use an host tool
17520 AS_FOR_TARGET='$(AS)'
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17522 $as_echo "host tool" >&6; }
17523 else
17524 # We need a cross tool
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17526 $as_echo "pre-installed" >&6; }
17527 fi
17528 fi
17529
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17531 $as_echo_n "checking where to find the target cc... " >&6; }
17532 if test "x${build}" != "x${host}" ; then
17533 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17534 # We already found the complete path
17535 ac_dir=`dirname $CC_FOR_TARGET`
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17537 $as_echo "pre-installed in $ac_dir" >&6; }
17538 else
17539 # Canadian cross, just use what we found
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17541 $as_echo "pre-installed" >&6; }
17542 fi
17543 else
17544 ok=yes
17545 case " ${configdirs} " in
17546 *" gcc "*) ;;
17547 *) ok=no ;;
17548 esac
17549
17550 if test $ok = yes; then
17551 # An in-tree tool is available and we can use it
17552 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17554 $as_echo "just compiled" >&6; }
17555 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17556 # We already found the complete path
17557 ac_dir=`dirname $CC_FOR_TARGET`
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17559 $as_echo "pre-installed in $ac_dir" >&6; }
17560 elif test "x$target" = "x$host"; then
17561 # We can use an host tool
17562 CC_FOR_TARGET='$(CC)'
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17564 $as_echo "host tool" >&6; }
17565 else
17566 # We need a cross tool
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17568 $as_echo "pre-installed" >&6; }
17569 fi
17570 fi
17571
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17573 $as_echo_n "checking where to find the target c++... " >&6; }
17574 if test "x${build}" != "x${host}" ; then
17575 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17576 # We already found the complete path
17577 ac_dir=`dirname $CXX_FOR_TARGET`
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17579 $as_echo "pre-installed in $ac_dir" >&6; }
17580 else
17581 # Canadian cross, just use what we found
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17583 $as_echo "pre-installed" >&6; }
17584 fi
17585 else
17586 ok=yes
17587 case " ${configdirs} " in
17588 *" gcc "*) ;;
17589 *) ok=no ;;
17590 esac
17591 case ,${enable_languages}, in
17592 *,c++,*) ;;
17593 *) ok=no ;;
17594 esac
17595 if test $ok = yes; then
17596 # An in-tree tool is available and we can use it
17597 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'
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17599 $as_echo "just compiled" >&6; }
17600 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17601 # We already found the complete path
17602 ac_dir=`dirname $CXX_FOR_TARGET`
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17604 $as_echo "pre-installed in $ac_dir" >&6; }
17605 elif test "x$target" = "x$host"; then
17606 # We can use an host tool
17607 CXX_FOR_TARGET='$(CXX)'
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17609 $as_echo "host tool" >&6; }
17610 else
17611 # We need a cross tool
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17613 $as_echo "pre-installed" >&6; }
17614 fi
17615 fi
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17618 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17619 if test "x${build}" != "x${host}" ; then
17620 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17621 # We already found the complete path
17622 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17624 $as_echo "pre-installed in $ac_dir" >&6; }
17625 else
17626 # Canadian cross, just use what we found
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17628 $as_echo "pre-installed" >&6; }
17629 fi
17630 else
17631 ok=yes
17632 case " ${configdirs} " in
17633 *" gcc "*) ;;
17634 *) ok=no ;;
17635 esac
17636 case ,${enable_languages}, in
17637 *,c++,*) ;;
17638 *) ok=no ;;
17639 esac
17640 if test $ok = yes; then
17641 # An in-tree tool is available and we can use it
17642 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'
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17644 $as_echo "just compiled" >&6; }
17645 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17646 # We already found the complete path
17647 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17649 $as_echo "pre-installed in $ac_dir" >&6; }
17650 elif test "x$target" = "x$host"; then
17651 # We can use an host tool
17652 RAW_CXX_FOR_TARGET='$(CXX)'
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17654 $as_echo "host tool" >&6; }
17655 else
17656 # We need a cross tool
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17658 $as_echo "pre-installed" >&6; }
17659 fi
17660 fi
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17663 $as_echo_n "checking where to find the target dlltool... " >&6; }
17664 if test "x${build}" != "x${host}" ; then
17665 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17666 # We already found the complete path
17667 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17669 $as_echo "pre-installed in $ac_dir" >&6; }
17670 else
17671 # Canadian cross, just use what we found
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17673 $as_echo "pre-installed" >&6; }
17674 fi
17675 else
17676 ok=yes
17677 case " ${configdirs} " in
17678 *" binutils "*) ;;
17679 *) ok=no ;;
17680 esac
17681
17682 if test $ok = yes; then
17683 # An in-tree tool is available and we can use it
17684 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17686 $as_echo "just compiled" >&6; }
17687 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17688 # We already found the complete path
17689 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17691 $as_echo "pre-installed in $ac_dir" >&6; }
17692 elif test "x$target" = "x$host"; then
17693 # We can use an host tool
17694 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17696 $as_echo "host tool" >&6; }
17697 else
17698 # We need a cross tool
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17700 $as_echo "pre-installed" >&6; }
17701 fi
17702 fi
17703
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17705 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17706 if test "x${build}" != "x${host}" ; then
17707 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17708 # We already found the complete path
17709 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17711 $as_echo "pre-installed in $ac_dir" >&6; }
17712 else
17713 # Canadian cross, just use what we found
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17715 $as_echo "pre-installed" >&6; }
17716 fi
17717 else
17718 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17719 # We already found the complete path
17720 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17722 $as_echo "pre-installed in $ac_dir" >&6; }
17723 elif test "x$target" = "x$host"; then
17724 # We can use an host tool
17725 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17727 $as_echo "host tool" >&6; }
17728 else
17729 # We need a cross tool
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17731 $as_echo "pre-installed" >&6; }
17732 fi
17733 fi
17734
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17736 $as_echo_n "checking where to find the target gcc... " >&6; }
17737 if test "x${build}" != "x${host}" ; then
17738 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17739 # We already found the complete path
17740 ac_dir=`dirname $GCC_FOR_TARGET`
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17742 $as_echo "pre-installed in $ac_dir" >&6; }
17743 else
17744 # Canadian cross, just use what we found
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17746 $as_echo "pre-installed" >&6; }
17747 fi
17748 else
17749 ok=yes
17750 case " ${configdirs} " in
17751 *" gcc "*) ;;
17752 *) ok=no ;;
17753 esac
17754
17755 if test $ok = yes; then
17756 # An in-tree tool is available and we can use it
17757 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17759 $as_echo "just compiled" >&6; }
17760 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17761 # We already found the complete path
17762 ac_dir=`dirname $GCC_FOR_TARGET`
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17764 $as_echo "pre-installed in $ac_dir" >&6; }
17765 elif test "x$target" = "x$host"; then
17766 # We can use an host tool
17767 GCC_FOR_TARGET='$()'
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17769 $as_echo "host tool" >&6; }
17770 else
17771 # We need a cross tool
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17773 $as_echo "pre-installed" >&6; }
17774 fi
17775 fi
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17778 $as_echo_n "checking where to find the target gfortran... " >&6; }
17779 if test "x${build}" != "x${host}" ; then
17780 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17781 # We already found the complete path
17782 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17784 $as_echo "pre-installed in $ac_dir" >&6; }
17785 else
17786 # Canadian cross, just use what we found
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17788 $as_echo "pre-installed" >&6; }
17789 fi
17790 else
17791 ok=yes
17792 case " ${configdirs} " in
17793 *" gcc "*) ;;
17794 *) ok=no ;;
17795 esac
17796 case ,${enable_languages}, in
17797 *,fortran,*) ;;
17798 *) ok=no ;;
17799 esac
17800 if test $ok = yes; then
17801 # An in-tree tool is available and we can use it
17802 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17804 $as_echo "just compiled" >&6; }
17805 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17806 # We already found the complete path
17807 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17809 $as_echo "pre-installed in $ac_dir" >&6; }
17810 elif test "x$target" = "x$host"; then
17811 # We can use an host tool
17812 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17814 $as_echo "host tool" >&6; }
17815 else
17816 # We need a cross tool
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17818 $as_echo "pre-installed" >&6; }
17819 fi
17820 fi
17821
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17823 $as_echo_n "checking where to find the target gccgo... " >&6; }
17824 if test "x${build}" != "x${host}" ; then
17825 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17826 # We already found the complete path
17827 ac_dir=`dirname $GOC_FOR_TARGET`
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17829 $as_echo "pre-installed in $ac_dir" >&6; }
17830 else
17831 # Canadian cross, just use what we found
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17833 $as_echo "pre-installed" >&6; }
17834 fi
17835 else
17836 ok=yes
17837 case " ${configdirs} " in
17838 *" gcc "*) ;;
17839 *) ok=no ;;
17840 esac
17841 case ,${enable_languages}, in
17842 *,go,*) ;;
17843 *) ok=no ;;
17844 esac
17845 if test $ok = yes; then
17846 # An in-tree tool is available and we can use it
17847 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17849 $as_echo "just compiled" >&6; }
17850 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17851 # We already found the complete path
17852 ac_dir=`dirname $GOC_FOR_TARGET`
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17854 $as_echo "pre-installed in $ac_dir" >&6; }
17855 elif test "x$target" = "x$host"; then
17856 # We can use an host tool
17857 GOC_FOR_TARGET='$(GOC)'
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17859 $as_echo "host tool" >&6; }
17860 else
17861 # We need a cross tool
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17863 $as_echo "pre-installed" >&6; }
17864 fi
17865 fi
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17868 $as_echo_n "checking where to find the target gdc... " >&6; }
17869 if test "x${build}" != "x${host}" ; then
17870 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17871 # We already found the complete path
17872 ac_dir=`dirname $GDC_FOR_TARGET`
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17874 $as_echo "pre-installed in $ac_dir" >&6; }
17875 else
17876 # Canadian cross, just use what we found
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17878 $as_echo "pre-installed" >&6; }
17879 fi
17880 else
17881 ok=yes
17882 case " ${configdirs} " in
17883 *" gcc "*) ;;
17884 *) ok=no ;;
17885 esac
17886 case ,${enable_languages}, in
17887 *,d,*) ;;
17888 *) ok=no ;;
17889 esac
17890 if test $ok = yes; then
17891 # An in-tree tool is available and we can use it
17892 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17894 $as_echo "just compiled" >&6; }
17895 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17896 # We already found the complete path
17897 ac_dir=`dirname $GDC_FOR_TARGET`
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17899 $as_echo "pre-installed in $ac_dir" >&6; }
17900 elif test "x$target" = "x$host"; then
17901 # We can use an host tool
17902 GDC_FOR_TARGET='$(GDC)'
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17904 $as_echo "host tool" >&6; }
17905 else
17906 # We need a cross tool
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17908 $as_echo "pre-installed" >&6; }
17909 fi
17910 fi
17911
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17913 $as_echo_n "checking where to find the target gm2... " >&6; }
17914 if test "x${build}" != "x${host}" ; then
17915 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $GM2_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919 $as_echo "pre-installed in $ac_dir" >&6; }
17920 else
17921 # Canadian cross, just use what we found
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17923 $as_echo "pre-installed" >&6; }
17924 fi
17925 else
17926 ok=yes
17927 case " ${configdirs} " in
17928 *" gcc "*) ;;
17929 *) ok=no ;;
17930 esac
17931 case ,${enable_languages}, in
17932 *,m2,*) ;;
17933 *) ok=no ;;
17934 esac
17935 if test $ok = yes; then
17936 # An in-tree tool is available and we can use it
17937 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17939 $as_echo "just compiled" >&6; }
17940 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17941 # We already found the complete path
17942 ac_dir=`dirname $GM2_FOR_TARGET`
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17944 $as_echo "pre-installed in $ac_dir" >&6; }
17945 elif test "x$target" = "x$host"; then
17946 # We can use an host tool
17947 GM2_FOR_TARGET='$(GM2)'
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17949 $as_echo "host tool" >&6; }
17950 else
17951 # We need a cross tool
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17953 $as_echo "pre-installed" >&6; }
17954 fi
17955 fi
17956
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17958 $as_echo_n "checking where to find the target ld... " >&6; }
17959 if test "x${build}" != "x${host}" ; then
17960 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17961 # We already found the complete path
17962 ac_dir=`dirname $LD_FOR_TARGET`
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17964 $as_echo "pre-installed in $ac_dir" >&6; }
17965 else
17966 # Canadian cross, just use what we found
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17968 $as_echo "pre-installed" >&6; }
17969 fi
17970 else
17971 ok=yes
17972 case " ${configdirs} " in
17973 *" ld "*) ;;
17974 *) ok=no ;;
17975 esac
17976
17977 if test $ok = yes; then
17978 # An in-tree tool is available and we can use it
17979 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17981 $as_echo "just compiled" >&6; }
17982 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17983 # We already found the complete path
17984 ac_dir=`dirname $LD_FOR_TARGET`
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17986 $as_echo "pre-installed in $ac_dir" >&6; }
17987 elif test "x$target" = "x$host"; then
17988 # We can use an host tool
17989 LD_FOR_TARGET='$(LD)'
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17991 $as_echo "host tool" >&6; }
17992 else
17993 # We need a cross tool
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17995 $as_echo "pre-installed" >&6; }
17996 fi
17997 fi
17998
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18000 $as_echo_n "checking where to find the target lipo... " >&6; }
18001 if test "x${build}" != "x${host}" ; then
18002 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18003 # We already found the complete path
18004 ac_dir=`dirname $LIPO_FOR_TARGET`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18006 $as_echo "pre-installed in $ac_dir" >&6; }
18007 else
18008 # Canadian cross, just use what we found
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18010 $as_echo "pre-installed" >&6; }
18011 fi
18012 else
18013 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18014 # We already found the complete path
18015 ac_dir=`dirname $LIPO_FOR_TARGET`
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18017 $as_echo "pre-installed in $ac_dir" >&6; }
18018 elif test "x$target" = "x$host"; then
18019 # We can use an host tool
18020 LIPO_FOR_TARGET='$(LIPO)'
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18022 $as_echo "host tool" >&6; }
18023 else
18024 # We need a cross tool
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18026 $as_echo "pre-installed" >&6; }
18027 fi
18028 fi
18029
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18031 $as_echo_n "checking where to find the target nm... " >&6; }
18032 if test "x${build}" != "x${host}" ; then
18033 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18034 # We already found the complete path
18035 ac_dir=`dirname $NM_FOR_TARGET`
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18037 $as_echo "pre-installed in $ac_dir" >&6; }
18038 else
18039 # Canadian cross, just use what we found
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18041 $as_echo "pre-installed" >&6; }
18042 fi
18043 else
18044 ok=yes
18045 case " ${configdirs} " in
18046 *" binutils "*) ;;
18047 *) ok=no ;;
18048 esac
18049
18050 if test $ok = yes; then
18051 # An in-tree tool is available and we can use it
18052 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18054 $as_echo "just compiled" >&6; }
18055 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18056 # We already found the complete path
18057 ac_dir=`dirname $NM_FOR_TARGET`
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18059 $as_echo "pre-installed in $ac_dir" >&6; }
18060 elif test "x$target" = "x$host"; then
18061 # We can use an host tool
18062 NM_FOR_TARGET='$(NM)'
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18064 $as_echo "host tool" >&6; }
18065 else
18066 # We need a cross tool
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18068 $as_echo "pre-installed" >&6; }
18069 fi
18070 fi
18071
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18073 $as_echo_n "checking where to find the target objcopy... " >&6; }
18074 if test "x${build}" != "x${host}" ; then
18075 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18076 # We already found the complete path
18077 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18079 $as_echo "pre-installed in $ac_dir" >&6; }
18080 else
18081 # Canadian cross, just use what we found
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18083 $as_echo "pre-installed" >&6; }
18084 fi
18085 else
18086 ok=yes
18087 case " ${configdirs} " in
18088 *" binutils "*) ;;
18089 *) ok=no ;;
18090 esac
18091
18092 if test $ok = yes; then
18093 # An in-tree tool is available and we can use it
18094 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18096 $as_echo "just compiled" >&6; }
18097 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18098 # We already found the complete path
18099 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18101 $as_echo "pre-installed in $ac_dir" >&6; }
18102 elif test "x$target" = "x$host"; then
18103 # We can use an host tool
18104 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18106 $as_echo "host tool" >&6; }
18107 else
18108 # We need a cross tool
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18110 $as_echo "pre-installed" >&6; }
18111 fi
18112 fi
18113
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18115 $as_echo_n "checking where to find the target objdump... " >&6; }
18116 if test "x${build}" != "x${host}" ; then
18117 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18118 # We already found the complete path
18119 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18121 $as_echo "pre-installed in $ac_dir" >&6; }
18122 else
18123 # Canadian cross, just use what we found
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18125 $as_echo "pre-installed" >&6; }
18126 fi
18127 else
18128 ok=yes
18129 case " ${configdirs} " in
18130 *" binutils "*) ;;
18131 *) ok=no ;;
18132 esac
18133
18134 if test $ok = yes; then
18135 # An in-tree tool is available and we can use it
18136 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18138 $as_echo "just compiled" >&6; }
18139 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18140 # We already found the complete path
18141 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18143 $as_echo "pre-installed in $ac_dir" >&6; }
18144 elif test "x$target" = "x$host"; then
18145 # We can use an host tool
18146 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18148 $as_echo "host tool" >&6; }
18149 else
18150 # We need a cross tool
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18152 $as_echo "pre-installed" >&6; }
18153 fi
18154 fi
18155
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18157 $as_echo_n "checking where to find the target otool... " >&6; }
18158 if test "x${build}" != "x${host}" ; then
18159 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18160 # We already found the complete path
18161 ac_dir=`dirname $OTOOL_FOR_TARGET`
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18163 $as_echo "pre-installed in $ac_dir" >&6; }
18164 else
18165 # Canadian cross, just use what we found
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18167 $as_echo "pre-installed" >&6; }
18168 fi
18169 else
18170 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18171 # We already found the complete path
18172 ac_dir=`dirname $OTOOL_FOR_TARGET`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18174 $as_echo "pre-installed in $ac_dir" >&6; }
18175 elif test "x$target" = "x$host"; then
18176 # We can use an host tool
18177 OTOOL_FOR_TARGET='$(OTOOL)'
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18179 $as_echo "host tool" >&6; }
18180 else
18181 # We need a cross tool
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18183 $as_echo "pre-installed" >&6; }
18184 fi
18185 fi
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18188 $as_echo_n "checking where to find the target ranlib... " >&6; }
18189 if test "x${build}" != "x${host}" ; then
18190 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18191 # We already found the complete path
18192 ac_dir=`dirname $RANLIB_FOR_TARGET`
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18194 $as_echo "pre-installed in $ac_dir" >&6; }
18195 else
18196 # Canadian cross, just use what we found
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18198 $as_echo "pre-installed" >&6; }
18199 fi
18200 else
18201 ok=yes
18202 case " ${configdirs} " in
18203 *" binutils "*) ;;
18204 *) ok=no ;;
18205 esac
18206
18207 if test $ok = yes; then
18208 # An in-tree tool is available and we can use it
18209 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18211 $as_echo "just compiled" >&6; }
18212 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18213 # We already found the complete path
18214 ac_dir=`dirname $RANLIB_FOR_TARGET`
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18216 $as_echo "pre-installed in $ac_dir" >&6; }
18217 elif test "x$target" = "x$host"; then
18218 # We can use an host tool
18219 RANLIB_FOR_TARGET='$(RANLIB)'
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18221 $as_echo "host tool" >&6; }
18222 else
18223 # We need a cross tool
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18225 $as_echo "pre-installed" >&6; }
18226 fi
18227 fi
18228
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18230 $as_echo_n "checking where to find the target readelf... " >&6; }
18231 if test "x${build}" != "x${host}" ; then
18232 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18233 # We already found the complete path
18234 ac_dir=`dirname $READELF_FOR_TARGET`
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18236 $as_echo "pre-installed in $ac_dir" >&6; }
18237 else
18238 # Canadian cross, just use what we found
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18240 $as_echo "pre-installed" >&6; }
18241 fi
18242 else
18243 ok=yes
18244 case " ${configdirs} " in
18245 *" binutils "*) ;;
18246 *) ok=no ;;
18247 esac
18248
18249 if test $ok = yes; then
18250 # An in-tree tool is available and we can use it
18251 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18253 $as_echo "just compiled" >&6; }
18254 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18255 # We already found the complete path
18256 ac_dir=`dirname $READELF_FOR_TARGET`
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18258 $as_echo "pre-installed in $ac_dir" >&6; }
18259 elif test "x$target" = "x$host"; then
18260 # We can use an host tool
18261 READELF_FOR_TARGET='$(READELF)'
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18263 $as_echo "host tool" >&6; }
18264 else
18265 # We need a cross tool
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18267 $as_echo "pre-installed" >&6; }
18268 fi
18269 fi
18270
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18272 $as_echo_n "checking where to find the target strip... " >&6; }
18273 if test "x${build}" != "x${host}" ; then
18274 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18275 # We already found the complete path
18276 ac_dir=`dirname $STRIP_FOR_TARGET`
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18278 $as_echo "pre-installed in $ac_dir" >&6; }
18279 else
18280 # Canadian cross, just use what we found
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18282 $as_echo "pre-installed" >&6; }
18283 fi
18284 else
18285 ok=yes
18286 case " ${configdirs} " in
18287 *" binutils "*) ;;
18288 *) ok=no ;;
18289 esac
18290
18291 if test $ok = yes; then
18292 # An in-tree tool is available and we can use it
18293 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18295 $as_echo "just compiled" >&6; }
18296 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18297 # We already found the complete path
18298 ac_dir=`dirname $STRIP_FOR_TARGET`
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18300 $as_echo "pre-installed in $ac_dir" >&6; }
18301 elif test "x$target" = "x$host"; then
18302 # We can use an host tool
18303 STRIP_FOR_TARGET='$(STRIP)'
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18305 $as_echo "host tool" >&6; }
18306 else
18307 # We need a cross tool
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18309 $as_echo "pre-installed" >&6; }
18310 fi
18311 fi
18312
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18314 $as_echo_n "checking where to find the target windres... " >&6; }
18315 if test "x${build}" != "x${host}" ; then
18316 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18317 # We already found the complete path
18318 ac_dir=`dirname $WINDRES_FOR_TARGET`
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18320 $as_echo "pre-installed in $ac_dir" >&6; }
18321 else
18322 # Canadian cross, just use what we found
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18324 $as_echo "pre-installed" >&6; }
18325 fi
18326 else
18327 ok=yes
18328 case " ${configdirs} " in
18329 *" binutils "*) ;;
18330 *) ok=no ;;
18331 esac
18332
18333 if test $ok = yes; then
18334 # An in-tree tool is available and we can use it
18335 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18337 $as_echo "just compiled" >&6; }
18338 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18339 # We already found the complete path
18340 ac_dir=`dirname $WINDRES_FOR_TARGET`
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18342 $as_echo "pre-installed in $ac_dir" >&6; }
18343 elif test "x$target" = "x$host"; then
18344 # We can use an host tool
18345 WINDRES_FOR_TARGET='$(WINDRES)'
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18347 $as_echo "host tool" >&6; }
18348 else
18349 # We need a cross tool
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18351 $as_echo "pre-installed" >&6; }
18352 fi
18353 fi
18354
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18356 $as_echo_n "checking where to find the target windmc... " >&6; }
18357 if test "x${build}" != "x${host}" ; then
18358 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18359 # We already found the complete path
18360 ac_dir=`dirname $WINDMC_FOR_TARGET`
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18362 $as_echo "pre-installed in $ac_dir" >&6; }
18363 else
18364 # Canadian cross, just use what we found
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18366 $as_echo "pre-installed" >&6; }
18367 fi
18368 else
18369 ok=yes
18370 case " ${configdirs} " in
18371 *" binutils "*) ;;
18372 *) ok=no ;;
18373 esac
18374
18375 if test $ok = yes; then
18376 # An in-tree tool is available and we can use it
18377 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18379 $as_echo "just compiled" >&6; }
18380 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18381 # We already found the complete path
18382 ac_dir=`dirname $WINDMC_FOR_TARGET`
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18384 $as_echo "pre-installed in $ac_dir" >&6; }
18385 elif test "x$target" = "x$host"; then
18386 # We can use an host tool
18387 WINDMC_FOR_TARGET='$(WINDMC)'
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18389 $as_echo "host tool" >&6; }
18390 else
18391 # We need a cross tool
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18393 $as_echo "pre-installed" >&6; }
18394 fi
18395 fi
18396
18397
18398
18399
18400
18401 # Certain tools may need extra flags.
18402 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18403 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18404 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18405
18406 # When building target libraries, except in a Canadian cross, we use
18407 # the same toolchain as the compiler we just built.
18408 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18409 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18410 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18411 if test $host = $build; then
18412 case " $configdirs " in
18413 *" gcc "*)
18414 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18415 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18416 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18417 ;;
18418 esac
18419 fi
18420
18421
18422
18423
18424
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18427 # Check whether --enable-maintainer-mode was given.
18428 if test "${enable_maintainer_mode+set}" = set; then :
18429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18430 else
18431 USE_MAINTAINER_MODE=no
18432 fi
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18436
18437
18438 if test "$USE_MAINTAINER_MODE" = yes; then
18439 MAINTAINER_MODE_TRUE=
18440 MAINTAINER_MODE_FALSE='#'
18441 else
18442 MAINTAINER_MODE_TRUE='#'
18443 MAINTAINER_MODE_FALSE=
18444 fi
18445 MAINT=$MAINTAINER_MODE_TRUE
18446
18447 # ---------------------
18448 # GCC bootstrap support
18449 # ---------------------
18450
18451 # Stage specific cflags for build.
18452 stage1_cflags="-g"
18453 case $build in
18454 vax-*-*)
18455 case ${GCC} in
18456 yes) stage1_cflags="-g -Wa,-J" ;;
18457 *) stage1_cflags="-g -J" ;;
18458 esac ;;
18459 esac
18460
18461
18462
18463 # Enable --enable-checking in stage1 of the compiler.
18464 # Check whether --enable-stage1-checking was given.
18465 if test "${enable_stage1_checking+set}" = set; then :
18466 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18467 else
18468 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18469 # For --disable-checking or implicit --enable-checking=release, avoid
18470 # setting --enable-checking=gc in the default stage1 checking for LTO
18471 # bootstraps. See PR62077.
18472 case $BUILD_CONFIG in
18473 *lto*)
18474 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18475 *)
18476 stage1_checking=--enable-checking=yes,types;;
18477 esac
18478 if test "x$enable_checking" = x && \
18479 test -d ${srcdir}/gcc && \
18480 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18481 stage1_checking=--enable-checking=yes,types,extra
18482 fi
18483 else
18484 stage1_checking=--enable-checking=$enable_checking,types
18485 fi
18486 fi
18487
18488
18489
18490 # Enable -Werror in bootstrap stage2 and later.
18491 # Check whether --enable-werror was given.
18492 if test "${enable_werror+set}" = set; then :
18493 enableval=$enable_werror;
18494 case ${enable_werror} in
18495 yes) stage2_werror_flag="--enable-werror-always" ;;
18496 *) stage2_werror_flag="" ;;
18497 esac
18498
18499 else
18500
18501 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18502 case $BUILD_CONFIG in
18503 bootstrap-debug)
18504 stage2_werror_flag="--enable-werror-always" ;;
18505 "")
18506 stage2_werror_flag="--enable-werror-always" ;;
18507 esac
18508 fi
18509
18510 fi
18511
18512
18513
18514
18515 # Specify what files to not compare during bootstrap.
18516
18517 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18518 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18519 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18520 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18521 case "$target" in
18522 hppa*64*-*-hpux*) ;;
18523 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18524 esac
18525
18526
18527 ac_config_files="$ac_config_files Makefile"
18528
18529 cat >confcache <<\_ACEOF
18530 # This file is a shell script that caches the results of configure
18531 # tests run on this system so they can be shared between configure
18532 # scripts and configure runs, see configure's option --config-cache.
18533 # It is not useful on other systems. If it contains results you don't
18534 # want to keep, you may remove or edit it.
18535 #
18536 # config.status only pays attention to the cache file if you give it
18537 # the --recheck option to rerun configure.
18538 #
18539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18541 # following values.
18542
18543 _ACEOF
18544
18545 # The following way of writing the cache mishandles newlines in values,
18546 # but we know of no workaround that is simple, portable, and efficient.
18547 # So, we kill variables containing newlines.
18548 # Ultrix sh set writes to stderr and can't be redirected directly,
18549 # and sets the high bit in the cache file unless we assign to the vars.
18550 (
18551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18552 eval ac_val=\$$ac_var
18553 case $ac_val in #(
18554 *${as_nl}*)
18555 case $ac_var in #(
18556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18558 esac
18559 case $ac_var in #(
18560 _ | IFS | as_nl) ;; #(
18561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18562 *) { eval $ac_var=; unset $ac_var;} ;;
18563 esac ;;
18564 esac
18565 done
18566
18567 (set) 2>&1 |
18568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18569 *${as_nl}ac_space=\ *)
18570 # `set' does not quote correctly, so add quotes: double-quote
18571 # substitution turns \\\\ into \\, and sed turns \\ into \.
18572 sed -n \
18573 "s/'/'\\\\''/g;
18574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18575 ;; #(
18576 *)
18577 # `set' quotes correctly as required by POSIX, so do not add quotes.
18578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18579 ;;
18580 esac |
18581 sort
18582 ) |
18583 sed '
18584 /^ac_cv_env_/b end
18585 t clear
18586 :clear
18587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18588 t end
18589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18590 :end' >>confcache
18591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18592 if test -w "$cache_file"; then
18593 if test "x$cache_file" != "x/dev/null"; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18595 $as_echo "$as_me: updating cache $cache_file" >&6;}
18596 if test ! -f "$cache_file" || test -h "$cache_file"; then
18597 cat confcache >"$cache_file"
18598 else
18599 case $cache_file in #(
18600 */* | ?:*)
18601 mv -f confcache "$cache_file"$$ &&
18602 mv -f "$cache_file"$$ "$cache_file" ;; #(
18603 *)
18604 mv -f confcache "$cache_file" ;;
18605 esac
18606 fi
18607 fi
18608 else
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18611 fi
18612 fi
18613 rm -f confcache
18614
18615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18616 # Let make expand exec_prefix.
18617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18618
18619 # Transform confdefs.h into DEFS.
18620 # Protect against shell expansion while executing Makefile rules.
18621 # Protect against Makefile macro expansion.
18622 #
18623 # If the first sed substitution is executed (which looks for macros that
18624 # take arguments), then branch to the quote section. Otherwise,
18625 # look for a macro that doesn't take arguments.
18626 ac_script='
18627 :mline
18628 /\\$/{
18629 N
18630 s,\\\n,,
18631 b mline
18632 }
18633 t clear
18634 :clear
18635 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18636 t quote
18637 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18638 t quote
18639 b any
18640 :quote
18641 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18642 s/\[/\\&/g
18643 s/\]/\\&/g
18644 s/\$/$$/g
18645 H
18646 :any
18647 ${
18648 g
18649 s/^\n//
18650 s/\n/ /g
18651 p
18652 }
18653 '
18654 DEFS=`sed -n "$ac_script" confdefs.h`
18655
18656
18657 ac_libobjs=
18658 ac_ltlibobjs=
18659 U=
18660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18661 # 1. Remove the extension, and $U if already installed.
18662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18665 # will be set to the directory where LIBOBJS objects are built.
18666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18668 done
18669 LIBOBJS=$ac_libobjs
18670
18671 LTLIBOBJS=$ac_ltlibobjs
18672
18673
18674
18675 : "${CONFIG_STATUS=./config.status}"
18676 ac_write_fail=0
18677 ac_clean_files_save=$ac_clean_files
18678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18681 as_write_fail=0
18682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18683 #! $SHELL
18684 # Generated by $as_me.
18685 # Run this file to recreate the current configuration.
18686 # Compiler output produced by configure, useful for debugging
18687 # configure, is in config.log if it exists.
18688
18689 debug=false
18690 ac_cs_recheck=false
18691 ac_cs_silent=false
18692
18693 SHELL=\${CONFIG_SHELL-$SHELL}
18694 export SHELL
18695 _ASEOF
18696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18697 ## -------------------- ##
18698 ## M4sh Initialization. ##
18699 ## -------------------- ##
18700
18701 # Be more Bourne compatible
18702 DUALCASE=1; export DUALCASE # for MKS sh
18703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18704 emulate sh
18705 NULLCMD=:
18706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18707 # is contrary to our usage. Disable this feature.
18708 alias -g '${1+"$@"}'='"$@"'
18709 setopt NO_GLOB_SUBST
18710 else
18711 case `(set -o) 2>/dev/null` in #(
18712 *posix*) :
18713 set -o posix ;; #(
18714 *) :
18715 ;;
18716 esac
18717 fi
18718
18719
18720 as_nl='
18721 '
18722 export as_nl
18723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18727 # Prefer a ksh shell builtin over an external printf program on Solaris,
18728 # but without wasting forks for bash or zsh.
18729 if test -z "$BASH_VERSION$ZSH_VERSION" \
18730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18731 as_echo='print -r --'
18732 as_echo_n='print -rn --'
18733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18734 as_echo='printf %s\n'
18735 as_echo_n='printf %s'
18736 else
18737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18739 as_echo_n='/usr/ucb/echo -n'
18740 else
18741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18742 as_echo_n_body='eval
18743 arg=$1;
18744 case $arg in #(
18745 *"$as_nl"*)
18746 expr "X$arg" : "X\\(.*\\)$as_nl";
18747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18748 esac;
18749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18750 '
18751 export as_echo_n_body
18752 as_echo_n='sh -c $as_echo_n_body as_echo'
18753 fi
18754 export as_echo_body
18755 as_echo='sh -c $as_echo_body as_echo'
18756 fi
18757
18758 # The user is always right.
18759 if test "${PATH_SEPARATOR+set}" != set; then
18760 PATH_SEPARATOR=:
18761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18763 PATH_SEPARATOR=';'
18764 }
18765 fi
18766
18767
18768 # IFS
18769 # We need space, tab and new line, in precisely that order. Quoting is
18770 # there to prevent editors from complaining about space-tab.
18771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18772 # splitting by setting IFS to empty value.)
18773 IFS=" "" $as_nl"
18774
18775 # Find who we are. Look in the path if we contain no directory separator.
18776 as_myself=
18777 case $0 in #((
18778 *[\\/]* ) as_myself=$0 ;;
18779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18780 for as_dir in $PATH
18781 do
18782 IFS=$as_save_IFS
18783 test -z "$as_dir" && as_dir=.
18784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18785 done
18786 IFS=$as_save_IFS
18787
18788 ;;
18789 esac
18790 # We did not find ourselves, most probably we were run as `sh COMMAND'
18791 # in which case we are not to be found in the path.
18792 if test "x$as_myself" = x; then
18793 as_myself=$0
18794 fi
18795 if test ! -f "$as_myself"; then
18796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18797 exit 1
18798 fi
18799
18800 # Unset variables that we do not need and which cause bugs (e.g. in
18801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18802 # suppresses any "Segmentation fault" message there. '((' could
18803 # trigger a bug in pdksh 5.2.14.
18804 for as_var in BASH_ENV ENV MAIL MAILPATH
18805 do eval test x\${$as_var+set} = xset \
18806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18807 done
18808 PS1='$ '
18809 PS2='> '
18810 PS4='+ '
18811
18812 # NLS nuisances.
18813 LC_ALL=C
18814 export LC_ALL
18815 LANGUAGE=C
18816 export LANGUAGE
18817
18818 # CDPATH.
18819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18820
18821
18822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18823 # ----------------------------------------
18824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18826 # script with STATUS, using 1 if that was 0.
18827 as_fn_error ()
18828 {
18829 as_status=$1; test $as_status -eq 0 && as_status=1
18830 if test "$4"; then
18831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18833 fi
18834 $as_echo "$as_me: error: $2" >&2
18835 as_fn_exit $as_status
18836 } # as_fn_error
18837
18838
18839 # as_fn_set_status STATUS
18840 # -----------------------
18841 # Set $? to STATUS, without forking.
18842 as_fn_set_status ()
18843 {
18844 return $1
18845 } # as_fn_set_status
18846
18847 # as_fn_exit STATUS
18848 # -----------------
18849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18850 as_fn_exit ()
18851 {
18852 set +e
18853 as_fn_set_status $1
18854 exit $1
18855 } # as_fn_exit
18856
18857 # as_fn_unset VAR
18858 # ---------------
18859 # Portably unset VAR.
18860 as_fn_unset ()
18861 {
18862 { eval $1=; unset $1;}
18863 }
18864 as_unset=as_fn_unset
18865 # as_fn_append VAR VALUE
18866 # ----------------------
18867 # Append the text in VALUE to the end of the definition contained in VAR. Take
18868 # advantage of any shell optimizations that allow amortized linear growth over
18869 # repeated appends, instead of the typical quadratic growth present in naive
18870 # implementations.
18871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18872 eval 'as_fn_append ()
18873 {
18874 eval $1+=\$2
18875 }'
18876 else
18877 as_fn_append ()
18878 {
18879 eval $1=\$$1\$2
18880 }
18881 fi # as_fn_append
18882
18883 # as_fn_arith ARG...
18884 # ------------------
18885 # Perform arithmetic evaluation on the ARGs, and store the result in the
18886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18887 # must be portable across $(()) and expr.
18888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18889 eval 'as_fn_arith ()
18890 {
18891 as_val=$(( $* ))
18892 }'
18893 else
18894 as_fn_arith ()
18895 {
18896 as_val=`expr "$@" || test $? -eq 1`
18897 }
18898 fi # as_fn_arith
18899
18900
18901 if expr a : '\(a\)' >/dev/null 2>&1 &&
18902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18903 as_expr=expr
18904 else
18905 as_expr=false
18906 fi
18907
18908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18909 as_basename=basename
18910 else
18911 as_basename=false
18912 fi
18913
18914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18915 as_dirname=dirname
18916 else
18917 as_dirname=false
18918 fi
18919
18920 as_me=`$as_basename -- "$0" ||
18921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18922 X"$0" : 'X\(//\)$' \| \
18923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18924 $as_echo X/"$0" |
18925 sed '/^.*\/\([^/][^/]*\)\/*$/{
18926 s//\1/
18927 q
18928 }
18929 /^X\/\(\/\/\)$/{
18930 s//\1/
18931 q
18932 }
18933 /^X\/\(\/\).*/{
18934 s//\1/
18935 q
18936 }
18937 s/.*/./; q'`
18938
18939 # Avoid depending upon Character Ranges.
18940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18943 as_cr_digits='0123456789'
18944 as_cr_alnum=$as_cr_Letters$as_cr_digits
18945
18946 ECHO_C= ECHO_N= ECHO_T=
18947 case `echo -n x` in #(((((
18948 -n*)
18949 case `echo 'xy\c'` in
18950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18951 xy) ECHO_C='\c';;
18952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18953 ECHO_T=' ';;
18954 esac;;
18955 *)
18956 ECHO_N='-n';;
18957 esac
18958
18959 rm -f conf$$ conf$$.exe conf$$.file
18960 if test -d conf$$.dir; then
18961 rm -f conf$$.dir/conf$$.file
18962 else
18963 rm -f conf$$.dir
18964 mkdir conf$$.dir 2>/dev/null
18965 fi
18966 if (echo >conf$$.file) 2>/dev/null; then
18967 if ln -s conf$$.file conf$$ 2>/dev/null; then
18968 as_ln_s='ln -s'
18969 # ... but there are two gotchas:
18970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18972 # In both cases, we have to default to `cp -pR'.
18973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18974 as_ln_s='cp -pR'
18975 elif ln conf$$.file conf$$ 2>/dev/null; then
18976 as_ln_s=ln
18977 else
18978 as_ln_s='cp -pR'
18979 fi
18980 else
18981 as_ln_s='cp -pR'
18982 fi
18983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18984 rmdir conf$$.dir 2>/dev/null
18985
18986
18987 # as_fn_mkdir_p
18988 # -------------
18989 # Create "$as_dir" as a directory, including parents if necessary.
18990 as_fn_mkdir_p ()
18991 {
18992
18993 case $as_dir in #(
18994 -*) as_dir=./$as_dir;;
18995 esac
18996 test -d "$as_dir" || eval $as_mkdir_p || {
18997 as_dirs=
18998 while :; do
18999 case $as_dir in #(
19000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19001 *) as_qdir=$as_dir;;
19002 esac
19003 as_dirs="'$as_qdir' $as_dirs"
19004 as_dir=`$as_dirname -- "$as_dir" ||
19005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19006 X"$as_dir" : 'X\(//\)[^/]' \| \
19007 X"$as_dir" : 'X\(//\)$' \| \
19008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19009 $as_echo X"$as_dir" |
19010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19011 s//\1/
19012 q
19013 }
19014 /^X\(\/\/\)[^/].*/{
19015 s//\1/
19016 q
19017 }
19018 /^X\(\/\/\)$/{
19019 s//\1/
19020 q
19021 }
19022 /^X\(\/\).*/{
19023 s//\1/
19024 q
19025 }
19026 s/.*/./; q'`
19027 test -d "$as_dir" && break
19028 done
19029 test -z "$as_dirs" || eval "mkdir $as_dirs"
19030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19031
19032
19033 } # as_fn_mkdir_p
19034 if mkdir -p . 2>/dev/null; then
19035 as_mkdir_p='mkdir -p "$as_dir"'
19036 else
19037 test -d ./-p && rmdir ./-p
19038 as_mkdir_p=false
19039 fi
19040
19041
19042 # as_fn_executable_p FILE
19043 # -----------------------
19044 # Test if FILE is an executable regular file.
19045 as_fn_executable_p ()
19046 {
19047 test -f "$1" && test -x "$1"
19048 } # as_fn_executable_p
19049 as_test_x='test -x'
19050 as_executable_p=as_fn_executable_p
19051
19052 # Sed expression to map a string onto a valid CPP name.
19053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19054
19055 # Sed expression to map a string onto a valid variable name.
19056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19057
19058
19059 exec 6>&1
19060 ## ----------------------------------- ##
19061 ## Main body of $CONFIG_STATUS script. ##
19062 ## ----------------------------------- ##
19063 _ASEOF
19064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19065
19066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19067 # Save the log message, to keep $0 and so on meaningful, and to
19068 # report actual input values of CONFIG_FILES etc. instead of their
19069 # values after options handling.
19070 ac_log="
19071 This file was extended by $as_me, which was
19072 generated by GNU Autoconf 2.69. Invocation command line was
19073
19074 CONFIG_FILES = $CONFIG_FILES
19075 CONFIG_HEADERS = $CONFIG_HEADERS
19076 CONFIG_LINKS = $CONFIG_LINKS
19077 CONFIG_COMMANDS = $CONFIG_COMMANDS
19078 $ $0 $@
19079
19080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19081 "
19082
19083 _ACEOF
19084
19085 case $ac_config_files in *"
19086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19087 esac
19088
19089
19090
19091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19092 # Files that config.status was made for.
19093 config_files="$ac_config_files"
19094
19095 _ACEOF
19096
19097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19098 ac_cs_usage="\
19099 \`$as_me' instantiates files and other configuration actions
19100 from templates according to the current configuration. Unless the files
19101 and actions are specified as TAGs, all are instantiated by default.
19102
19103 Usage: $0 [OPTION]... [TAG]...
19104
19105 -h, --help print this help, then exit
19106 -V, --version print version number and configuration settings, then exit
19107 --config print configuration, then exit
19108 -q, --quiet, --silent
19109 do not print progress messages
19110 -d, --debug don't remove temporary files
19111 --recheck update $as_me by reconfiguring in the same conditions
19112 --file=FILE[:TEMPLATE]
19113 instantiate the configuration file FILE
19114
19115 Configuration files:
19116 $config_files
19117
19118 Report bugs to the package provider."
19119
19120 _ACEOF
19121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19122 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19123 ac_cs_version="\\
19124 config.status
19125 configured by $0, generated by GNU Autoconf 2.69,
19126 with options \\"\$ac_cs_config\\"
19127
19128 Copyright (C) 2012 Free Software Foundation, Inc.
19129 This config.status script is free software; the Free Software Foundation
19130 gives unlimited permission to copy, distribute and modify it."
19131
19132 ac_pwd='$ac_pwd'
19133 srcdir='$srcdir'
19134 INSTALL='$INSTALL'
19135 AWK='$AWK'
19136 test -n "\$AWK" || AWK=awk
19137 _ACEOF
19138
19139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19140 # The default lists apply if the user does not specify any file.
19141 ac_need_defaults=:
19142 while test $# != 0
19143 do
19144 case $1 in
19145 --*=?*)
19146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19148 ac_shift=:
19149 ;;
19150 --*=)
19151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19152 ac_optarg=
19153 ac_shift=:
19154 ;;
19155 *)
19156 ac_option=$1
19157 ac_optarg=$2
19158 ac_shift=shift
19159 ;;
19160 esac
19161
19162 case $ac_option in
19163 # Handling of the options.
19164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19165 ac_cs_recheck=: ;;
19166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19167 $as_echo "$ac_cs_version"; exit ;;
19168 --config | --confi | --conf | --con | --co | --c )
19169 $as_echo "$ac_cs_config"; exit ;;
19170 --debug | --debu | --deb | --de | --d | -d )
19171 debug=: ;;
19172 --file | --fil | --fi | --f )
19173 $ac_shift
19174 case $ac_optarg in
19175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19176 '') as_fn_error $? "missing file argument" ;;
19177 esac
19178 as_fn_append CONFIG_FILES " '$ac_optarg'"
19179 ac_need_defaults=false;;
19180 --he | --h | --help | --hel | -h )
19181 $as_echo "$ac_cs_usage"; exit ;;
19182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19184 ac_cs_silent=: ;;
19185
19186 # This is an error.
19187 -*) as_fn_error $? "unrecognized option: \`$1'
19188 Try \`$0 --help' for more information." ;;
19189
19190 *) as_fn_append ac_config_targets " $1"
19191 ac_need_defaults=false ;;
19192
19193 esac
19194 shift
19195 done
19196
19197 ac_configure_extra_args=
19198
19199 if $ac_cs_silent; then
19200 exec 6>/dev/null
19201 ac_configure_extra_args="$ac_configure_extra_args --silent"
19202 fi
19203
19204 _ACEOF
19205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19206 if \$ac_cs_recheck; then
19207 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19208 shift
19209 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19210 CONFIG_SHELL='$SHELL'
19211 export CONFIG_SHELL
19212 exec "\$@"
19213 fi
19214
19215 _ACEOF
19216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217 exec 5>>config.log
19218 {
19219 echo
19220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19221 ## Running $as_me. ##
19222 _ASBOX
19223 $as_echo "$ac_log"
19224 } >&5
19225
19226 _ACEOF
19227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19228 #
19229 # INIT-COMMANDS
19230 #
19231 extrasub_build="$extrasub_build"
19232 extrasub_host="$extrasub_host"
19233 extrasub_target="$extrasub_target"
19234
19235 _ACEOF
19236
19237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19238
19239 # Handling of arguments.
19240 for ac_config_target in $ac_config_targets
19241 do
19242 case $ac_config_target in
19243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19244
19245 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19246 esac
19247 done
19248
19249
19250 # If the user did not use the arguments to specify the items to instantiate,
19251 # then the envvar interface is used. Set only those that are not.
19252 # We use the long form for the default assignment because of an extremely
19253 # bizarre bug on SunOS 4.1.3.
19254 if $ac_need_defaults; then
19255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19256 fi
19257
19258 # Have a temporary directory for convenience. Make it in the build tree
19259 # simply because there is no reason against having it here, and in addition,
19260 # creating and moving files from /tmp can sometimes cause problems.
19261 # Hook for its removal unless debugging.
19262 # Note that there is a small window in which the directory will not be cleaned:
19263 # after its creation but before its name has been assigned to `$tmp'.
19264 $debug ||
19265 {
19266 tmp= ac_tmp=
19267 trap 'exit_status=$?
19268 : "${ac_tmp:=$tmp}"
19269 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19270 ' 0
19271 trap 'as_fn_exit 1' 1 2 13 15
19272 }
19273 # Create a (secure) tmp directory for tmp files.
19274
19275 {
19276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19277 test -d "$tmp"
19278 } ||
19279 {
19280 tmp=./conf$$-$RANDOM
19281 (umask 077 && mkdir "$tmp")
19282 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19283 ac_tmp=$tmp
19284
19285 # Set up the scripts for CONFIG_FILES section.
19286 # No need to generate them if there are no CONFIG_FILES.
19287 # This happens for instance with `./config.status config.h'.
19288 if test -n "$CONFIG_FILES"; then
19289
19290 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19291 ac_cs_awk_getline=:
19292 ac_cs_awk_pipe_init=
19293 ac_cs_awk_read_file='
19294 while ((getline aline < (F[key])) > 0)
19295 print(aline)
19296 close(F[key])'
19297 ac_cs_awk_pipe_fini=
19298 else
19299 ac_cs_awk_getline=false
19300 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19301 ac_cs_awk_read_file='
19302 print "|#_!!_#|"
19303 print "cat " F[key] " &&"
19304 '$ac_cs_awk_pipe_init
19305 # The final `:' finishes the AND list.
19306 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19307 fi
19308 ac_cr=`echo X | tr X '\015'`
19309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19310 # But we know of no other shell where ac_cr would be empty at this
19311 # point, so we can use a bashism as a fallback.
19312 if test "x$ac_cr" = x; then
19313 eval ac_cr=\$\'\\r\'
19314 fi
19315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19317 ac_cs_awk_cr='\\r'
19318 else
19319 ac_cs_awk_cr=$ac_cr
19320 fi
19321
19322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19323 _ACEOF
19324
19325 # Create commands to substitute file output variables.
19326 {
19327 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19328 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19329 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19330 echo "_ACAWK" &&
19331 echo "_ACEOF"
19332 } >conf$$files.sh &&
19333 . ./conf$$files.sh ||
19334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19335 rm -f conf$$files.sh
19336
19337 {
19338 echo "cat >conf$$subs.awk <<_ACEOF" &&
19339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19340 echo "_ACEOF"
19341 } >conf$$subs.sh ||
19342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19344 ac_delim='%!_!# '
19345 for ac_last_try in false false false false false :; do
19346 . ./conf$$subs.sh ||
19347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19348
19349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19350 if test $ac_delim_n = $ac_delim_num; then
19351 break
19352 elif $ac_last_try; then
19353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19354 else
19355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19356 fi
19357 done
19358 rm -f conf$$subs.sh
19359
19360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19361 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19362 _ACEOF
19363 sed -n '
19364 h
19365 s/^/S["/; s/!.*/"]=/
19366 p
19367 g
19368 s/^[^!]*!//
19369 :repl
19370 t repl
19371 s/'"$ac_delim"'$//
19372 t delim
19373 :nl
19374 h
19375 s/\(.\{148\}\)..*/\1/
19376 t more1
19377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19378 p
19379 n
19380 b repl
19381 :more1
19382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19383 p
19384 g
19385 s/.\{148\}//
19386 t nl
19387 :delim
19388 h
19389 s/\(.\{148\}\)..*/\1/
19390 t more2
19391 s/["\\]/\\&/g; s/^/"/; s/$/"/
19392 p
19393 b
19394 :more2
19395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19396 p
19397 g
19398 s/.\{148\}//
19399 t delim
19400 ' <conf$$subs.awk | sed '
19401 /^[^""]/{
19402 N
19403 s/\n//
19404 }
19405 ' >>$CONFIG_STATUS || ac_write_fail=1
19406 rm -f conf$$subs.awk
19407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19408 _ACAWK
19409 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19410 for (key in S) S_is_set[key] = 1
19411 FS = "\a"
19412 \$ac_cs_awk_pipe_init
19413 }
19414 {
19415 line = $ 0
19416 nfields = split(line, field, "@")
19417 substed = 0
19418 len = length(field[1])
19419 for (i = 2; i < nfields; i++) {
19420 key = field[i]
19421 keylen = length(key)
19422 if (S_is_set[key]) {
19423 value = S[key]
19424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19425 len += length(value) + length(field[++i])
19426 substed = 1
19427 } else
19428 len += 1 + keylen
19429 }
19430 if (nfields == 3 && !substed) {
19431 key = field[2]
19432 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19433 \$ac_cs_awk_read_file
19434 next
19435 }
19436 }
19437 print line
19438 }
19439 \$ac_cs_awk_pipe_fini
19440 _ACAWK
19441 _ACEOF
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19445 else
19446 cat
19447 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19448 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19449 _ACEOF
19450
19451 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19452 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19453 # trailing colons and then remove the whole line if VPATH becomes empty
19454 # (actually we leave an empty line to preserve line numbers).
19455 if test "x$srcdir" = x.; then
19456 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19457 h
19458 s///
19459 s/^/:/
19460 s/[ ]*$/:/
19461 s/:\$(srcdir):/:/g
19462 s/:\${srcdir}:/:/g
19463 s/:@srcdir@:/:/g
19464 s/^:*//
19465 s/:*$//
19466 x
19467 s/\(=[ ]*\).*/\1/
19468 G
19469 s/\n//
19470 s/^[^=]*=[ ]*$//
19471 }'
19472 fi
19473
19474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19475 fi # test -n "$CONFIG_FILES"
19476
19477
19478 eval set X " :F $CONFIG_FILES "
19479 shift
19480 for ac_tag
19481 do
19482 case $ac_tag in
19483 :[FHLC]) ac_mode=$ac_tag; continue;;
19484 esac
19485 case $ac_mode$ac_tag in
19486 :[FHL]*:*);;
19487 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19488 :[FH]-) ac_tag=-:-;;
19489 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19490 esac
19491 ac_save_IFS=$IFS
19492 IFS=:
19493 set x $ac_tag
19494 IFS=$ac_save_IFS
19495 shift
19496 ac_file=$1
19497 shift
19498
19499 case $ac_mode in
19500 :L) ac_source=$1;;
19501 :[FH])
19502 ac_file_inputs=
19503 for ac_f
19504 do
19505 case $ac_f in
19506 -) ac_f="$ac_tmp/stdin";;
19507 *) # Look for the file first in the build tree, then in the source tree
19508 # (if the path is not absolute). The absolute path cannot be DOS-style,
19509 # because $ac_f cannot contain `:'.
19510 test -f "$ac_f" ||
19511 case $ac_f in
19512 [\\/$]*) false;;
19513 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19514 esac ||
19515 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19516 esac
19517 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19518 as_fn_append ac_file_inputs " '$ac_f'"
19519 done
19520
19521 # Let's still pretend it is `configure' which instantiates (i.e., don't
19522 # use $as_me), people would be surprised to read:
19523 # /* config.h. Generated by config.status. */
19524 configure_input='Generated from '`
19525 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19526 `' by configure.'
19527 if test x"$ac_file" != x-; then
19528 configure_input="$ac_file. $configure_input"
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19530 $as_echo "$as_me: creating $ac_file" >&6;}
19531 fi
19532 # Neutralize special characters interpreted by sed in replacement strings.
19533 case $configure_input in #(
19534 *\&* | *\|* | *\\* )
19535 ac_sed_conf_input=`$as_echo "$configure_input" |
19536 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19537 *) ac_sed_conf_input=$configure_input;;
19538 esac
19539
19540 case $ac_tag in
19541 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19543 esac
19544 ;;
19545 esac
19546
19547 ac_dir=`$as_dirname -- "$ac_file" ||
19548 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19549 X"$ac_file" : 'X\(//\)[^/]' \| \
19550 X"$ac_file" : 'X\(//\)$' \| \
19551 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19552 $as_echo X"$ac_file" |
19553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19554 s//\1/
19555 q
19556 }
19557 /^X\(\/\/\)[^/].*/{
19558 s//\1/
19559 q
19560 }
19561 /^X\(\/\/\)$/{
19562 s//\1/
19563 q
19564 }
19565 /^X\(\/\).*/{
19566 s//\1/
19567 q
19568 }
19569 s/.*/./; q'`
19570 as_dir="$ac_dir"; as_fn_mkdir_p
19571 ac_builddir=.
19572
19573 case "$ac_dir" in
19574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19575 *)
19576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19577 # A ".." for each directory in $ac_dir_suffix.
19578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19579 case $ac_top_builddir_sub in
19580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19582 esac ;;
19583 esac
19584 ac_abs_top_builddir=$ac_pwd
19585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19586 # for backward compatibility:
19587 ac_top_builddir=$ac_top_build_prefix
19588
19589 case $srcdir in
19590 .) # We are building in place.
19591 ac_srcdir=.
19592 ac_top_srcdir=$ac_top_builddir_sub
19593 ac_abs_top_srcdir=$ac_pwd ;;
19594 [\\/]* | ?:[\\/]* ) # Absolute name.
19595 ac_srcdir=$srcdir$ac_dir_suffix;
19596 ac_top_srcdir=$srcdir
19597 ac_abs_top_srcdir=$srcdir ;;
19598 *) # Relative name.
19599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19600 ac_top_srcdir=$ac_top_build_prefix$srcdir
19601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19602 esac
19603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19604
19605
19606 case $ac_mode in
19607 :F)
19608 #
19609 # CONFIG_FILE
19610 #
19611
19612 case $INSTALL in
19613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19614 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19615 esac
19616 _ACEOF
19617
19618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19619 # If the template does not know about datarootdir, expand it.
19620 # FIXME: This hack should be removed a few years after 2.60.
19621 ac_datarootdir_hack=; ac_datarootdir_seen=
19622 ac_sed_dataroot='
19623 /datarootdir/ {
19624 p
19625 q
19626 }
19627 /@datadir@/p
19628 /@docdir@/p
19629 /@infodir@/p
19630 /@localedir@/p
19631 /@mandir@/p'
19632 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19633 *datarootdir*) ac_datarootdir_seen=yes;;
19634 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19636 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19637 _ACEOF
19638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19639 ac_datarootdir_hack='
19640 s&@datadir@&$datadir&g
19641 s&@docdir@&$docdir&g
19642 s&@infodir@&$infodir&g
19643 s&@localedir@&$localedir&g
19644 s&@mandir@&$mandir&g
19645 s&\\\${datarootdir}&$datarootdir&g' ;;
19646 esac
19647 _ACEOF
19648
19649 # Neutralize VPATH when `$srcdir' = `.'.
19650 # Shell code in configure.ac might set extrasub.
19651 # FIXME: do we really want to maintain this feature?
19652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19653 ac_sed_extra="$ac_vpsub
19654 $extrasub
19655 _ACEOF
19656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657 :t
19658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19659 s|@configure_input@|$ac_sed_conf_input|;t t
19660 s&@top_builddir@&$ac_top_builddir_sub&;t t
19661 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19662 s&@srcdir@&$ac_srcdir&;t t
19663 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19664 s&@top_srcdir@&$ac_top_srcdir&;t t
19665 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19666 s&@builddir@&$ac_builddir&;t t
19667 s&@abs_builddir@&$ac_abs_builddir&;t t
19668 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19669 s&@INSTALL@&$ac_INSTALL&;t t
19670 $ac_datarootdir_hack
19671 "
19672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19673 if $ac_cs_awk_getline; then
19674 $AWK -f "$ac_tmp/subs.awk"
19675 else
19676 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19677 fi \
19678 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19679
19680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19681 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19683 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19685 which seems to be undefined. Please make sure it is defined" >&5
19686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19687 which seems to be undefined. Please make sure it is defined" >&2;}
19688
19689 rm -f "$ac_tmp/stdin"
19690 case $ac_file in
19691 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19692 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19693 esac \
19694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19695 ;;
19696
19697
19698
19699 esac
19700
19701
19702 case $ac_file$ac_mode in
19703 "Makefile":F) sed "$extrasub_build" Makefile |
19704 sed "$extrasub_host" |
19705 sed "$extrasub_target" > mf$$
19706 mv -f mf$$ Makefile ;;
19707
19708 esac
19709 done # for ac_tag
19710
19711
19712 as_fn_exit 0
19713 _ACEOF
19714 ac_clean_files=$ac_clean_files_save
19715
19716 test $ac_write_fail = 0 ||
19717 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19718
19719
19720 # configure is writing to config.log, and then calls config.status.
19721 # config.status does its own redirection, appending to config.log.
19722 # Unfortunately, on DOS this fails, as config.log is still kept open
19723 # by configure, so config.status won't be able to write to it; its
19724 # output is simply discarded. So we exec the FD to /dev/null,
19725 # effectively closing config.log, so it can be properly (re)opened and
19726 # appended to by config.status. When coming back to configure, we
19727 # need to make the FD available again.
19728 if test "$no_create" != yes; then
19729 ac_cs_success=:
19730 ac_config_status_args=
19731 test "$silent" = yes &&
19732 ac_config_status_args="$ac_config_status_args --quiet"
19733 exec 5>/dev/null
19734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19735 exec 5>>config.log
19736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19737 # would make configure fail if this is the last instruction.
19738 $ac_cs_success || as_fn_exit 1
19739 fi
19740 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19742 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19743 fi
19744
This page took 0.983985 seconds and 5 git commands to generate.