]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Replace AC_PROG_CC with AC_PROG_CC_C99 in top level configure file.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 AWK
718 SED
719 LN_S
720 LN
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_offload_defaulted
790 enable_gold
791 enable_ld
792 enable_compressed_debug_sections
793 enable_libquadmath
794 enable_libquadmath_support
795 enable_libada
796 enable_libssp
797 enable_libstdcxx
798 enable_liboffloadmic
799 enable_bootstrap
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_static_standard_libraries
813 with_stage1_ldflags
814 with_boot_libs
815 with_boot_ldflags
816 with_isl
817 with_isl_include
818 with_isl_lib
819 enable_isl_version_check
820 enable_lto
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
823 enable_host_shared
824 enable_stage1_languages
825 enable_objc_gc
826 with_target_bdw_gc
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
830 with_build_sysroot
831 with_debug_prefix_map
832 with_build_config
833 enable_vtable_verify
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
838 enable_werror
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 build_configargs
852 host_configargs
853 target_configargs
854 AR
855 AS
856 DLLTOOL
857 LD
858 LIPO
859 NM
860 RANLIB
861 STRIP
862 WINDRES
863 WINDMC
864 OBJCOPY
865 OBJDUMP
866 OTOOL
867 READELF
868 CC_FOR_TARGET
869 CXX_FOR_TARGET
870 GCC_FOR_TARGET
871 GFORTRAN_FOR_TARGET
872 GOC_FOR_TARGET
873 GDC_FOR_TARGET
874 AR_FOR_TARGET
875 AS_FOR_TARGET
876 DLLTOOL_FOR_TARGET
877 LD_FOR_TARGET
878 LIPO_FOR_TARGET
879 NM_FOR_TARGET
880 OBJCOPY_FOR_TARGET
881 OBJDUMP_FOR_TARGET
882 OTOOL_FOR_TARGET
883 RANLIB_FOR_TARGET
884 READELF_FOR_TARGET
885 STRIP_FOR_TARGET
886 WINDRES_FOR_TARGET
887 WINDMC_FOR_TARGET'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
947 fi
948
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1054
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1059
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1089
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1163
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1183
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1194
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1199
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1204
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1211
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1216
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1219
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1222
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1238
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1275 ;;
1276
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 esac
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1309 fi
1310
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1316 do
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1392 fi
1393 else
1394 ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 case $srcdir in
1415 *" "*)
1416 as_fn_error $? "path to source, $srcdir, contains spaces"
1417 ;;
1418 esac
1419 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures this package to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-as-accelerator-for=ARG
1513 build as offload target compiler. Specify offload
1514 host triple by ARG
1515 --enable-offload-targets=LIST
1516 enable offloading to devices from comma-separated
1517 LIST of TARGET[=DIR]. Use optional path to find
1518 offload target compiler during the build
1519 --enable-offload-defaulted
1520 If enabled, configured but not installed offload compilers and
1521 libgomp plugins are silently ignored. Useful for distribution
1522 compilers where those are in separate optional packages.
1523
1524 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1525 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1526 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1527 Enable compressed debug sections for gas, gold or ld
1528 by default
1529 --disable-libquadmath do not build libquadmath directory
1530 --disable-libquadmath-support
1531 disable libquadmath support for Fortran
1532 --enable-libada build libada directory
1533 --enable-libssp build libssp directory
1534 --disable-libstdcxx do not build libstdc++-v3 directory
1535 --enable-liboffloadmic=ARG
1536 build liboffloadmic [ARG={no,host,target}]
1537 --enable-bootstrap enable bootstrapping [yes if native build]
1538 --disable-isl-version-check
1539 disable check for isl version
1540 --enable-lto enable link time optimization support
1541 --enable-linker-plugin-configure-flags=FLAGS
1542 additional flags for configuring linker plugins
1543 [none]
1544 --enable-linker-plugin-flags=FLAGS
1545 additional flags for configuring and building linker
1546 plugins [none]
1547 --enable-host-shared build host code as shared libraries
1548 --enable-stage1-languages[=all]
1549 choose additional languages to build during stage1.
1550 Mostly useful for compiler development
1551 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1552 Objective-C runtime
1553 --enable-vtable-verify Enable vtable verification feature
1554 --enable-serial-[{host,target,build}-]configure
1555 force sequential configuration of sub-packages for
1556 the host, target or build machine, or all
1557 sub-packages
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful (and
1560 sometimes confusing) to the casual installer
1561 --enable-stage1-checking[=all]
1562 choose additional checking for stage1 of the
1563 compiler
1564 --enable-werror enable -Werror in bootstrap stage2 and later
1565
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-build-libsubdir=DIR Directory where to find libraries for build system
1570 --with-system-zlib use installed libz
1571 --with-mpc=PATH specify prefix directory for installed MPC package.
1572 Equivalent to --with-mpc-include=PATH/include plus
1573 --with-mpc-lib=PATH/lib
1574 --with-mpc-include=PATH specify directory for installed MPC include files
1575 --with-mpc-lib=PATH specify directory for the installed MPC library
1576 --with-mpfr-dir=PATH this option has been REMOVED
1577 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1578 Equivalent to --with-mpfr-include=PATH/include plus
1579 --with-mpfr-lib=PATH/lib
1580 --with-mpfr-include=PATH
1581 specify directory for installed MPFR include files
1582 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1583 --with-gmp-dir=PATH this option has been REMOVED
1584 --with-gmp=PATH specify prefix directory for the installed GMP
1585 package. Equivalent to
1586 --with-gmp-include=PATH/include plus
1587 --with-gmp-lib=PATH/lib
1588 --with-gmp-include=PATH specify directory for installed GMP include files
1589 --with-gmp-lib=PATH specify directory for the installed GMP library
1590 --with-stage1-libs=LIBS libraries for stage1
1591 --with-static-standard-libraries
1592 use -static-libstdc++ and -static-libgcc
1593 (default=auto)
1594 --with-stage1-ldflags=FLAGS
1595 linker flags for stage1
1596 --with-boot-libs=LIBS libraries for stage2 and later
1597 --with-boot-ldflags=FLAGS
1598 linker flags for stage2 and later
1599 --with-isl=PATH Specify prefix directory for the installed isl
1600 package. Equivalent to
1601 --with-isl-include=PATH/include plus
1602 --with-isl-lib=PATH/lib
1603 --with-isl-include=PATH Specify directory for installed isl include files
1604 --with-isl-lib=PATH Specify the directory for the installed isl library
1605 --with-target-bdw-gc=PATHLIST
1606 specify prefix directory for installed bdw-gc
1607 package. Equivalent to
1608 --with-target-bdw-gc-include=PATH/include plus
1609 --with-target-bdw-gc-lib=PATH/lib
1610 --with-target-bdw-gc-include=PATHLIST
1611 specify directories for installed bdw-gc include
1612 files
1613 --with-target-bdw-gc-lib=PATHLIST
1614 specify directories for installed bdw-gc library
1615 --with-gcc-major-version-only
1616 use only GCC major number in filesystem paths
1617 --with-build-sysroot=SYSROOT
1618 use sysroot as the system root during the build
1619 --with-debug-prefix-map='A=B C=D ...'
1620 map A to B, C to D ... in debug information
1621 --with-build-config='NAME NAME2...'
1622 use config/NAME.mk build configuration
1623 --with-build-time-tools=PATH
1624 use given path to find target tools during the build
1625
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 build_configargs
1637 additional configure arguments for build directories
1638 host_configargs
1639 additional configure arguments for host directories
1640 target_configargs
1641 additional configure arguments for target directories
1642 AR AR for the host
1643 AS AS for the host
1644 DLLTOOL DLLTOOL for the host
1645 LD LD for the host
1646 LIPO LIPO for the host
1647 NM NM for the host
1648 RANLIB RANLIB for the host
1649 STRIP STRIP for the host
1650 WINDRES WINDRES for the host
1651 WINDMC WINDMC for the host
1652 OBJCOPY OBJCOPY for the host
1653 OBJDUMP OBJDUMP for the host
1654 OTOOL OTOOL for the host
1655 READELF READELF for the host
1656 CC_FOR_TARGET
1657 CC for the target
1658 CXX_FOR_TARGET
1659 CXX for the target
1660 GCC_FOR_TARGET
1661 GCC for the target
1662 GFORTRAN_FOR_TARGET
1663 GFORTRAN for the target
1664 GOC_FOR_TARGET
1665 GOC for the target
1666 GDC_FOR_TARGET
1667 GDC for the target
1668 AR_FOR_TARGET
1669 AR for the target
1670 AS_FOR_TARGET
1671 AS for the target
1672 DLLTOOL_FOR_TARGET
1673 DLLTOOL for the target
1674 LD_FOR_TARGET
1675 LD for the target
1676 LIPO_FOR_TARGET
1677 LIPO for the target
1678 NM_FOR_TARGET
1679 NM for the target
1680 OBJCOPY_FOR_TARGET
1681 OBJCOPY for the target
1682 OBJDUMP_FOR_TARGET
1683 OBJDUMP for the target
1684 OTOOL_FOR_TARGET
1685 OTOOL for the target
1686 RANLIB_FOR_TARGET
1687 RANLIB for the target
1688 READELF_FOR_TARGET
1689 READELF for the target
1690 STRIP_FOR_TARGET
1691 STRIP for the target
1692 WINDRES_FOR_TARGET
1693 WINDRES for the target
1694 WINDMC_FOR_TARGET
1695 WINDMC for the target
1696
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1699
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1703 fi
1704
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 continue
1711 ac_builddir=.
1712
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *)
1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1728
1729 case $srcdir in
1730 .) # We are building in place.
1731 ac_srcdir=.
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1735 ac_srcdir=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1738 *) # Relative name.
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1753 else
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 fi || ac_status=$?
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1757 done
1758 fi
1759
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762 cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.69
1765
1766 Copyright (C) 2012 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770 exit
1771 fi
1772
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1776
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_compile
1814
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_cxx_try_compile
1852
1853 # ac_fn_cxx_try_link LINENO
1854 # -------------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_link ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_cxx_try_link
1898
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1927 }; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1947
1948 It was created by $as_me, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1950
1951 $ $0 $@
1952
1953 _ACEOF
1954 exec 5>>config.log
1955 {
1956 cat <<_ASUNAME
1957 ## --------- ##
1958 ## Platform. ##
1959 ## --------- ##
1960
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1977
1978 _ASUNAME
1979
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
1986 done
1987 IFS=$as_save_IFS
1988
1989 } >&5
1990
1991 cat >&5 <<_ACEOF
1992
1993
1994 ## ----------- ##
1995 ## Core tests. ##
1996 ## ----------- ##
1997
1998 _ACEOF
1999
2000
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_configure_args=
2007 ac_configure_args0=
2008 ac_configure_args1=
2009 ac_must_keep_next=false
2010 for ac_pass in 1 2
2011 do
2012 for ac_arg
2013 do
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
2019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 esac
2022 case $ac_pass in
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024 2)
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2028 else
2029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2037 ;;
2038 -* ) ac_must_keep_next=true ;;
2039 esac
2040 fi
2041 as_fn_append ac_configure_args " '$ac_arg'"
2042 ;;
2043 esac
2044 done
2045 done
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2048
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2064 (
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2087 *)
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089 ;;
2090 esac |
2091 sort
2092 )
2093 echo
2094
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2100 do
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2115 do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2140 ' 0
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2145
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2148
2149 $as_echo "/* confdefs.h */" > confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2175 _ACEOF
2176
2177
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192 else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2195 fi
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 do
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2208 fi
2209 done
2210
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 case $cache_file in
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2220 esac
2221 fi
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 >$cache_file
2226 fi
2227
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
2236 case $ac_old_set,$ac_new_set in
2237 set,)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2241 ,set)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 ac_cache_corrupted=: ;;
2245 ,);;
2246 *)
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2259 fi
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 esac
2276 fi
2277 done
2278 if $ac_cache_corrupted; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 fi
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2288
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
2295
2296
2297
2298
2299
2300
2301
2302 progname=$0
2303 # if PWD already has a value, it is probably wrong.
2304 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2305
2306 # Export original configure arguments for use by sub-configures.
2307 # Quote arguments with shell meta charatcers.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=
2309 set -- "$progname" "$@"
2310 for ac_arg
2311 do
2312 case "$ac_arg" in
2313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 # if the argument is of the form -foo=baz, quote the baz part only
2316 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317 *) ;;
2318 esac
2319 # Add the quoted argument to the list.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321 done
2322 if test "$silent" = yes; then
2323 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2324 fi
2325 # Remove the initial space we just introduced and, as these will be
2326 # expanded by make, quote '$'.
2327 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2328
2329
2330 # Find the build, host, and target systems.
2331 ac_aux_dir=
2332 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333 if test -f "$ac_dir/install-sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/install-sh -c"
2336 break
2337 elif test -f "$ac_dir/install.sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install.sh -c"
2340 break
2341 elif test -f "$ac_dir/shtool"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/shtool install -c"
2344 break
2345 fi
2346 done
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2349 fi
2350
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2358
2359
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if ${ac_cv_build+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396
2397
2398 case ${build_alias} in
2399 "") build_noncanonical=${build} ;;
2400 *) build_noncanonical=${build_alias} ;;
2401 esac
2402
2403
2404
2405 case ${host_alias} in
2406 "") host_noncanonical=${build_noncanonical} ;;
2407 *) host_noncanonical=${host_alias} ;;
2408 esac
2409
2410
2411
2412 case ${target_alias} in
2413 "") target_noncanonical=${host_noncanonical} ;;
2414 *) target_noncanonical=${target_alias} ;;
2415 esac
2416
2417
2418
2419
2420 test "$host_noncanonical" = "$target_noncanonical" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_transform_name=s,y,y,
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if ${ac_cv_host+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432 else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 fi
2436
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2440 case $ac_cv_host in
2441 *-*-*) ;;
2442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2443 esac
2444 host=$ac_cv_host
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_host
2447 shift
2448 host_cpu=$1
2449 host_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 host_os=$*
2454 IFS=$ac_save_IFS
2455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if ${ac_cv_target+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test "x$target_alias" = x; then
2464 ac_cv_target=$ac_cv_host
2465 else
2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2476 esac
2477 target=$ac_cv_target
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_target
2480 shift
2481 target_cpu=$1
2482 target_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 target_os=$*
2487 IFS=$ac_save_IFS
2488 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2489
2490
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2495 NONENONEs,x,x, &&
2496 program_prefix=${target_alias}-
2497
2498 test "$program_prefix" != NONE &&
2499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE &&
2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507
2508
2509
2510 # Get 'install' or 'install-sh' and its variants.
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541 /usr/ucb/* ) ;;
2542 *)
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2552 :
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2556 :
2557 else
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2561 mkdir conftest.dir
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2566 then
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 break 3
2569 fi
2570 fi
2571 fi
2572 done
2573 done
2574 ;;
2575 esac
2576
2577 done
2578 IFS=$as_save_IFS
2579
2580 rm -rf conftest.one conftest.two conftest.dir
2581
2582 fi
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL=$ac_cv_path_install
2585 else
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL=$ac_install_sh
2591 fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2595
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 $as_echo_n "checking whether ln works... " >&6; }
2606 if ${acx_cv_prog_LN+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 rm -f conftestdata_t
2610 echo >conftestdata_f
2611 if ln conftestdata_f conftestdata_t 2>/dev/null
2612 then
2613 acx_cv_prog_LN=ln
2614 else
2615 acx_cv_prog_LN=no
2616 fi
2617 rm -f conftestdata_f conftestdata_t
2618
2619 fi
2620 if test $acx_cv_prog_LN = no; then
2621 LN="cp"
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 $as_echo "no, using $LN" >&6; }
2624 else
2625 LN="$acx_cv_prog_LN"
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 fi
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 $as_echo_n "checking whether ln -s works... " >&6; }
2632 LN_S=$as_ln_s
2633 if test "$LN_S" = "ln -s"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 $as_echo "no, using $LN_S" >&6; }
2639 fi
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 if ${ac_cv_path_SED+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647 for ac_i in 1 2 3 4 5 6 7; do
2648 ac_script="$ac_script$as_nl$ac_script"
2649 done
2650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651 { ac_script=; unset ac_script;}
2652 if test -z "$SED"; then
2653 ac_path_SED_found=false
2654 # Loop through the user's path and test for each of PROGNAME-LIST
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_prog in sed gsed; do
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2663 as_fn_executable_p "$ac_path_SED" || continue
2664 # Check for GNU ac_path_SED and select it if it is found.
2665 # Check for GNU $ac_path_SED
2666 case `"$ac_path_SED" --version 2>&1` in
2667 *GNU*)
2668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2669 *)
2670 ac_count=0
2671 $as_echo_n 0123456789 >"conftest.in"
2672 while :
2673 do
2674 cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 mv "conftest.tmp" "conftest.in"
2676 cp "conftest.in" "conftest.nl"
2677 $as_echo '' >> "conftest.nl"
2678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680 as_fn_arith $ac_count + 1 && ac_count=$as_val
2681 if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 # Best one so far, save it but keep looking for a better one
2683 ac_cv_path_SED="$ac_path_SED"
2684 ac_path_SED_max=$ac_count
2685 fi
2686 # 10*(2^10) chars as input seems more than enough
2687 test $ac_count -gt 10 && break
2688 done
2689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690 esac
2691
2692 $ac_path_SED_found && break 3
2693 done
2694 done
2695 done
2696 IFS=$as_save_IFS
2697 if test -z "$ac_cv_path_SED"; then
2698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2699 fi
2700 else
2701 ac_cv_path_SED=$SED
2702 fi
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 $as_echo "$ac_cv_path_SED" >&6; }
2707 SED="$ac_cv_path_SED"
2708 rm -f conftest.sed
2709
2710 for ac_prog in gawk mawk nawk awk
2711 do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 AWK=$ac_cv_prog_AWK
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$AWK" && break
2750 done
2751
2752
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754
2755 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2756 # a relative path.
2757 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 INSTALL="${srcpwd}/install-sh -c"
2759 fi
2760
2761 # Set srcdir to "." if that's what it is.
2762 # This is important for multilib support.
2763 pwd=`${PWDCMD-pwd}`
2764 if test "${pwd}" = "${srcpwd}" ; then
2765 srcdir=.
2766 fi
2767
2768 topsrcdir=$srcpwd
2769
2770 extra_host_args=
2771
2772 ### To add a new directory to the tree, first choose whether it is a target
2773 ### or a host dependent tool. Then put it into the appropriate list
2774 ### (library or tools, host or target), doing a dependency sort.
2775
2776 # Subdirs will be configured in the order listed in build_configdirs,
2777 # configdirs, or target_configdirs; see the serialization section below.
2778
2779 # Dependency sorting is only needed when *configuration* must be done in
2780 # a particular order. In all cases a dependency should be specified in
2781 # the Makefile, whether or not it's implicitly specified here.
2782
2783 # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 # cause circular dependencies and break everything horribly.
2785
2786 # these library is used by various programs built for the build
2787 # environment
2788 #
2789 build_libs="build-libiberty build-libcpp"
2790
2791 # these tools are built for the build environment
2792 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2793
2794 # these libraries are used by various programs built for the host environment
2795 #f
2796 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2797
2798 # these tools are built for the host environment
2799 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 # know that we are building the simulator.
2801 # binutils, gas and ld appear in that order because it makes sense to run
2802 # "make check" in that particular order.
2803 # If --enable-gold is used, "gold" may replace "ld".
2804 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2805
2806 # these libraries are built for the target environment, and are built after
2807 # the host libraries and the host tools (which may be a cross compiler)
2808 # Note that libiberty is not a target library.
2809 target_libraries="target-libgcc \
2810 target-libbacktrace \
2811 target-libgloss \
2812 target-newlib \
2813 target-libgomp \
2814 target-liboffloadmic \
2815 target-libhsail-rt \
2816 target-libatomic \
2817 target-libitm \
2818 target-libstdc++-v3 \
2819 target-libsanitizer \
2820 target-libvtv \
2821 target-libssp \
2822 target-libquadmath \
2823 target-libgfortran \
2824 target-libffi \
2825 target-libobjc \
2826 target-libada \
2827 target-libgo \
2828 target-libphobos \
2829 target-zlib"
2830
2831 # these tools are built using the target libraries, and are intended to
2832 # run only in the target environment
2833 #
2834 # note: any program that *uses* libraries that are in the "target_libraries"
2835 # list belongs in this list.
2836 #
2837 target_tools="target-rda"
2838
2839 ################################################################################
2840
2841 ## All tools belong in one of the four categories, and are assigned above
2842 ## We assign ${configdirs} this way to remove all embedded newlines. This
2843 ## is important because configure will choke if they ever get through.
2844 ## ${configdirs} is directories we build using the host tools.
2845 ## ${target_configdirs} is directories we build using the target tools.
2846 configdirs=`echo ${host_libs} ${host_tools}`
2847 target_configdirs=`echo ${target_libraries} ${target_tools}`
2848 build_configdirs=`echo ${build_libs} ${build_tools}`
2849
2850
2851
2852 ################################################################################
2853
2854 srcname="gnu development package"
2855
2856 # This gets set non-empty for some net releases of packages.
2857 appdirs=""
2858
2859 # Define is_cross_compiler to save on calls to 'test'.
2860 is_cross_compiler=
2861 if test x"${host}" = x"${target}" ; then
2862 is_cross_compiler=no
2863 else
2864 is_cross_compiler=yes
2865 fi
2866
2867 # Find the build and target subdir names.
2868
2869 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870 # have matching libraries, they should use host libraries: Makefile.tpl
2871 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872 # However, they still use the build modules, because the corresponding
2873 # host modules (e.g. bison) are only built for the host when bootstrap
2874 # finishes. So:
2875 # - build_subdir is where we find build modules, and never changes.
2876 # - build_libsubdir is where we find build libraries, and can be overridden.
2877
2878 # Prefix 'build-' so this never conflicts with target_subdir.
2879 build_subdir="build-${build_noncanonical}"
2880
2881 # Check whether --with-build-libsubdir was given.
2882 if test "${with_build_libsubdir+set}" = set; then :
2883 withval=$with_build_libsubdir; build_libsubdir="$withval"
2884 else
2885 build_libsubdir="$build_subdir"
2886 fi
2887
2888 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889 if ( test $srcdir = . && test -d gcc ) \
2890 || test -d $srcdir/../host-${host_noncanonical}; then
2891 host_subdir="host-${host_noncanonical}"
2892 else
2893 host_subdir=.
2894 fi
2895 # No prefix.
2896 target_subdir=${target_noncanonical}
2897
2898 # Be sure to cover against remnants of an in-tree build.
2899 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2900 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2901 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2902 fi
2903
2904 # Skipdirs are removed silently.
2905 skipdirs=
2906 # Noconfigdirs are removed loudly.
2907 noconfigdirs=""
2908
2909 use_gnu_ld=
2910 # Make sure we don't let GNU ld be added if we didn't want it.
2911 if test x$with_gnu_ld = xno ; then
2912 use_gnu_ld=no
2913 noconfigdirs="$noconfigdirs ld gold"
2914 fi
2915
2916 use_gnu_as=
2917 # Make sure we don't let GNU as be added if we didn't want it.
2918 if test x$with_gnu_as = xno ; then
2919 use_gnu_as=no
2920 noconfigdirs="$noconfigdirs gas"
2921 fi
2922
2923 use_included_zlib=
2924
2925 # Check whether --with-system-zlib was given.
2926 if test "${with_system_zlib+set}" = set; then :
2927 withval=$with_system_zlib;
2928 fi
2929
2930 # Make sure we don't let ZLIB be added if we didn't want it.
2931 if test x$with_system_zlib = xyes ; then
2932 use_included_zlib=no
2933 noconfigdirs="$noconfigdirs zlib"
2934 fi
2935
2936 # some tools are so dependent upon X11 that if we're not building with X,
2937 # it's not even worth trying to configure, much less build, that tool.
2938
2939 case ${with_x} in
2940 yes | "") ;; # the default value for this tree is that X11 is available
2941 no)
2942 skipdirs="${skipdirs} tk itcl libgui"
2943 # We won't be able to build gdbtk without X.
2944 enable_gdbtk=no
2945 ;;
2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2947 esac
2948
2949 # Some are only suitable for cross toolchains.
2950 # Remove these if host=target.
2951 cross_only="target-libgloss target-newlib target-opcodes"
2952
2953 case $is_cross_compiler in
2954 no) skipdirs="${skipdirs} ${cross_only}" ;;
2955 esac
2956
2957 # If both --with-headers and --with-libs are specified, default to
2958 # --without-newlib.
2959 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2960 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2961 if test x"${with_newlib}" = x ; then
2962 with_newlib=no
2963 fi
2964 fi
2965
2966 # Recognize --with-newlib/--without-newlib.
2967 case ${with_newlib} in
2968 no) skipdirs="${skipdirs} target-newlib" ;;
2969 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2970 esac
2971
2972 # Check whether --enable-as-accelerator-for was given.
2973 if test "${enable_as_accelerator_for+set}" = set; then :
2974 enableval=$enable_as_accelerator_for;
2975 fi
2976
2977
2978 # Check whether --enable-offload-targets was given.
2979 if test "${enable_offload_targets+set}" = set; then :
2980 enableval=$enable_offload_targets;
2981 if test x"$enable_offload_targets" = x; then
2982 as_fn_error $? "no offload targets specified" "$LINENO" 5
2983 fi
2984
2985 else
2986 enable_offload_targets=
2987 fi
2988
2989
2990 # Check whether --enable-offload-defaulted was given.
2991 if test "${enable_offload_defaulted+set}" = set; then :
2992 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
2993 else
2994 enable_offload_defaulted=
2995 fi
2996
2997
2998 # Handle --enable-gold, --enable-ld.
2999 # --disable-gold [--enable-ld]
3000 # Build only ld. Default option.
3001 # --enable-gold [--enable-ld]
3002 # Build both gold and ld. Install gold as "ld.gold", install ld
3003 # as "ld.bfd" and "ld".
3004 # --enable-gold=default [--enable-ld]
3005 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3006 # install ld as "ld.bfd".
3007 # --enable-gold[=default] --disable-ld
3008 # Build only gold, which is then installed as both "ld.gold" and "ld".
3009 # --enable-gold --enable-ld=default
3010 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3011 # and ld.bfd).
3012 # In other words, ld is default
3013 # --enable-gold=default --enable-ld=default
3014 # Error.
3015
3016 default_ld=
3017 # Check whether --enable-gold was given.
3018 if test "${enable_gold+set}" = set; then :
3019 enableval=$enable_gold; ENABLE_GOLD=$enableval
3020 else
3021 ENABLE_GOLD=no
3022 fi
3023
3024 case "${ENABLE_GOLD}" in
3025 yes|default)
3026 # Check for ELF target.
3027 is_elf=no
3028 case "${target}" in
3029 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3030 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3031 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3032 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3033 case "${target}" in
3034 *-*-linux*aout* | *-*-linux*oldld*)
3035 ;;
3036 *)
3037 is_elf=yes
3038 ;;
3039 esac
3040 esac
3041
3042 if test "$is_elf" = "yes"; then
3043 # Check for target supported by gold.
3044 case "${target}" in
3045 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3046 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3047 configdirs="$configdirs gold"
3048 if test x${ENABLE_GOLD} = xdefault; then
3049 default_ld=gold
3050 fi
3051 ENABLE_GOLD=yes
3052 ;;
3053 esac
3054 fi
3055 ;;
3056 no)
3057 ;;
3058 *)
3059 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3060 ;;
3061 esac
3062
3063 # Check whether --enable-ld was given.
3064 if test "${enable_ld+set}" = set; then :
3065 enableval=$enable_ld; ENABLE_LD=$enableval
3066 else
3067 ENABLE_LD=yes
3068 fi
3069
3070
3071 case "${ENABLE_LD}" in
3072 default)
3073 if test x${default_ld} != x; then
3074 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3075 fi
3076 ;;
3077 yes)
3078 ;;
3079 no)
3080 if test x${ENABLE_GOLD} != xyes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3082 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3083 fi
3084 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3085 ;;
3086 *)
3087 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3088 ;;
3089 esac
3090
3091 # PR gas/19109
3092 # Decide the default method for compressing debug sections.
3093 # Provide a configure time option to override our default.
3094 # Check whether --enable-compressed_debug_sections was given.
3095 if test "${enable_compressed_debug_sections+set}" = set; then :
3096 enableval=$enable_compressed_debug_sections;
3097 if test x"$enable_compressed_debug_sections" = xyes; then
3098 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3099 fi
3100
3101 else
3102 enable_compressed_debug_sections=
3103 fi
3104
3105
3106 # Configure extra directories which are host specific
3107
3108 case "${host}" in
3109 *-cygwin*)
3110 configdirs="$configdirs libtermcap" ;;
3111 esac
3112
3113 # A target can indicate whether a language isn't supported for some reason.
3114 # Only spaces may be used in this macro; not newlines or tabs.
3115 unsupported_languages=
3116
3117 # Remove more programs from consideration, based on the host or
3118 # target this usually means that a port of the program doesn't
3119 # exist yet.
3120
3121 case "${host}" in
3122 i[3456789]86-*-msdosdjgpp*)
3123 noconfigdirs="$noconfigdirs tcl tk itcl"
3124 ;;
3125 esac
3126
3127
3128 # Check whether --enable-libquadmath was given.
3129 if test "${enable_libquadmath+set}" = set; then :
3130 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3131 else
3132 ENABLE_LIBQUADMATH=yes
3133 fi
3134
3135 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3136 noconfigdirs="$noconfigdirs target-libquadmath"
3137 fi
3138
3139
3140 # Check whether --enable-libquadmath-support was given.
3141 if test "${enable_libquadmath_support+set}" = set; then :
3142 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3143 else
3144 ENABLE_LIBQUADMATH_SUPPORT=yes
3145 fi
3146
3147 enable_libquadmath_support=
3148 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3149 enable_libquadmath_support=no
3150 fi
3151
3152
3153 # Check whether --enable-libada was given.
3154 if test "${enable_libada+set}" = set; then :
3155 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3156 else
3157 ENABLE_LIBADA=yes
3158 fi
3159
3160 if test "${ENABLE_LIBADA}" != "yes" ; then
3161 noconfigdirs="$noconfigdirs gnattools"
3162 fi
3163
3164 # Check whether --enable-libssp was given.
3165 if test "${enable_libssp+set}" = set; then :
3166 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3167 else
3168 ENABLE_LIBSSP=yes
3169 fi
3170
3171
3172 # Check whether --enable-libstdcxx was given.
3173 if test "${enable_libstdcxx+set}" = set; then :
3174 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3175 else
3176 ENABLE_LIBSTDCXX=default
3177 fi
3178
3179 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3180 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3181 fi
3182
3183 # If this is accelerator compiler and its target is intelmic we enable
3184 # target liboffloadmic by default. If this is compiler with offloading
3185 # for intelmic we enable host liboffloadmic by default. Otherwise
3186 # liboffloadmic is disabled by default.
3187 # Check whether --enable-liboffloadmic was given.
3188 if test "${enable_liboffloadmic+set}" = set; then :
3189 enableval=$enable_liboffloadmic; case "$enableval" in
3190 no | host | target)
3191 enable_liboffloadmic=$enableval ;;
3192 *)
3193 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3194 esac
3195 else
3196 if test x"$enable_as_accelerator_for" != x; then
3197 case "${target}" in
3198 *-intelmic-* | *-intelmicemul-*)
3199 enable_liboffloadmic=target
3200 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3201 ;;
3202 *)
3203 enable_liboffloadmic=no
3204 ;;
3205 esac
3206 else
3207 case "${enable_offload_targets}" in
3208 *-intelmic-* | *-intelmicemul-*)
3209 enable_liboffloadmic=host
3210 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3211 ;;
3212 *)
3213 enable_liboffloadmic=no
3214 ;;
3215 esac
3216 fi
3217 fi
3218
3219
3220
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x$enable_libgomp = x ; then
3223 case "${target}" in
3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3225 ;;
3226 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3227 ;;
3228 *-*-solaris2* | *-*-hpux11*)
3229 ;;
3230 *-*-darwin* | *-*-aix*)
3231 ;;
3232 nvptx*-*-* | amdgcn*-*-*)
3233 ;;
3234 *)
3235 noconfigdirs="$noconfigdirs target-libgomp"
3236 ;;
3237 esac
3238 fi
3239
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic; then
3242 if test x$enable_libatomic = x; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir=${srcdir}/libatomic; \
3246 . ${srcdir}/configure.tgt; \
3247 test -n "$UNSUPPORTED")
3248 then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs="$noconfigdirs target-libatomic"
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255 fi
3256 fi
3257 fi
3258
3259 # Disable liboffloadmic on unsupported systems.
3260 if test -d ${srcdir}/liboffloadmic; then
3261 if test x$enable_liboffloadmic != xno; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3263 $as_echo_n "checking for liboffloadmic support... " >&6; }
3264 if (srcdir=${srcdir}/liboffloadmic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-liboffloadmic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 fi
3275 fi
3276 fi
3277
3278 # Disable libitm on unsupported systems.
3279 if test -d ${srcdir}/libitm; then
3280 if test x$enable_libitm = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3282 $as_echo_n "checking for libitm support... " >&6; }
3283 if (srcdir=${srcdir}/libitm; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libitm"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3293 fi
3294 fi
3295 fi
3296
3297 # Disable libsanitizer on unsupported systems.
3298 if test -d ${srcdir}/libsanitizer; then
3299 if test x$enable_libsanitizer = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3301 $as_echo_n "checking for libsanitizer support... " >&6; }
3302 if (srcdir=${srcdir}/libsanitizer; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libsanitizer"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312 fi
3313 fi
3314 fi
3315
3316 # Disable libvtv on unsupported systems.
3317 if test -d ${srcdir}/libvtv; then
3318 if test x$enable_libvtv = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3320 $as_echo_n "checking for libvtv support... " >&6; }
3321 if (srcdir=${srcdir}/libvtv; \
3322 . ${srcdir}/configure.tgt; \
3323 test "$VTV_SUPPORTED" != "yes")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libvtv"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331 fi
3332 fi
3333 fi
3334
3335
3336 # Disable libhsail-rt on unsupported systems.
3337 if test -d ${srcdir}/libhsail-rt; then
3338 if test x$enable_libhsail_rt = x; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3340 $as_echo_n "checking for libhsail-rt support... " >&6; }
3341 if (srcdir=${srcdir}/libhsail-rt; \
3342 . ${srcdir}/configure.tgt; \
3343 test -n "$UNSUPPORTED")
3344 then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 unsupported_languages="$unsupported_languages brig"
3348 # This implicitly disables also target-libhsail-rt as it won't
3349 # get added to the build without BRIG FE.
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353 fi
3354 fi
3355 fi
3356
3357
3358 # Disable libquadmath for some systems.
3359 case "${target}" in
3360 avr-*-*)
3361 noconfigdirs="$noconfigdirs target-libquadmath"
3362 ;;
3363 # libquadmath is unused on AIX and libquadmath build process use of
3364 # LD_LIBRARY_PATH can break AIX bootstrap.
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libquadmath"
3367 ;;
3368 esac
3369
3370 # Disable libssp for some systems.
3371 case "${target}" in
3372 avr-*-*)
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3375 ;;
3376 bpf-*-*)
3377 noconfigdirs="$noconfigdirs target-libssp"
3378 ;;
3379 powerpc-*-aix* | rs6000-*-aix*)
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
3382 pru-*-*)
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3385 ;;
3386 rl78-*-*)
3387 # libssp uses a misaligned load to trigger a fault, but the RL78
3388 # doesn't fault for those - instead, it gives a build-time error
3389 # for explicit misaligned loads.
3390 noconfigdirs="$noconfigdirs target-libssp"
3391 ;;
3392 visium-*-*)
3393 # No hosted I/O support.
3394 noconfigdirs="$noconfigdirs target-libssp"
3395 ;;
3396 esac
3397
3398 # Disable libstdc++-v3 for some systems.
3399 # Allow user to override this if they pass --enable-libstdc++-v3
3400 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3401 case "${target}" in
3402 *-*-vxworks*)
3403 # VxWorks uses the Dinkumware C++ library.
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 amdgcn*-*-*)
3407 # Not ported/fails to build when using newlib.
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 ;;
3410 arm*-wince-pe*)
3411 # the C++ libraries don't build on top of CE's C libraries
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 ;;
3414 avr-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 ;;
3417 bpf-*-*)
3418 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3419 ;;
3420 ft32-*-*)
3421 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 ;;
3423 esac
3424 fi
3425
3426 # Disable C++ on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=c++.
3428 case ,${enable_languages}, in
3429 *,c++,*)
3430 ;;
3431 *)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages c++"
3435 ;;
3436 esac
3437 ;;
3438 esac
3439
3440 # Disable Objc on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=objc.
3442 case ,${enable_languages}, in
3443 *,objc,*)
3444 ;;
3445 *)
3446 case "${target}" in
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages objc"
3449 ;;
3450 esac
3451 ;;
3452 esac
3453
3454 # Disable D on systems where it is known to not work.
3455 # For testing, you can override this with --enable-languages=d.
3456 case ,${enable_languages}, in
3457 *,d,*)
3458 ;;
3459 *)
3460 case "${target}" in
3461 bpf-*-*)
3462 unsupported_languages="$unsupported_languages d"
3463 ;;
3464 esac
3465 ;;
3466 esac
3467
3468 # Disable libphobos on unsupported systems.
3469 # For testing, you can override this with --enable-libphobos.
3470 if test -d ${srcdir}/libphobos; then
3471 if test x$enable_libphobos = x; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3473 $as_echo_n "checking for libphobos support... " >&6; }
3474 if (srcdir=${srcdir}/libphobos; \
3475 . ${srcdir}/configure.tgt; \
3476 test "$LIBPHOBOS_SUPPORTED" != "yes")
3477 then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 noconfigdirs="$noconfigdirs target-libphobos"
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483 $as_echo "yes" >&6; }
3484 fi
3485 fi
3486 fi
3487
3488 # Disable Fortran for some systems.
3489 case "${target}" in
3490 mmix-*-*)
3491 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3492 unsupported_languages="$unsupported_languages fortran"
3493 ;;
3494 bpf-*-*)
3495 unsupported_languages="$unsupported_languages fortran"
3496 ;;
3497 esac
3498
3499 # Disable libffi for some systems.
3500 case "${target}" in
3501 powerpc-*-darwin*)
3502 ;;
3503 i[3456789]86-*-darwin*)
3504 ;;
3505 x86_64-*-darwin[912]*)
3506 ;;
3507 *-*-darwin*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-netware*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-phoenix*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-rtems*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 *-*-tpf*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 *-*-uclinux*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 *-*-vxworks*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 aarch64*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 alpha*-*-*vms*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 arm*-*-freebsd*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 arm-wince-pe)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 arm*-*-symbianelf*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3542 ;;
3543 bpf-*-*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 cris-*-* | crisv32-*-*)
3547 case "${target}" in
3548 *-*-linux*)
3549 ;;
3550 *) # See PR46792 regarding target-libffi.
3551 noconfigdirs="$noconfigdirs target-libffi";;
3552 esac
3553 ;;
3554 hppa*64*-*-hpux*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 hppa*-hp-hpux11*)
3558 ;;
3559 hppa*-*-hpux*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 ia64*-*-*vms*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 i[3456789]86-w64-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 i[3456789]86-*-mingw*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 x86_64-*-mingw*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 mmix-*-*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577 powerpc-*-aix*)
3578 ;;
3579 rs6000-*-aix*)
3580 ;;
3581 ft32-*-*)
3582 noconfigdirs="$noconfigdirs target-libffi"
3583 ;;
3584 *-*-lynxos*)
3585 noconfigdirs="$noconfigdirs target-libffi"
3586 ;;
3587 esac
3588
3589 # Disable the go frontend on systems where it is known to not work. Please keep
3590 # this in sync with contrib/config-list.mk.
3591 case "${target}" in
3592 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3593 unsupported_languages="$unsupported_languages go"
3594 ;;
3595 esac
3596
3597 # Only allow gdbserver on some systems.
3598 if test -d ${srcdir}/gdbserver; then
3599 if test x$enable_gdbserver = x; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3601 $as_echo_n "checking for gdbserver support... " >&6; }
3602 if (srcdir=${srcdir}/gdbserver; \
3603 . ${srcdir}/configure.srv; \
3604 test -n "$UNSUPPORTED")
3605 then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 noconfigdirs="$noconfigdirs gdbserver"
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 $as_echo "yes" >&6; }
3612 fi
3613 fi
3614 fi
3615
3616 # Disable libgo for some systems where it is known to not work.
3617 # For testing, you can easily override this with --enable-libgo.
3618 if test x$enable_libgo = x; then
3619 case "${target}" in
3620 *-*-darwin*)
3621 # PR 46986
3622 noconfigdirs="$noconfigdirs target-libgo"
3623 ;;
3624 *-*-cygwin* | *-*-mingw*)
3625 noconfigdirs="$noconfigdirs target-libgo"
3626 ;;
3627 bpf-*-*)
3628 noconfigdirs="$noconfigdirs target-libgo"
3629 ;;
3630 esac
3631 fi
3632
3633 # Default libgloss CPU subdirectory.
3634 libgloss_dir="$target_cpu"
3635
3636 case "${target}" in
3637 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3638 libgloss_dir=wince
3639 ;;
3640 aarch64*-*-* )
3641 libgloss_dir=aarch64
3642 ;;
3643 arm*-*-*)
3644 libgloss_dir=arm
3645 ;;
3646 cris-*-* | crisv32-*-*)
3647 libgloss_dir=cris
3648 ;;
3649 hppa*-*-*)
3650 libgloss_dir=pa
3651 ;;
3652 i[3456789]86-*-*)
3653 libgloss_dir=i386
3654 ;;
3655 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3656 libgloss_dir=m68hc11
3657 ;;
3658 m68*-*-* | fido-*-*)
3659 libgloss_dir=m68k
3660 ;;
3661 mips*-*-*)
3662 libgloss_dir=mips
3663 ;;
3664 powerpc*-*-*)
3665 libgloss_dir=rs6000
3666 ;;
3667 pru-*-*)
3668 libgloss_dir=pru
3669 ;;
3670 sparc*-*-*)
3671 libgloss_dir=sparc
3672 ;;
3673 esac
3674
3675 # Disable newlib and libgloss for various target OSes.
3676 case "${target}" in
3677 alpha*-dec-osf*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 i[3456789]86-*-linux*)
3681 # This section makes it possible to build newlib natively on linux.
3682 # If we are using a cross compiler then don't configure newlib.
3683 if test x${is_cross_compiler} != xno ; then
3684 noconfigdirs="$noconfigdirs target-newlib"
3685 fi
3686 noconfigdirs="$noconfigdirs target-libgloss"
3687 # If we are not using a cross compiler, do configure newlib.
3688 # Note however, that newlib will only be configured in this situation
3689 # if the --with-newlib option has been given, because otherwise
3690 # 'target-newlib' will appear in skipdirs.
3691 ;;
3692 i[3456789]86-*-rdos*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 sparc-*-sunos4*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 bpf-*-*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
3704 *-*-aix*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 ;;
3707 *-*-beos*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-chorusos)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-dragonfly*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-freebsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-lynxos*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-mingw*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-netbsd*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 *-*-netware*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 *-*-tpf*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 *-*-uclinux*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 ;;
3740 *-*-vxworks*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3742 ;;
3743 esac
3744
3745 case "${target}" in
3746 *-*-chorusos)
3747 ;;
3748 aarch64-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3751 ;;
3752 amdgcn*-*-*)
3753 ;;
3754 arm-*-darwin*)
3755 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3757 ;;
3758 powerpc-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3761 ;;
3762 i[3456789]86-*-darwin*)
3763 noconfigdirs="$noconfigdirs ld gprof"
3764 noconfigdirs="$noconfigdirs sim target-rda"
3765 ;;
3766 x86_64-*-darwin[912]*)
3767 noconfigdirs="$noconfigdirs ld gas gprof"
3768 noconfigdirs="$noconfigdirs sim target-rda"
3769 ;;
3770 *-*-darwin*)
3771 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3772 noconfigdirs="$noconfigdirs sim target-rda"
3773 ;;
3774 *-*-dragonfly*)
3775 ;;
3776 *-*-freebsd*)
3777 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3778 && ! test -d ${srcdir}/gmp \
3779 && test -f /usr/local/include/gmp.h; then
3780 with_gmp=/usr/local
3781 fi
3782 ;;
3783 *-*-kaos*)
3784 # Remove unsupported stuff on all kaOS configurations.
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
3787 *-*-netbsd*)
3788 ;;
3789 *-*-netware*)
3790 ;;
3791 *-*-phoenix*)
3792 noconfigdirs="$noconfigdirs target-libgloss"
3793 ;;
3794 *-*-rtems*)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3796 ;;
3797 # The tpf target doesn't support gdb yet.
3798 *-*-tpf*)
3799 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3800 ;;
3801 *-*-uclinux*)
3802 noconfigdirs="$noconfigdirs target-rda"
3803 ;;
3804 *-*-vxworks*)
3805 ;;
3806 alpha*-dec-osf*)
3807 # ld works, but does not support shared libraries.
3808 # gas doesn't generate exception information.
3809 noconfigdirs="$noconfigdirs gas ld"
3810 ;;
3811 alpha*-*-*vms*)
3812 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3813 ;;
3814 alpha*-*-*)
3815 # newlib is not 64 bit ready
3816 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3817 ;;
3818 bpf-*-*)
3819 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3820 ;;
3821 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3822 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3823 ;;
3824 arc*-*-*)
3825 noconfigdirs="$noconfigdirs sim"
3826 ;;
3827 arm-*-pe*)
3828 noconfigdirs="$noconfigdirs target-libgloss"
3829 ;;
3830 arm-*-riscix*)
3831 noconfigdirs="$noconfigdirs ld target-libgloss"
3832 ;;
3833 avr-*-*)
3834 if test x${with_avrlibc} != xno; then
3835 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3836 fi
3837 ;;
3838 c4x-*-* | tic4x-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 ;;
3841 tic54x-*-*)
3842 noconfigdirs="$noconfigdirs target-libgloss gdb"
3843 ;;
3844 d10v-*-*)
3845 noconfigdirs="$noconfigdirs target-libgloss"
3846 ;;
3847 d30v-*-*)
3848 noconfigdirs="$noconfigdirs gdb"
3849 ;;
3850 fr30-*-elf*)
3851 noconfigdirs="$noconfigdirs gdb"
3852 ;;
3853 ft32-*-*)
3854 noconfigdirs="$noconfigdirs target-rda gprof"
3855 ;;
3856 moxie-*-*)
3857 noconfigdirs="$noconfigdirs"
3858 ;;
3859 h8300*-*-*)
3860 noconfigdirs="$noconfigdirs target-libgloss"
3861 ;;
3862 h8500-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss"
3864 ;;
3865 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3866 ;;
3867 hppa*64*-*-hpux*)
3868 noconfigdirs="$noconfigdirs gdb"
3869 ;;
3870 hppa*-*-hpux11*)
3871 noconfigdirs="$noconfigdirs gdb ld"
3872 ;;
3873 hppa*64*-*-linux*)
3874 ;;
3875 hppa*-*-linux*)
3876 ;;
3877 hppa*-*-*elf* | \
3878 hppa*-*-lites* | \
3879 hppa*-*-openbsd* | \
3880 hppa*64*-*-*)
3881 ;;
3882 hppa*-*-pro*)
3883 ;;
3884 hppa*-*-*)
3885 noconfigdirs="$noconfigdirs ld"
3886 ;;
3887 i960-*-*)
3888 noconfigdirs="$noconfigdirs gdb"
3889 ;;
3890 ia64*-*-elf*)
3891 # No gdb support yet.
3892 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3893 ;;
3894 ia64*-**-hpux*)
3895 # No ld support yet.
3896 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3897 ;;
3898 ia64*-*-*vms*)
3899 # No ld support yet.
3900 noconfigdirs="$noconfigdirs libgui itcl ld"
3901 ;;
3902 i[3456789]86-w64-mingw*)
3903 ;;
3904 i[3456789]86-*-mingw*)
3905 target_configdirs="$target_configdirs target-winsup"
3906 ;;
3907 *-*-cygwin*)
3908 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3909 noconfigdirs="$noconfigdirs target-libgloss"
3910 # always build newlib if winsup directory is present.
3911 if test -d "$srcdir/winsup/cygwin"; then
3912 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 elif test -d "$srcdir/newlib"; then
3914 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3915 fi
3916 ;;
3917 i[3456789]86-*-pe)
3918 noconfigdirs="$noconfigdirs target-libgloss"
3919 ;;
3920 i[3456789]86-*-sco3.2v5*)
3921 # The linker does not yet know about weak symbols in COFF,
3922 # and is not configured to handle mixed ELF and COFF.
3923 noconfigdirs="$noconfigdirs ld target-libgloss"
3924 ;;
3925 i[3456789]86-*-sco*)
3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
3927 ;;
3928 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3929 noconfigdirs="$noconfigdirs target-libgloss"
3930 ;;
3931 i[3456789]86-*-sysv4*)
3932 noconfigdirs="$noconfigdirs target-libgloss"
3933 ;;
3934 i[3456789]86-*-beos*)
3935 noconfigdirs="$noconfigdirs gdb"
3936 ;;
3937 i[3456789]86-*-rdos*)
3938 noconfigdirs="$noconfigdirs gdb"
3939 ;;
3940 mmix-*-*)
3941 noconfigdirs="$noconfigdirs gdb"
3942 ;;
3943 mt-*-*)
3944 noconfigdirs="$noconfigdirs sim"
3945 ;;
3946 nfp-*-*)
3947 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3948 noconfigdirs="$noconfigdirs $target_libraries"
3949 ;;
3950 pdp11-*-*)
3951 noconfigdirs="$noconfigdirs gdb gprof"
3952 ;;
3953 powerpc-*-aix*)
3954 # copied from rs6000-*-* entry
3955 noconfigdirs="$noconfigdirs gprof"
3956 ;;
3957 powerpc*-*-winnt* | powerpc*-*-pe*)
3958 target_configdirs="$target_configdirs target-winsup"
3959 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3960 # always build newlib.
3961 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3962 ;;
3963 # This is temporary until we can link against shared libraries
3964 powerpcle-*-solaris*)
3965 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3966 ;;
3967 powerpc-*-beos*)
3968 noconfigdirs="$noconfigdirs gdb"
3969 ;;
3970 rs6000-*-lynxos*)
3971 noconfigdirs="$noconfigdirs gprof"
3972 ;;
3973 rs6000-*-aix*)
3974 noconfigdirs="$noconfigdirs gprof"
3975 ;;
3976 rs6000-*-*)
3977 noconfigdirs="$noconfigdirs gprof"
3978 ;;
3979 m68k-apollo-*)
3980 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3981 ;;
3982 microblaze*)
3983 noconfigdirs="$noconfigdirs gprof"
3984 ;;
3985 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3986 if test x$with_newlib = xyes; then
3987 noconfigdirs="$noconfigdirs gprof"
3988 fi
3989 ;;
3990 mips*-*-irix5*)
3991 noconfigdirs="$noconfigdirs gprof target-libgloss"
3992 ;;
3993 mips*-*-irix6*)
3994 noconfigdirs="$noconfigdirs gprof target-libgloss"
3995 ;;
3996 mips*-*-bsd*)
3997 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3998 ;;
3999 mips*-*-linux*)
4000 ;;
4001 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4002 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4003 noconfigdirs="$noconfigdirs ld gas gprof"
4004 ;;
4005 mips*-*-*)
4006 noconfigdirs="$noconfigdirs gprof"
4007 ;;
4008 nvptx*-*-*)
4009 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4010 ;;
4011 sh-*-*)
4012 case "${target}" in
4013 sh*-*-elf)
4014 ;;
4015 *)
4016 noconfigdirs="$noconfigdirs target-libgloss" ;;
4017 esac
4018 ;;
4019 sparc-*-sunos4*)
4020 if test x${is_cross_compiler} = xno ; then
4021 use_gnu_ld=no
4022 fi
4023 ;;
4024 tic6x-*-*)
4025 noconfigdirs="$noconfigdirs sim"
4026 ;;
4027 tilepro*-*-* | tilegx*-*-*)
4028 noconfigdirs="$noconfigdirs sim"
4029 ;;
4030 v810-*-*)
4031 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4032 ;;
4033 vax-*-*)
4034 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4035 ;;
4036 wasm32-*-*)
4037 noconfigdirs="$noconfigdirs ld"
4038 ;;
4039 esac
4040
4041 # If we aren't building newlib, then don't build libgloss, since libgloss
4042 # depends upon some newlib header files.
4043 case "${noconfigdirs}" in
4044 *target-libgloss*) ;;
4045 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4046 esac
4047
4048 # Work in distributions that contain no compiler tools, like Autoconf.
4049 host_makefile_frag=/dev/null
4050 if test -d ${srcdir}/config ; then
4051 case "${host}" in
4052 i[3456789]86-*-msdosdjgpp*)
4053 host_makefile_frag="config/mh-djgpp"
4054 ;;
4055 *-cygwin*)
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4058 $as_echo_n "checking to see if cat works as expected... " >&6; }
4059 echo a >cygwin-cat-check
4060 if test `cat cygwin-cat-check` = a ; then
4061 rm cygwin-cat-check
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065 rm cygwin-cat-check
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 as_fn_error $? "The cat command does not ignore carriage return characters.
4069 Please either mount the build directory in binary mode or run the following
4070 commands before running any configure script:
4071 set -o igncr
4072 export SHELLOPTS
4073 " "$LINENO" 5
4074 fi
4075
4076 host_makefile_frag="config/mh-cygwin"
4077 ;;
4078 *-mingw*)
4079 host_makefile_frag="config/mh-mingw"
4080 ;;
4081 alpha*-linux*)
4082 host_makefile_frag="config/mh-alpha-linux"
4083 ;;
4084 hppa*-hp-hpux10*)
4085 host_makefile_frag="config/mh-pa-hpux10"
4086 ;;
4087 hppa*-hp-hpux*)
4088 host_makefile_frag="config/mh-pa"
4089 ;;
4090 hppa*-*)
4091 host_makefile_frag="config/mh-pa"
4092 ;;
4093 *-*-darwin*)
4094 host_makefile_frag="config/mh-darwin"
4095 ;;
4096 powerpc-*-aix*)
4097 host_makefile_frag="config/mh-ppc-aix"
4098 ;;
4099 rs6000-*-aix*)
4100 host_makefile_frag="config/mh-ppc-aix"
4101 ;;
4102 esac
4103 fi
4104
4105 if test "${build}" != "${host}" ; then
4106 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4107 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4108 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4109 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4110 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4111 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4112 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4113 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4114 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4115 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4116 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4117 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4118 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4119 else
4120 AR_FOR_BUILD="\$(AR)"
4121 AS_FOR_BUILD="\$(AS)"
4122 CC_FOR_BUILD="\$(CC)"
4123 CXX_FOR_BUILD="\$(CXX)"
4124 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4125 GOC_FOR_BUILD="\$(GOC)"
4126 GDC_FOR_BUILD="\$(GDC)"
4127 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4128 LD_FOR_BUILD="\$(LD)"
4129 NM_FOR_BUILD="\$(NM)"
4130 RANLIB_FOR_BUILD="\$(RANLIB)"
4131 WINDRES_FOR_BUILD="\$(WINDRES)"
4132 WINDMC_FOR_BUILD="\$(WINDMC)"
4133 fi
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}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_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217 if test "x$ac_ct_CC" = x; then
4218 CC=""
4219 else
4220 case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4227 fi
4228 else
4229 CC="$ac_cv_prog_CC"
4230 fi
4231
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 fi
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 ac_prog_rejected=no
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected=yes
4294 continue
4295 fi
4296 ac_cv_prog_CC="cc"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300 done
4301 done
4302 IFS=$as_save_IFS
4303
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy $ac_cv_prog_CC
4307 shift
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4312 shift
4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4314 fi
4315 fi
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 fi
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in cl.exe
4332 do
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 test -n "$CC" && break
4371 done
4372 fi
4373 if test -z "$CC"; then
4374 ac_ct_CC=$CC
4375 for ac_prog in cl.exe
4376 do
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414 test -n "$ac_ct_CC" && break
4415 done
4416
4417 if test "x$ac_ct_CC" = x; then
4418 CC=""
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 CC=$ac_ct_CC
4427 fi
4428 fi
4429
4430 fi
4431
4432
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4437
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 set X $ac_compile
4441 ac_compiler=$2
4442 for ac_option in --version -v -V -qversion; do
4443 { { ac_try="$ac_compiler $ac_option >&5"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 ac_status=$?
4452 if test -s conftest.err; then
4453 sed '10a\
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4457 fi
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4461 done
4462
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4478 # of exeext.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4482
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4485
4486 ac_rmfiles=
4487 for ac_file in $ac_files
4488 do
4489 case $ac_file in
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4492 esac
4493 done
4494 rm -f $ac_rmfiles
4495
4496 if { { ac_try="$ac_link_default"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4511 # Autoconf.
4512 for ac_file in $ac_files ''
4513 do
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4517 ;;
4518 [ab].out )
4519 # We found the default executable, but exeext='' is most
4520 # certainly right.
4521 break;;
4522 *.* )
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4524 then :; else
4525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 fi
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4531 # actually working.
4532 break;;
4533 * )
4534 break;;
4535 esac
4536 done
4537 test "$ac_cv_exeext" = no && ac_cv_exeext=
4538
4539 else
4540 ac_file=''
4541 fi
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error 77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext=$ac_cv_exeext
4561
4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4563 ac_clean_files=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 # `rm'.
4581 for ac_file in conftest.exe conftest conftest.*; do
4582 test -f "$ac_file" || continue
4583 case $ac_file in
4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 break;;
4587 * ) break;;
4588 esac
4589 done
4590 else
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5; }
4595 fi
4596 rm -f conftest conftest$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4599
4600 rm -f conftest.$ac_ext
4601 EXEEXT=$ac_cv_exeext
4602 ac_exeext=$EXEEXT
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <stdio.h>
4606 int
4607 main ()
4608 {
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 ac_clean_files="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4644 cross_compiling=no
4645 else
4646 if test "$cross_compiling" = maybe; then
4647 cross_compiling=yes
4648 else
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $? "cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5; }
4654 fi
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4659
4660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4661 ac_clean_files=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if ${ac_cv_objext+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main ()
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try="$ac_compile"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4687 ac_status=$?
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4692 case $ac_file in
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4695 break;;
4696 esac
4697 done
4698 else
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files: cannot compile
4705 See \`config.log' for more details" "$LINENO" 5; }
4706 fi
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4712 ac_objext=$OBJEXT
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if ${ac_cv_c_compiler_gnu+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724 #ifndef __GNUC__
4725 choke me
4726 #endif
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_compiler_gnu=yes
4734 else
4735 ac_compiler_gnu=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4744 GCC=yes
4745 else
4746 GCC=
4747 fi
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if ${ac_cv_prog_cc_g+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4757 ac_cv_prog_cc_g=no
4758 CFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_g=yes
4772 else
4773 CFLAGS=""
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786
4787 else
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789 CFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_g=yes
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4817 CFLAGS="-g -O2"
4818 else
4819 CFLAGS="-g"
4820 fi
4821 else
4822 if test "$GCC" = yes; then
4823 CFLAGS="-O2"
4824 else
4825 CFLAGS=
4826 fi
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if ${ac_cv_prog_cc_c89+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_cv_prog_cc_c89=no
4834 ac_save_CC=$CC
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <stdarg.h>
4838 #include <stdio.h>
4839 struct stat;
4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4841 struct buf { int x; };
4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843 static char *e (p, i)
4844 char **p;
4845 int i;
4846 {
4847 return p[i];
4848 }
4849 static char *f (char * (*g) (char **, int), char **p, ...)
4850 {
4851 char *s;
4852 va_list v;
4853 va_start (v,p);
4854 s = g (p, va_arg (v,int));
4855 va_end (v);
4856 return s;
4857 }
4858
4859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4860 function prototypes and stuff, but not '\xHH' hex character constants.
4861 These don't provoke an error unfortunately, instead are silently treated
4862 as 'x'. The following induces an error, until -std is added to get
4863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4864 array size at least. It's necessary to write '\x00'==0 to get something
4865 that's true only with -std. */
4866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867
4868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869 inside strings and character constants. */
4870 #define FOO(x) 'x'
4871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872
4873 int test (int i, double x);
4874 struct s1 {int (*f) (int a);};
4875 struct s2 {int (*f) (double a);};
4876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4877 int argc;
4878 char **argv;
4879 int
4880 main ()
4881 {
4882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 do
4890 CC="$ac_save_CC $ac_arg"
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_cv_prog_cc_c89=$ac_arg
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext
4895 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 done
4897 rm -f conftest.$ac_ext
4898 CC=$ac_save_CC
4899
4900 fi
4901 # AC_CACHE_VAL
4902 case "x$ac_cv_prog_cc_c89" in
4903 x)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905 $as_echo "none needed" >&6; } ;;
4906 xno)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908 $as_echo "unsupported" >&6; } ;;
4909 *)
4910 CC="$CC $ac_cv_prog_cc_c89"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 esac
4914 if test "x$ac_cv_prog_cc_c89" != xno; then :
4915
4916 fi
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4925 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4926 if ${ac_cv_prog_cc_c99+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 ac_cv_prog_cc_c99=no
4930 ac_save_CC=$CC
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 #include <stdarg.h>
4934 #include <stdbool.h>
4935 #include <stdlib.h>
4936 #include <wchar.h>
4937 #include <stdio.h>
4938
4939 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4940 #define debug(...) fprintf (stderr, __VA_ARGS__)
4941 #define showlist(...) puts (#__VA_ARGS__)
4942 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4943 static void
4944 test_varargs_macros (void)
4945 {
4946 int x = 1234;
4947 int y = 5678;
4948 debug ("Flag");
4949 debug ("X = %d\n", x);
4950 showlist (The first, second, and third items.);
4951 report (x>y, "x is %d but y is %d", x, y);
4952 }
4953
4954 // Check long long types.
4955 #define BIG64 18446744073709551615ull
4956 #define BIG32 4294967295ul
4957 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4958 #if !BIG_OK
4959 your preprocessor is broken;
4960 #endif
4961 #if BIG_OK
4962 #else
4963 your preprocessor is broken;
4964 #endif
4965 static long long int bignum = -9223372036854775807LL;
4966 static unsigned long long int ubignum = BIG64;
4967
4968 struct incomplete_array
4969 {
4970 int datasize;
4971 double data[];
4972 };
4973
4974 struct named_init {
4975 int number;
4976 const wchar_t *name;
4977 double average;
4978 };
4979
4980 typedef const char *ccp;
4981
4982 static inline int
4983 test_restrict (ccp restrict text)
4984 {
4985 // See if C++-style comments work.
4986 // Iterate through items via the restricted pointer.
4987 // Also check for declarations in for loops.
4988 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4989 continue;
4990 return 0;
4991 }
4992
4993 // Check varargs and va_copy.
4994 static void
4995 test_varargs (const char *format, ...)
4996 {
4997 va_list args;
4998 va_start (args, format);
4999 va_list args_copy;
5000 va_copy (args_copy, args);
5001
5002 const char *str;
5003 int number;
5004 float fnumber;
5005
5006 while (*format)
5007 {
5008 switch (*format++)
5009 {
5010 case 's': // string
5011 str = va_arg (args_copy, const char *);
5012 break;
5013 case 'd': // int
5014 number = va_arg (args_copy, int);
5015 break;
5016 case 'f': // float
5017 fnumber = va_arg (args_copy, double);
5018 break;
5019 default:
5020 break;
5021 }
5022 }
5023 va_end (args_copy);
5024 va_end (args);
5025 }
5026
5027 int
5028 main ()
5029 {
5030
5031 // Check bool.
5032 _Bool success = false;
5033
5034 // Check restrict.
5035 if (test_restrict ("String literal") == 0)
5036 success = true;
5037 char *restrict newvar = "Another string";
5038
5039 // Check varargs.
5040 test_varargs ("s, d' f .", "string", 65, 34.234);
5041 test_varargs_macros ();
5042
5043 // Check flexible array members.
5044 struct incomplete_array *ia =
5045 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5046 ia->datasize = 10;
5047 for (int i = 0; i < ia->datasize; ++i)
5048 ia->data[i] = i * 1.234;
5049
5050 // Check named initializers.
5051 struct named_init ni = {
5052 .number = 34,
5053 .name = L"Test wide string",
5054 .average = 543.34343,
5055 };
5056
5057 ni.number = 58;
5058
5059 int dynamic_array[ni.number];
5060 dynamic_array[ni.number - 1] = 543;
5061
5062 // work around unused variable warnings
5063 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5064 || dynamic_array[ni.number - 1] != 543);
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5071 do
5072 CC="$ac_save_CC $ac_arg"
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_cv_prog_cc_c99=$ac_arg
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext
5077 test "x$ac_cv_prog_cc_c99" != "xno" && break
5078 done
5079 rm -f conftest.$ac_ext
5080 CC=$ac_save_CC
5081
5082 fi
5083 # AC_CACHE_VAL
5084 case "x$ac_cv_prog_cc_c99" in
5085 x)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5087 $as_echo "none needed" >&6; } ;;
5088 xno)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5090 $as_echo "unsupported" >&6; } ;;
5091 *)
5092 CC="$CC $ac_cv_prog_cc_c99"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5094 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5095 esac
5096 if test "x$ac_cv_prog_cc_c99" != xno; then :
5097
5098 fi
5099
5100
5101 ac_ext=cpp
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 if test -z "$CXX"; then
5107 if test -n "$CCC"; then
5108 CXX=$CCC
5109 else
5110 if test -n "$ac_tool_prefix"; then
5111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112 do
5113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_CXX+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$CXX"; then
5121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 CXX=$ac_cv_prog_CXX
5141 if test -n "$CXX"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5143 $as_echo "$CXX" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150 test -n "$CXX" && break
5151 done
5152 fi
5153 if test -z "$CXX"; then
5154 ac_ct_CXX=$CXX
5155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156 do
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$ac_ct_CXX"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_CXX="$ac_prog"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5185 if test -n "$ac_ct_CXX"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5187 $as_echo "$ac_ct_CXX" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 test -n "$ac_ct_CXX" && break
5195 done
5196
5197 if test "x$ac_ct_CXX" = x; then
5198 CXX="g++"
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5205 esac
5206 CXX=$ac_ct_CXX
5207 fi
5208 fi
5209
5210 fi
5211 fi
5212 # Provide some information about the compiler.
5213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5214 set X $ac_compile
5215 ac_compiler=$2
5216 for ac_option in --version -v -V -qversion; do
5217 { { ac_try="$ac_compiler $ac_option >&5"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 ac_status=$?
5226 if test -s conftest.err; then
5227 sed '10a\
5228 ... rest of stderr output deleted ...
5229 10q' conftest.err >conftest.er1
5230 cat conftest.er1 >&5
5231 fi
5232 rm -f conftest.er1 conftest.err
5233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234 test $ac_status = 0; }
5235 done
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5238 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5239 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244
5245 int
5246 main ()
5247 {
5248 #ifndef __GNUC__
5249 choke me
5250 #endif
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_cxx_try_compile "$LINENO"; then :
5257 ac_compiler_gnu=yes
5258 else
5259 ac_compiler_gnu=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5263
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5266 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5267 if test $ac_compiler_gnu = yes; then
5268 GXX=yes
5269 else
5270 GXX=
5271 fi
5272 ac_test_CXXFLAGS=${CXXFLAGS+set}
5273 ac_save_CXXFLAGS=$CXXFLAGS
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5275 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5276 if ${ac_cv_prog_cxx_g+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5280 ac_cxx_werror_flag=yes
5281 ac_cv_prog_cxx_g=no
5282 CXXFLAGS="-g"
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285
5286 int
5287 main ()
5288 {
5289
5290 ;
5291 return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_cxx_try_compile "$LINENO"; then :
5295 ac_cv_prog_cxx_g=yes
5296 else
5297 CXXFLAGS=""
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300
5301 int
5302 main ()
5303 {
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_cxx_try_compile "$LINENO"; then :
5310
5311 else
5312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5313 CXXFLAGS="-g"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316
5317 int
5318 main ()
5319 {
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_cxx_try_compile "$LINENO"; then :
5326 ac_cv_prog_cxx_g=yes
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5336 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5337 if test "$ac_test_CXXFLAGS" = set; then
5338 CXXFLAGS=$ac_save_CXXFLAGS
5339 elif test $ac_cv_prog_cxx_g = yes; then
5340 if test "$GXX" = yes; then
5341 CXXFLAGS="-g -O2"
5342 else
5343 CXXFLAGS="-g"
5344 fi
5345 else
5346 if test "$GXX" = yes; then
5347 CXXFLAGS="-O2"
5348 else
5349 CXXFLAGS=
5350 fi
5351 fi
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358
5359 # We must set the default linker to the linker used by gcc for the correct
5360 # operation of libtool. If LD is not defined and we are using gcc, try to
5361 # set the LD default to the ld used by gcc.
5362 if test -z "$LD"; then
5363 if test "$GCC" = yes; then
5364 case $build in
5365 *-*-mingw*)
5366 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5367 *)
5368 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5369 esac
5370 case $gcc_prog_ld in
5371 # Accept absolute paths.
5372 [\\/]* | [A-Za-z]:[\\/]*)
5373 LD="$gcc_prog_ld" ;;
5374 esac
5375 fi
5376 fi
5377
5378 # Check whether -static-libstdc++ -static-libgcc is supported.
5379 have_static_libs=no
5380 if test "$GCC" = yes; then
5381 saved_LDFLAGS="$LDFLAGS"
5382
5383 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5385 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5386 ac_ext=cpp
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5391
5392
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395
5396 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5397 #error -static-libstdc++ not implemented
5398 #endif
5399 int main() {}
5400 _ACEOF
5401 if ac_fn_cxx_try_link "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403 $as_echo "yes" >&6; }; have_static_libs=yes
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408 rm -f core conftest.err conftest.$ac_objext \
5409 conftest$ac_exeext conftest.$ac_ext
5410 ac_ext=c
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415
5416
5417 LDFLAGS="$saved_LDFLAGS"
5418 fi
5419
5420
5421
5422
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}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_GNATBIND+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$GNATBIND"; then
5432 ac_cv_prog_GNATBIND="$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_GNATBIND="${ac_tool_prefix}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 GNATBIND=$ac_cv_prog_GNATBIND
5452 if test -n "$GNATBIND"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5454 $as_echo "$GNATBIND" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 fi
5462 if test -z "$ac_cv_prog_GNATBIND"; then
5463 ac_ct_GNATBIND=$GNATBIND
5464 # Extract the first word of "gnatbind", so it can be a program name with args.
5465 set dummy gnatbind; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$ac_ct_GNATBIND"; then
5472 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5492 if test -n "$ac_ct_GNATBIND"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5494 $as_echo "$ac_ct_GNATBIND" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500 if test "x$ac_ct_GNATBIND" = x; then
5501 GNATBIND="no"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509 GNATBIND=$ac_ct_GNATBIND
5510 fi
5511 else
5512 GNATBIND="$ac_cv_prog_GNATBIND"
5513 fi
5514
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}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_GNATMAKE+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$GNATMAKE"; then
5524 ac_cv_prog_GNATMAKE="$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_GNATMAKE="${ac_tool_prefix}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 GNATMAKE=$ac_cv_prog_GNATMAKE
5544 if test -n "$GNATMAKE"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5546 $as_echo "$GNATMAKE" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 fi
5554 if test -z "$ac_cv_prog_GNATMAKE"; then
5555 ac_ct_GNATMAKE=$GNATMAKE
5556 # Extract the first word of "gnatmake", so it can be a program name with args.
5557 set dummy gnatmake; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$ac_ct_GNATMAKE"; then
5564 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577 done
5578 done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5584 if test -n "$ac_ct_GNATMAKE"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5586 $as_echo "$ac_ct_GNATMAKE" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592 if test "x$ac_ct_GNATMAKE" = x; then
5593 GNATMAKE="no"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 GNATMAKE=$ac_ct_GNATMAKE
5602 fi
5603 else
5604 GNATMAKE="$ac_cv_prog_GNATMAKE"
5605 fi
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5608 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5609 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 cat >conftest.adb <<EOF
5613 procedure conftest is begin null; end conftest;
5614 EOF
5615 acx_cv_cc_gcc_supports_ada=no
5616 # There is a bug in old released versions of GCC which causes the
5617 # driver to exit successfully when the appropriate language module
5618 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5619 # Therefore we must check for the error message as well as an
5620 # unsuccessful exit.
5621 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5622 # given a .adb file, but produce no object file. So we must check
5623 # if an object file was really produced to guard against this.
5624 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5625 if test x"$errors" = x && test -f conftest.$ac_objext; then
5626 acx_cv_cc_gcc_supports_ada=yes
5627 fi
5628 rm -f conftest.*
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5631 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5632
5633 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5634 have_gnat=yes
5635 else
5636 have_gnat=no
5637 fi
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5640 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5641 if ${gcc_cv_prog_cmp_skip+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 echo abfoo >t1
5645 echo cdfoo >t2
5646 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5647 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5648 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5649 :
5650 else
5651 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5652 fi
5653 fi
5654 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5655 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5656 :
5657 else
5658 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5659 fi
5660 fi
5661 rm t1 t2
5662
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5665 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5666 do_compare="$gcc_cv_prog_cmp_skip"
5667
5668
5669
5670 # Check whether --enable-bootstrap was given.
5671 if test "${enable_bootstrap+set}" = set; then :
5672 enableval=$enable_bootstrap;
5673 else
5674 enable_bootstrap=default
5675 fi
5676
5677
5678 # Issue errors and warnings for invalid/strange bootstrap combinations.
5679 if test -r $srcdir/gcc/configure; then
5680 have_compiler=yes
5681 else
5682 have_compiler=no
5683 fi
5684
5685 case "$have_compiler:$host:$target:$enable_bootstrap" in
5686 *:*:*:no) ;;
5687
5688 # Default behavior. Enable bootstrap if we have a compiler
5689 # and we are in a native configuration.
5690 yes:$build:$build:default)
5691 enable_bootstrap=yes ;;
5692
5693 *:*:*:default)
5694 enable_bootstrap=no ;;
5695
5696 # We have a compiler and we are in a native configuration, bootstrap is ok
5697 yes:$build:$build:yes)
5698 ;;
5699
5700 # Other configurations, but we have a compiler. Assume the user knows
5701 # what he's doing.
5702 yes:*:*:yes)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5704 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5705 ;;
5706
5707 # No compiler: if they passed --enable-bootstrap explicitly, fail
5708 no:*:*:yes)
5709 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5710
5711 # Fail if wrong command line
5712 *)
5713 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5714 ;;
5715 esac
5716
5717 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5718 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5719 # require C++11 (or higher).
5720 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5721 CXX="$CXX -std=c++11"
5722 elif test "$have_compiler" = yes; then
5723 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5724 ac_ext=cpp
5725 ac_cpp='$CXXCPP $CPPFLAGS'
5726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5729 ac_success=no
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5732 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5733 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738
5739
5740 // If the compiler admits that it is not ready for C++11, why torture it?
5741 // Hopefully, this will speed up the test.
5742
5743 #ifndef __cplusplus
5744
5745 #error "This is not a C++ compiler"
5746
5747 #elif __cplusplus < 201103L
5748
5749 #error "This is not a C++11 compiler"
5750
5751 #else
5752
5753 namespace cxx11
5754 {
5755
5756 namespace test_static_assert
5757 {
5758
5759 template <typename T>
5760 struct check
5761 {
5762 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5763 };
5764
5765 }
5766
5767 namespace test_final_override
5768 {
5769
5770 struct Base
5771 {
5772 virtual ~Base() {}
5773 virtual void f() {}
5774 };
5775
5776 struct Derived : public Base
5777 {
5778 virtual ~Derived() override {}
5779 virtual void f() override {}
5780 };
5781
5782 }
5783
5784 namespace test_double_right_angle_brackets
5785 {
5786
5787 template < typename T >
5788 struct check {};
5789
5790 typedef check<void> single_type;
5791 typedef check<check<void>> double_type;
5792 typedef check<check<check<void>>> triple_type;
5793 typedef check<check<check<check<void>>>> quadruple_type;
5794
5795 }
5796
5797 namespace test_decltype
5798 {
5799
5800 int
5801 f()
5802 {
5803 int a = 1;
5804 decltype(a) b = 2;
5805 return a + b;
5806 }
5807
5808 }
5809
5810 namespace test_type_deduction
5811 {
5812
5813 template < typename T1, typename T2 >
5814 struct is_same
5815 {
5816 static const bool value = false;
5817 };
5818
5819 template < typename T >
5820 struct is_same<T, T>
5821 {
5822 static const bool value = true;
5823 };
5824
5825 template < typename T1, typename T2 >
5826 auto
5827 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5828 {
5829 return a1 + a2;
5830 }
5831
5832 int
5833 test(const int c, volatile int v)
5834 {
5835 static_assert(is_same<int, decltype(0)>::value == true, "");
5836 static_assert(is_same<int, decltype(c)>::value == false, "");
5837 static_assert(is_same<int, decltype(v)>::value == false, "");
5838 auto ac = c;
5839 auto av = v;
5840 auto sumi = ac + av + 'x';
5841 auto sumf = ac + av + 1.0;
5842 static_assert(is_same<int, decltype(ac)>::value == true, "");
5843 static_assert(is_same<int, decltype(av)>::value == true, "");
5844 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5845 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5846 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5847 return (sumf > 0.0) ? sumi : add(c, v);
5848 }
5849
5850 }
5851
5852 namespace test_noexcept
5853 {
5854
5855 int f() { return 0; }
5856 int g() noexcept { return 0; }
5857
5858 static_assert(noexcept(f()) == false, "");
5859 static_assert(noexcept(g()) == true, "");
5860
5861 }
5862
5863 namespace test_constexpr
5864 {
5865
5866 template < typename CharT >
5867 unsigned long constexpr
5868 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5869 {
5870 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5871 }
5872
5873 template < typename CharT >
5874 unsigned long constexpr
5875 strlen_c(const CharT *const s) noexcept
5876 {
5877 return strlen_c_r(s, 0UL);
5878 }
5879
5880 static_assert(strlen_c("") == 0UL, "");
5881 static_assert(strlen_c("1") == 1UL, "");
5882 static_assert(strlen_c("example") == 7UL, "");
5883 static_assert(strlen_c("another\0example") == 7UL, "");
5884
5885 }
5886
5887 namespace test_rvalue_references
5888 {
5889
5890 template < int N >
5891 struct answer
5892 {
5893 static constexpr int value = N;
5894 };
5895
5896 answer<1> f(int&) { return answer<1>(); }
5897 answer<2> f(const int&) { return answer<2>(); }
5898 answer<3> f(int&&) { return answer<3>(); }
5899
5900 void
5901 test()
5902 {
5903 int i = 0;
5904 const int c = 0;
5905 static_assert(decltype(f(i))::value == 1, "");
5906 static_assert(decltype(f(c))::value == 2, "");
5907 static_assert(decltype(f(0))::value == 3, "");
5908 }
5909
5910 }
5911
5912 namespace test_uniform_initialization
5913 {
5914
5915 struct test
5916 {
5917 static const int zero {};
5918 static const int one {1};
5919 };
5920
5921 static_assert(test::zero == 0, "");
5922 static_assert(test::one == 1, "");
5923
5924 }
5925
5926 namespace test_lambdas
5927 {
5928
5929 void
5930 test1()
5931 {
5932 auto lambda1 = [](){};
5933 auto lambda2 = lambda1;
5934 lambda1();
5935 lambda2();
5936 }
5937
5938 int
5939 test2()
5940 {
5941 auto a = [](int i, int j){ return i + j; }(1, 2);
5942 auto b = []() -> int { return '0'; }();
5943 auto c = [=](){ return a + b; }();
5944 auto d = [&](){ return c; }();
5945 auto e = [a, &b](int x) mutable {
5946 const auto identity = [](int y){ return y; };
5947 for (auto i = 0; i < a; ++i)
5948 a += b--;
5949 return x + identity(a + b);
5950 }(0);
5951 return a + b + c + d + e;
5952 }
5953
5954 int
5955 test3()
5956 {
5957 const auto nullary = [](){ return 0; };
5958 const auto unary = [](int x){ return x; };
5959 using nullary_t = decltype(nullary);
5960 using unary_t = decltype(unary);
5961 const auto higher1st = [](nullary_t f){ return f(); };
5962 const auto higher2nd = [unary](nullary_t f1){
5963 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5964 };
5965 return higher1st(nullary) + higher2nd(nullary)(unary);
5966 }
5967
5968 }
5969
5970 namespace test_variadic_templates
5971 {
5972
5973 template <int...>
5974 struct sum;
5975
5976 template <int N0, int... N1toN>
5977 struct sum<N0, N1toN...>
5978 {
5979 static constexpr auto value = N0 + sum<N1toN...>::value;
5980 };
5981
5982 template <>
5983 struct sum<>
5984 {
5985 static constexpr auto value = 0;
5986 };
5987
5988 static_assert(sum<>::value == 0, "");
5989 static_assert(sum<1>::value == 1, "");
5990 static_assert(sum<23>::value == 23, "");
5991 static_assert(sum<1, 2>::value == 3, "");
5992 static_assert(sum<5, 5, 11>::value == 21, "");
5993 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5994
5995 }
5996
5997 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5998 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5999 // because of this.
6000 namespace test_template_alias_sfinae
6001 {
6002
6003 struct foo {};
6004
6005 template<typename T>
6006 using member = typename T::member_type;
6007
6008 template<typename T>
6009 void func(...) {}
6010
6011 template<typename T>
6012 void func(member<T>*) {}
6013
6014 void test();
6015
6016 void test() { func<foo>(0); }
6017
6018 }
6019
6020 } // namespace cxx11
6021
6022 #endif // __cplusplus >= 201103L
6023
6024
6025
6026 _ACEOF
6027 if ac_fn_cxx_try_compile "$LINENO"; then :
6028 ax_cv_cxx_compile_cxx11=yes
6029 else
6030 ax_cv_cxx_compile_cxx11=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6035 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6036 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6037 ac_success=yes
6038 fi
6039
6040 if test x$ac_success = xno; then
6041 for alternative in ${ax_cxx_compile_alternatives}; do
6042 switch="-std=gnu++${alternative}"
6043 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6045 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6046 if eval \${$cachevar+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 ac_save_CXX="$CXX"
6050 CXX="$CXX $switch"
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053
6054
6055 // If the compiler admits that it is not ready for C++11, why torture it?
6056 // Hopefully, this will speed up the test.
6057
6058 #ifndef __cplusplus
6059
6060 #error "This is not a C++ compiler"
6061
6062 #elif __cplusplus < 201103L
6063
6064 #error "This is not a C++11 compiler"
6065
6066 #else
6067
6068 namespace cxx11
6069 {
6070
6071 namespace test_static_assert
6072 {
6073
6074 template <typename T>
6075 struct check
6076 {
6077 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6078 };
6079
6080 }
6081
6082 namespace test_final_override
6083 {
6084
6085 struct Base
6086 {
6087 virtual ~Base() {}
6088 virtual void f() {}
6089 };
6090
6091 struct Derived : public Base
6092 {
6093 virtual ~Derived() override {}
6094 virtual void f() override {}
6095 };
6096
6097 }
6098
6099 namespace test_double_right_angle_brackets
6100 {
6101
6102 template < typename T >
6103 struct check {};
6104
6105 typedef check<void> single_type;
6106 typedef check<check<void>> double_type;
6107 typedef check<check<check<void>>> triple_type;
6108 typedef check<check<check<check<void>>>> quadruple_type;
6109
6110 }
6111
6112 namespace test_decltype
6113 {
6114
6115 int
6116 f()
6117 {
6118 int a = 1;
6119 decltype(a) b = 2;
6120 return a + b;
6121 }
6122
6123 }
6124
6125 namespace test_type_deduction
6126 {
6127
6128 template < typename T1, typename T2 >
6129 struct is_same
6130 {
6131 static const bool value = false;
6132 };
6133
6134 template < typename T >
6135 struct is_same<T, T>
6136 {
6137 static const bool value = true;
6138 };
6139
6140 template < typename T1, typename T2 >
6141 auto
6142 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6143 {
6144 return a1 + a2;
6145 }
6146
6147 int
6148 test(const int c, volatile int v)
6149 {
6150 static_assert(is_same<int, decltype(0)>::value == true, "");
6151 static_assert(is_same<int, decltype(c)>::value == false, "");
6152 static_assert(is_same<int, decltype(v)>::value == false, "");
6153 auto ac = c;
6154 auto av = v;
6155 auto sumi = ac + av + 'x';
6156 auto sumf = ac + av + 1.0;
6157 static_assert(is_same<int, decltype(ac)>::value == true, "");
6158 static_assert(is_same<int, decltype(av)>::value == true, "");
6159 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6160 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6161 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6162 return (sumf > 0.0) ? sumi : add(c, v);
6163 }
6164
6165 }
6166
6167 namespace test_noexcept
6168 {
6169
6170 int f() { return 0; }
6171 int g() noexcept { return 0; }
6172
6173 static_assert(noexcept(f()) == false, "");
6174 static_assert(noexcept(g()) == true, "");
6175
6176 }
6177
6178 namespace test_constexpr
6179 {
6180
6181 template < typename CharT >
6182 unsigned long constexpr
6183 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6184 {
6185 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6186 }
6187
6188 template < typename CharT >
6189 unsigned long constexpr
6190 strlen_c(const CharT *const s) noexcept
6191 {
6192 return strlen_c_r(s, 0UL);
6193 }
6194
6195 static_assert(strlen_c("") == 0UL, "");
6196 static_assert(strlen_c("1") == 1UL, "");
6197 static_assert(strlen_c("example") == 7UL, "");
6198 static_assert(strlen_c("another\0example") == 7UL, "");
6199
6200 }
6201
6202 namespace test_rvalue_references
6203 {
6204
6205 template < int N >
6206 struct answer
6207 {
6208 static constexpr int value = N;
6209 };
6210
6211 answer<1> f(int&) { return answer<1>(); }
6212 answer<2> f(const int&) { return answer<2>(); }
6213 answer<3> f(int&&) { return answer<3>(); }
6214
6215 void
6216 test()
6217 {
6218 int i = 0;
6219 const int c = 0;
6220 static_assert(decltype(f(i))::value == 1, "");
6221 static_assert(decltype(f(c))::value == 2, "");
6222 static_assert(decltype(f(0))::value == 3, "");
6223 }
6224
6225 }
6226
6227 namespace test_uniform_initialization
6228 {
6229
6230 struct test
6231 {
6232 static const int zero {};
6233 static const int one {1};
6234 };
6235
6236 static_assert(test::zero == 0, "");
6237 static_assert(test::one == 1, "");
6238
6239 }
6240
6241 namespace test_lambdas
6242 {
6243
6244 void
6245 test1()
6246 {
6247 auto lambda1 = [](){};
6248 auto lambda2 = lambda1;
6249 lambda1();
6250 lambda2();
6251 }
6252
6253 int
6254 test2()
6255 {
6256 auto a = [](int i, int j){ return i + j; }(1, 2);
6257 auto b = []() -> int { return '0'; }();
6258 auto c = [=](){ return a + b; }();
6259 auto d = [&](){ return c; }();
6260 auto e = [a, &b](int x) mutable {
6261 const auto identity = [](int y){ return y; };
6262 for (auto i = 0; i < a; ++i)
6263 a += b--;
6264 return x + identity(a + b);
6265 }(0);
6266 return a + b + c + d + e;
6267 }
6268
6269 int
6270 test3()
6271 {
6272 const auto nullary = [](){ return 0; };
6273 const auto unary = [](int x){ return x; };
6274 using nullary_t = decltype(nullary);
6275 using unary_t = decltype(unary);
6276 const auto higher1st = [](nullary_t f){ return f(); };
6277 const auto higher2nd = [unary](nullary_t f1){
6278 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6279 };
6280 return higher1st(nullary) + higher2nd(nullary)(unary);
6281 }
6282
6283 }
6284
6285 namespace test_variadic_templates
6286 {
6287
6288 template <int...>
6289 struct sum;
6290
6291 template <int N0, int... N1toN>
6292 struct sum<N0, N1toN...>
6293 {
6294 static constexpr auto value = N0 + sum<N1toN...>::value;
6295 };
6296
6297 template <>
6298 struct sum<>
6299 {
6300 static constexpr auto value = 0;
6301 };
6302
6303 static_assert(sum<>::value == 0, "");
6304 static_assert(sum<1>::value == 1, "");
6305 static_assert(sum<23>::value == 23, "");
6306 static_assert(sum<1, 2>::value == 3, "");
6307 static_assert(sum<5, 5, 11>::value == 21, "");
6308 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6309
6310 }
6311
6312 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6313 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6314 // because of this.
6315 namespace test_template_alias_sfinae
6316 {
6317
6318 struct foo {};
6319
6320 template<typename T>
6321 using member = typename T::member_type;
6322
6323 template<typename T>
6324 void func(...) {}
6325
6326 template<typename T>
6327 void func(member<T>*) {}
6328
6329 void test();
6330
6331 void test() { func<foo>(0); }
6332
6333 }
6334
6335 } // namespace cxx11
6336
6337 #endif // __cplusplus >= 201103L
6338
6339
6340
6341 _ACEOF
6342 if ac_fn_cxx_try_compile "$LINENO"; then :
6343 eval $cachevar=yes
6344 else
6345 eval $cachevar=no
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 CXX="$ac_save_CXX"
6349 fi
6350 eval ac_res=\$$cachevar
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6352 $as_echo "$ac_res" >&6; }
6353 if eval test x\$$cachevar = xyes; then
6354 CXX="$CXX $switch"
6355 if test -n "$CXXCPP" ; then
6356 CXXCPP="$CXXCPP $switch"
6357 fi
6358 ac_success=yes
6359 break
6360 fi
6361 done
6362 fi
6363
6364 if test x$ac_success = xno; then
6365 for alternative in ${ax_cxx_compile_alternatives}; do
6366 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6367 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6369 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6370 if eval \${$cachevar+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 ac_save_CXX="$CXX"
6374 CXX="$CXX $switch"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377
6378
6379 // If the compiler admits that it is not ready for C++11, why torture it?
6380 // Hopefully, this will speed up the test.
6381
6382 #ifndef __cplusplus
6383
6384 #error "This is not a C++ compiler"
6385
6386 #elif __cplusplus < 201103L
6387
6388 #error "This is not a C++11 compiler"
6389
6390 #else
6391
6392 namespace cxx11
6393 {
6394
6395 namespace test_static_assert
6396 {
6397
6398 template <typename T>
6399 struct check
6400 {
6401 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6402 };
6403
6404 }
6405
6406 namespace test_final_override
6407 {
6408
6409 struct Base
6410 {
6411 virtual ~Base() {}
6412 virtual void f() {}
6413 };
6414
6415 struct Derived : public Base
6416 {
6417 virtual ~Derived() override {}
6418 virtual void f() override {}
6419 };
6420
6421 }
6422
6423 namespace test_double_right_angle_brackets
6424 {
6425
6426 template < typename T >
6427 struct check {};
6428
6429 typedef check<void> single_type;
6430 typedef check<check<void>> double_type;
6431 typedef check<check<check<void>>> triple_type;
6432 typedef check<check<check<check<void>>>> quadruple_type;
6433
6434 }
6435
6436 namespace test_decltype
6437 {
6438
6439 int
6440 f()
6441 {
6442 int a = 1;
6443 decltype(a) b = 2;
6444 return a + b;
6445 }
6446
6447 }
6448
6449 namespace test_type_deduction
6450 {
6451
6452 template < typename T1, typename T2 >
6453 struct is_same
6454 {
6455 static const bool value = false;
6456 };
6457
6458 template < typename T >
6459 struct is_same<T, T>
6460 {
6461 static const bool value = true;
6462 };
6463
6464 template < typename T1, typename T2 >
6465 auto
6466 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6467 {
6468 return a1 + a2;
6469 }
6470
6471 int
6472 test(const int c, volatile int v)
6473 {
6474 static_assert(is_same<int, decltype(0)>::value == true, "");
6475 static_assert(is_same<int, decltype(c)>::value == false, "");
6476 static_assert(is_same<int, decltype(v)>::value == false, "");
6477 auto ac = c;
6478 auto av = v;
6479 auto sumi = ac + av + 'x';
6480 auto sumf = ac + av + 1.0;
6481 static_assert(is_same<int, decltype(ac)>::value == true, "");
6482 static_assert(is_same<int, decltype(av)>::value == true, "");
6483 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6484 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6485 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6486 return (sumf > 0.0) ? sumi : add(c, v);
6487 }
6488
6489 }
6490
6491 namespace test_noexcept
6492 {
6493
6494 int f() { return 0; }
6495 int g() noexcept { return 0; }
6496
6497 static_assert(noexcept(f()) == false, "");
6498 static_assert(noexcept(g()) == true, "");
6499
6500 }
6501
6502 namespace test_constexpr
6503 {
6504
6505 template < typename CharT >
6506 unsigned long constexpr
6507 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6508 {
6509 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6510 }
6511
6512 template < typename CharT >
6513 unsigned long constexpr
6514 strlen_c(const CharT *const s) noexcept
6515 {
6516 return strlen_c_r(s, 0UL);
6517 }
6518
6519 static_assert(strlen_c("") == 0UL, "");
6520 static_assert(strlen_c("1") == 1UL, "");
6521 static_assert(strlen_c("example") == 7UL, "");
6522 static_assert(strlen_c("another\0example") == 7UL, "");
6523
6524 }
6525
6526 namespace test_rvalue_references
6527 {
6528
6529 template < int N >
6530 struct answer
6531 {
6532 static constexpr int value = N;
6533 };
6534
6535 answer<1> f(int&) { return answer<1>(); }
6536 answer<2> f(const int&) { return answer<2>(); }
6537 answer<3> f(int&&) { return answer<3>(); }
6538
6539 void
6540 test()
6541 {
6542 int i = 0;
6543 const int c = 0;
6544 static_assert(decltype(f(i))::value == 1, "");
6545 static_assert(decltype(f(c))::value == 2, "");
6546 static_assert(decltype(f(0))::value == 3, "");
6547 }
6548
6549 }
6550
6551 namespace test_uniform_initialization
6552 {
6553
6554 struct test
6555 {
6556 static const int zero {};
6557 static const int one {1};
6558 };
6559
6560 static_assert(test::zero == 0, "");
6561 static_assert(test::one == 1, "");
6562
6563 }
6564
6565 namespace test_lambdas
6566 {
6567
6568 void
6569 test1()
6570 {
6571 auto lambda1 = [](){};
6572 auto lambda2 = lambda1;
6573 lambda1();
6574 lambda2();
6575 }
6576
6577 int
6578 test2()
6579 {
6580 auto a = [](int i, int j){ return i + j; }(1, 2);
6581 auto b = []() -> int { return '0'; }();
6582 auto c = [=](){ return a + b; }();
6583 auto d = [&](){ return c; }();
6584 auto e = [a, &b](int x) mutable {
6585 const auto identity = [](int y){ return y; };
6586 for (auto i = 0; i < a; ++i)
6587 a += b--;
6588 return x + identity(a + b);
6589 }(0);
6590 return a + b + c + d + e;
6591 }
6592
6593 int
6594 test3()
6595 {
6596 const auto nullary = [](){ return 0; };
6597 const auto unary = [](int x){ return x; };
6598 using nullary_t = decltype(nullary);
6599 using unary_t = decltype(unary);
6600 const auto higher1st = [](nullary_t f){ return f(); };
6601 const auto higher2nd = [unary](nullary_t f1){
6602 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6603 };
6604 return higher1st(nullary) + higher2nd(nullary)(unary);
6605 }
6606
6607 }
6608
6609 namespace test_variadic_templates
6610 {
6611
6612 template <int...>
6613 struct sum;
6614
6615 template <int N0, int... N1toN>
6616 struct sum<N0, N1toN...>
6617 {
6618 static constexpr auto value = N0 + sum<N1toN...>::value;
6619 };
6620
6621 template <>
6622 struct sum<>
6623 {
6624 static constexpr auto value = 0;
6625 };
6626
6627 static_assert(sum<>::value == 0, "");
6628 static_assert(sum<1>::value == 1, "");
6629 static_assert(sum<23>::value == 23, "");
6630 static_assert(sum<1, 2>::value == 3, "");
6631 static_assert(sum<5, 5, 11>::value == 21, "");
6632 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6633
6634 }
6635
6636 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6637 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6638 // because of this.
6639 namespace test_template_alias_sfinae
6640 {
6641
6642 struct foo {};
6643
6644 template<typename T>
6645 using member = typename T::member_type;
6646
6647 template<typename T>
6648 void func(...) {}
6649
6650 template<typename T>
6651 void func(member<T>*) {}
6652
6653 void test();
6654
6655 void test() { func<foo>(0); }
6656
6657 }
6658
6659 } // namespace cxx11
6660
6661 #endif // __cplusplus >= 201103L
6662
6663
6664
6665 _ACEOF
6666 if ac_fn_cxx_try_compile "$LINENO"; then :
6667 eval $cachevar=yes
6668 else
6669 eval $cachevar=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 CXX="$ac_save_CXX"
6673 fi
6674 eval ac_res=\$$cachevar
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 if eval test x\$$cachevar = xyes; then
6678 CXX="$CXX $switch"
6679 if test -n "$CXXCPP" ; then
6680 CXXCPP="$CXXCPP $switch"
6681 fi
6682 ac_success=yes
6683 break
6684 fi
6685 done
6686 if test x$ac_success = xyes; then
6687 break
6688 fi
6689 done
6690 fi
6691
6692 ac_ext=c
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6699 if test x$ac_success = xno; then
6700 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6701 fi
6702 fi
6703 if test x$ac_success = xno; then
6704 HAVE_CXX11=0
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6706 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6707 else
6708 HAVE_CXX11=1
6709
6710 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6711
6712 fi
6713
6714
6715
6716 if test "${build}" != "${host}"; then
6717 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6718 ac_ext=cpp
6719 ac_cpp='$CXXCPP $CPPFLAGS'
6720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6723 ac_success=no
6724 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6725 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6726 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6727 CXX="$CXX_FOR_BUILD"
6728 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6729 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6731 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6732 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737
6738
6739 // If the compiler admits that it is not ready for C++11, why torture it?
6740 // Hopefully, this will speed up the test.
6741
6742 #ifndef __cplusplus
6743
6744 #error "This is not a C++ compiler"
6745
6746 #elif __cplusplus < 201103L
6747
6748 #error "This is not a C++11 compiler"
6749
6750 #else
6751
6752 namespace cxx11
6753 {
6754
6755 namespace test_static_assert
6756 {
6757
6758 template <typename T>
6759 struct check
6760 {
6761 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6762 };
6763
6764 }
6765
6766 namespace test_final_override
6767 {
6768
6769 struct Base
6770 {
6771 virtual ~Base() {}
6772 virtual void f() {}
6773 };
6774
6775 struct Derived : public Base
6776 {
6777 virtual ~Derived() override {}
6778 virtual void f() override {}
6779 };
6780
6781 }
6782
6783 namespace test_double_right_angle_brackets
6784 {
6785
6786 template < typename T >
6787 struct check {};
6788
6789 typedef check<void> single_type;
6790 typedef check<check<void>> double_type;
6791 typedef check<check<check<void>>> triple_type;
6792 typedef check<check<check<check<void>>>> quadruple_type;
6793
6794 }
6795
6796 namespace test_decltype
6797 {
6798
6799 int
6800 f()
6801 {
6802 int a = 1;
6803 decltype(a) b = 2;
6804 return a + b;
6805 }
6806
6807 }
6808
6809 namespace test_type_deduction
6810 {
6811
6812 template < typename T1, typename T2 >
6813 struct is_same
6814 {
6815 static const bool value = false;
6816 };
6817
6818 template < typename T >
6819 struct is_same<T, T>
6820 {
6821 static const bool value = true;
6822 };
6823
6824 template < typename T1, typename T2 >
6825 auto
6826 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6827 {
6828 return a1 + a2;
6829 }
6830
6831 int
6832 test(const int c, volatile int v)
6833 {
6834 static_assert(is_same<int, decltype(0)>::value == true, "");
6835 static_assert(is_same<int, decltype(c)>::value == false, "");
6836 static_assert(is_same<int, decltype(v)>::value == false, "");
6837 auto ac = c;
6838 auto av = v;
6839 auto sumi = ac + av + 'x';
6840 auto sumf = ac + av + 1.0;
6841 static_assert(is_same<int, decltype(ac)>::value == true, "");
6842 static_assert(is_same<int, decltype(av)>::value == true, "");
6843 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6844 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6845 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6846 return (sumf > 0.0) ? sumi : add(c, v);
6847 }
6848
6849 }
6850
6851 namespace test_noexcept
6852 {
6853
6854 int f() { return 0; }
6855 int g() noexcept { return 0; }
6856
6857 static_assert(noexcept(f()) == false, "");
6858 static_assert(noexcept(g()) == true, "");
6859
6860 }
6861
6862 namespace test_constexpr
6863 {
6864
6865 template < typename CharT >
6866 unsigned long constexpr
6867 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6868 {
6869 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6870 }
6871
6872 template < typename CharT >
6873 unsigned long constexpr
6874 strlen_c(const CharT *const s) noexcept
6875 {
6876 return strlen_c_r(s, 0UL);
6877 }
6878
6879 static_assert(strlen_c("") == 0UL, "");
6880 static_assert(strlen_c("1") == 1UL, "");
6881 static_assert(strlen_c("example") == 7UL, "");
6882 static_assert(strlen_c("another\0example") == 7UL, "");
6883
6884 }
6885
6886 namespace test_rvalue_references
6887 {
6888
6889 template < int N >
6890 struct answer
6891 {
6892 static constexpr int value = N;
6893 };
6894
6895 answer<1> f(int&) { return answer<1>(); }
6896 answer<2> f(const int&) { return answer<2>(); }
6897 answer<3> f(int&&) { return answer<3>(); }
6898
6899 void
6900 test()
6901 {
6902 int i = 0;
6903 const int c = 0;
6904 static_assert(decltype(f(i))::value == 1, "");
6905 static_assert(decltype(f(c))::value == 2, "");
6906 static_assert(decltype(f(0))::value == 3, "");
6907 }
6908
6909 }
6910
6911 namespace test_uniform_initialization
6912 {
6913
6914 struct test
6915 {
6916 static const int zero {};
6917 static const int one {1};
6918 };
6919
6920 static_assert(test::zero == 0, "");
6921 static_assert(test::one == 1, "");
6922
6923 }
6924
6925 namespace test_lambdas
6926 {
6927
6928 void
6929 test1()
6930 {
6931 auto lambda1 = [](){};
6932 auto lambda2 = lambda1;
6933 lambda1();
6934 lambda2();
6935 }
6936
6937 int
6938 test2()
6939 {
6940 auto a = [](int i, int j){ return i + j; }(1, 2);
6941 auto b = []() -> int { return '0'; }();
6942 auto c = [=](){ return a + b; }();
6943 auto d = [&](){ return c; }();
6944 auto e = [a, &b](int x) mutable {
6945 const auto identity = [](int y){ return y; };
6946 for (auto i = 0; i < a; ++i)
6947 a += b--;
6948 return x + identity(a + b);
6949 }(0);
6950 return a + b + c + d + e;
6951 }
6952
6953 int
6954 test3()
6955 {
6956 const auto nullary = [](){ return 0; };
6957 const auto unary = [](int x){ return x; };
6958 using nullary_t = decltype(nullary);
6959 using unary_t = decltype(unary);
6960 const auto higher1st = [](nullary_t f){ return f(); };
6961 const auto higher2nd = [unary](nullary_t f1){
6962 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6963 };
6964 return higher1st(nullary) + higher2nd(nullary)(unary);
6965 }
6966
6967 }
6968
6969 namespace test_variadic_templates
6970 {
6971
6972 template <int...>
6973 struct sum;
6974
6975 template <int N0, int... N1toN>
6976 struct sum<N0, N1toN...>
6977 {
6978 static constexpr auto value = N0 + sum<N1toN...>::value;
6979 };
6980
6981 template <>
6982 struct sum<>
6983 {
6984 static constexpr auto value = 0;
6985 };
6986
6987 static_assert(sum<>::value == 0, "");
6988 static_assert(sum<1>::value == 1, "");
6989 static_assert(sum<23>::value == 23, "");
6990 static_assert(sum<1, 2>::value == 3, "");
6991 static_assert(sum<5, 5, 11>::value == 21, "");
6992 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6993
6994 }
6995
6996 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6997 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6998 // because of this.
6999 namespace test_template_alias_sfinae
7000 {
7001
7002 struct foo {};
7003
7004 template<typename T>
7005 using member = typename T::member_type;
7006
7007 template<typename T>
7008 void func(...) {}
7009
7010 template<typename T>
7011 void func(member<T>*) {}
7012
7013 void test();
7014
7015 void test() { func<foo>(0); }
7016
7017 }
7018
7019 } // namespace cxx11
7020
7021 #endif // __cplusplus >= 201103L
7022
7023
7024
7025 _ACEOF
7026 if ac_fn_cxx_try_compile "$LINENO"; then :
7027 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7028 else
7029 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7034 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7035 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7036 ac_success=yes
7037 fi
7038
7039 if test x$ac_success = xno; then
7040 for alternative in ${ax_cxx_compile_alternatives}; do
7041 switch="-std=gnu++${alternative}"
7042 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7044 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7045 if eval \${$cachevar+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_save_CXX="$CXX"
7049 CXX="$CXX $switch"
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052
7053
7054 // If the compiler admits that it is not ready for C++11, why torture it?
7055 // Hopefully, this will speed up the test.
7056
7057 #ifndef __cplusplus
7058
7059 #error "This is not a C++ compiler"
7060
7061 #elif __cplusplus < 201103L
7062
7063 #error "This is not a C++11 compiler"
7064
7065 #else
7066
7067 namespace cxx11
7068 {
7069
7070 namespace test_static_assert
7071 {
7072
7073 template <typename T>
7074 struct check
7075 {
7076 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7077 };
7078
7079 }
7080
7081 namespace test_final_override
7082 {
7083
7084 struct Base
7085 {
7086 virtual ~Base() {}
7087 virtual void f() {}
7088 };
7089
7090 struct Derived : public Base
7091 {
7092 virtual ~Derived() override {}
7093 virtual void f() override {}
7094 };
7095
7096 }
7097
7098 namespace test_double_right_angle_brackets
7099 {
7100
7101 template < typename T >
7102 struct check {};
7103
7104 typedef check<void> single_type;
7105 typedef check<check<void>> double_type;
7106 typedef check<check<check<void>>> triple_type;
7107 typedef check<check<check<check<void>>>> quadruple_type;
7108
7109 }
7110
7111 namespace test_decltype
7112 {
7113
7114 int
7115 f()
7116 {
7117 int a = 1;
7118 decltype(a) b = 2;
7119 return a + b;
7120 }
7121
7122 }
7123
7124 namespace test_type_deduction
7125 {
7126
7127 template < typename T1, typename T2 >
7128 struct is_same
7129 {
7130 static const bool value = false;
7131 };
7132
7133 template < typename T >
7134 struct is_same<T, T>
7135 {
7136 static const bool value = true;
7137 };
7138
7139 template < typename T1, typename T2 >
7140 auto
7141 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7142 {
7143 return a1 + a2;
7144 }
7145
7146 int
7147 test(const int c, volatile int v)
7148 {
7149 static_assert(is_same<int, decltype(0)>::value == true, "");
7150 static_assert(is_same<int, decltype(c)>::value == false, "");
7151 static_assert(is_same<int, decltype(v)>::value == false, "");
7152 auto ac = c;
7153 auto av = v;
7154 auto sumi = ac + av + 'x';
7155 auto sumf = ac + av + 1.0;
7156 static_assert(is_same<int, decltype(ac)>::value == true, "");
7157 static_assert(is_same<int, decltype(av)>::value == true, "");
7158 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7159 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7160 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7161 return (sumf > 0.0) ? sumi : add(c, v);
7162 }
7163
7164 }
7165
7166 namespace test_noexcept
7167 {
7168
7169 int f() { return 0; }
7170 int g() noexcept { return 0; }
7171
7172 static_assert(noexcept(f()) == false, "");
7173 static_assert(noexcept(g()) == true, "");
7174
7175 }
7176
7177 namespace test_constexpr
7178 {
7179
7180 template < typename CharT >
7181 unsigned long constexpr
7182 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7183 {
7184 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7185 }
7186
7187 template < typename CharT >
7188 unsigned long constexpr
7189 strlen_c(const CharT *const s) noexcept
7190 {
7191 return strlen_c_r(s, 0UL);
7192 }
7193
7194 static_assert(strlen_c("") == 0UL, "");
7195 static_assert(strlen_c("1") == 1UL, "");
7196 static_assert(strlen_c("example") == 7UL, "");
7197 static_assert(strlen_c("another\0example") == 7UL, "");
7198
7199 }
7200
7201 namespace test_rvalue_references
7202 {
7203
7204 template < int N >
7205 struct answer
7206 {
7207 static constexpr int value = N;
7208 };
7209
7210 answer<1> f(int&) { return answer<1>(); }
7211 answer<2> f(const int&) { return answer<2>(); }
7212 answer<3> f(int&&) { return answer<3>(); }
7213
7214 void
7215 test()
7216 {
7217 int i = 0;
7218 const int c = 0;
7219 static_assert(decltype(f(i))::value == 1, "");
7220 static_assert(decltype(f(c))::value == 2, "");
7221 static_assert(decltype(f(0))::value == 3, "");
7222 }
7223
7224 }
7225
7226 namespace test_uniform_initialization
7227 {
7228
7229 struct test
7230 {
7231 static const int zero {};
7232 static const int one {1};
7233 };
7234
7235 static_assert(test::zero == 0, "");
7236 static_assert(test::one == 1, "");
7237
7238 }
7239
7240 namespace test_lambdas
7241 {
7242
7243 void
7244 test1()
7245 {
7246 auto lambda1 = [](){};
7247 auto lambda2 = lambda1;
7248 lambda1();
7249 lambda2();
7250 }
7251
7252 int
7253 test2()
7254 {
7255 auto a = [](int i, int j){ return i + j; }(1, 2);
7256 auto b = []() -> int { return '0'; }();
7257 auto c = [=](){ return a + b; }();
7258 auto d = [&](){ return c; }();
7259 auto e = [a, &b](int x) mutable {
7260 const auto identity = [](int y){ return y; };
7261 for (auto i = 0; i < a; ++i)
7262 a += b--;
7263 return x + identity(a + b);
7264 }(0);
7265 return a + b + c + d + e;
7266 }
7267
7268 int
7269 test3()
7270 {
7271 const auto nullary = [](){ return 0; };
7272 const auto unary = [](int x){ return x; };
7273 using nullary_t = decltype(nullary);
7274 using unary_t = decltype(unary);
7275 const auto higher1st = [](nullary_t f){ return f(); };
7276 const auto higher2nd = [unary](nullary_t f1){
7277 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7278 };
7279 return higher1st(nullary) + higher2nd(nullary)(unary);
7280 }
7281
7282 }
7283
7284 namespace test_variadic_templates
7285 {
7286
7287 template <int...>
7288 struct sum;
7289
7290 template <int N0, int... N1toN>
7291 struct sum<N0, N1toN...>
7292 {
7293 static constexpr auto value = N0 + sum<N1toN...>::value;
7294 };
7295
7296 template <>
7297 struct sum<>
7298 {
7299 static constexpr auto value = 0;
7300 };
7301
7302 static_assert(sum<>::value == 0, "");
7303 static_assert(sum<1>::value == 1, "");
7304 static_assert(sum<23>::value == 23, "");
7305 static_assert(sum<1, 2>::value == 3, "");
7306 static_assert(sum<5, 5, 11>::value == 21, "");
7307 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7308
7309 }
7310
7311 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7312 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7313 // because of this.
7314 namespace test_template_alias_sfinae
7315 {
7316
7317 struct foo {};
7318
7319 template<typename T>
7320 using member = typename T::member_type;
7321
7322 template<typename T>
7323 void func(...) {}
7324
7325 template<typename T>
7326 void func(member<T>*) {}
7327
7328 void test();
7329
7330 void test() { func<foo>(0); }
7331
7332 }
7333
7334 } // namespace cxx11
7335
7336 #endif // __cplusplus >= 201103L
7337
7338
7339
7340 _ACEOF
7341 if ac_fn_cxx_try_compile "$LINENO"; then :
7342 eval $cachevar=yes
7343 else
7344 eval $cachevar=no
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 CXX="$ac_save_CXX"
7348 fi
7349 eval ac_res=\$$cachevar
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7351 $as_echo "$ac_res" >&6; }
7352 if eval test x\$$cachevar = xyes; then
7353 CXX="$CXX $switch"
7354 if test -n "$CXXCPP" ; then
7355 CXXCPP="$CXXCPP $switch"
7356 fi
7357 ac_success=yes
7358 break
7359 fi
7360 done
7361 fi
7362
7363 if test x$ac_success = xno; then
7364 for alternative in ${ax_cxx_compile_alternatives}; do
7365 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7366 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7368 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7369 if eval \${$cachevar+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 ac_save_CXX="$CXX"
7373 CXX="$CXX $switch"
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376
7377
7378 // If the compiler admits that it is not ready for C++11, why torture it?
7379 // Hopefully, this will speed up the test.
7380
7381 #ifndef __cplusplus
7382
7383 #error "This is not a C++ compiler"
7384
7385 #elif __cplusplus < 201103L
7386
7387 #error "This is not a C++11 compiler"
7388
7389 #else
7390
7391 namespace cxx11
7392 {
7393
7394 namespace test_static_assert
7395 {
7396
7397 template <typename T>
7398 struct check
7399 {
7400 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7401 };
7402
7403 }
7404
7405 namespace test_final_override
7406 {
7407
7408 struct Base
7409 {
7410 virtual ~Base() {}
7411 virtual void f() {}
7412 };
7413
7414 struct Derived : public Base
7415 {
7416 virtual ~Derived() override {}
7417 virtual void f() override {}
7418 };
7419
7420 }
7421
7422 namespace test_double_right_angle_brackets
7423 {
7424
7425 template < typename T >
7426 struct check {};
7427
7428 typedef check<void> single_type;
7429 typedef check<check<void>> double_type;
7430 typedef check<check<check<void>>> triple_type;
7431 typedef check<check<check<check<void>>>> quadruple_type;
7432
7433 }
7434
7435 namespace test_decltype
7436 {
7437
7438 int
7439 f()
7440 {
7441 int a = 1;
7442 decltype(a) b = 2;
7443 return a + b;
7444 }
7445
7446 }
7447
7448 namespace test_type_deduction
7449 {
7450
7451 template < typename T1, typename T2 >
7452 struct is_same
7453 {
7454 static const bool value = false;
7455 };
7456
7457 template < typename T >
7458 struct is_same<T, T>
7459 {
7460 static const bool value = true;
7461 };
7462
7463 template < typename T1, typename T2 >
7464 auto
7465 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7466 {
7467 return a1 + a2;
7468 }
7469
7470 int
7471 test(const int c, volatile int v)
7472 {
7473 static_assert(is_same<int, decltype(0)>::value == true, "");
7474 static_assert(is_same<int, decltype(c)>::value == false, "");
7475 static_assert(is_same<int, decltype(v)>::value == false, "");
7476 auto ac = c;
7477 auto av = v;
7478 auto sumi = ac + av + 'x';
7479 auto sumf = ac + av + 1.0;
7480 static_assert(is_same<int, decltype(ac)>::value == true, "");
7481 static_assert(is_same<int, decltype(av)>::value == true, "");
7482 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7483 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7484 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7485 return (sumf > 0.0) ? sumi : add(c, v);
7486 }
7487
7488 }
7489
7490 namespace test_noexcept
7491 {
7492
7493 int f() { return 0; }
7494 int g() noexcept { return 0; }
7495
7496 static_assert(noexcept(f()) == false, "");
7497 static_assert(noexcept(g()) == true, "");
7498
7499 }
7500
7501 namespace test_constexpr
7502 {
7503
7504 template < typename CharT >
7505 unsigned long constexpr
7506 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7507 {
7508 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7509 }
7510
7511 template < typename CharT >
7512 unsigned long constexpr
7513 strlen_c(const CharT *const s) noexcept
7514 {
7515 return strlen_c_r(s, 0UL);
7516 }
7517
7518 static_assert(strlen_c("") == 0UL, "");
7519 static_assert(strlen_c("1") == 1UL, "");
7520 static_assert(strlen_c("example") == 7UL, "");
7521 static_assert(strlen_c("another\0example") == 7UL, "");
7522
7523 }
7524
7525 namespace test_rvalue_references
7526 {
7527
7528 template < int N >
7529 struct answer
7530 {
7531 static constexpr int value = N;
7532 };
7533
7534 answer<1> f(int&) { return answer<1>(); }
7535 answer<2> f(const int&) { return answer<2>(); }
7536 answer<3> f(int&&) { return answer<3>(); }
7537
7538 void
7539 test()
7540 {
7541 int i = 0;
7542 const int c = 0;
7543 static_assert(decltype(f(i))::value == 1, "");
7544 static_assert(decltype(f(c))::value == 2, "");
7545 static_assert(decltype(f(0))::value == 3, "");
7546 }
7547
7548 }
7549
7550 namespace test_uniform_initialization
7551 {
7552
7553 struct test
7554 {
7555 static const int zero {};
7556 static const int one {1};
7557 };
7558
7559 static_assert(test::zero == 0, "");
7560 static_assert(test::one == 1, "");
7561
7562 }
7563
7564 namespace test_lambdas
7565 {
7566
7567 void
7568 test1()
7569 {
7570 auto lambda1 = [](){};
7571 auto lambda2 = lambda1;
7572 lambda1();
7573 lambda2();
7574 }
7575
7576 int
7577 test2()
7578 {
7579 auto a = [](int i, int j){ return i + j; }(1, 2);
7580 auto b = []() -> int { return '0'; }();
7581 auto c = [=](){ return a + b; }();
7582 auto d = [&](){ return c; }();
7583 auto e = [a, &b](int x) mutable {
7584 const auto identity = [](int y){ return y; };
7585 for (auto i = 0; i < a; ++i)
7586 a += b--;
7587 return x + identity(a + b);
7588 }(0);
7589 return a + b + c + d + e;
7590 }
7591
7592 int
7593 test3()
7594 {
7595 const auto nullary = [](){ return 0; };
7596 const auto unary = [](int x){ return x; };
7597 using nullary_t = decltype(nullary);
7598 using unary_t = decltype(unary);
7599 const auto higher1st = [](nullary_t f){ return f(); };
7600 const auto higher2nd = [unary](nullary_t f1){
7601 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7602 };
7603 return higher1st(nullary) + higher2nd(nullary)(unary);
7604 }
7605
7606 }
7607
7608 namespace test_variadic_templates
7609 {
7610
7611 template <int...>
7612 struct sum;
7613
7614 template <int N0, int... N1toN>
7615 struct sum<N0, N1toN...>
7616 {
7617 static constexpr auto value = N0 + sum<N1toN...>::value;
7618 };
7619
7620 template <>
7621 struct sum<>
7622 {
7623 static constexpr auto value = 0;
7624 };
7625
7626 static_assert(sum<>::value == 0, "");
7627 static_assert(sum<1>::value == 1, "");
7628 static_assert(sum<23>::value == 23, "");
7629 static_assert(sum<1, 2>::value == 3, "");
7630 static_assert(sum<5, 5, 11>::value == 21, "");
7631 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7632
7633 }
7634
7635 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7636 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7637 // because of this.
7638 namespace test_template_alias_sfinae
7639 {
7640
7641 struct foo {};
7642
7643 template<typename T>
7644 using member = typename T::member_type;
7645
7646 template<typename T>
7647 void func(...) {}
7648
7649 template<typename T>
7650 void func(member<T>*) {}
7651
7652 void test();
7653
7654 void test() { func<foo>(0); }
7655
7656 }
7657
7658 } // namespace cxx11
7659
7660 #endif // __cplusplus >= 201103L
7661
7662
7663
7664 _ACEOF
7665 if ac_fn_cxx_try_compile "$LINENO"; then :
7666 eval $cachevar=yes
7667 else
7668 eval $cachevar=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 CXX="$ac_save_CXX"
7672 fi
7673 eval ac_res=\$$cachevar
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7675 $as_echo "$ac_res" >&6; }
7676 if eval test x\$$cachevar = xyes; then
7677 CXX="$CXX $switch"
7678 if test -n "$CXXCPP" ; then
7679 CXXCPP="$CXXCPP $switch"
7680 fi
7681 ac_success=yes
7682 break
7683 fi
7684 done
7685 if test x$ac_success = xyes; then
7686 break
7687 fi
7688 done
7689 fi
7690 CXX_FOR_BUILD="$CXX"
7691 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7692 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7693 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7694 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7695 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7696 ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7703 if test x$ac_success = xno; then
7704 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7705 fi
7706 fi
7707 if test x$ac_success = xno; then
7708 HAVE_CXX11_FOR_BUILD=0
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7710 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7711 else
7712 HAVE_CXX11_FOR_BUILD=1
7713
7714 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7715
7716 fi
7717
7718
7719 fi
7720 fi
7721
7722 # Used for setting $lt_cv_objdir
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7724 $as_echo_n "checking for objdir... " >&6; }
7725 if ${lt_cv_objdir+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 rm -f .libs 2>/dev/null
7729 mkdir .libs 2>/dev/null
7730 if test -d .libs; then
7731 lt_cv_objdir=.libs
7732 else
7733 # MS-DOS does not allow filenames that begin with a dot.
7734 lt_cv_objdir=_libs
7735 fi
7736 rmdir .libs 2>/dev/null
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7739 $as_echo "$lt_cv_objdir" >&6; }
7740 objdir=$lt_cv_objdir
7741
7742
7743
7744
7745
7746 cat >>confdefs.h <<_ACEOF
7747 #define LT_OBJDIR "$lt_cv_objdir/"
7748 _ACEOF
7749
7750
7751
7752 # Check for GMP, MPFR and MPC
7753 gmplibs="-lmpc -lmpfr -lgmp"
7754 gmpinc=
7755 have_gmp=no
7756
7757 # Specify a location for mpc
7758 # check for this first so it ends up on the link line before mpfr.
7759
7760 # Check whether --with-mpc was given.
7761 if test "${with_mpc+set}" = set; then :
7762 withval=$with_mpc;
7763 fi
7764
7765
7766 # Check whether --with-mpc-include was given.
7767 if test "${with_mpc_include+set}" = set; then :
7768 withval=$with_mpc_include;
7769 fi
7770
7771
7772 # Check whether --with-mpc-lib was given.
7773 if test "${with_mpc_lib+set}" = set; then :
7774 withval=$with_mpc_lib;
7775 fi
7776
7777
7778 if test "x$with_mpc" != x; then
7779 gmplibs="-L$with_mpc/lib $gmplibs"
7780 gmpinc="-I$with_mpc/include $gmpinc"
7781 fi
7782 if test "x$with_mpc_include" != x; then
7783 gmpinc="-I$with_mpc_include $gmpinc"
7784 fi
7785 if test "x$with_mpc_lib" != x; then
7786 gmplibs="-L$with_mpc_lib $gmplibs"
7787 fi
7788 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7789 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7790 gmpinc='-I$$s/mpc/src '"$gmpinc"
7791 # Do not test the mpc version. Assume that it is sufficient, since
7792 # it is in the source tree, and the library has not been built yet
7793 # but it would be included on the link line in the version check below
7794 # hence making the test fail.
7795 have_gmp=yes
7796 fi
7797
7798 # Specify a location for mpfr
7799 # check for this first so it ends up on the link line before gmp.
7800
7801 # Check whether --with-mpfr-dir was given.
7802 if test "${with_mpfr_dir+set}" = set; then :
7803 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7804 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7805 fi
7806
7807
7808
7809 # Check whether --with-mpfr was given.
7810 if test "${with_mpfr+set}" = set; then :
7811 withval=$with_mpfr;
7812 fi
7813
7814
7815 # Check whether --with-mpfr-include was given.
7816 if test "${with_mpfr_include+set}" = set; then :
7817 withval=$with_mpfr_include;
7818 fi
7819
7820
7821 # Check whether --with-mpfr-lib was given.
7822 if test "${with_mpfr_lib+set}" = set; then :
7823 withval=$with_mpfr_lib;
7824 fi
7825
7826
7827 if test "x$with_mpfr" != x; then
7828 gmplibs="-L$with_mpfr/lib $gmplibs"
7829 gmpinc="-I$with_mpfr/include $gmpinc"
7830 fi
7831 if test "x$with_mpfr_include" != x; then
7832 gmpinc="-I$with_mpfr_include $gmpinc"
7833 fi
7834 if test "x$with_mpfr_lib" != x; then
7835 gmplibs="-L$with_mpfr_lib $gmplibs"
7836 fi
7837 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7838 # MPFR v3.1.0 moved the sources into a src sub-directory.
7839 if ! test -d ${srcdir}/mpfr/src; then
7840 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7841 fi
7842 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7843 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7844 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7845 # Do not test the mpfr version. Assume that it is sufficient, since
7846 # it is in the source tree, and the library has not been built yet
7847 # but it would be included on the link line in the version check below
7848 # hence making the test fail.
7849 have_gmp=yes
7850 fi
7851
7852 # Specify a location for gmp
7853
7854 # Check whether --with-gmp-dir was given.
7855 if test "${with_gmp_dir+set}" = set; then :
7856 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7857 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7858 fi
7859
7860
7861
7862 # Check whether --with-gmp was given.
7863 if test "${with_gmp+set}" = set; then :
7864 withval=$with_gmp;
7865 fi
7866
7867
7868 # Check whether --with-gmp-include was given.
7869 if test "${with_gmp_include+set}" = set; then :
7870 withval=$with_gmp_include;
7871 fi
7872
7873
7874 # Check whether --with-gmp-lib was given.
7875 if test "${with_gmp_lib+set}" = set; then :
7876 withval=$with_gmp_lib;
7877 fi
7878
7879
7880
7881 if test "x$with_gmp" != x; then
7882 gmplibs="-L$with_gmp/lib $gmplibs"
7883 gmpinc="-I$with_gmp/include $gmpinc"
7884 fi
7885 if test "x$with_gmp_include" != x; then
7886 gmpinc="-I$with_gmp_include $gmpinc"
7887 fi
7888 if test "x$with_gmp_lib" != x; then
7889 gmplibs="-L$with_gmp_lib $gmplibs"
7890 fi
7891 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7892 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7893 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7894 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7895 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7896 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7897 # Do not test the gmp version. Assume that it is sufficient, since
7898 # it is in the source tree, and the library has not been built yet
7899 # but it would be included on the link line in the version check below
7900 # hence making the test fail.
7901 have_gmp=yes
7902 fi
7903
7904 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7905 have_gmp=yes
7906 saved_CFLAGS="$CFLAGS"
7907 CFLAGS="$CFLAGS $gmpinc"
7908 # Check for the recommended and required versions of GMP.
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7910 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7911
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include "gmp.h"
7915 int
7916 main ()
7917 {
7918
7919 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7920 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7921 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7922 choke me
7923 #endif
7924
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 #include <gmp.h>
7933 int
7934 main ()
7935 {
7936
7937 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7938 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7939 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7940 choke me
7941 #endif
7942
7943 ;
7944 return 0;
7945 }
7946 _ACEOF
7947 if ac_fn_c_try_compile "$LINENO"; then :
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7952 $as_echo "buggy but acceptable" >&6; }
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }; have_gmp=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960
7961 # If we have GMP, check the MPFR version.
7962 if test x"$have_gmp" = xyes; then
7963 # Check for the recommended and required versions of MPFR.
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7965 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 #include <gmp.h>
7969 #include <mpfr.h>
7970 int
7971 main ()
7972 {
7973
7974 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7975 choke me
7976 #endif
7977
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <gmp.h>
7986 #include <mpfr.h>
7987 int
7988 main ()
7989 {
7990
7991 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7992 choke me
7993 #endif
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001 $as_echo "yes" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8004 $as_echo "buggy but acceptable" >&6; }
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }; have_gmp=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013
8014 # Check for the MPC header version.
8015 if test x"$have_gmp" = xyes ; then
8016 # Check for the recommended and required versions of MPC.
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8018 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 #include <mpc.h>
8022 int
8023 main ()
8024 {
8025
8026 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8027 choke me
8028 #endif
8029
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <mpc.h>
8038 int
8039 main ()
8040 {
8041
8042 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8043 choke me
8044 #endif
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 $as_echo "yes" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8055 $as_echo "buggy but acceptable" >&6; }
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }; have_gmp=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064
8065 # Now check the MPFR library.
8066 if test x"$have_gmp" = xyes; then
8067 saved_LIBS="$LIBS"
8068 LIBS="$LIBS $gmplibs"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8070 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <mpc.h>
8074 int
8075 main ()
8076 {
8077
8078 mpfr_t n;
8079 mpfr_t x;
8080 mpc_t c;
8081 int t;
8082 mpfr_init (n);
8083 mpfr_init (x);
8084 mpfr_atan2 (n, n, x, MPFR_RNDN);
8085 mpfr_erfc (n, x, MPFR_RNDN);
8086 mpfr_subnormalize (x, t, MPFR_RNDN);
8087 mpfr_clear(n);
8088 mpfr_clear(x);
8089 mpc_init2 (c, 53);
8090 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8091 mpc_cosh (c, c, MPC_RNDNN);
8092 mpc_pow (c, c, c, MPC_RNDNN);
8093 mpc_acosh (c, c, MPC_RNDNN);
8094 mpc_clear (c);
8095
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8102 $as_echo "yes" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }; have_gmp=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS="$saved_LIBS"
8110 fi
8111
8112 CFLAGS="$saved_CFLAGS"
8113
8114 # The library versions listed in the error message below should match
8115 # the HARD-minimums enforced above.
8116 if test x$have_gmp != xyes; then
8117 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8118 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8119 their locations. Source code for these libraries can be found at
8120 their respective hosting sites as well as at
8121 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8122 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8123 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8124 make sure that you have installed both the libraries and the header
8125 files. They may be located in separate packages." "$LINENO" 5
8126 fi
8127 fi
8128
8129 # Flags needed for both GMP, MPFR and/or MPC.
8130
8131
8132
8133
8134
8135
8136
8137 # Libraries to use for stage1 or when not bootstrapping.
8138
8139 # Check whether --with-stage1-libs was given.
8140 if test "${with_stage1_libs+set}" = set; then :
8141 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8142 stage1_libs=
8143 else
8144 stage1_libs=$withval
8145 fi
8146 else
8147 stage1_libs=
8148 fi
8149
8150
8151
8152 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8153 # default is yes if gcc is being built; no otherwise. The reason for
8154 # this default is that gdb is sometimes linked against GNU Source
8155 # Highlight, which is a shared library that uses C++ exceptions. In
8156 # this case, -static-libstdc++ will cause crashes.
8157
8158 # Check whether --with-static-standard-libraries was given.
8159 if test "${with_static_standard_libraries+set}" = set; then :
8160 withval=$with_static_standard_libraries;
8161 else
8162 with_static_standard_libraries=auto
8163 fi
8164
8165 if test "$with_static_standard_libraries" = auto; then
8166 with_static_standard_libraries=$have_compiler
8167 fi
8168
8169 # Linker flags to use for stage1 or when not bootstrapping.
8170
8171 # Check whether --with-stage1-ldflags was given.
8172 if test "${with_stage1_ldflags+set}" = set; then :
8173 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8174 stage1_ldflags=
8175 else
8176 stage1_ldflags=$withval
8177 fi
8178 else
8179 stage1_ldflags=
8180 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8181 # if supported. But if the user explicitly specified the libraries to use,
8182 # trust that they are doing what they want.
8183 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8184 -a "$have_static_libs" = yes; then
8185 stage1_ldflags="-static-libstdc++ -static-libgcc"
8186 fi
8187 fi
8188
8189
8190
8191 # Libraries to use for stage2 and later builds.
8192
8193 # Check whether --with-boot-libs was given.
8194 if test "${with_boot_libs+set}" = set; then :
8195 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8196 poststage1_libs=
8197 else
8198 poststage1_libs=$withval
8199 fi
8200 else
8201 poststage1_libs=
8202 fi
8203
8204
8205
8206 # Linker flags to use for stage2 and later builds.
8207
8208 # Check whether --with-boot-ldflags was given.
8209 if test "${with_boot_ldflags+set}" = set; then :
8210 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8211 poststage1_ldflags=
8212 else
8213 poststage1_ldflags=$withval
8214 fi
8215 else
8216 poststage1_ldflags=
8217 # In stages 2 and 3, default to linking libstdc++ and libgcc
8218 # statically. But if the user explicitly specified the libraries to
8219 # use, trust that they are doing what they want.
8220 if test "$poststage1_libs" = ""; then
8221 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8222 fi
8223 fi
8224
8225
8226
8227 # GCC GRAPHITE dependency isl.
8228 # Basic setup is inlined here, actual checks are in config/isl.m4
8229
8230
8231 # Check whether --with-isl was given.
8232 if test "${with_isl+set}" = set; then :
8233 withval=$with_isl;
8234 fi
8235
8236
8237 # Treat --without-isl as a request to disable
8238 # GRAPHITE support and skip all following checks.
8239 if test "x$with_isl" != "xno"; then
8240 # Check for isl
8241
8242
8243 # Check whether --with-isl-include was given.
8244 if test "${with_isl_include+set}" = set; then :
8245 withval=$with_isl_include;
8246 fi
8247
8248
8249 # Check whether --with-isl-lib was given.
8250 if test "${with_isl_lib+set}" = set; then :
8251 withval=$with_isl_lib;
8252 fi
8253
8254
8255 # Check whether --enable-isl-version-check was given.
8256 if test "${enable_isl_version_check+set}" = set; then :
8257 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8258 else
8259 ENABLE_ISL_CHECK=yes
8260 fi
8261
8262
8263 # Initialize isllibs and islinc.
8264 case $with_isl in
8265 no)
8266 isllibs=
8267 islinc=
8268 ;;
8269 "" | yes)
8270 ;;
8271 *)
8272 isllibs="-L$with_isl/lib"
8273 islinc="-I$with_isl/include"
8274 ;;
8275 esac
8276 if test "x${with_isl_include}" != x ; then
8277 islinc="-I$with_isl_include"
8278 fi
8279 if test "x${with_isl_lib}" != x; then
8280 isllibs="-L$with_isl_lib"
8281 fi
8282 if test "x${islinc}" = x && test "x${isllibs}" = x \
8283 && test -d ${srcdir}/isl; then
8284 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8285 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8286 ENABLE_ISL_CHECK=no
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8288 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8289 fi
8290
8291 isllibs="${isllibs} -lisl"
8292
8293
8294
8295 if test "${ENABLE_ISL_CHECK}" = yes ; then
8296 _isl_saved_CFLAGS=$CFLAGS
8297 _isl_saved_LDFLAGS=$LDFLAGS
8298 _isl_saved_LIBS=$LIBS
8299
8300 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8301 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8302 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8305 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <isl/schedule.h>
8309 int
8310 main ()
8311 {
8312 isl_options_set_schedule_serialize_sccs (NULL, 0);
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 gcc_cv_isl=yes
8319 else
8320 gcc_cv_isl=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8325 $as_echo "$gcc_cv_isl" >&6; }
8326
8327 if test "${gcc_cv_isl}" = no ; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8329 $as_echo "required isl version is 0.15 or later" >&6; }
8330 fi
8331
8332 CFLAGS=$_isl_saved_CFLAGS
8333 LDFLAGS=$_isl_saved_LDFLAGS
8334 LIBS=$_isl_saved_LIBS
8335 fi
8336
8337
8338
8339
8340
8341
8342 if test "x${with_isl}" = xno; then
8343 graphite_requested=no
8344 elif test "x${with_isl}" != x \
8345 || test "x${with_isl_include}" != x \
8346 || test "x${with_isl_lib}" != x ; then
8347 graphite_requested=yes
8348 else
8349 graphite_requested=no
8350 fi
8351
8352
8353
8354 if test "${gcc_cv_isl}" = no ; then
8355 isllibs=
8356 islinc=
8357 fi
8358
8359 if test "${graphite_requested}" = yes \
8360 && test "x${isllibs}" = x \
8361 && test "x${islinc}" = x ; then
8362
8363 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8364 fi
8365
8366
8367 fi
8368
8369 # If the isl check failed, disable builds of in-tree variant of isl
8370 if test "x$with_isl" = xno ||
8371 test "x$gcc_cv_isl" = xno; then
8372 noconfigdirs="$noconfigdirs isl"
8373 islinc=
8374 fi
8375
8376
8377
8378
8379 # Check for LTO support.
8380 # Check whether --enable-lto was given.
8381 if test "${enable_lto+set}" = set; then :
8382 enableval=$enable_lto; enable_lto=$enableval
8383 else
8384 enable_lto=yes; default_enable_lto=yes
8385 fi
8386
8387
8388
8389
8390
8391 target_elf=no
8392 case $target in
8393 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8394 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8395 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8396 nvptx-*-none)
8397 target_elf=no
8398 ;;
8399 *)
8400 target_elf=yes
8401 ;;
8402 esac
8403
8404 if test $target_elf = yes; then :
8405 # ELF platforms build the lto-plugin always.
8406 build_lto_plugin=yes
8407
8408 else
8409 if test x"$default_enable_lto" = x"yes" ; then
8410 case $target in
8411 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8412 # On other non-ELF platforms, LTO has yet to be validated.
8413 *) enable_lto=no ;;
8414 esac
8415 else
8416 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8417 # It would also be nice to check the binutils support, but we don't
8418 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8419 # warn during gcc/ subconfigure; unless you're bootstrapping with
8420 # -flto it won't be needed until after installation anyway.
8421 case $target in
8422 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8423 *) if test x"$enable_lto" = x"yes"; then
8424 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8425 fi
8426 ;;
8427 esac
8428 fi
8429 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8430 # Build it unless LTO was explicitly disabled.
8431 case $target in
8432 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8433 *) ;;
8434 esac
8435
8436 fi
8437
8438
8439 # Check whether --enable-linker-plugin-configure-flags was given.
8440 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8441 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8442 else
8443 extra_linker_plugin_configure_flags=
8444 fi
8445
8446
8447 # Check whether --enable-linker-plugin-flags was given.
8448 if test "${enable_linker_plugin_flags+set}" = set; then :
8449 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8450 else
8451 extra_linker_plugin_flags=
8452 fi
8453
8454
8455
8456 # Enable --enable-host-shared.
8457 # Checked early to determine whether jit is an 'all' language
8458 # Check whether --enable-host-shared was given.
8459 if test "${enable_host_shared+set}" = set; then :
8460 enableval=$enable_host_shared; host_shared=$enableval
8461 else
8462 host_shared=no
8463 fi
8464
8465
8466
8467 # By default, C and C++ are the only stage 1 languages.
8468 stage1_languages=,c,
8469
8470 # Target libraries that we bootstrap.
8471 bootstrap_target_libs=,target-libgcc,
8472
8473 # Figure out what language subdirectories are present.
8474 # Look if the user specified --enable-languages="..."; if not, use
8475 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8476 # go away some day.
8477 # NB: embedded tabs in this IF block -- do not untabify
8478 if test -d ${srcdir}/gcc; then
8479 if test x"${enable_languages+set}" != xset; then
8480 if test x"${LANGUAGES+set}" = xset; then
8481 enable_languages="${LANGUAGES}"
8482 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8483 else
8484 enable_languages=default
8485 fi
8486 else
8487 if test x"${enable_languages}" = x ||
8488 test x"${enable_languages}" = xyes;
8489 then
8490 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8491 exit 1
8492 fi
8493 fi
8494 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8495
8496 # 'f95' is the old name for the 'fortran' language. We issue a warning
8497 # and make the substitution.
8498 case ,${enable_languages}, in
8499 *,f95,*)
8500 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8501 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8502 ;;
8503 esac
8504
8505 # If bootstrapping, C++ must be enabled.
8506 case ",$enable_languages,:$enable_bootstrap" in
8507 *,c++,*:*) ;;
8508 *:yes)
8509 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8510 enable_languages="${enable_languages},c++"
8511 else
8512 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8513 fi
8514 ;;
8515 esac
8516
8517 # First scan to see if an enabled language requires some other language.
8518 # We assume that a given config-lang.in will list all the language
8519 # front ends it requires, even if some are required indirectly.
8520 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8521 case ${lang_frag} in
8522 ..) ;;
8523 # The odd quoting in the next line works around
8524 # an apparent bug in bash 1.12 on linux.
8525 ${srcdir}/gcc/[*]/config-lang.in) ;;
8526 *)
8527 # From the config-lang.in, get $language, $lang_requires, and
8528 # $lang_requires_boot_languages.
8529 language=
8530 lang_requires=
8531 lang_requires_boot_languages=
8532 # set srcdir during sourcing lang_frag to the gcc dir.
8533 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8534 # polutes this shell
8535 saved_srcdir=${srcdir}
8536 srcdir=${srcdir}/gcc . ${lang_frag}
8537 srcdir=${saved_srcdir}
8538 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8539 case ,${enable_languages}, in
8540 *,$other,*) ;;
8541 *,default,*) ;;
8542 *,all,*) ;;
8543 *,$language,*)
8544 echo " \`$other' language required by \`$language'; enabling" 1>&2
8545 enable_languages="${enable_languages},${other}"
8546 ;;
8547 esac
8548 done
8549 for other in ${lang_requires_boot_languages} ; do
8550 if test "$other" != "c"; then
8551 case ,${enable_stage1_languages}, in
8552 *,$other,*) ;;
8553 *,default,*) ;;
8554 *,all,*) ;;
8555 *)
8556 case ,${enable_languages}, in
8557 *,$language,*)
8558 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8559 enable_stage1_languages="$enable_stage1_languages,${other}"
8560 ;;
8561 esac
8562 ;;
8563 esac
8564 fi
8565 done
8566 ;;
8567 esac
8568 done
8569
8570 new_enable_languages=,c,
8571
8572 # If LTO is enabled, add the LTO front end.
8573 if test "$enable_lto" = "yes" ; then
8574 case ,${enable_languages}, in
8575 *,lto,*) ;;
8576 *) enable_languages="${enable_languages},lto" ;;
8577 esac
8578 if test "${build_lto_plugin}" = "yes" ; then
8579 configdirs="$configdirs lto-plugin"
8580 fi
8581 fi
8582
8583 # If we're building an offloading compiler, add the LTO front end.
8584 if test x"$enable_as_accelerator_for" != x ; then
8585 case ,${enable_languages}, in
8586 *,lto,*) ;;
8587 *) enable_languages="${enable_languages},lto" ;;
8588 esac
8589 fi
8590
8591 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8592 potential_languages=,c,
8593
8594 enabled_target_libs=
8595 disabled_target_libs=
8596
8597 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8598 case ${lang_frag} in
8599 ..) ;;
8600 # The odd quoting in the next line works around
8601 # an apparent bug in bash 1.12 on linux.
8602 ${srcdir}/gcc/[*]/config-lang.in) ;;
8603 *)
8604 # From the config-lang.in, get $language, $target_libs,
8605 # $lang_dirs, $boot_language, and $build_by_default
8606 language=
8607 target_libs=
8608 lang_dirs=
8609 subdir_requires=
8610 boot_language=no
8611 build_by_default=yes
8612 # set srcdir during sourcing. See above about save & restore
8613 saved_srcdir=${srcdir}
8614 srcdir=${srcdir}/gcc . ${lang_frag}
8615 srcdir=${saved_srcdir}
8616 if test x${language} = x; then
8617 echo "${lang_frag} doesn't set \$language." 1>&2
8618 exit 1
8619 fi
8620
8621 if test "$language" = "c++"; then
8622 boot_language=yes
8623 fi
8624
8625 add_this_lang=no
8626 # C is always enabled, so no need to add it again
8627 if test "$language" != "c"; then
8628 case ,${enable_languages}, in
8629 *,${language},*)
8630 # Language was explicitly selected; include it
8631 add_this_lang=yes
8632 ;;
8633 *,all,*)
8634 # All languages are enabled
8635 add_this_lang=all
8636 ;;
8637 *,default,*)
8638 # 'default' was selected, select it if it is a default language
8639 add_this_lang=${build_by_default}
8640 ;;
8641 esac
8642 fi
8643
8644 # Disable languages that need other directories if these aren't available.
8645 for i in $subdir_requires; do
8646 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8647 case ${add_this_lang} in
8648 yes)
8649 # Specifically requested language; tell them.
8650 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8651 ;;
8652 all)
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8654 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8655 add_this_lang=unsupported
8656 ;;
8657 *)
8658 # Silently disable.
8659 add_this_lang=unsupported
8660 ;;
8661 esac
8662 done
8663
8664 # Disable Ada if no preexisting GNAT is available.
8665 case ${add_this_lang}:${language}:${have_gnat} in
8666 yes:ada:no)
8667 # Specifically requested language; tell them.
8668 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8669 ;;
8670 all:ada:no)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8672 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8673 add_this_lang=unsupported
8674 ;;
8675 *:ada:no)
8676 # Silently disable.
8677 add_this_lang=unsupported
8678 ;;
8679 esac
8680
8681 # Disable jit if -enable-host-shared not specified
8682 # but not if building for Mingw. All code in Windows
8683 # is position independent code (PIC).
8684 case $target in
8685 *mingw*) ;;
8686 *)
8687 case ${add_this_lang}:${language}:${host_shared} in
8688 yes:jit:no)
8689 # PR jit/64780: explicitly specify --enable-host-shared
8690 as_fn_error $? "
8691 Enabling language \"jit\" requires --enable-host-shared.
8692
8693 --enable-host-shared typically slows the rest of the compiler down by
8694 a few %, so you must explicitly enable it.
8695
8696 If you want to build both the jit and the regular compiler, it is often
8697 best to do this via two separate configure/builds, in separate
8698 directories, to avoid imposing the performance cost of
8699 --enable-host-shared on the regular compiler." "$LINENO" 5
8700 ;;
8701 all:jit:no)
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8703 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8704 add_this_lang=unsupported
8705 ;;
8706 *:jit:no)
8707 # Silently disable.
8708 add_this_lang=unsupported
8709 ;;
8710 esac
8711 ;;
8712 esac
8713
8714 # Disable a language that is unsupported by the target.
8715 case "${add_this_lang}: $unsupported_languages " in
8716 no:*) ;;
8717 unsupported:*) ;;
8718 *:*" $language "*)
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8720 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8721 add_this_lang=unsupported
8722 ;;
8723 esac
8724
8725 case $add_this_lang in
8726 unsupported)
8727 # Remove language-dependent dirs.
8728 disabled_target_libs="$disabled_target_libs $target_libs"
8729 noconfigdirs="$noconfigdirs $lang_dirs"
8730 ;;
8731 no)
8732 # Remove language-dependent dirs; still show language as supported.
8733 disabled_target_libs="$disabled_target_libs $target_libs"
8734 noconfigdirs="$noconfigdirs $lang_dirs"
8735 potential_languages="${potential_languages}${language},"
8736 ;;
8737 all|yes)
8738 new_enable_languages="${new_enable_languages}${language},"
8739 potential_languages="${potential_languages}${language},"
8740 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8741 enabled_target_libs="$enabled_target_libs $target_libs"
8742 case "${boot_language}:,$enable_stage1_languages," in
8743 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8744 # Add to (comma-separated) list of stage 1 languages.
8745 case ",$stage1_languages," in
8746 *,$language,* | ,yes, | ,all,) ;;
8747 *) stage1_languages="${stage1_languages}${language}," ;;
8748 esac
8749 # We need to bootstrap any supporting libraries.
8750 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8751 ;;
8752 esac
8753 ;;
8754 esac
8755 ;;
8756 esac
8757 done
8758
8759 # Add target libraries which are only needed for disabled languages
8760 # to noconfigdirs.
8761 if test -n "$disabled_target_libs"; then
8762 for dir in $disabled_target_libs; do
8763 case " $enabled_target_libs " in
8764 *" ${dir} "*) ;;
8765 *) noconfigdirs="$noconfigdirs $dir" ;;
8766 esac
8767 done
8768 fi
8769
8770 # Check whether --enable-stage1-languages was given.
8771 if test "${enable_stage1_languages+set}" = set; then :
8772 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8773 ,no,|,,)
8774 # Set it to something that will have no effect in the loop below
8775 enable_stage1_languages=c ;;
8776 ,yes,)
8777 enable_stage1_languages=`echo $new_enable_languages | \
8778 sed -e "s/^,//" -e "s/,$//" ` ;;
8779 *,all,*)
8780 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8781 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8782 esac
8783
8784 # Add "good" languages from enable_stage1_languages to stage1_languages,
8785 # while "bad" languages go in missing_languages. Leave no duplicates.
8786 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8787 case $potential_languages in
8788 *,$i,*)
8789 case $stage1_languages in
8790 *,$i,*) ;;
8791 *) stage1_languages="$stage1_languages$i," ;;
8792 esac ;;
8793 *)
8794 case $missing_languages in
8795 *,$i,*) ;;
8796 *) missing_languages="$missing_languages$i," ;;
8797 esac ;;
8798 esac
8799 done
8800 fi
8801
8802
8803 # Remove leading/trailing commas that were added for simplicity
8804 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8805 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8806 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8807 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8808
8809 if test "x$missing_languages" != x; then
8810 as_fn_error $? "
8811 The following requested languages could not be built: ${missing_languages}
8812 Supported languages are: ${potential_languages}" "$LINENO" 5
8813 fi
8814 if test "x$new_enable_languages" != "x$enable_languages"; then
8815 echo The following languages will be built: ${new_enable_languages}
8816 enable_languages="$new_enable_languages"
8817 fi
8818
8819
8820 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8821 fi
8822
8823 # Handle --disable-<component> generically.
8824 for dir in $configdirs $build_configdirs $target_configdirs ; do
8825 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8826 varname=`echo $dirname | sed -e s/+/_/g`
8827 if eval test x\${enable_${varname}} "=" xno ; then
8828 noconfigdirs="$noconfigdirs $dir"
8829 fi
8830 done
8831
8832 # Check for Boehm's garbage collector
8833 # Check whether --enable-objc-gc was given.
8834 if test "${enable_objc_gc+set}" = set; then :
8835 enableval=$enable_objc_gc;
8836 fi
8837
8838
8839 # Check whether --with-target-bdw-gc was given.
8840 if test "${with_target_bdw_gc+set}" = set; then :
8841 withval=$with_target_bdw_gc;
8842 fi
8843
8844
8845 # Check whether --with-target-bdw-gc-include was given.
8846 if test "${with_target_bdw_gc_include+set}" = set; then :
8847 withval=$with_target_bdw_gc_include;
8848 fi
8849
8850
8851 # Check whether --with-target-bdw-gc-lib was given.
8852 if test "${with_target_bdw_gc_lib+set}" = set; then :
8853 withval=$with_target_bdw_gc_lib;
8854 fi
8855
8856
8857 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8859 $as_echo_n "checking for bdw garbage collector... " >&6; }
8860 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8862 $as_echo "using bdw-gc in default locations" >&6; }
8863 else
8864 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8865 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8866 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8867 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8870 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8871 fi
8872 fi
8873 esac
8874
8875 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8876 case ,${enable_languages}, in
8877 *,c++,*)
8878 # Disable libitm, libsanitizer if we're not building libstdc++
8879 case "${noconfigdirs}" in
8880 *target-libstdc++-v3*)
8881 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8882 ;;
8883 *) ;;
8884 esac
8885 ;;
8886 *)
8887 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8888 ;;
8889 esac
8890
8891 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8892 # $build_configdirs and $target_configdirs.
8893 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8894
8895 notsupp=""
8896 for dir in . $skipdirs $noconfigdirs ; do
8897 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8898 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8899 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8900 if test -r $srcdir/$dirname/configure ; then
8901 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8902 true
8903 else
8904 notsupp="$notsupp $dir"
8905 fi
8906 fi
8907 fi
8908 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8909 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8910 if test -r $srcdir/$dirname/configure ; then
8911 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8912 true
8913 else
8914 notsupp="$notsupp $dir"
8915 fi
8916 fi
8917 fi
8918 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8919 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8920 if test -r $srcdir/$dirname/configure ; then
8921 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8922 true
8923 else
8924 notsupp="$notsupp $dir"
8925 fi
8926 fi
8927 fi
8928 done
8929
8930 # Quietly strip out all directories which aren't configurable in this tree.
8931 # This relies on all configurable subdirectories being autoconfiscated, which
8932 # is now the case.
8933 build_configdirs_all="$build_configdirs"
8934 build_configdirs=
8935 for i in ${build_configdirs_all} ; do
8936 j=`echo $i | sed -e s/build-//g`
8937 if test -f ${srcdir}/$j/configure ; then
8938 build_configdirs="${build_configdirs} $i"
8939 fi
8940 done
8941
8942 configdirs_all="$configdirs"
8943 configdirs=
8944 for i in ${configdirs_all} ; do
8945 if test -f ${srcdir}/$i/configure ; then
8946 configdirs="${configdirs} $i"
8947 fi
8948 done
8949
8950 target_configdirs_all="$target_configdirs"
8951 target_configdirs=
8952 for i in ${target_configdirs_all} ; do
8953 j=`echo $i | sed -e s/target-//g`
8954 if test -f ${srcdir}/$j/configure ; then
8955 target_configdirs="${target_configdirs} $i"
8956 fi
8957 done
8958
8959 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8960 # so we have to add it after the preceding checks.
8961 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8962 then
8963 case " $configdirs " in
8964 *" libiberty "*)
8965 # If we can build libiberty, we can also build libiberty-linker-plugin.
8966 configdirs="$configdirs libiberty-linker-plugin"
8967 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8968 --with-libiberty=../libiberty-linker-plugin";;
8969 *)
8970 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8971 esac
8972 fi
8973
8974 # Sometimes we have special requirements for the host libiberty.
8975 extra_host_libiberty_configure_flags=
8976 extra_host_zlib_configure_flags=
8977 case " $configdirs " in
8978 *" lto-plugin "* | *" libcc1 "*)
8979 # When these are to be built as shared libraries, the same applies to
8980 # libiberty.
8981 extra_host_libiberty_configure_flags=--enable-shared
8982 ;;
8983 *" bfd "*)
8984 # When bfd is to be built as a shared library, the same applies to
8985 # zlib.
8986 if test "$enable_shared" = "yes"; then
8987 extra_host_zlib_configure_flags=--enable-host-shared
8988 fi
8989 ;;
8990 esac
8991
8992
8993
8994 # Produce a warning message for the subdirs we can't configure.
8995 # This isn't especially interesting in the Cygnus tree, but in the individual
8996 # FSF releases, it's important to let people know when their machine isn't
8997 # supported by the one or two programs in a package.
8998
8999 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9000 # If $appdirs is non-empty, at least one of those directories must still
9001 # be configured, or we error out. (E.g., if the gas release supports a
9002 # specified target in some subdirs but not the gas subdir, we shouldn't
9003 # pretend that all is well.)
9004 if test -n "$appdirs" ; then
9005 for dir in $appdirs ; do
9006 if test -r $dir/Makefile.in ; then
9007 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9008 appdirs=""
9009 break
9010 fi
9011 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9012 appdirs=""
9013 break
9014 fi
9015 fi
9016 done
9017 if test -n "$appdirs" ; then
9018 echo "*** This configuration is not supported by this package." 1>&2
9019 exit 1
9020 fi
9021 fi
9022 # Okay, some application will build, or we don't care to check. Still
9023 # notify of subdirs not getting built.
9024 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9025 echo " ${notsupp}" 1>&2
9026 echo " (Any other directories should still work fine.)" 1>&2
9027 fi
9028
9029 case "$host" in
9030 *msdosdjgpp*)
9031 enable_gdbtk=no ;;
9032 esac
9033
9034 # To find our prefix, in gcc_cv_tool_prefix.
9035
9036 # The user is always right.
9037 if test "${PATH_SEPARATOR+set}" != set; then
9038 echo "#! /bin/sh" >conf$$.sh
9039 echo "exit 0" >>conf$$.sh
9040 chmod +x conf$$.sh
9041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9042 PATH_SEPARATOR=';'
9043 else
9044 PATH_SEPARATOR=:
9045 fi
9046 rm -f conf$$.sh
9047 fi
9048
9049
9050 get_gcc_base_ver="cat"
9051
9052 # Check whether --with-gcc-major-version-only was given.
9053 if test "${with_gcc_major_version_only+set}" = set; then :
9054 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9055 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9056 fi
9057
9058 fi
9059
9060
9061
9062
9063
9064
9065 if test "x$exec_prefix" = xNONE; then
9066 if test "x$prefix" = xNONE; then
9067 gcc_cv_tool_prefix=$ac_default_prefix
9068 else
9069 gcc_cv_tool_prefix=$prefix
9070 fi
9071 else
9072 gcc_cv_tool_prefix=$exec_prefix
9073 fi
9074
9075 # If there is no compiler in the tree, use the PATH only. In any
9076 # case, if there is no compiler in the tree nobody should use
9077 # AS_FOR_TARGET and LD_FOR_TARGET.
9078 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9079 if test x$with_gcc_major_version_only = xyes ; then
9080 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9081 else
9082 gcc_version=`cat $srcdir/gcc/BASE-VER`
9083 fi
9084 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9085 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9086 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9087 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9088 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9089 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9090 else
9091 gcc_cv_tool_dirs=
9092 fi
9093
9094 if test x$build = x$target && test -n "$md_exec_prefix"; then
9095 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9096 fi
9097
9098
9099
9100 copy_dirs=
9101
9102
9103 # Check whether --with-build-sysroot was given.
9104 if test "${with_build_sysroot+set}" = set; then :
9105 withval=$with_build_sysroot; if test x"$withval" != x ; then
9106 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9107 fi
9108 else
9109 SYSROOT_CFLAGS_FOR_TARGET=
9110 fi
9111
9112
9113
9114
9115 # Check whether --with-debug-prefix-map was given.
9116 if test "${with_debug_prefix_map+set}" = set; then :
9117 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9118 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9119 for debug_map in $withval; do
9120 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9121 done
9122 fi
9123 else
9124 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9125 fi
9126
9127
9128
9129 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9130 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9131 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9132 # We want to ensure that TARGET libraries (which we know are built with
9133 # gcc) are built with "-O2 -g", so include those options when setting
9134 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9135 if test "x$CFLAGS_FOR_TARGET" = x; then
9136 if test "x${is_cross_compiler}" = xyes; then
9137 CFLAGS_FOR_TARGET="-g -O2"
9138 else
9139 CFLAGS_FOR_TARGET=$CFLAGS
9140 case " $CFLAGS " in
9141 *" -O2 "*) ;;
9142 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9143 esac
9144 case " $CFLAGS " in
9145 *" -g "* | *" -g3 "*) ;;
9146 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9147 esac
9148 fi
9149 fi
9150
9151
9152 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9153 if test "x${is_cross_compiler}" = xyes; then
9154 CXXFLAGS_FOR_TARGET="-g -O2"
9155 else
9156 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9157 case " $CXXFLAGS " in
9158 *" -O2 "*) ;;
9159 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9160 esac
9161 case " $CXXFLAGS " in
9162 *" -g "* | *" -g3 "*) ;;
9163 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9164 esac
9165 fi
9166 fi
9167
9168
9169
9170
9171 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9172 # the named directory are copied to $(tooldir)/sys-include.
9173 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9174 if test x${is_cross_compiler} = xno ; then
9175 echo 1>&2 '***' --with-headers is only supported when cross compiling
9176 exit 1
9177 fi
9178 if test x"${with_headers}" != xyes ; then
9179 x=${gcc_cv_tool_prefix}
9180 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9181 fi
9182 fi
9183
9184 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9185 # the name directories are copied to $(tooldir)/lib. Multiple directories
9186 # are permitted.
9187 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9188 if test x${is_cross_compiler} = xno ; then
9189 echo 1>&2 '***' --with-libs is only supported when cross compiling
9190 exit 1
9191 fi
9192 if test x"${with_libs}" != xyes ; then
9193 # Copy the libraries in reverse order, so that files in the first named
9194 # library override files in subsequent libraries.
9195 x=${gcc_cv_tool_prefix}
9196 for l in ${with_libs}; do
9197 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9198 done
9199 fi
9200 fi
9201
9202 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9203 #
9204 # This is done by determining whether or not the appropriate directory
9205 # is available, and by checking whether or not specific configurations
9206 # have requested that this magic not happen.
9207 #
9208 # The command line options always override the explicit settings in
9209 # configure.ac, and the settings in configure.ac override this magic.
9210 #
9211 # If the default for a toolchain is to use GNU as and ld, and you don't
9212 # want to do that, then you should use the --without-gnu-as and
9213 # --without-gnu-ld options for the configure script. Similarly, if
9214 # the default is to use the included zlib and you don't want to do that,
9215 # you should use the --with-system-zlib option for the configure script.
9216
9217 if test x${use_gnu_as} = x &&
9218 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9219 with_gnu_as=yes
9220 extra_host_args="$extra_host_args --with-gnu-as"
9221 fi
9222
9223 if test x${use_gnu_ld} = x &&
9224 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9225 with_gnu_ld=yes
9226 extra_host_args="$extra_host_args --with-gnu-ld"
9227 fi
9228
9229 if test x${use_included_zlib} = x &&
9230 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9231 :
9232 else
9233 with_system_zlib=yes
9234 extra_host_args="$extra_host_args --with-system-zlib"
9235 fi
9236
9237 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9238 # can detect this case.
9239
9240 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9241 with_newlib=yes
9242 extra_host_args="$extra_host_args --with-newlib"
9243 fi
9244
9245 # Handle ${copy_dirs}
9246 set fnord ${copy_dirs}
9247 shift
9248 while test $# != 0 ; do
9249 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9250 :
9251 else
9252 echo Copying $1 to $2
9253
9254 # Use the install script to create the directory and all required
9255 # parent directories.
9256 if test -d $2 ; then
9257 :
9258 else
9259 echo >config.temp
9260 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9261 fi
9262
9263 # Copy the directory, assuming we have tar.
9264 # FIXME: Should we use B in the second tar? Not all systems support it.
9265 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9266
9267 # It is the responsibility of the user to correctly adjust all
9268 # symlinks. If somebody can figure out how to handle them correctly
9269 # here, feel free to add the code.
9270
9271 echo $1 > $2/COPIED
9272 fi
9273 shift; shift
9274 done
9275
9276 # Determine a target-dependent exec_prefix that the installed
9277 # gcc will search in. Keep this list sorted by triplet, with
9278 # the *-*-osname triplets last.
9279 md_exec_prefix=
9280 case "${target}" in
9281 i[34567]86-pc-msdosdjgpp*)
9282 md_exec_prefix=/dev/env/DJDIR/bin
9283 ;;
9284 *-*-hpux* | \
9285 *-*-nto-qnx* | \
9286 *-*-solaris2*)
9287 md_exec_prefix=/usr/ccs/bin
9288 ;;
9289 esac
9290
9291 extra_arflags_for_target=
9292 extra_nmflags_for_target=
9293 extra_ranlibflags_for_target=
9294 target_makefile_frag=/dev/null
9295 case "${target}" in
9296 spu-*-*)
9297 target_makefile_frag="config/mt-spu"
9298 ;;
9299 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9300 target_makefile_frag="config/mt-sde"
9301 ;;
9302 mipsisa*-*-elfoabi*)
9303 target_makefile_frag="config/mt-mips-elfoabi"
9304 ;;
9305 mips*-*-*linux* | mips*-*-gnu*)
9306 target_makefile_frag="config/mt-mips-gnu"
9307 ;;
9308 nios2-*-elf*)
9309 target_makefile_frag="config/mt-nios2-elf"
9310 ;;
9311 *-*-linux-android*)
9312 target_makefile_frag="config/mt-android"
9313 ;;
9314 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9315 target_makefile_frag="config/mt-gnu"
9316 ;;
9317 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9318 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9319 # commands to handle both 32-bit and 64-bit objects. These flags are
9320 # harmless if we're using GNU nm or ar.
9321 extra_arflags_for_target=" -X32_64"
9322 extra_nmflags_for_target=" -B -X32_64"
9323 ;;
9324 esac
9325
9326 alphaieee_frag=/dev/null
9327 case $target in
9328 alpha*-*-*)
9329 # This just makes sure to use the -mieee option to build target libs.
9330 # This should probably be set individually by each library.
9331 alphaieee_frag="config/mt-alphaieee"
9332 ;;
9333 esac
9334
9335 # If --enable-target-optspace always use -Os instead of -O2 to build
9336 # the target libraries, similarly if it is not specified, use -Os
9337 # on selected platforms.
9338 ospace_frag=/dev/null
9339 case "${enable_target_optspace}:${target}" in
9340 yes:*)
9341 ospace_frag="config/mt-ospace"
9342 ;;
9343 :d30v-*)
9344 ospace_frag="config/mt-d30v"
9345 ;;
9346 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9347 ospace_frag="config/mt-ospace"
9348 ;;
9349 no:* | :*)
9350 ;;
9351 *)
9352 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9353 ;;
9354 esac
9355
9356 # Some systems (e.g., one of the i386-aix systems the gas testers are
9357 # using) don't handle "\$" correctly, so don't use it here.
9358 tooldir='${exec_prefix}'/${target_noncanonical}
9359 build_tooldir=${tooldir}
9360
9361 # Create a .gdbinit file which runs the one in srcdir
9362 # and tells GDB to look there for source files.
9363
9364 if test -r ${srcdir}/.gdbinit ; then
9365 case ${srcdir} in
9366 .) ;;
9367 *) cat > ./.gdbinit <<EOF
9368 # ${NO_EDIT}
9369 dir ${srcdir}
9370 dir .
9371 source ${srcdir}/.gdbinit
9372 EOF
9373 ;;
9374 esac
9375 fi
9376
9377 # Make sure that the compiler is able to generate an executable. If it
9378 # can't, we are probably in trouble. We don't care whether we can run the
9379 # executable--we might be using a cross compiler--we only care whether it
9380 # can be created. At this point the main configure script has set CC.
9381 we_are_ok=no
9382 echo "int main () { return 0; }" > conftest.c
9383 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9384 if test $? = 0 ; then
9385 if test -s conftest || test -s conftest.exe ; then
9386 we_are_ok=yes
9387 fi
9388 fi
9389 case $we_are_ok in
9390 no)
9391 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9392 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9393 rm -f conftest*
9394 exit 1
9395 ;;
9396 esac
9397 rm -f conftest*
9398
9399 # Decide which environment variable is used to find dynamic libraries.
9400 case "${host}" in
9401 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9402 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9403 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9404 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9405 esac
9406
9407 # On systems where the dynamic library environment variable is PATH,
9408 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9409 # built executables to PATH.
9410 if test "$RPATH_ENVVAR" = PATH; then
9411 GCC_SHLIB_SUBDIR=/shlib
9412 else
9413 GCC_SHLIB_SUBDIR=
9414 fi
9415
9416 # Adjust the toplevel makefile according to whether bootstrap was selected.
9417 case $enable_bootstrap in
9418 yes)
9419 bootstrap_suffix=bootstrap
9420 BUILD_CONFIG=bootstrap-debug
9421 ;;
9422 no)
9423 bootstrap_suffix=no-bootstrap
9424 BUILD_CONFIG=
9425 ;;
9426 esac
9427
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9429 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9430
9431
9432 # Check whether --with-build-config was given.
9433 if test "${with_build_config+set}" = set; then :
9434 withval=$with_build_config; case $with_build_config in
9435 yes) with_build_config= ;;
9436 no) with_build_config= BUILD_CONFIG= ;;
9437 esac
9438 fi
9439
9440
9441 if test "x${with_build_config}" != x; then
9442 BUILD_CONFIG=$with_build_config
9443 else
9444 case $BUILD_CONFIG in
9445 bootstrap-debug)
9446 if echo "int f (void) { return 0; }" > conftest.c &&
9447 ${CC} -c conftest.c &&
9448 mv conftest.o conftest.o.g0 &&
9449 ${CC} -c -g conftest.c &&
9450 mv conftest.o conftest.o.g &&
9451 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9452 :
9453 else
9454 BUILD_CONFIG=
9455 fi
9456 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9457 ;;
9458 esac
9459 fi
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9461 $as_echo "$BUILD_CONFIG" >&6; }
9462
9463
9464 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9466 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9467 # Check whether --enable-vtable-verify was given.
9468 if test "${enable_vtable_verify+set}" = set; then :
9469 enableval=$enable_vtable_verify; case "$enableval" in
9470 yes) enable_vtable_verify=yes ;;
9471 no) enable_vtable_verify=no ;;
9472 *) enable_vtable_verify=no;;
9473 esac
9474 else
9475 enable_vtable_verify=no
9476 fi
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9479 $as_echo "$enable_vtable_verify" >&6; }
9480
9481 # Record target_configdirs and the configure arguments for target and
9482 # build configuration in Makefile.
9483 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9484 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9485 bootstrap_fixincludes=no
9486
9487 # If we are building libgomp, bootstrap it.
9488 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9489 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9490 fi
9491
9492 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9493 # or bootstrap-ubsan, bootstrap it.
9494 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9495 case "$BUILD_CONFIG" in
9496 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9497 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9498 bootstrap_fixincludes=yes
9499 ;;
9500 esac
9501 fi
9502
9503 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9504 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9505 test "$enable_vtable_verify" != no; then
9506 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9507 fi
9508
9509 # Determine whether gdb needs tk/tcl or not.
9510 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9511 # and in that case we want gdb to be built without tk. Ugh!
9512 # In fact I believe gdb is the *only* package directly dependent on tk,
9513 # so we should be able to put the 'maybe's in unconditionally and
9514 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9515 # 100% sure that that's safe though.
9516
9517 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9518 case "$enable_gdbtk" in
9519 no)
9520 GDB_TK="" ;;
9521 yes)
9522 GDB_TK="${gdb_tk}" ;;
9523 *)
9524 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9525 # distro. Eventually someone will fix this and move Insight, nee
9526 # gdbtk to a separate directory.
9527 if test -d ${srcdir}/gdb/gdbtk ; then
9528 GDB_TK="${gdb_tk}"
9529 else
9530 GDB_TK=""
9531 fi
9532 ;;
9533 esac
9534 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9535 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9536
9537 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9538 # else does, only include them if one of these is built. The Makefile
9539 # provides the ordering, so it's enough here to add to the list.
9540 case " ${configdirs} " in
9541 *\ gdb\ *)
9542 configdirs="${configdirs} gnulib gdbsupport"
9543 ;;
9544 *\ gdbserver\ *)
9545 configdirs="${configdirs} gnulib gdbsupport"
9546 ;;
9547 esac
9548
9549 # Strip out unwanted targets.
9550
9551 # While at that, we remove Makefiles if we were started for recursive
9552 # configuration, so that the top-level Makefile reconfigures them,
9553 # like we used to do when configure itself was recursive.
9554
9555 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9556 # but now we're fixing up the Makefile ourselves with the additional
9557 # commands passed to AC_CONFIG_FILES. Use separate variables
9558 # extrasub-{build,host,target} not because there is any reason to split
9559 # the substitutions up that way, but only to remain below the limit of
9560 # 99 commands in a script, for HP-UX sed.
9561
9562 # Do not nest @if/@endif or @unless/@endunless pairs, because
9563 # configure will not warn you at all.
9564
9565 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9566 yes:yes:*\ gold\ *:*,c++,*) ;;
9567 yes:yes:*\ gold\ *:*)
9568 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9569 ;;
9570 esac
9571
9572 extrasub_build=
9573 for module in ${build_configdirs} ; do
9574 if test -z "${no_recursion}" \
9575 && test -f ${build_subdir}/${module}/Makefile; then
9576 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9577 rm -f ${build_subdir}/${module}/Makefile
9578 fi
9579 extrasub_build="$extrasub_build
9580 /^@if build-$module\$/d
9581 /^@endif build-$module\$/d
9582 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9583 /^@if build-$module-$bootstrap_suffix\$/d
9584 /^@endif build-$module-$bootstrap_suffix\$/d
9585 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9586 done
9587 extrasub_host=
9588 for module in ${configdirs} ; do
9589 if test -z "${no_recursion}"; then
9590 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9591 if test -f ${file}; then
9592 echo 1>&2 "*** removing ${file} to force reconfigure"
9593 rm -f ${file}
9594 fi
9595 done
9596 fi
9597 case ${module},${bootstrap_fixincludes} in
9598 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9599 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9600 esac
9601 extrasub_host="$extrasub_host
9602 /^@if $module\$/d
9603 /^@endif $module\$/d
9604 /^@unless $module\$/,/^@endunless $module\$/d
9605 /^@if $module-$host_bootstrap_suffix\$/d
9606 /^@endif $module-$host_bootstrap_suffix\$/d
9607 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9608 done
9609 extrasub_target=
9610 for module in ${target_configdirs} ; do
9611 if test -z "${no_recursion}" \
9612 && test -f ${target_subdir}/${module}/Makefile; then
9613 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9614 rm -f ${target_subdir}/${module}/Makefile
9615 fi
9616
9617 # We only bootstrap target libraries listed in bootstrap_target_libs.
9618 case $bootstrap_target_libs in
9619 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9620 *) target_bootstrap_suffix=no-bootstrap ;;
9621 esac
9622
9623 extrasub_target="$extrasub_target
9624 /^@if target-$module\$/d
9625 /^@endif target-$module\$/d
9626 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9627 /^@if target-$module-$target_bootstrap_suffix\$/d
9628 /^@endif target-$module-$target_bootstrap_suffix\$/d
9629 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9630 done
9631
9632 # Do the final fixup along with target modules.
9633 extrasub_target="$extrasub_target
9634 /^@if /,/^@endif /d
9635 /^@unless /d
9636 /^@endunless /d"
9637
9638 # Create the serialization dependencies. This uses a temporary file.
9639
9640 # Check whether --enable-serial-configure was given.
9641 if test "${enable_serial_configure+set}" = set; then :
9642 enableval=$enable_serial_configure;
9643 fi
9644
9645
9646 case ${enable_serial_configure} in
9647 yes)
9648 enable_serial_build_configure=yes
9649 enable_serial_host_configure=yes
9650 enable_serial_target_configure=yes
9651 ;;
9652 esac
9653
9654 # These force 'configure's to be done one at a time, to avoid problems
9655 # with contention over a shared config.cache.
9656 rm -f serdep.tmp
9657 echo '# serdep.tmp' > serdep.tmp
9658 olditem=
9659 test "x${enable_serial_build_configure}" = xyes &&
9660 for item in ${build_configdirs} ; do
9661 case ${olditem} in
9662 "") ;;
9663 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9664 esac
9665 olditem=${item}
9666 done
9667 olditem=
9668 test "x${enable_serial_host_configure}" = xyes &&
9669 for item in ${configdirs} ; do
9670 case ${olditem} in
9671 "") ;;
9672 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9673 esac
9674 olditem=${item}
9675 done
9676 olditem=
9677 test "x${enable_serial_target_configure}" = xyes &&
9678 for item in ${target_configdirs} ; do
9679 case ${olditem} in
9680 "") ;;
9681 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9682 esac
9683 olditem=${item}
9684 done
9685 serialization_dependencies=serdep.tmp
9686
9687
9688 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9689 # target, nonopt, and variable assignments. These are the ones we
9690 # might not want to pass down to subconfigures. The exception being
9691 # --cache-file=/dev/null, which is used to turn off the use of cache
9692 # files altogether, and which should be passed on to subconfigures.
9693 # Also strip program-prefix, program-suffix, and program-transform-name,
9694 # so that we can pass down a consistent program-transform-name.
9695 baseargs=
9696 tbaseargs=
9697 keep_next=no
9698 skip_next=no
9699 eval "set -- $ac_configure_args"
9700 for ac_arg
9701 do
9702 if test X"$skip_next" = X"yes"; then
9703 skip_next=no
9704 continue
9705 fi
9706 if test X"$keep_next" = X"yes"; then
9707 case $ac_arg in
9708 *\'*)
9709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9710 esac
9711 baseargs="$baseargs '$ac_arg'"
9712 tbaseargs="$tbaseargs '$ac_arg'"
9713 keep_next=no
9714 continue
9715 fi
9716
9717 # Handle separated arguments. Based on the logic generated by
9718 # autoconf 2.59.
9719 case $ac_arg in
9720 *=* | --config-cache | -C | -disable-* | --disable-* \
9721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9723 | -with-* | --with-* | -without-* | --without-* | --x)
9724 separate_arg=no
9725 ;;
9726 -*)
9727 separate_arg=yes
9728 ;;
9729 *)
9730 separate_arg=no
9731 ;;
9732 esac
9733
9734 skip_targ=no
9735 case $ac_arg in
9736
9737 --with-* | --without-*)
9738 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9739
9740 case $libopt in
9741 *[-_]include)
9742 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9743 ;;
9744 *[-_]lib)
9745 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9746 ;;
9747 *)
9748 lib=$libopt
9749 ;;
9750 esac
9751
9752
9753 case $lib in
9754 mpc | mpfr | gmp | isl)
9755 # If we're processing --with-$lib, --with-$lib-include or
9756 # --with-$lib-lib, for one of the libs above, and target is
9757 # different from host, don't pass the current argument to any
9758 # target library's configure.
9759 if test x$is_cross_compiler = xyes; then
9760 skip_targ=yes
9761 fi
9762 ;;
9763 esac
9764 ;;
9765 esac
9766
9767 case "$ac_arg" in
9768 --cache-file=/dev/null | \
9769 -cache-file=/dev/null )
9770 # Handled here to avoid the test to skip args below.
9771 baseargs="$baseargs '$ac_arg'"
9772 tbaseargs="$tbaseargs '$ac_arg'"
9773 # Assert: $separate_arg should always be no.
9774 keep_next=$separate_arg
9775 ;;
9776 --no*)
9777 continue
9778 ;;
9779 --c* | \
9780 --sr* | \
9781 --ho* | \
9782 --bu* | \
9783 --t* | \
9784 --program-* | \
9785 -cache_file* | \
9786 -srcdir* | \
9787 -host* | \
9788 -build* | \
9789 -target* | \
9790 -program-prefix* | \
9791 -program-suffix* | \
9792 -program-transform-name* )
9793 skip_next=$separate_arg
9794 continue
9795 ;;
9796 -*)
9797 # An option. Add it.
9798 case $ac_arg in
9799 *\'*)
9800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9801 esac
9802 baseargs="$baseargs '$ac_arg'"
9803 if test X"$skip_targ" = Xno; then
9804 tbaseargs="$tbaseargs '$ac_arg'"
9805 fi
9806 keep_next=$separate_arg
9807 ;;
9808 *)
9809 # Either a variable assignment, or a nonopt (triplet). Don't
9810 # pass it down; let the Makefile handle this.
9811 continue
9812 ;;
9813 esac
9814 done
9815 # Remove the initial space we just introduced and, as these will be
9816 # expanded by make, quote '$'.
9817 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9818
9819 # Add in --program-transform-name, after --program-prefix and
9820 # --program-suffix have been applied to it. Autoconf has already
9821 # doubled dollar signs and backslashes in program_transform_name; we want
9822 # the backslashes un-doubled, and then the entire thing wrapped in single
9823 # quotes, because this will be expanded first by make and then by the shell.
9824 # Also, because we want to override the logic in subdir configure scripts to
9825 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9826 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9827 ${program_transform_name}
9828 EOF_SED
9829 gcc_transform_name=`cat conftestsed.out`
9830 rm -f conftestsed.out
9831 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9832 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9833 if test "$silent" = yes; then
9834 baseargs="$baseargs --silent"
9835 tbaseargs="$tbaseargs --silent"
9836 fi
9837 baseargs="$baseargs --disable-option-checking"
9838 tbaseargs="$tbaseargs --disable-option-checking"
9839
9840 # Record and document user additions to sub configure arguments.
9841
9842
9843
9844
9845 # For the build-side libraries, we just need to pretend we're native,
9846 # and not use the same cache file. Multilibs are neither needed nor
9847 # desired. We can't even use the same cache file for all build-side
9848 # libraries, as they're compiled differently; some with C, some with
9849 # C++ or with different feature-enabling options.
9850 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9851
9852 # For host modules, accept cache file option, or specification as blank.
9853 case "${cache_file}" in
9854 "") # empty
9855 cache_file_option="" ;;
9856 /* | [A-Za-z]:[\\/]* ) # absolute path
9857 cache_file_option="--cache-file=${cache_file}" ;;
9858 *) # relative path
9859 cache_file_option="--cache-file=../${cache_file}" ;;
9860 esac
9861
9862 # Host dirs don't like to share a cache file either, horribly enough.
9863 # This seems to be due to autoconf 2.5x stupidity.
9864 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9865
9866 target_configargs="$target_configargs ${tbaseargs}"
9867
9868 # Passing a --with-cross-host argument lets the target libraries know
9869 # whether they are being built with a cross-compiler or being built
9870 # native. However, it would be better to use other mechanisms to make the
9871 # sorts of decisions they want to make on this basis. Please consider
9872 # this option to be deprecated. FIXME.
9873 if test x${is_cross_compiler} = xyes ; then
9874 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9875 fi
9876
9877 # Special user-friendly check for native x86_64-linux build, if
9878 # multilib is not explicitly enabled.
9879 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9880 x86_64-*linux*:yes:$build:$build:)
9881 # Make sure we have a development environment that handles 32-bit
9882 dev64=no
9883 echo "int main () { return 0; }" > conftest.c
9884 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9885 if test $? = 0 ; then
9886 if test -s conftest || test -s conftest.exe ; then
9887 dev64=yes
9888 fi
9889 fi
9890 rm -f conftest*
9891 if test x${dev64} != xyes ; then
9892 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
9893 fi
9894 ;;
9895 esac
9896
9897 # Default to --enable-multilib.
9898 if test x${enable_multilib} = x ; then
9899 target_configargs="--enable-multilib ${target_configargs}"
9900 fi
9901
9902 # Pass --with-newlib if appropriate. Note that target_configdirs has
9903 # changed from the earlier setting of with_newlib.
9904 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9905 target_configargs="--with-newlib ${target_configargs}"
9906 fi
9907
9908 # Different target subdirs use different values of certain variables
9909 # (notably CXX). Worse, multilibs use *lots* of different values.
9910 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9911 # it doesn't automatically accept command-line overrides of them.
9912 # This means it's not safe for target subdirs to share a cache file,
9913 # which is disgusting, but there you have it. Hopefully this can be
9914 # fixed in future. It's still worthwhile to use a cache file for each
9915 # directory. I think.
9916
9917 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9918 # We need to pass --target, as newer autoconf's requires consistency
9919 # for target_alias and gcc doesn't manage it consistently.
9920 target_configargs="--cache-file=./config.cache ${target_configargs}"
9921
9922 FLAGS_FOR_TARGET=
9923 case " $target_configdirs " in
9924 *" newlib "*)
9925 case " $target_configargs " in
9926 *" --with-newlib "*)
9927 case "$target" in
9928 *-cygwin*)
9929 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9930 ;;
9931 esac
9932
9933 # If we're not building GCC, don't discard standard headers.
9934 if test -d ${srcdir}/gcc; then
9935 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9936
9937 if test "${build}" != "${host}"; then
9938 # On Canadian crosses, CC_FOR_TARGET will have already been set
9939 # by `configure', so we won't have an opportunity to add -Bgcc/
9940 # to it. This is right: we don't want to search that directory
9941 # for binaries, but we want the header files in there, so add
9942 # them explicitly.
9943 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9944
9945 # Someone might think of using the pre-installed headers on
9946 # Canadian crosses, in case the installed compiler is not fully
9947 # compatible with the compiler being built. In this case, it
9948 # would be better to flag an error than risking having
9949 # incompatible object files being constructed. We can't
9950 # guarantee that an error will be flagged, but let's hope the
9951 # compiler will do it, when presented with incompatible header
9952 # files.
9953 fi
9954 fi
9955
9956 case "${target}-${is_cross_compiler}" in
9957 i[3456789]86-*-linux*-no)
9958 # Here host == target, so we don't need to build gcc,
9959 # so we don't want to discard standard headers.
9960 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9961 ;;
9962 *)
9963 # If we're building newlib, use its generic headers last, but search
9964 # for any libc-related directories first (so make it the last -B
9965 # switch).
9966 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9967
9968 # If we're building libgloss, find the startup file, simulator library
9969 # and linker script.
9970 case " $target_configdirs " in
9971 *" libgloss "*)
9972 # Look for startup file, simulator library and maybe linker script.
9973 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9974 # Look for libnosys.a in case the target needs it.
9975 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9976 # Most targets have the linker script in the source directory.
9977 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9978 ;;
9979 esac
9980 ;;
9981 esac
9982 ;;
9983 esac
9984 ;;
9985 esac
9986
9987 case "$target" in
9988 x86_64-*mingw* | *-w64-mingw*)
9989 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9990 # however, use a symlink named 'mingw' in ${prefix} .
9991 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9992 ;;
9993 *-mingw*)
9994 # MinGW can't be handled as Cygwin above since it does not use newlib.
9995 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'
9996 ;;
9997 esac
9998
9999 # Allow the user to override the flags for
10000 # our build compiler if desired.
10001 if test x"${build}" = x"${host}" ; then
10002 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10003 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10004 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10005 fi
10006
10007 # On Canadian crosses, we'll be searching the right directories for
10008 # the previously-installed cross compiler, so don't bother to add
10009 # flags for directories within the install tree of the compiler
10010 # being built; programs in there won't even run.
10011 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10012 # Search for pre-installed headers if nothing else fits.
10013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10014 fi
10015
10016 if test "x${use_gnu_ld}" = x &&
10017 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10018 # Arrange for us to find uninstalled linker scripts.
10019 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10020 fi
10021
10022 # Search for other target-specific linker scripts and such.
10023 case "${target}" in
10024 mep*)
10025 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10026 ;;
10027 esac
10028
10029 # Makefile fragments.
10030 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10031 do
10032 eval fragval=\$$frag
10033 if test $fragval != /dev/null; then
10034 eval $frag=${srcdir}/$fragval
10035 fi
10036 done
10037
10038
10039
10040
10041
10042 # Miscellanea: directories, flags, etc.
10043
10044
10045
10046
10047
10048
10049
10050
10051 # Build module lists & subconfigure args.
10052
10053
10054
10055 # Host module lists & subconfigure args.
10056
10057
10058
10059
10060 # Target module lists & subconfigure args.
10061
10062
10063
10064 # Build tools.
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 # Generate default definitions for YACC, M4, LEX and other programs that run
10083 # on the build machine. These are used if the Makefile can't locate these
10084 # programs in objdir.
10085 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10086
10087 for ac_prog in 'bison -y' byacc yacc
10088 do
10089 # Extract the first word of "$ac_prog", so it can be a program name with args.
10090 set dummy $ac_prog; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_prog_YACC+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 if test -n "$YACC"; then
10097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10098 else
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10101 do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_YACC="$ac_prog"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110 done
10111 done
10112 IFS=$as_save_IFS
10113
10114 fi
10115 fi
10116 YACC=$ac_cv_prog_YACC
10117 if test -n "$YACC"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10119 $as_echo "$YACC" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10123 fi
10124
10125
10126 test -n "$YACC" && break
10127 done
10128 test -n "$YACC" || YACC="$MISSING bison -y"
10129
10130 case " $build_configdirs " in
10131 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10132 esac
10133
10134 for ac_prog in bison
10135 do
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137 set dummy $ac_prog; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_BISON+:} false; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 if test -n "$BISON"; then
10144 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_BISON="$ac_prog"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157 done
10158 done
10159 IFS=$as_save_IFS
10160
10161 fi
10162 fi
10163 BISON=$ac_cv_prog_BISON
10164 if test -n "$BISON"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10166 $as_echo "$BISON" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170 fi
10171
10172
10173 test -n "$BISON" && break
10174 done
10175 test -n "$BISON" || BISON="$MISSING bison"
10176
10177 case " $build_configdirs " in
10178 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10179 esac
10180
10181 for ac_prog in gm4 gnum4 m4
10182 do
10183 # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_prog_M4+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test -n "$M4"; then
10191 ac_cv_prog_M4="$M4" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_M4="$ac_prog"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204 done
10205 done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 M4=$ac_cv_prog_M4
10211 if test -n "$M4"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10213 $as_echo "$M4" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220 test -n "$M4" && break
10221 done
10222 test -n "$M4" || M4="$MISSING m4"
10223
10224 case " $build_configdirs " in
10225 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10226 esac
10227
10228 for ac_prog in flex lex
10229 do
10230 # Extract the first word of "$ac_prog", so it can be a program name with args.
10231 set dummy $ac_prog; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_prog_LEX+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 if test -n "$LEX"; then
10238 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10242 do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_LEX="$ac_prog"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251 done
10252 done
10253 IFS=$as_save_IFS
10254
10255 fi
10256 fi
10257 LEX=$ac_cv_prog_LEX
10258 if test -n "$LEX"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10260 $as_echo "$LEX" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 fi
10265
10266
10267 test -n "$LEX" && break
10268 done
10269 test -n "$LEX" || LEX="$MISSING flex"
10270
10271 case " $build_configdirs " in
10272 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10273 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10274 esac
10275
10276 for ac_prog in flex
10277 do
10278 # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if ${ac_cv_prog_FLEX+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 if test -n "$FLEX"; then
10286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10287 else
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_prog_FLEX="$ac_prog"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299 done
10300 done
10301 IFS=$as_save_IFS
10302
10303 fi
10304 fi
10305 FLEX=$ac_cv_prog_FLEX
10306 if test -n "$FLEX"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10308 $as_echo "$FLEX" >&6; }
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10312 fi
10313
10314
10315 test -n "$FLEX" && break
10316 done
10317 test -n "$FLEX" || FLEX="$MISSING flex"
10318
10319 case " $build_configdirs " in
10320 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10321 esac
10322
10323 for ac_prog in makeinfo
10324 do
10325 # Extract the first word of "$ac_prog", so it can be a program name with args.
10326 set dummy $ac_prog; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_MAKEINFO+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$MAKEINFO"; then
10333 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_prog_MAKEINFO="$ac_prog"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 MAKEINFO=$ac_cv_prog_MAKEINFO
10353 if test -n "$MAKEINFO"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10355 $as_echo "$MAKEINFO" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361
10362 test -n "$MAKEINFO" && break
10363 done
10364 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10365
10366 case " $build_configdirs " in
10367 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10368 *)
10369
10370 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10371 # higher, else we use the "missing" dummy.
10372 if ${MAKEINFO} --version \
10373 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10374 :
10375 else
10376 MAKEINFO="$MISSING makeinfo"
10377 fi
10378 ;;
10379
10380 esac
10381
10382 # FIXME: expect and dejagnu may become build tools?
10383
10384 for ac_prog in expect
10385 do
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387 set dummy $ac_prog; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_prog_EXPECT+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test -n "$EXPECT"; then
10394 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_EXPECT="$ac_prog"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407 done
10408 done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 EXPECT=$ac_cv_prog_EXPECT
10414 if test -n "$EXPECT"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10416 $as_echo "$EXPECT" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423 test -n "$EXPECT" && break
10424 done
10425 test -n "$EXPECT" || EXPECT="expect"
10426
10427 case " $configdirs " in
10428 *" expect "*)
10429 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10430 ;;
10431 esac
10432
10433 for ac_prog in runtest
10434 do
10435 # Extract the first word of "$ac_prog", so it can be a program name with args.
10436 set dummy $ac_prog; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_prog_RUNTEST+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 if test -n "$RUNTEST"; then
10443 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10444 else
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10447 do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RUNTEST="$ac_prog"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456 done
10457 done
10458 IFS=$as_save_IFS
10459
10460 fi
10461 fi
10462 RUNTEST=$ac_cv_prog_RUNTEST
10463 if test -n "$RUNTEST"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10465 $as_echo "$RUNTEST" >&6; }
10466 else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470
10471
10472 test -n "$RUNTEST" && break
10473 done
10474 test -n "$RUNTEST" || RUNTEST="runtest"
10475
10476 case " $configdirs " in
10477 *" dejagnu "*)
10478 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10479 ;;
10480 esac
10481
10482
10483 # Host tools.
10484 ncn_tool_prefix=
10485 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10486 ncn_target_tool_prefix=
10487 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10488
10489
10490
10491 if test -n "$AR"; then
10492 ac_cv_prog_AR=$AR
10493 elif test -n "$ac_cv_prog_AR"; then
10494 AR=$ac_cv_prog_AR
10495 fi
10496
10497 if test -n "$ac_cv_prog_AR"; then
10498 for ncn_progname in ar; do
10499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_prog_AR+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 if test -n "$AR"; then
10507 ac_cv_prog_AR="$AR" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_AR="${ncn_progname}"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10519 fi
10520 done
10521 done
10522 IFS=$as_save_IFS
10523
10524 fi
10525 fi
10526 AR=$ac_cv_prog_AR
10527 if test -n "$AR"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10529 $as_echo "$AR" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534
10535
10536 done
10537 fi
10538
10539 for ncn_progname in ar; do
10540 if test -n "$ncn_tool_prefix"; then
10541 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_prog_AR+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 if test -n "$AR"; then
10549 ac_cv_prog_AR="$AR" # Let the user override the test.
10550 else
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562 done
10563 done
10564 IFS=$as_save_IFS
10565
10566 fi
10567 fi
10568 AR=$ac_cv_prog_AR
10569 if test -n "$AR"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10571 $as_echo "$AR" >&6; }
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 fi
10576
10577
10578 fi
10579 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10581 set dummy ${ncn_progname}; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_prog_AR+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -n "$AR"; then
10588 ac_cv_prog_AR="$AR" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_AR="${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 AR=$ac_cv_prog_AR
10608 if test -n "$AR"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10610 $as_echo "$AR" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617 fi
10618 test -n "$ac_cv_prog_AR" && break
10619 done
10620
10621 if test -z "$ac_cv_prog_AR" ; then
10622 set dummy ar
10623 if test $build = $host ; then
10624 AR="$2"
10625 else
10626 AR="${ncn_tool_prefix}$2"
10627 fi
10628 fi
10629
10630
10631
10632 if test -n "$AS"; then
10633 ac_cv_prog_AS=$AS
10634 elif test -n "$ac_cv_prog_AS"; then
10635 AS=$ac_cv_prog_AS
10636 fi
10637
10638 if test -n "$ac_cv_prog_AS"; then
10639 for ncn_progname in as; do
10640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10641 set dummy ${ncn_progname}; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_AS+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 if test -n "$AS"; then
10648 ac_cv_prog_AS="$AS" # Let the user override the test.
10649 else
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10652 do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_AS="${ncn_progname}"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661 done
10662 done
10663 IFS=$as_save_IFS
10664
10665 fi
10666 fi
10667 AS=$ac_cv_prog_AS
10668 if test -n "$AS"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10670 $as_echo "$AS" >&6; }
10671 else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 fi
10675
10676
10677 done
10678 fi
10679
10680 for ncn_progname in as; do
10681 if test -n "$ncn_tool_prefix"; then
10682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if ${ac_cv_prog_AS+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 if test -n "$AS"; then
10690 ac_cv_prog_AS="$AS" # Let the user override the test.
10691 else
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10694 do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703 done
10704 done
10705 IFS=$as_save_IFS
10706
10707 fi
10708 fi
10709 AS=$ac_cv_prog_AS
10710 if test -n "$AS"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10712 $as_echo "$AS" >&6; }
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717
10718
10719 fi
10720 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10722 set dummy ${ncn_progname}; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724 $as_echo_n "checking for $ac_word... " >&6; }
10725 if ${ac_cv_prog_AS+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 if test -n "$AS"; then
10729 ac_cv_prog_AS="$AS" # Let the user override the test.
10730 else
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_prog_AS="${ncn_progname}"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10741 fi
10742 done
10743 done
10744 IFS=$as_save_IFS
10745
10746 fi
10747 fi
10748 AS=$ac_cv_prog_AS
10749 if test -n "$AS"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10751 $as_echo "$AS" >&6; }
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10755 fi
10756
10757
10758 fi
10759 test -n "$ac_cv_prog_AS" && break
10760 done
10761
10762 if test -z "$ac_cv_prog_AS" ; then
10763 set dummy as
10764 if test $build = $host ; then
10765 AS="$2"
10766 else
10767 AS="${ncn_tool_prefix}$2"
10768 fi
10769 fi
10770
10771
10772
10773 if test -n "$DLLTOOL"; then
10774 ac_cv_prog_DLLTOOL=$DLLTOOL
10775 elif test -n "$ac_cv_prog_DLLTOOL"; then
10776 DLLTOOL=$ac_cv_prog_DLLTOOL
10777 fi
10778
10779 if test -n "$ac_cv_prog_DLLTOOL"; then
10780 for ncn_progname in dlltool; do
10781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if ${ac_cv_prog_DLLTOOL+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 if test -n "$DLLTOOL"; then
10789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_DLLTOOL="${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802 done
10803 done
10804 IFS=$as_save_IFS
10805
10806 fi
10807 fi
10808 DLLTOOL=$ac_cv_prog_DLLTOOL
10809 if test -n "$DLLTOOL"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10811 $as_echo "$DLLTOOL" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816
10817
10818 done
10819 fi
10820
10821 for ncn_progname in dlltool; do
10822 if test -n "$ncn_tool_prefix"; then
10823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_DLLTOOL+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 if test -n "$DLLTOOL"; then
10831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10843 fi
10844 done
10845 done
10846 IFS=$as_save_IFS
10847
10848 fi
10849 fi
10850 DLLTOOL=$ac_cv_prog_DLLTOOL
10851 if test -n "$DLLTOOL"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10853 $as_echo "$DLLTOOL" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860 fi
10861 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_prog_DLLTOOL+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 if test -n "$DLLTOOL"; then
10870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_DLLTOOL="${ncn_progname}"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10882 fi
10883 done
10884 done
10885 IFS=$as_save_IFS
10886
10887 fi
10888 fi
10889 DLLTOOL=$ac_cv_prog_DLLTOOL
10890 if test -n "$DLLTOOL"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10892 $as_echo "$DLLTOOL" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898
10899 fi
10900 test -n "$ac_cv_prog_DLLTOOL" && break
10901 done
10902
10903 if test -z "$ac_cv_prog_DLLTOOL" ; then
10904 set dummy dlltool
10905 if test $build = $host ; then
10906 DLLTOOL="$2"
10907 else
10908 DLLTOOL="${ncn_tool_prefix}$2"
10909 fi
10910 fi
10911
10912
10913
10914 if test -n "$LD"; then
10915 ac_cv_prog_LD=$LD
10916 elif test -n "$ac_cv_prog_LD"; then
10917 LD=$ac_cv_prog_LD
10918 fi
10919
10920 if test -n "$ac_cv_prog_LD"; then
10921 for ncn_progname in ld; do
10922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_prog_LD+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test -n "$LD"; then
10930 ac_cv_prog_LD="$LD" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_prog_LD="${ncn_progname}"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 break 2
10942 fi
10943 done
10944 done
10945 IFS=$as_save_IFS
10946
10947 fi
10948 fi
10949 LD=$ac_cv_prog_LD
10950 if test -n "$LD"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10952 $as_echo "$LD" >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959 done
10960 fi
10961
10962 for ncn_progname in ld; do
10963 if test -n "$ncn_tool_prefix"; then
10964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_LD+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 if test -n "$LD"; then
10972 ac_cv_prog_LD="$LD" # Let the user override the test.
10973 else
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10976 do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985 done
10986 done
10987 IFS=$as_save_IFS
10988
10989 fi
10990 fi
10991 LD=$ac_cv_prog_LD
10992 if test -n "$LD"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10994 $as_echo "$LD" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998 fi
10999
11000
11001 fi
11002 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_prog_LD+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 if test -n "$LD"; then
11011 ac_cv_prog_LD="$LD" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_LD="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11023 fi
11024 done
11025 done
11026 IFS=$as_save_IFS
11027
11028 fi
11029 fi
11030 LD=$ac_cv_prog_LD
11031 if test -n "$LD"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11033 $as_echo "$LD" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038
11039
11040 fi
11041 test -n "$ac_cv_prog_LD" && break
11042 done
11043
11044 if test -z "$ac_cv_prog_LD" ; then
11045 set dummy ld
11046 if test $build = $host ; then
11047 LD="$2"
11048 else
11049 LD="${ncn_tool_prefix}$2"
11050 fi
11051 fi
11052
11053
11054
11055 if test -n "$LIPO"; then
11056 ac_cv_prog_LIPO=$LIPO
11057 elif test -n "$ac_cv_prog_LIPO"; then
11058 LIPO=$ac_cv_prog_LIPO
11059 fi
11060
11061 if test -n "$ac_cv_prog_LIPO"; then
11062 for ncn_progname in lipo; do
11063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11064 set dummy ${ncn_progname}; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if ${ac_cv_prog_LIPO+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 if test -n "$LIPO"; then
11071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11072 else
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11075 do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_LIPO="${ncn_progname}"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084 done
11085 done
11086 IFS=$as_save_IFS
11087
11088 fi
11089 fi
11090 LIPO=$ac_cv_prog_LIPO
11091 if test -n "$LIPO"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11093 $as_echo "$LIPO" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098
11099
11100 done
11101 fi
11102
11103 for ncn_progname in lipo; do
11104 if test -n "$ncn_tool_prefix"; then
11105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_prog_LIPO+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$LIPO"; then
11113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 LIPO=$ac_cv_prog_LIPO
11133 if test -n "$LIPO"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11135 $as_echo "$LIPO" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142 fi
11143 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11145 set dummy ${ncn_progname}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_prog_LIPO+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 if test -n "$LIPO"; then
11152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11153 else
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_LIPO="${ncn_progname}"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11164 fi
11165 done
11166 done
11167 IFS=$as_save_IFS
11168
11169 fi
11170 fi
11171 LIPO=$ac_cv_prog_LIPO
11172 if test -n "$LIPO"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11174 $as_echo "$LIPO" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178 fi
11179
11180
11181 fi
11182 test -n "$ac_cv_prog_LIPO" && break
11183 done
11184
11185 if test -z "$ac_cv_prog_LIPO" ; then
11186 set dummy lipo
11187 if test $build = $host ; then
11188 LIPO="$2"
11189 else
11190 LIPO="${ncn_tool_prefix}$2"
11191 fi
11192 fi
11193
11194
11195
11196 if test -n "$NM"; then
11197 ac_cv_prog_NM=$NM
11198 elif test -n "$ac_cv_prog_NM"; then
11199 NM=$ac_cv_prog_NM
11200 fi
11201
11202 if test -n "$ac_cv_prog_NM"; then
11203 for ncn_progname in nm; do
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_prog_NM+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if test -n "$NM"; then
11212 ac_cv_prog_NM="$NM" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_NM="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225 done
11226 done
11227 IFS=$as_save_IFS
11228
11229 fi
11230 fi
11231 NM=$ac_cv_prog_NM
11232 if test -n "$NM"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11234 $as_echo "$NM" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239
11240
11241 done
11242 fi
11243
11244 for ncn_progname in nm; do
11245 if test -n "$ncn_tool_prefix"; then
11246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_NM+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$NM"; then
11254 ac_cv_prog_NM="$NM" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 NM=$ac_cv_prog_NM
11274 if test -n "$NM"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11276 $as_echo "$NM" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 fi
11284 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286 set dummy ${ncn_progname}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_prog_NM+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 if test -n "$NM"; then
11293 ac_cv_prog_NM="$NM" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11297 do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_prog_NM="${ncn_progname}"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306 done
11307 done
11308 IFS=$as_save_IFS
11309
11310 fi
11311 fi
11312 NM=$ac_cv_prog_NM
11313 if test -n "$NM"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11315 $as_echo "$NM" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320
11321
11322 fi
11323 test -n "$ac_cv_prog_NM" && break
11324 done
11325
11326 if test -z "$ac_cv_prog_NM" ; then
11327 set dummy nm
11328 if test $build = $host ; then
11329 NM="$2"
11330 else
11331 NM="${ncn_tool_prefix}$2"
11332 fi
11333 fi
11334
11335
11336
11337 if test -n "$RANLIB"; then
11338 ac_cv_prog_RANLIB=$RANLIB
11339 elif test -n "$ac_cv_prog_RANLIB"; then
11340 RANLIB=$ac_cv_prog_RANLIB
11341 fi
11342
11343 if test -n "$ac_cv_prog_RANLIB"; then
11344 for ncn_progname in ranlib; do
11345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346 set dummy ${ncn_progname}; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_prog_RANLIB+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 if test -n "$RANLIB"; then
11353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11354 else
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11357 do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_prog_RANLIB="${ncn_progname}"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11365 fi
11366 done
11367 done
11368 IFS=$as_save_IFS
11369
11370 fi
11371 fi
11372 RANLIB=$ac_cv_prog_RANLIB
11373 if test -n "$RANLIB"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11375 $as_echo "$RANLIB" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11379 fi
11380
11381
11382 done
11383 fi
11384
11385 for ncn_progname in ranlib; do
11386 if test -n "$ncn_tool_prefix"; then
11387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_RANLIB+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 if test -n "$RANLIB"; then
11395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408 done
11409 done
11410 IFS=$as_save_IFS
11411
11412 fi
11413 fi
11414 RANLIB=$ac_cv_prog_RANLIB
11415 if test -n "$RANLIB"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11417 $as_echo "$RANLIB" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423
11424 fi
11425 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if ${ac_cv_prog_RANLIB+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 if test -n "$RANLIB"; then
11434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_RANLIB="${ncn_progname}"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11446 fi
11447 done
11448 done
11449 IFS=$as_save_IFS
11450
11451 fi
11452 fi
11453 RANLIB=$ac_cv_prog_RANLIB
11454 if test -n "$RANLIB"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11456 $as_echo "$RANLIB" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463 fi
11464 test -n "$ac_cv_prog_RANLIB" && break
11465 done
11466
11467 if test -z "$ac_cv_prog_RANLIB" ; then
11468 RANLIB="true"
11469 fi
11470
11471
11472
11473 if test -n "$STRIP"; then
11474 ac_cv_prog_STRIP=$STRIP
11475 elif test -n "$ac_cv_prog_STRIP"; then
11476 STRIP=$ac_cv_prog_STRIP
11477 fi
11478
11479 if test -n "$ac_cv_prog_STRIP"; then
11480 for ncn_progname in strip; do
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_prog_STRIP+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test -n "$STRIP"; then
11489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_prog_STRIP="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11501 fi
11502 done
11503 done
11504 IFS=$as_save_IFS
11505
11506 fi
11507 fi
11508 STRIP=$ac_cv_prog_STRIP
11509 if test -n "$STRIP"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11511 $as_echo "$STRIP" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518 done
11519 fi
11520
11521 for ncn_progname in strip; do
11522 if test -n "$ncn_tool_prefix"; then
11523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11524 set dummy ${ncn_tool_prefix}${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_STRIP+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test -n "$STRIP"; then
11531 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${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 STRIP=$ac_cv_prog_STRIP
11551 if test -n "$STRIP"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11553 $as_echo "$STRIP" >&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 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563 set dummy ${ncn_progname}; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_prog_STRIP+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test -n "$STRIP"; then
11570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_STRIP="${ncn_progname}"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583 done
11584 done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 STRIP=$ac_cv_prog_STRIP
11590 if test -n "$STRIP"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11592 $as_echo "$STRIP" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599 fi
11600 test -n "$ac_cv_prog_STRIP" && break
11601 done
11602
11603 if test -z "$ac_cv_prog_STRIP" ; then
11604 STRIP="true"
11605 fi
11606
11607
11608
11609 if test -n "$WINDRES"; then
11610 ac_cv_prog_WINDRES=$WINDRES
11611 elif test -n "$ac_cv_prog_WINDRES"; then
11612 WINDRES=$ac_cv_prog_WINDRES
11613 fi
11614
11615 if test -n "$ac_cv_prog_WINDRES"; then
11616 for ncn_progname in windres; do
11617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618 set dummy ${ncn_progname}; ac_word=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if ${ac_cv_prog_WINDRES+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 if test -n "$WINDRES"; then
11625 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11626 else
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_prog_WINDRES="${ncn_progname}"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 break 2
11637 fi
11638 done
11639 done
11640 IFS=$as_save_IFS
11641
11642 fi
11643 fi
11644 WINDRES=$ac_cv_prog_WINDRES
11645 if test -n "$WINDRES"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11647 $as_echo "$WINDRES" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652
11653
11654 done
11655 fi
11656
11657 for ncn_progname in windres; do
11658 if test -n "$ncn_tool_prefix"; then
11659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_prog_WINDRES+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 if test -n "$WINDRES"; then
11667 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11668 else
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11671 do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 break 2
11679 fi
11680 done
11681 done
11682 IFS=$as_save_IFS
11683
11684 fi
11685 fi
11686 WINDRES=$ac_cv_prog_WINDRES
11687 if test -n "$WINDRES"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11689 $as_echo "$WINDRES" >&6; }
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11693 fi
11694
11695
11696 fi
11697 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11699 set dummy ${ncn_progname}; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if ${ac_cv_prog_WINDRES+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test -n "$WINDRES"; then
11706 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_prog_WINDRES="${ncn_progname}"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719 done
11720 done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 WINDRES=$ac_cv_prog_WINDRES
11726 if test -n "$WINDRES"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11728 $as_echo "$WINDRES" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 fi
11736 test -n "$ac_cv_prog_WINDRES" && break
11737 done
11738
11739 if test -z "$ac_cv_prog_WINDRES" ; then
11740 set dummy windres
11741 if test $build = $host ; then
11742 WINDRES="$2"
11743 else
11744 WINDRES="${ncn_tool_prefix}$2"
11745 fi
11746 fi
11747
11748
11749
11750 if test -n "$WINDMC"; then
11751 ac_cv_prog_WINDMC=$WINDMC
11752 elif test -n "$ac_cv_prog_WINDMC"; then
11753 WINDMC=$ac_cv_prog_WINDMC
11754 fi
11755
11756 if test -n "$ac_cv_prog_WINDMC"; then
11757 for ncn_progname in windmc; do
11758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11759 set dummy ${ncn_progname}; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_prog_WINDMC+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 if test -n "$WINDMC"; then
11766 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11767 else
11768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11770 do
11771 IFS=$as_save_IFS
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775 ac_cv_prog_WINDMC="${ncn_progname}"
11776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 break 2
11778 fi
11779 done
11780 done
11781 IFS=$as_save_IFS
11782
11783 fi
11784 fi
11785 WINDMC=$ac_cv_prog_WINDMC
11786 if test -n "$WINDMC"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11788 $as_echo "$WINDMC" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793
11794
11795 done
11796 fi
11797
11798 for ncn_progname in windmc; do
11799 if test -n "$ncn_tool_prefix"; then
11800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_prog_WINDMC+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 if test -n "$WINDMC"; then
11808 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11809 else
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11812 do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11820 fi
11821 done
11822 done
11823 IFS=$as_save_IFS
11824
11825 fi
11826 fi
11827 WINDMC=$ac_cv_prog_WINDMC
11828 if test -n "$WINDMC"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11830 $as_echo "$WINDMC" >&6; }
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835
11836
11837 fi
11838 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11840 set dummy ${ncn_progname}; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_WINDMC+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 if test -n "$WINDMC"; then
11847 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_WINDMC="${ncn_progname}"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11859 fi
11860 done
11861 done
11862 IFS=$as_save_IFS
11863
11864 fi
11865 fi
11866 WINDMC=$ac_cv_prog_WINDMC
11867 if test -n "$WINDMC"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11869 $as_echo "$WINDMC" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876 fi
11877 test -n "$ac_cv_prog_WINDMC" && break
11878 done
11879
11880 if test -z "$ac_cv_prog_WINDMC" ; then
11881 set dummy windmc
11882 if test $build = $host ; then
11883 WINDMC="$2"
11884 else
11885 WINDMC="${ncn_tool_prefix}$2"
11886 fi
11887 fi
11888
11889
11890
11891 if test -n "$OBJCOPY"; then
11892 ac_cv_prog_OBJCOPY=$OBJCOPY
11893 elif test -n "$ac_cv_prog_OBJCOPY"; then
11894 OBJCOPY=$ac_cv_prog_OBJCOPY
11895 fi
11896
11897 if test -n "$ac_cv_prog_OBJCOPY"; then
11898 for ncn_progname in objcopy; do
11899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_OBJCOPY+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 if test -n "$OBJCOPY"; then
11907 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_OBJCOPY="${ncn_progname}"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920 done
11921 done
11922 IFS=$as_save_IFS
11923
11924 fi
11925 fi
11926 OBJCOPY=$ac_cv_prog_OBJCOPY
11927 if test -n "$OBJCOPY"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11929 $as_echo "$OBJCOPY" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936 done
11937 fi
11938
11939 for ncn_progname in objcopy; do
11940 if test -n "$ncn_tool_prefix"; then
11941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_tool_prefix}${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_OBJCOPY+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$OBJCOPY"; then
11949 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${ncn_tool_prefix}${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 OBJCOPY=$ac_cv_prog_OBJCOPY
11969 if test -n "$OBJCOPY"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11971 $as_echo "$OBJCOPY" >&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 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_prog_OBJCOPY+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 if test -n "$OBJCOPY"; then
11988 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_OBJCOPY="${ncn_progname}"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12000 fi
12001 done
12002 done
12003 IFS=$as_save_IFS
12004
12005 fi
12006 fi
12007 OBJCOPY=$ac_cv_prog_OBJCOPY
12008 if test -n "$OBJCOPY"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12010 $as_echo "$OBJCOPY" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016
12017 fi
12018 test -n "$ac_cv_prog_OBJCOPY" && break
12019 done
12020
12021 if test -z "$ac_cv_prog_OBJCOPY" ; then
12022 set dummy objcopy
12023 if test $build = $host ; then
12024 OBJCOPY="$2"
12025 else
12026 OBJCOPY="${ncn_tool_prefix}$2"
12027 fi
12028 fi
12029
12030
12031
12032 if test -n "$OBJDUMP"; then
12033 ac_cv_prog_OBJDUMP=$OBJDUMP
12034 elif test -n "$ac_cv_prog_OBJDUMP"; then
12035 OBJDUMP=$ac_cv_prog_OBJDUMP
12036 fi
12037
12038 if test -n "$ac_cv_prog_OBJDUMP"; then
12039 for ncn_progname in objdump; do
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041 set dummy ${ncn_progname}; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if ${ac_cv_prog_OBJDUMP+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 if test -n "$OBJDUMP"; then
12048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_OBJDUMP="${ncn_progname}"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12060 fi
12061 done
12062 done
12063 IFS=$as_save_IFS
12064
12065 fi
12066 fi
12067 OBJDUMP=$ac_cv_prog_OBJDUMP
12068 if test -n "$OBJDUMP"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12070 $as_echo "$OBJDUMP" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075
12076
12077 done
12078 fi
12079
12080 for ncn_progname in objdump; do
12081 if test -n "$ncn_tool_prefix"; then
12082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_OBJDUMP+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$OBJDUMP"; then
12090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 OBJDUMP=$ac_cv_prog_OBJDUMP
12110 if test -n "$OBJDUMP"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12112 $as_echo "$OBJDUMP" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118
12119 fi
12120 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_OBJDUMP+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$OBJDUMP"; then
12129 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_OBJDUMP="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 OBJDUMP=$ac_cv_prog_OBJDUMP
12149 if test -n "$OBJDUMP"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12151 $as_echo "$OBJDUMP" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 fi
12159 test -n "$ac_cv_prog_OBJDUMP" && break
12160 done
12161
12162 if test -z "$ac_cv_prog_OBJDUMP" ; then
12163 set dummy objdump
12164 if test $build = $host ; then
12165 OBJDUMP="$2"
12166 else
12167 OBJDUMP="${ncn_tool_prefix}$2"
12168 fi
12169 fi
12170
12171
12172
12173 if test -n "$OTOOL"; then
12174 ac_cv_prog_OTOOL=$OTOOL
12175 elif test -n "$ac_cv_prog_OTOOL"; then
12176 OTOOL=$ac_cv_prog_OTOOL
12177 fi
12178
12179 if test -n "$ac_cv_prog_OTOOL"; then
12180 for ncn_progname in otool; do
12181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if ${ac_cv_prog_OTOOL+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 if test -n "$OTOOL"; then
12189 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12190 else
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_prog_OTOOL="${ncn_progname}"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12201 fi
12202 done
12203 done
12204 IFS=$as_save_IFS
12205
12206 fi
12207 fi
12208 OTOOL=$ac_cv_prog_OTOOL
12209 if test -n "$OTOOL"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12211 $as_echo "$OTOOL" >&6; }
12212 else
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215 fi
12216
12217
12218 done
12219 fi
12220
12221 for ncn_progname in otool; do
12222 if test -n "$ncn_tool_prefix"; then
12223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_OTOOL+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$OTOOL"; then
12231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244 done
12245 done
12246 IFS=$as_save_IFS
12247
12248 fi
12249 fi
12250 OTOOL=$ac_cv_prog_OTOOL
12251 if test -n "$OTOOL"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12253 $as_echo "$OTOOL" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260 fi
12261 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_prog_OTOOL+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 if test -n "$OTOOL"; then
12270 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12274 do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279 ac_cv_prog_OTOOL="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283 done
12284 done
12285 IFS=$as_save_IFS
12286
12287 fi
12288 fi
12289 OTOOL=$ac_cv_prog_OTOOL
12290 if test -n "$OTOOL"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12292 $as_echo "$OTOOL" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297
12298
12299 fi
12300 test -n "$ac_cv_prog_OTOOL" && break
12301 done
12302
12303 if test -z "$ac_cv_prog_OTOOL" ; then
12304 set dummy otool
12305 if test $build = $host ; then
12306 OTOOL="$2"
12307 else
12308 OTOOL="${ncn_tool_prefix}$2"
12309 fi
12310 fi
12311
12312
12313
12314 if test -n "$READELF"; then
12315 ac_cv_prog_READELF=$READELF
12316 elif test -n "$ac_cv_prog_READELF"; then
12317 READELF=$ac_cv_prog_READELF
12318 fi
12319
12320 if test -n "$ac_cv_prog_READELF"; then
12321 for ncn_progname in readelf; do
12322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12323 set dummy ${ncn_progname}; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_prog_READELF+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -n "$READELF"; then
12330 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339 ac_cv_prog_READELF="${ncn_progname}"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 READELF=$ac_cv_prog_READELF
12350 if test -n "$READELF"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12352 $as_echo "$READELF" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359 done
12360 fi
12361
12362 for ncn_progname in readelf; do
12363 if test -n "$ncn_tool_prefix"; then
12364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_READELF+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 if test -n "$READELF"; then
12372 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12373 else
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385 done
12386 done
12387 IFS=$as_save_IFS
12388
12389 fi
12390 fi
12391 READELF=$ac_cv_prog_READELF
12392 if test -n "$READELF"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12394 $as_echo "$READELF" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401 fi
12402 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12404 set dummy ${ncn_progname}; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_prog_READELF+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 if test -n "$READELF"; then
12411 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_prog_READELF="${ncn_progname}"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424 done
12425 done
12426 IFS=$as_save_IFS
12427
12428 fi
12429 fi
12430 READELF=$ac_cv_prog_READELF
12431 if test -n "$READELF"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12433 $as_echo "$READELF" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438
12439
12440 fi
12441 test -n "$ac_cv_prog_READELF" && break
12442 done
12443
12444 if test -z "$ac_cv_prog_READELF" ; then
12445 set dummy readelf
12446 if test $build = $host ; then
12447 READELF="$2"
12448 else
12449 READELF="${ncn_tool_prefix}$2"
12450 fi
12451 fi
12452
12453
12454
12455
12456
12457
12458 # Target tools.
12459
12460 # Check whether --with-build-time-tools was given.
12461 if test "${with_build_time_tools+set}" = set; then :
12462 withval=$with_build_time_tools; case x"$withval" in
12463 x/*) ;;
12464 *)
12465 with_build_time_tools=
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12467 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12468 ;;
12469 esac
12470 else
12471 with_build_time_tools=
12472 fi
12473
12474
12475
12476
12477 if test -n "$CC_FOR_TARGET"; then
12478 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12479 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12480 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12481 fi
12482
12483 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12484 for ncn_progname in cc gcc; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$CC_FOR_TARGET"; then
12493 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12513 if test -n "$CC_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12515 $as_echo "$CC_FOR_TARGET" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 done
12523 fi
12524
12525 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in cc gcc; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 break
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538 done
12539 fi
12540
12541 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12542 for ncn_progname in cc gcc; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$CC_FOR_TARGET"; then
12552 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12556 do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12564 fi
12565 done
12566 done
12567 IFS=$as_save_IFS
12568
12569 fi
12570 fi
12571 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12572 if test -n "$CC_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12574 $as_echo "$CC_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581 fi
12582 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if test -n "$CC_FOR_TARGET"; then
12591 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604 done
12605 done
12606 IFS=$as_save_IFS
12607
12608 fi
12609 fi
12610 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12611 if test -n "$CC_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12613 $as_echo "$CC_FOR_TARGET" >&6; }
12614 else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 fi
12618
12619
12620 fi
12621 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12622 done
12623 fi
12624
12625 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12626 set dummy cc gcc
12627 if test $build = $target ; then
12628 CC_FOR_TARGET="$2"
12629 else
12630 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12631 fi
12632 else
12633 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12634 fi
12635
12636
12637
12638 if test -n "$CXX_FOR_TARGET"; then
12639 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12640 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12641 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12642 fi
12643
12644 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12645 for ncn_progname in c++ g++ cxx gxx; do
12646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12647 set dummy ${ncn_progname}; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649 $as_echo_n "checking for $ac_word... " >&6; }
12650 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 if test -n "$CXX_FOR_TARGET"; then
12654 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12655 else
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667 done
12668 done
12669 IFS=$as_save_IFS
12670
12671 fi
12672 fi
12673 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12674 if test -n "$CXX_FOR_TARGET"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12676 $as_echo "$CXX_FOR_TARGET" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680 fi
12681
12682
12683 done
12684 fi
12685
12686 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12687 for ncn_progname in c++ g++ cxx gxx; do
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12689 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12690 if test -x $with_build_time_tools/${ncn_progname}; then
12691 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694 break
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699 done
12700 fi
12701
12702 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12703 for ncn_progname in c++ g++ cxx gxx; do
12704 if test -n "$ncn_target_tool_prefix"; then
12705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 if test -n "$CXX_FOR_TARGET"; then
12713 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12714 else
12715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 for as_dir in $PATH
12717 do
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12722 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12725 fi
12726 done
12727 done
12728 IFS=$as_save_IFS
12729
12730 fi
12731 fi
12732 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12733 if test -n "$CXX_FOR_TARGET"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12735 $as_echo "$CXX_FOR_TARGET" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 fi
12740
12741
12742 fi
12743 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$CXX_FOR_TARGET"; then
12752 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12772 if test -n "$CXX_FOR_TARGET"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12774 $as_echo "$CXX_FOR_TARGET" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780
12781 fi
12782 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12783 done
12784 fi
12785
12786 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12787 set dummy c++ g++ cxx gxx
12788 if test $build = $target ; then
12789 CXX_FOR_TARGET="$2"
12790 else
12791 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12792 fi
12793 else
12794 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12795 fi
12796
12797
12798
12799 if test -n "$GCC_FOR_TARGET"; then
12800 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12801 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12802 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12803 fi
12804
12805 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12806 for ncn_progname in gcc; do
12807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808 set dummy ${ncn_progname}; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$GCC_FOR_TARGET"; then
12815 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832 fi
12833 fi
12834 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12835 if test -n "$GCC_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12837 $as_echo "$GCC_FOR_TARGET" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842
12843
12844 done
12845 fi
12846
12847 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12848 for ncn_progname in gcc; do
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12850 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12851 if test -x $with_build_time_tools/${ncn_progname}; then
12852 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854 $as_echo "yes" >&6; }
12855 break
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860 done
12861 fi
12862
12863 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12864 for ncn_progname in gcc; do
12865 if test -n "$ncn_target_tool_prefix"; then
12866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12867 set dummy ${ncn_target_tool_prefix}${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_GCC_FOR_TARGET+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$GCC_FOR_TARGET"; then
12874 ac_cv_prog_GCC_FOR_TARGET="$GCC_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_GCC_FOR_TARGET="${ncn_target_tool_prefix}${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 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12894 if test -n "$GCC_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12896 $as_echo "$GCC_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 fi
12904 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test -n "$GCC_FOR_TARGET"; then
12913 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12914 else
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12917 do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926 done
12927 done
12928 IFS=$as_save_IFS
12929
12930 fi
12931 fi
12932 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12933 if test -n "$GCC_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12935 $as_echo "$GCC_FOR_TARGET" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12939 fi
12940
12941
12942 fi
12943 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12944 done
12945 fi
12946
12947 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12948 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12949 else
12950 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12951 fi
12952
12953
12954
12955 if test -n "$GFORTRAN_FOR_TARGET"; then
12956 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12957 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12958 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12959 fi
12960
12961 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12962 for ncn_progname in gfortran; do
12963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964 set dummy ${ncn_progname}; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 if test -n "$GFORTRAN_FOR_TARGET"; then
12971 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12975 do
12976 IFS=$as_save_IFS
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982 break 2
12983 fi
12984 done
12985 done
12986 IFS=$as_save_IFS
12987
12988 fi
12989 fi
12990 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12991 if test -n "$GFORTRAN_FOR_TARGET"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12993 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998
12999
13000 done
13001 fi
13002
13003 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13004 for ncn_progname in gfortran; do
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13007 if test -x $with_build_time_tools/${ncn_progname}; then
13008 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13010 $as_echo "yes" >&6; }
13011 break
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016 done
13017 fi
13018
13019 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13020 for ncn_progname in gfortran; do
13021 if test -n "$ncn_target_tool_prefix"; then
13022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 if test -n "$GFORTRAN_FOR_TARGET"; then
13030 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13031 else
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13042 fi
13043 done
13044 done
13045 IFS=$as_save_IFS
13046
13047 fi
13048 fi
13049 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13050 if test -n "$GFORTRAN_FOR_TARGET"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13052 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057
13058
13059 fi
13060 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$GFORTRAN_FOR_TARGET"; then
13069 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13089 if test -n "$GFORTRAN_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13091 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095 fi
13096
13097
13098 fi
13099 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13100 done
13101 fi
13102
13103 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13104 set dummy gfortran
13105 if test $build = $target ; then
13106 GFORTRAN_FOR_TARGET="$2"
13107 else
13108 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13109 fi
13110 else
13111 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13112 fi
13113
13114
13115
13116 if test -n "$GOC_FOR_TARGET"; then
13117 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13118 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13119 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13120 fi
13121
13122 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13123 for ncn_progname in gccgo; do
13124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13125 set dummy ${ncn_progname}; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 if test -n "$GOC_FOR_TARGET"; then
13132 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13133 else
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145 done
13146 done
13147 IFS=$as_save_IFS
13148
13149 fi
13150 fi
13151 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13152 if test -n "$GOC_FOR_TARGET"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13154 $as_echo "$GOC_FOR_TARGET" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159
13160
13161 done
13162 fi
13163
13164 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13165 for ncn_progname in gccgo; do
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13168 if test -x $with_build_time_tools/${ncn_progname}; then
13169 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13171 $as_echo "yes" >&6; }
13172 break
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177 done
13178 fi
13179
13180 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13181 for ncn_progname in gccgo; do
13182 if test -n "$ncn_target_tool_prefix"; then
13183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 if test -n "$GOC_FOR_TARGET"; then
13191 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13192 else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13203 fi
13204 done
13205 done
13206 IFS=$as_save_IFS
13207
13208 fi
13209 fi
13210 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13211 if test -n "$GOC_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13213 $as_echo "$GOC_FOR_TARGET" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218
13219
13220 fi
13221 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13223 set dummy ${ncn_progname}; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$GOC_FOR_TARGET"; then
13230 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243 done
13244 done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13250 if test -n "$GOC_FOR_TARGET"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13252 $as_echo "$GOC_FOR_TARGET" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13261 done
13262 fi
13263
13264 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13265 set dummy gccgo
13266 if test $build = $target ; then
13267 GOC_FOR_TARGET="$2"
13268 else
13269 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13270 fi
13271 else
13272 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13273 fi
13274
13275
13276
13277 if test -n "$GDC_FOR_TARGET"; then
13278 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13279 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13280 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13281 fi
13282
13283 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13284 for ncn_progname in gdc; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$GDC_FOR_TARGET"; then
13293 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13313 if test -n "$GDC_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13315 $as_echo "$GDC_FOR_TARGET" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320
13321
13322 done
13323 fi
13324
13325 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13326 for ncn_progname in gdc; do
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13333 break
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338 done
13339 fi
13340
13341 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13342 for ncn_progname in gdc; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_target_tool_prefix}${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_GDC_FOR_TARGET+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$GDC_FOR_TARGET"; then
13352 ac_cv_prog_GDC_FOR_TARGET="$GDC_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_GDC_FOR_TARGET="${ncn_target_tool_prefix}${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 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13372 if test -n "$GDC_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13374 $as_echo "$GDC_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 fi
13382 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$GDC_FOR_TARGET"; then
13391 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13403 fi
13404 done
13405 done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13411 if test -n "$GDC_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13413 $as_echo "$GDC_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13422 done
13423 fi
13424
13425 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13426 set dummy gdc
13427 if test $build = $target ; then
13428 GDC_FOR_TARGET="$2"
13429 else
13430 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13431 fi
13432 else
13433 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13434 fi
13435
13436
13437
13438 cat > conftest.c << \EOF
13439 #ifdef __GNUC__
13440 gcc_yay;
13441 #endif
13442 EOF
13443 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13444 have_gcc_for_target=yes
13445 else
13446 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13447 have_gcc_for_target=no
13448 fi
13449 rm conftest.c
13450
13451
13452
13453
13454 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13455 if test -n "$with_build_time_tools"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13457 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13458 if test -x $with_build_time_tools/ar; then
13459 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13460 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13462 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467 elif test $build != $host && test $have_gcc_for_target = yes; then
13468 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13469 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13470 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13471 fi
13472 fi
13473 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13474 # Extract the first word of "ar", so it can be a program name with args.
13475 set dummy ar; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477 $as_echo_n "checking for $ac_word... " >&6; }
13478 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 case $AR_FOR_TARGET in
13482 [\\/]* | ?:[\\/]*)
13483 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13484 ;;
13485 *)
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $gcc_cv_tool_dirs
13488 do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497 done
13498 done
13499 IFS=$as_save_IFS
13500
13501 ;;
13502 esac
13503 fi
13504 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13505 if test -n "$AR_FOR_TARGET"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13507 $as_echo "$AR_FOR_TARGET" >&6; }
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512
13513
13514 fi
13515 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13516
13517
13518 if test -n "$AR_FOR_TARGET"; then
13519 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13520 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13521 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13522 fi
13523
13524 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13525 for ncn_progname in ar; do
13526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13527 set dummy ${ncn_progname}; ac_word=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529 $as_echo_n "checking for $ac_word... " >&6; }
13530 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 if test -n "$AR_FOR_TARGET"; then
13534 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13535 else
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13538 do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547 done
13548 done
13549 IFS=$as_save_IFS
13550
13551 fi
13552 fi
13553 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13554 if test -n "$AR_FOR_TARGET"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13556 $as_echo "$AR_FOR_TARGET" >&6; }
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13560 fi
13561
13562
13563 done
13564 fi
13565
13566 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13567 for ncn_progname in ar; do
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13569 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13570 if test -x $with_build_time_tools/${ncn_progname}; then
13571 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574 break
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578 fi
13579 done
13580 fi
13581
13582 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13583 for ncn_progname in ar; do
13584 if test -n "$ncn_target_tool_prefix"; then
13585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$AR_FOR_TARGET"; then
13593 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13597 do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606 done
13607 done
13608 IFS=$as_save_IFS
13609
13610 fi
13611 fi
13612 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13613 if test -n "$AR_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13615 $as_echo "$AR_FOR_TARGET" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 fi
13620
13621
13622 fi
13623 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 if test -n "$AR_FOR_TARGET"; then
13632 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645 done
13646 done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13652 if test -n "$AR_FOR_TARGET"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13654 $as_echo "$AR_FOR_TARGET" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661 fi
13662 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13663 done
13664 fi
13665
13666 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13667 set dummy ar
13668 if test $build = $target ; then
13669 AR_FOR_TARGET="$2"
13670 else
13671 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13672 fi
13673 else
13674 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13675 fi
13676
13677 else
13678 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13679 fi
13680
13681
13682
13683
13684 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13685 if test -n "$with_build_time_tools"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13687 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13688 if test -x $with_build_time_tools/as; then
13689 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13690 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13692 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697 elif test $build != $host && test $have_gcc_for_target = yes; then
13698 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13699 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13700 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13701 fi
13702 fi
13703 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13704 # Extract the first word of "as", so it can be a program name with args.
13705 set dummy as; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 case $AS_FOR_TARGET in
13712 [\\/]* | ?:[\\/]*)
13713 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13714 ;;
13715 *)
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $gcc_cv_tool_dirs
13718 do
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13723 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13726 fi
13727 done
13728 done
13729 IFS=$as_save_IFS
13730
13731 ;;
13732 esac
13733 fi
13734 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13735 if test -n "$AS_FOR_TARGET"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13737 $as_echo "$AS_FOR_TARGET" >&6; }
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13741 fi
13742
13743
13744 fi
13745 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13746
13747
13748 if test -n "$AS_FOR_TARGET"; then
13749 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13750 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13751 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13752 fi
13753
13754 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13755 for ncn_progname in as; do
13756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13757 set dummy ${ncn_progname}; ac_word=$2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759 $as_echo_n "checking for $ac_word... " >&6; }
13760 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 if test -n "$AS_FOR_TARGET"; then
13764 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13768 do
13769 IFS=$as_save_IFS
13770 test -z "$as_dir" && as_dir=.
13771 for ac_exec_ext in '' $ac_executable_extensions; do
13772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13773 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13775 break 2
13776 fi
13777 done
13778 done
13779 IFS=$as_save_IFS
13780
13781 fi
13782 fi
13783 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13784 if test -n "$AS_FOR_TARGET"; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13786 $as_echo "$AS_FOR_TARGET" >&6; }
13787 else
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13789 $as_echo "no" >&6; }
13790 fi
13791
13792
13793 done
13794 fi
13795
13796 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13797 for ncn_progname in as; do
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13799 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13800 if test -x $with_build_time_tools/${ncn_progname}; then
13801 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13803 $as_echo "yes" >&6; }
13804 break
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809 done
13810 fi
13811
13812 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13813 for ncn_progname in as; do
13814 if test -n "$ncn_target_tool_prefix"; then
13815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 if test -n "$AS_FOR_TARGET"; then
13823 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13824 else
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $PATH
13827 do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 break 2
13835 fi
13836 done
13837 done
13838 IFS=$as_save_IFS
13839
13840 fi
13841 fi
13842 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13843 if test -n "$AS_FOR_TARGET"; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13845 $as_echo "$AS_FOR_TARGET" >&6; }
13846 else
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 $as_echo "no" >&6; }
13849 fi
13850
13851
13852 fi
13853 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13855 set dummy ${ncn_progname}; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 if test -n "$AS_FOR_TARGET"; then
13862 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867 IFS=$as_save_IFS
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13871 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 break 2
13874 fi
13875 done
13876 done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13882 if test -n "$AS_FOR_TARGET"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13884 $as_echo "$AS_FOR_TARGET" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890
13891 fi
13892 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13893 done
13894 fi
13895
13896 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13897 set dummy as
13898 if test $build = $target ; then
13899 AS_FOR_TARGET="$2"
13900 else
13901 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13902 fi
13903 else
13904 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13905 fi
13906
13907 else
13908 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13909 fi
13910
13911
13912
13913
13914 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13915 if test -n "$with_build_time_tools"; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13917 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13918 if test -x $with_build_time_tools/dlltool; then
13919 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13920 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13922 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13923 else
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13926 fi
13927 elif test $build != $host && test $have_gcc_for_target = yes; then
13928 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13929 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13930 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13931 fi
13932 fi
13933 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13934 # Extract the first word of "dlltool", so it can be a program name with args.
13935 set dummy dlltool; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 case $DLLTOOL_FOR_TARGET in
13942 [\\/]* | ?:[\\/]*)
13943 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13944 ;;
13945 *)
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $gcc_cv_tool_dirs
13948 do
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13956 fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 ;;
13962 esac
13963 fi
13964 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13965 if test -n "$DLLTOOL_FOR_TARGET"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13967 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13968 else
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13971 fi
13972
13973
13974 fi
13975 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13976
13977
13978 if test -n "$DLLTOOL_FOR_TARGET"; then
13979 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13980 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13981 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13982 fi
13983
13984 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13985 for ncn_progname in dlltool; do
13986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13987 set dummy ${ncn_progname}; ac_word=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13989 $as_echo_n "checking for $ac_word... " >&6; }
13990 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 if test -n "$DLLTOOL_FOR_TARGET"; then
13994 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13995 else
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
13998 do
13999 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14003 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14005 break 2
14006 fi
14007 done
14008 done
14009 IFS=$as_save_IFS
14010
14011 fi
14012 fi
14013 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14014 if test -n "$DLLTOOL_FOR_TARGET"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14016 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020 fi
14021
14022
14023 done
14024 fi
14025
14026 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14027 for ncn_progname in dlltool; do
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14029 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14030 if test -x $with_build_time_tools/${ncn_progname}; then
14031 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14033 $as_echo "yes" >&6; }
14034 break
14035 else
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038 fi
14039 done
14040 fi
14041
14042 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14043 for ncn_progname in dlltool; do
14044 if test -n "$ncn_target_tool_prefix"; then
14045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 if test -n "$DLLTOOL_FOR_TARGET"; then
14053 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14054 else
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi
14071 fi
14072 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14073 if test -n "$DLLTOOL_FOR_TARGET"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14075 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080
14081
14082 fi
14083 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14085 set dummy ${ncn_progname}; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -n "$DLLTOOL_FOR_TARGET"; then
14092 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14112 if test -n "$DLLTOOL_FOR_TARGET"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14114 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14118 fi
14119
14120
14121 fi
14122 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14123 done
14124 fi
14125
14126 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14127 set dummy dlltool
14128 if test $build = $target ; then
14129 DLLTOOL_FOR_TARGET="$2"
14130 else
14131 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14132 fi
14133 else
14134 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14135 fi
14136
14137 else
14138 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14139 fi
14140
14141
14142
14143
14144 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14145 if test -n "$with_build_time_tools"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14147 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14148 if test -x $with_build_time_tools/ld; then
14149 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14150 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14152 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14153 else
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155 $as_echo "no" >&6; }
14156 fi
14157 elif test $build != $host && test $have_gcc_for_target = yes; then
14158 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14159 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14160 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14161 fi
14162 fi
14163 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14164 # Extract the first word of "ld", so it can be a program name with args.
14165 set dummy ld; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14167 $as_echo_n "checking for $ac_word... " >&6; }
14168 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 case $LD_FOR_TARGET in
14172 [\\/]* | ?:[\\/]*)
14173 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14174 ;;
14175 *)
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $gcc_cv_tool_dirs
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_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
14192 esac
14193 fi
14194 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14195 if test -n "$LD_FOR_TARGET"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14197 $as_echo "$LD_FOR_TARGET" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14201 fi
14202
14203
14204 fi
14205 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14206
14207
14208 if test -n "$LD_FOR_TARGET"; then
14209 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14210 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14211 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14212 fi
14213
14214 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14215 for ncn_progname in ld; do
14216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14217 set dummy ${ncn_progname}; ac_word=$2
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14219 $as_echo_n "checking for $ac_word... " >&6; }
14220 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 if test -n "$LD_FOR_TARGET"; then
14224 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14225 else
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14228 do
14229 IFS=$as_save_IFS
14230 test -z "$as_dir" && as_dir=.
14231 for ac_exec_ext in '' $ac_executable_extensions; do
14232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14233 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14235 break 2
14236 fi
14237 done
14238 done
14239 IFS=$as_save_IFS
14240
14241 fi
14242 fi
14243 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14244 if test -n "$LD_FOR_TARGET"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14246 $as_echo "$LD_FOR_TARGET" >&6; }
14247 else
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14250 fi
14251
14252
14253 done
14254 fi
14255
14256 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14257 for ncn_progname in ld; do
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14259 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14260 if test -x $with_build_time_tools/${ncn_progname}; then
14261 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14263 $as_echo "yes" >&6; }
14264 break
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 fi
14269 done
14270 fi
14271
14272 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14273 for ncn_progname in ld; do
14274 if test -n "$ncn_target_tool_prefix"; then
14275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14276 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278 $as_echo_n "checking for $ac_word... " >&6; }
14279 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 if test -n "$LD_FOR_TARGET"; then
14283 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296 done
14297 done
14298 IFS=$as_save_IFS
14299
14300 fi
14301 fi
14302 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14303 if test -n "$LD_FOR_TARGET"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14305 $as_echo "$LD_FOR_TARGET" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310
14311
14312 fi
14313 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14315 set dummy ${ncn_progname}; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14317 $as_echo_n "checking for $ac_word... " >&6; }
14318 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 if test -n "$LD_FOR_TARGET"; then
14322 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14323 else
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14334 fi
14335 done
14336 done
14337 IFS=$as_save_IFS
14338
14339 fi
14340 fi
14341 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14342 if test -n "$LD_FOR_TARGET"; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14344 $as_echo "$LD_FOR_TARGET" >&6; }
14345 else
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14347 $as_echo "no" >&6; }
14348 fi
14349
14350
14351 fi
14352 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14353 done
14354 fi
14355
14356 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14357 set dummy ld
14358 if test $build = $target ; then
14359 LD_FOR_TARGET="$2"
14360 else
14361 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14362 fi
14363 else
14364 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14365 fi
14366
14367 else
14368 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14369 fi
14370
14371
14372
14373
14374 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14375 if test -n "$with_build_time_tools"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14377 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14378 if test -x $with_build_time_tools/lipo; then
14379 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14380 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14382 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14383 else
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 $as_echo "no" >&6; }
14386 fi
14387 elif test $build != $host && test $have_gcc_for_target = yes; then
14388 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14389 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14390 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14391 fi
14392 fi
14393 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14394 # Extract the first word of "lipo", so it can be a program name with args.
14395 set dummy lipo; ac_word=$2
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397 $as_echo_n "checking for $ac_word... " >&6; }
14398 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 case $LIPO_FOR_TARGET in
14402 [\\/]* | ?:[\\/]*)
14403 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14404 ;;
14405 *)
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $gcc_cv_tool_dirs
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_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
14422 esac
14423 fi
14424 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14425 if test -n "$LIPO_FOR_TARGET"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14427 $as_echo "$LIPO_FOR_TARGET" >&6; }
14428 else
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14431 fi
14432
14433
14434 fi
14435 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14436
14437
14438 if test -n "$LIPO_FOR_TARGET"; then
14439 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14440 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14441 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14442 fi
14443
14444 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14445 for ncn_progname in lipo; do
14446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14447 set dummy ${ncn_progname}; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449 $as_echo_n "checking for $ac_word... " >&6; }
14450 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 if test -n "$LIPO_FOR_TARGET"; then
14454 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14455 else
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14458 do
14459 IFS=$as_save_IFS
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14463 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14465 break 2
14466 fi
14467 done
14468 done
14469 IFS=$as_save_IFS
14470
14471 fi
14472 fi
14473 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14474 if test -n "$LIPO_FOR_TARGET"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14476 $as_echo "$LIPO_FOR_TARGET" >&6; }
14477 else
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480 fi
14481
14482
14483 done
14484 fi
14485
14486 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14487 for ncn_progname in lipo; do
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14489 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14490 if test -x $with_build_time_tools/${ncn_progname}; then
14491 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493 $as_echo "yes" >&6; }
14494 break
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14498 fi
14499 done
14500 fi
14501
14502 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14503 for ncn_progname in lipo; do
14504 if test -n "$ncn_target_tool_prefix"; then
14505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14506 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14508 $as_echo_n "checking for $ac_word... " >&6; }
14509 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 if test -n "$LIPO_FOR_TARGET"; then
14513 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14514 else
14515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $PATH
14517 do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
14521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14525 fi
14526 done
14527 done
14528 IFS=$as_save_IFS
14529
14530 fi
14531 fi
14532 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14533 if test -n "$LIPO_FOR_TARGET"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14535 $as_echo "$LIPO_FOR_TARGET" >&6; }
14536 else
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 $as_echo "no" >&6; }
14539 fi
14540
14541
14542 fi
14543 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14545 set dummy ${ncn_progname}; ac_word=$2
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14547 $as_echo_n "checking for $ac_word... " >&6; }
14548 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 if test -n "$LIPO_FOR_TARGET"; then
14552 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557 IFS=$as_save_IFS
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 break 2
14564 fi
14565 done
14566 done
14567 IFS=$as_save_IFS
14568
14569 fi
14570 fi
14571 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14572 if test -n "$LIPO_FOR_TARGET"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14574 $as_echo "$LIPO_FOR_TARGET" >&6; }
14575 else
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14578 fi
14579
14580
14581 fi
14582 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14583 done
14584 fi
14585
14586 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14587 set dummy lipo
14588 if test $build = $target ; then
14589 LIPO_FOR_TARGET="$2"
14590 else
14591 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14592 fi
14593 else
14594 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14595 fi
14596
14597 else
14598 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14599 fi
14600
14601
14602
14603
14604 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14605 if test -n "$with_build_time_tools"; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14607 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14608 if test -x $with_build_time_tools/nm; then
14609 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14610 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14612 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14613 else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615 $as_echo "no" >&6; }
14616 fi
14617 elif test $build != $host && test $have_gcc_for_target = yes; then
14618 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14619 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14620 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14621 fi
14622 fi
14623 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14624 # Extract the first word of "nm", so it can be a program name with args.
14625 set dummy nm; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14627 $as_echo_n "checking for $ac_word... " >&6; }
14628 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 case $NM_FOR_TARGET in
14632 [\\/]* | ?:[\\/]*)
14633 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14634 ;;
14635 *)
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $gcc_cv_tool_dirs
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_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
14652 esac
14653 fi
14654 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14655 if test -n "$NM_FOR_TARGET"; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14657 $as_echo "$NM_FOR_TARGET" >&6; }
14658 else
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661 fi
14662
14663
14664 fi
14665 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14666
14667
14668 if test -n "$NM_FOR_TARGET"; then
14669 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14670 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14671 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14672 fi
14673
14674 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14675 for ncn_progname in nm; do
14676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14677 set dummy ${ncn_progname}; ac_word=$2
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14679 $as_echo_n "checking for $ac_word... " >&6; }
14680 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14681 $as_echo_n "(cached) " >&6
14682 else
14683 if test -n "$NM_FOR_TARGET"; then
14684 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14685 else
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14693 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 break 2
14696 fi
14697 done
14698 done
14699 IFS=$as_save_IFS
14700
14701 fi
14702 fi
14703 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14704 if test -n "$NM_FOR_TARGET"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14706 $as_echo "$NM_FOR_TARGET" >&6; }
14707 else
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14709 $as_echo "no" >&6; }
14710 fi
14711
14712
14713 done
14714 fi
14715
14716 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14717 for ncn_progname in nm; do
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14720 if test -x $with_build_time_tools/${ncn_progname}; then
14721 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14723 $as_echo "yes" >&6; }
14724 break
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14728 fi
14729 done
14730 fi
14731
14732 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14733 for ncn_progname in nm; do
14734 if test -n "$ncn_target_tool_prefix"; then
14735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14738 $as_echo_n "checking for $ac_word... " >&6; }
14739 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14740 $as_echo_n "(cached) " >&6
14741 else
14742 if test -n "$NM_FOR_TARGET"; then
14743 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14744 else
14745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $PATH
14747 do
14748 IFS=$as_save_IFS
14749 test -z "$as_dir" && as_dir=.
14750 for ac_exec_ext in '' $ac_executable_extensions; do
14751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14752 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14754 break 2
14755 fi
14756 done
14757 done
14758 IFS=$as_save_IFS
14759
14760 fi
14761 fi
14762 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14763 if test -n "$NM_FOR_TARGET"; then
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14765 $as_echo "$NM_FOR_TARGET" >&6; }
14766 else
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14769 fi
14770
14771
14772 fi
14773 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14775 set dummy ${ncn_progname}; ac_word=$2
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14777 $as_echo_n "checking for $ac_word... " >&6; }
14778 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 if test -n "$NM_FOR_TARGET"; then
14782 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14783 else
14784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14785 for as_dir in $PATH
14786 do
14787 IFS=$as_save_IFS
14788 test -z "$as_dir" && as_dir=.
14789 for ac_exec_ext in '' $ac_executable_extensions; do
14790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14791 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14793 break 2
14794 fi
14795 done
14796 done
14797 IFS=$as_save_IFS
14798
14799 fi
14800 fi
14801 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14802 if test -n "$NM_FOR_TARGET"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14804 $as_echo "$NM_FOR_TARGET" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808 fi
14809
14810
14811 fi
14812 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14813 done
14814 fi
14815
14816 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14817 set dummy nm
14818 if test $build = $target ; then
14819 NM_FOR_TARGET="$2"
14820 else
14821 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14822 fi
14823 else
14824 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14825 fi
14826
14827 else
14828 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14829 fi
14830
14831
14832
14833
14834 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14835 if test -n "$with_build_time_tools"; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14837 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14838 if test -x $with_build_time_tools/objcopy; then
14839 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14840 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14842 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14843 else
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14845 $as_echo "no" >&6; }
14846 fi
14847 elif test $build != $host && test $have_gcc_for_target = yes; then
14848 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14849 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14850 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14851 fi
14852 fi
14853 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14854 # Extract the first word of "objcopy", so it can be a program name with args.
14855 set dummy objcopy; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 case $OBJCOPY_FOR_TARGET in
14862 [\\/]* | ?:[\\/]*)
14863 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14864 ;;
14865 *)
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $gcc_cv_tool_dirs
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_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
14882 esac
14883 fi
14884 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14885 if test -n "$OBJCOPY_FOR_TARGET"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14887 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892
14893
14894 fi
14895 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14896
14897
14898 if test -n "$OBJCOPY_FOR_TARGET"; then
14899 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14900 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14901 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14902 fi
14903
14904 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14905 for ncn_progname in objcopy; do
14906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14907 set dummy ${ncn_progname}; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909 $as_echo_n "checking for $ac_word... " >&6; }
14910 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 if test -n "$OBJCOPY_FOR_TARGET"; then
14914 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14915 else
14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14918 do
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14925 break 2
14926 fi
14927 done
14928 done
14929 IFS=$as_save_IFS
14930
14931 fi
14932 fi
14933 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14934 if test -n "$OBJCOPY_FOR_TARGET"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14936 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14937 else
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14939 $as_echo "no" >&6; }
14940 fi
14941
14942
14943 done
14944 fi
14945
14946 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14947 for ncn_progname in objcopy; do
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14949 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14950 if test -x $with_build_time_tools/${ncn_progname}; then
14951 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14953 $as_echo "yes" >&6; }
14954 break
14955 else
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957 $as_echo "no" >&6; }
14958 fi
14959 done
14960 fi
14961
14962 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14963 for ncn_progname in objcopy; do
14964 if test -n "$ncn_target_tool_prefix"; then
14965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 if test -n "$OBJCOPY_FOR_TARGET"; then
14973 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984 break 2
14985 fi
14986 done
14987 done
14988 IFS=$as_save_IFS
14989
14990 fi
14991 fi
14992 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14993 if test -n "$OBJCOPY_FOR_TARGET"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14995 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000
15001
15002 fi
15003 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15005 set dummy ${ncn_progname}; ac_word=$2
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15007 $as_echo_n "checking for $ac_word... " >&6; }
15008 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15009 $as_echo_n "(cached) " >&6
15010 else
15011 if test -n "$OBJCOPY_FOR_TARGET"; then
15012 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15013 else
15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15016 do
15017 IFS=$as_save_IFS
15018 test -z "$as_dir" && as_dir=.
15019 for ac_exec_ext in '' $ac_executable_extensions; do
15020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15023 break 2
15024 fi
15025 done
15026 done
15027 IFS=$as_save_IFS
15028
15029 fi
15030 fi
15031 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15032 if test -n "$OBJCOPY_FOR_TARGET"; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15034 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15035 else
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15038 fi
15039
15040
15041 fi
15042 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15043 done
15044 fi
15045
15046 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15047 set dummy objcopy
15048 if test $build = $target ; then
15049 OBJCOPY_FOR_TARGET="$2"
15050 else
15051 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15052 fi
15053 else
15054 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15055 fi
15056
15057 else
15058 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15059 fi
15060
15061
15062
15063
15064 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15065 if test -n "$with_build_time_tools"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15067 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15068 if test -x $with_build_time_tools/objdump; then
15069 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15070 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15072 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15076 fi
15077 elif test $build != $host && test $have_gcc_for_target = yes; then
15078 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15079 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15080 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15081 fi
15082 fi
15083 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15084 # Extract the first word of "objdump", so it can be a program name with args.
15085 set dummy objdump; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15087 $as_echo_n "checking for $ac_word... " >&6; }
15088 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 case $OBJDUMP_FOR_TARGET in
15092 [\\/]* | ?:[\\/]*)
15093 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15094 ;;
15095 *)
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $gcc_cv_tool_dirs
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_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
15112 esac
15113 fi
15114 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15115 if test -n "$OBJDUMP_FOR_TARGET"; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15117 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15118 else
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 $as_echo "no" >&6; }
15121 fi
15122
15123
15124 fi
15125 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15126
15127
15128 if test -n "$OBJDUMP_FOR_TARGET"; then
15129 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15130 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15131 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15132 fi
15133
15134 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15135 for ncn_progname in objdump; do
15136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15137 set dummy ${ncn_progname}; ac_word=$2
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15139 $as_echo_n "checking for $ac_word... " >&6; }
15140 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 if test -n "$OBJDUMP_FOR_TARGET"; then
15144 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15145 else
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15148 do
15149 IFS=$as_save_IFS
15150 test -z "$as_dir" && as_dir=.
15151 for ac_exec_ext in '' $ac_executable_extensions; do
15152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15155 break 2
15156 fi
15157 done
15158 done
15159 IFS=$as_save_IFS
15160
15161 fi
15162 fi
15163 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15164 if test -n "$OBJDUMP_FOR_TARGET"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15166 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15167 else
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169 $as_echo "no" >&6; }
15170 fi
15171
15172
15173 done
15174 fi
15175
15176 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15177 for ncn_progname in objdump; do
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15179 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15180 if test -x $with_build_time_tools/${ncn_progname}; then
15181 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184 break
15185 else
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15187 $as_echo "no" >&6; }
15188 fi
15189 done
15190 fi
15191
15192 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15193 for ncn_progname in objdump; do
15194 if test -n "$ncn_target_tool_prefix"; then
15195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15198 $as_echo_n "checking for $ac_word... " >&6; }
15199 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 if test -n "$OBJDUMP_FOR_TARGET"; then
15203 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15204 else
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 for as_dir in $PATH
15207 do
15208 IFS=$as_save_IFS
15209 test -z "$as_dir" && as_dir=.
15210 for ac_exec_ext in '' $ac_executable_extensions; do
15211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15212 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15214 break 2
15215 fi
15216 done
15217 done
15218 IFS=$as_save_IFS
15219
15220 fi
15221 fi
15222 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15223 if test -n "$OBJDUMP_FOR_TARGET"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15225 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15226 else
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15228 $as_echo "no" >&6; }
15229 fi
15230
15231
15232 fi
15233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15235 set dummy ${ncn_progname}; ac_word=$2
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15237 $as_echo_n "checking for $ac_word... " >&6; }
15238 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 if test -n "$OBJDUMP_FOR_TARGET"; then
15242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15243 else
15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH
15246 do
15247 IFS=$as_save_IFS
15248 test -z "$as_dir" && as_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15253 break 2
15254 fi
15255 done
15256 done
15257 IFS=$as_save_IFS
15258
15259 fi
15260 fi
15261 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15262 if test -n "$OBJDUMP_FOR_TARGET"; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15264 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15265 else
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 $as_echo "no" >&6; }
15268 fi
15269
15270
15271 fi
15272 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15273 done
15274 fi
15275
15276 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15277 set dummy objdump
15278 if test $build = $target ; then
15279 OBJDUMP_FOR_TARGET="$2"
15280 else
15281 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15282 fi
15283 else
15284 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15285 fi
15286
15287 else
15288 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15289 fi
15290
15291
15292
15293
15294 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15295 if test -n "$with_build_time_tools"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15297 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15298 if test -x $with_build_time_tools/otool; then
15299 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15300 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15302 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15303 else
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15305 $as_echo "no" >&6; }
15306 fi
15307 elif test $build != $host && test $have_gcc_for_target = yes; then
15308 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15309 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15310 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15311 fi
15312 fi
15313 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15314 # Extract the first word of "otool", so it can be a program name with args.
15315 set dummy otool; ac_word=$2
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15317 $as_echo_n "checking for $ac_word... " >&6; }
15318 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 case $OTOOL_FOR_TARGET in
15322 [\\/]* | ?:[\\/]*)
15323 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15324 ;;
15325 *)
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $gcc_cv_tool_dirs
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_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
15342 esac
15343 fi
15344 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15345 if test -n "$OTOOL_FOR_TARGET"; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15347 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15348 else
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351 fi
15352
15353
15354 fi
15355 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15356
15357
15358 if test -n "$OTOOL_FOR_TARGET"; then
15359 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15360 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15361 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15362 fi
15363
15364 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15365 for ncn_progname in otool; do
15366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15367 set dummy ${ncn_progname}; ac_word=$2
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15369 $as_echo_n "checking for $ac_word... " >&6; }
15370 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 if test -n "$OTOOL_FOR_TARGET"; then
15374 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15375 else
15376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15377 for as_dir in $PATH
15378 do
15379 IFS=$as_save_IFS
15380 test -z "$as_dir" && as_dir=.
15381 for ac_exec_ext in '' $ac_executable_extensions; do
15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15383 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15385 break 2
15386 fi
15387 done
15388 done
15389 IFS=$as_save_IFS
15390
15391 fi
15392 fi
15393 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15394 if test -n "$OTOOL_FOR_TARGET"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15396 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15397 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399 $as_echo "no" >&6; }
15400 fi
15401
15402
15403 done
15404 fi
15405
15406 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15407 for ncn_progname in otool; do
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15409 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15410 if test -x $with_build_time_tools/${ncn_progname}; then
15411 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15413 $as_echo "yes" >&6; }
15414 break
15415 else
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15418 fi
15419 done
15420 fi
15421
15422 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15423 for ncn_progname in otool; do
15424 if test -n "$ncn_target_tool_prefix"; then
15425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428 $as_echo_n "checking for $ac_word... " >&6; }
15429 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 if test -n "$OTOOL_FOR_TARGET"; then
15433 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15434 else
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15437 do
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15445 fi
15446 done
15447 done
15448 IFS=$as_save_IFS
15449
15450 fi
15451 fi
15452 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15453 if test -n "$OTOOL_FOR_TARGET"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15455 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15459 fi
15460
15461
15462 fi
15463 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15465 set dummy ${ncn_progname}; ac_word=$2
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15467 $as_echo_n "checking for $ac_word... " >&6; }
15468 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 if test -n "$OTOOL_FOR_TARGET"; then
15472 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15473 else
15474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475 for as_dir in $PATH
15476 do
15477 IFS=$as_save_IFS
15478 test -z "$as_dir" && as_dir=.
15479 for ac_exec_ext in '' $ac_executable_extensions; do
15480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15481 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15483 break 2
15484 fi
15485 done
15486 done
15487 IFS=$as_save_IFS
15488
15489 fi
15490 fi
15491 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15492 if test -n "$OTOOL_FOR_TARGET"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15494 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15495 else
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15497 $as_echo "no" >&6; }
15498 fi
15499
15500
15501 fi
15502 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15503 done
15504 fi
15505
15506 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15507 set dummy otool
15508 if test $build = $target ; then
15509 OTOOL_FOR_TARGET="$2"
15510 else
15511 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15512 fi
15513 else
15514 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15515 fi
15516
15517 else
15518 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15519 fi
15520
15521
15522
15523
15524 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15525 if test -n "$with_build_time_tools"; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15527 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15528 if test -x $with_build_time_tools/ranlib; then
15529 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15530 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15532 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15533 else
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15535 $as_echo "no" >&6; }
15536 fi
15537 elif test $build != $host && test $have_gcc_for_target = yes; then
15538 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15539 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15540 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15541 fi
15542 fi
15543 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15544 # Extract the first word of "ranlib", so it can be a program name with args.
15545 set dummy ranlib; ac_word=$2
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15547 $as_echo_n "checking for $ac_word... " >&6; }
15548 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 case $RANLIB_FOR_TARGET in
15552 [\\/]* | ?:[\\/]*)
15553 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15554 ;;
15555 *)
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $gcc_cv_tool_dirs
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_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
15572 esac
15573 fi
15574 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15575 if test -n "$RANLIB_FOR_TARGET"; then
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15577 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15578 else
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580 $as_echo "no" >&6; }
15581 fi
15582
15583
15584 fi
15585 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15586
15587
15588 if test -n "$RANLIB_FOR_TARGET"; then
15589 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15590 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15591 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15592 fi
15593
15594 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15595 for ncn_progname in ranlib; do
15596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15597 set dummy ${ncn_progname}; ac_word=$2
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15599 $as_echo_n "checking for $ac_word... " >&6; }
15600 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 if test -n "$RANLIB_FOR_TARGET"; then
15604 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15605 else
15606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15608 do
15609 IFS=$as_save_IFS
15610 test -z "$as_dir" && as_dir=.
15611 for ac_exec_ext in '' $ac_executable_extensions; do
15612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15613 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15615 break 2
15616 fi
15617 done
15618 done
15619 IFS=$as_save_IFS
15620
15621 fi
15622 fi
15623 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15624 if test -n "$RANLIB_FOR_TARGET"; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15626 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15627 else
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 fi
15631
15632
15633 done
15634 fi
15635
15636 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15637 for ncn_progname in ranlib; do
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15639 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15640 if test -x $with_build_time_tools/${ncn_progname}; then
15641 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643 $as_echo "yes" >&6; }
15644 break
15645 else
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 $as_echo "no" >&6; }
15648 fi
15649 done
15650 fi
15651
15652 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15653 for ncn_progname in ranlib; do
15654 if test -n "$ncn_target_tool_prefix"; then
15655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15656 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15658 $as_echo_n "checking for $ac_word... " >&6; }
15659 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15660 $as_echo_n "(cached) " >&6
15661 else
15662 if test -n "$RANLIB_FOR_TARGET"; then
15663 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15664 else
15665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666 for as_dir in $PATH
15667 do
15668 IFS=$as_save_IFS
15669 test -z "$as_dir" && as_dir=.
15670 for ac_exec_ext in '' $ac_executable_extensions; do
15671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15672 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15674 break 2
15675 fi
15676 done
15677 done
15678 IFS=$as_save_IFS
15679
15680 fi
15681 fi
15682 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15683 if test -n "$RANLIB_FOR_TARGET"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15685 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15686 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688 $as_echo "no" >&6; }
15689 fi
15690
15691
15692 fi
15693 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15695 set dummy ${ncn_progname}; ac_word=$2
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697 $as_echo_n "checking for $ac_word... " >&6; }
15698 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 if test -n "$RANLIB_FOR_TARGET"; then
15702 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15703 else
15704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705 for as_dir in $PATH
15706 do
15707 IFS=$as_save_IFS
15708 test -z "$as_dir" && as_dir=.
15709 for ac_exec_ext in '' $ac_executable_extensions; do
15710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15711 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15713 break 2
15714 fi
15715 done
15716 done
15717 IFS=$as_save_IFS
15718
15719 fi
15720 fi
15721 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15722 if test -n "$RANLIB_FOR_TARGET"; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15724 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15725 else
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727 $as_echo "no" >&6; }
15728 fi
15729
15730
15731 fi
15732 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15733 done
15734 fi
15735
15736 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15737 set dummy ranlib
15738 if test $build = $target ; then
15739 RANLIB_FOR_TARGET="$2"
15740 else
15741 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15742 fi
15743 else
15744 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15745 fi
15746
15747 else
15748 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15749 fi
15750
15751
15752
15753
15754 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15755 if test -n "$with_build_time_tools"; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15757 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15758 if test -x $with_build_time_tools/readelf; then
15759 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15760 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15762 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15763 else
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15765 $as_echo "no" >&6; }
15766 fi
15767 elif test $build != $host && test $have_gcc_for_target = yes; then
15768 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15769 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15770 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15771 fi
15772 fi
15773 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15774 # Extract the first word of "readelf", so it can be a program name with args.
15775 set dummy readelf; ac_word=$2
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15777 $as_echo_n "checking for $ac_word... " >&6; }
15778 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15779 $as_echo_n "(cached) " >&6
15780 else
15781 case $READELF_FOR_TARGET in
15782 [\\/]* | ?:[\\/]*)
15783 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15784 ;;
15785 *)
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $gcc_cv_tool_dirs
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_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
15802 esac
15803 fi
15804 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15805 if test -n "$READELF_FOR_TARGET"; then
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15807 $as_echo "$READELF_FOR_TARGET" >&6; }
15808 else
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 $as_echo "no" >&6; }
15811 fi
15812
15813
15814 fi
15815 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15816
15817
15818 if test -n "$READELF_FOR_TARGET"; then
15819 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15820 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15821 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15822 fi
15823
15824 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15825 for ncn_progname in readelf; do
15826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15827 set dummy ${ncn_progname}; ac_word=$2
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15829 $as_echo_n "checking for $ac_word... " >&6; }
15830 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15831 $as_echo_n "(cached) " >&6
15832 else
15833 if test -n "$READELF_FOR_TARGET"; then
15834 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15835 else
15836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15837 for as_dir in $PATH
15838 do
15839 IFS=$as_save_IFS
15840 test -z "$as_dir" && as_dir=.
15841 for ac_exec_ext in '' $ac_executable_extensions; do
15842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15843 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15845 break 2
15846 fi
15847 done
15848 done
15849 IFS=$as_save_IFS
15850
15851 fi
15852 fi
15853 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15854 if test -n "$READELF_FOR_TARGET"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15856 $as_echo "$READELF_FOR_TARGET" >&6; }
15857 else
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }
15860 fi
15861
15862
15863 done
15864 fi
15865
15866 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15867 for ncn_progname in readelf; do
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15869 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15870 if test -x $with_build_time_tools/${ncn_progname}; then
15871 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 $as_echo "yes" >&6; }
15874 break
15875 else
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878 fi
15879 done
15880 fi
15881
15882 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15883 for ncn_progname in readelf; do
15884 if test -n "$ncn_target_tool_prefix"; then
15885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15886 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15888 $as_echo_n "checking for $ac_word... " >&6; }
15889 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15890 $as_echo_n "(cached) " >&6
15891 else
15892 if test -n "$READELF_FOR_TARGET"; then
15893 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15894 else
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15897 do
15898 IFS=$as_save_IFS
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15904 break 2
15905 fi
15906 done
15907 done
15908 IFS=$as_save_IFS
15909
15910 fi
15911 fi
15912 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15913 if test -n "$READELF_FOR_TARGET"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15915 $as_echo "$READELF_FOR_TARGET" >&6; }
15916 else
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 fi
15920
15921
15922 fi
15923 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15925 set dummy ${ncn_progname}; ac_word=$2
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15927 $as_echo_n "checking for $ac_word... " >&6; }
15928 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15931 if test -n "$READELF_FOR_TARGET"; then
15932 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15933 else
15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15936 do
15937 IFS=$as_save_IFS
15938 test -z "$as_dir" && as_dir=.
15939 for ac_exec_ext in '' $ac_executable_extensions; do
15940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15941 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15943 break 2
15944 fi
15945 done
15946 done
15947 IFS=$as_save_IFS
15948
15949 fi
15950 fi
15951 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15952 if test -n "$READELF_FOR_TARGET"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15954 $as_echo "$READELF_FOR_TARGET" >&6; }
15955 else
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15958 fi
15959
15960
15961 fi
15962 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15963 done
15964 fi
15965
15966 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15967 set dummy readelf
15968 if test $build = $target ; then
15969 READELF_FOR_TARGET="$2"
15970 else
15971 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15972 fi
15973 else
15974 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15975 fi
15976
15977 else
15978 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15979 fi
15980
15981
15982
15983
15984 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15985 if test -n "$with_build_time_tools"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15987 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15988 if test -x $with_build_time_tools/strip; then
15989 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15990 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15992 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15993 else
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995 $as_echo "no" >&6; }
15996 fi
15997 elif test $build != $host && test $have_gcc_for_target = yes; then
15998 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15999 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16000 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16001 fi
16002 fi
16003 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16004 # Extract the first word of "strip", so it can be a program name with args.
16005 set dummy strip; ac_word=$2
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16007 $as_echo_n "checking for $ac_word... " >&6; }
16008 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 case $STRIP_FOR_TARGET in
16012 [\\/]* | ?:[\\/]*)
16013 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16014 ;;
16015 *)
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $gcc_cv_tool_dirs
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_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
16032 esac
16033 fi
16034 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16035 if test -n "$STRIP_FOR_TARGET"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16037 $as_echo "$STRIP_FOR_TARGET" >&6; }
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16041 fi
16042
16043
16044 fi
16045 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16046
16047
16048 if test -n "$STRIP_FOR_TARGET"; then
16049 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16050 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16051 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16052 fi
16053
16054 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16055 for ncn_progname in strip; do
16056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16057 set dummy ${ncn_progname}; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16059 $as_echo_n "checking for $ac_word... " >&6; }
16060 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16061 $as_echo_n "(cached) " >&6
16062 else
16063 if test -n "$STRIP_FOR_TARGET"; then
16064 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16065 else
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16068 do
16069 IFS=$as_save_IFS
16070 test -z "$as_dir" && as_dir=.
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16075 break 2
16076 fi
16077 done
16078 done
16079 IFS=$as_save_IFS
16080
16081 fi
16082 fi
16083 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16084 if test -n "$STRIP_FOR_TARGET"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16086 $as_echo "$STRIP_FOR_TARGET" >&6; }
16087 else
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 $as_echo "no" >&6; }
16090 fi
16091
16092
16093 done
16094 fi
16095
16096 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16097 for ncn_progname in strip; do
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16099 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16100 if test -x $with_build_time_tools/${ncn_progname}; then
16101 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104 break
16105 else
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16107 $as_echo "no" >&6; }
16108 fi
16109 done
16110 fi
16111
16112 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16113 for ncn_progname in strip; do
16114 if test -n "$ncn_target_tool_prefix"; then
16115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118 $as_echo_n "checking for $ac_word... " >&6; }
16119 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 if test -n "$STRIP_FOR_TARGET"; then
16123 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16124 else
16125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16127 do
16128 IFS=$as_save_IFS
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134 break 2
16135 fi
16136 done
16137 done
16138 IFS=$as_save_IFS
16139
16140 fi
16141 fi
16142 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16143 if test -n "$STRIP_FOR_TARGET"; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16145 $as_echo "$STRIP_FOR_TARGET" >&6; }
16146 else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16149 fi
16150
16151
16152 fi
16153 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16155 set dummy ${ncn_progname}; ac_word=$2
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16157 $as_echo_n "checking for $ac_word... " >&6; }
16158 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 if test -n "$STRIP_FOR_TARGET"; then
16162 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16163 else
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167 IFS=$as_save_IFS
16168 test -z "$as_dir" && as_dir=.
16169 for ac_exec_ext in '' $ac_executable_extensions; do
16170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16171 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16173 break 2
16174 fi
16175 done
16176 done
16177 IFS=$as_save_IFS
16178
16179 fi
16180 fi
16181 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16182 if test -n "$STRIP_FOR_TARGET"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16184 $as_echo "$STRIP_FOR_TARGET" >&6; }
16185 else
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16187 $as_echo "no" >&6; }
16188 fi
16189
16190
16191 fi
16192 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16193 done
16194 fi
16195
16196 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16197 set dummy strip
16198 if test $build = $target ; then
16199 STRIP_FOR_TARGET="$2"
16200 else
16201 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16202 fi
16203 else
16204 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16205 fi
16206
16207 else
16208 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16209 fi
16210
16211
16212
16213
16214 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16215 if test -n "$with_build_time_tools"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16217 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16218 if test -x $with_build_time_tools/windres; then
16219 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16220 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16222 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16223 else
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16226 fi
16227 elif test $build != $host && test $have_gcc_for_target = yes; then
16228 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16229 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16230 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16231 fi
16232 fi
16233 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16234 # Extract the first word of "windres", so it can be a program name with args.
16235 set dummy windres; ac_word=$2
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16237 $as_echo_n "checking for $ac_word... " >&6; }
16238 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 case $WINDRES_FOR_TARGET in
16242 [\\/]* | ?:[\\/]*)
16243 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16244 ;;
16245 *)
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $gcc_cv_tool_dirs
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_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
16262 esac
16263 fi
16264 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16265 if test -n "$WINDRES_FOR_TARGET"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16267 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16268 else
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16270 $as_echo "no" >&6; }
16271 fi
16272
16273
16274 fi
16275 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16276
16277
16278 if test -n "$WINDRES_FOR_TARGET"; then
16279 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16280 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16281 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16282 fi
16283
16284 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16285 for ncn_progname in windres; do
16286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16287 set dummy ${ncn_progname}; ac_word=$2
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16289 $as_echo_n "checking for $ac_word... " >&6; }
16290 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16291 $as_echo_n "(cached) " >&6
16292 else
16293 if test -n "$WINDRES_FOR_TARGET"; then
16294 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16295 else
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 for as_dir in $PATH
16298 do
16299 IFS=$as_save_IFS
16300 test -z "$as_dir" && as_dir=.
16301 for ac_exec_ext in '' $ac_executable_extensions; do
16302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16303 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16305 break 2
16306 fi
16307 done
16308 done
16309 IFS=$as_save_IFS
16310
16311 fi
16312 fi
16313 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16314 if test -n "$WINDRES_FOR_TARGET"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16316 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16317 else
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 $as_echo "no" >&6; }
16320 fi
16321
16322
16323 done
16324 fi
16325
16326 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16327 for ncn_progname in windres; do
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16329 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16330 if test -x $with_build_time_tools/${ncn_progname}; then
16331 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333 $as_echo "yes" >&6; }
16334 break
16335 else
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16337 $as_echo "no" >&6; }
16338 fi
16339 done
16340 fi
16341
16342 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16343 for ncn_progname in windres; do
16344 if test -n "$ncn_target_tool_prefix"; then
16345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16346 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16348 $as_echo_n "checking for $ac_word... " >&6; }
16349 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 if test -n "$WINDRES_FOR_TARGET"; then
16353 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16354 else
16355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $PATH
16357 do
16358 IFS=$as_save_IFS
16359 test -z "$as_dir" && as_dir=.
16360 for ac_exec_ext in '' $ac_executable_extensions; do
16361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16362 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16364 break 2
16365 fi
16366 done
16367 done
16368 IFS=$as_save_IFS
16369
16370 fi
16371 fi
16372 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16373 if test -n "$WINDRES_FOR_TARGET"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16375 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16376 else
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16379 fi
16380
16381
16382 fi
16383 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16385 set dummy ${ncn_progname}; ac_word=$2
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16387 $as_echo_n "checking for $ac_word... " >&6; }
16388 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 if test -n "$WINDRES_FOR_TARGET"; then
16392 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16393 else
16394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16395 for as_dir in $PATH
16396 do
16397 IFS=$as_save_IFS
16398 test -z "$as_dir" && as_dir=.
16399 for ac_exec_ext in '' $ac_executable_extensions; do
16400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16401 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16403 break 2
16404 fi
16405 done
16406 done
16407 IFS=$as_save_IFS
16408
16409 fi
16410 fi
16411 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16412 if test -n "$WINDRES_FOR_TARGET"; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16414 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16415 else
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16418 fi
16419
16420
16421 fi
16422 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16423 done
16424 fi
16425
16426 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16427 set dummy windres
16428 if test $build = $target ; then
16429 WINDRES_FOR_TARGET="$2"
16430 else
16431 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16432 fi
16433 else
16434 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16435 fi
16436
16437 else
16438 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16439 fi
16440
16441
16442
16443
16444 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16445 if test -n "$with_build_time_tools"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16447 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16448 if test -x $with_build_time_tools/windmc; then
16449 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16450 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16452 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16453 else
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16455 $as_echo "no" >&6; }
16456 fi
16457 elif test $build != $host && test $have_gcc_for_target = yes; then
16458 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16459 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16460 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16461 fi
16462 fi
16463 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16464 # Extract the first word of "windmc", so it can be a program name with args.
16465 set dummy windmc; ac_word=$2
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16467 $as_echo_n "checking for $ac_word... " >&6; }
16468 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 case $WINDMC_FOR_TARGET in
16472 [\\/]* | ?:[\\/]*)
16473 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16474 ;;
16475 *)
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $gcc_cv_tool_dirs
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_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
16492 esac
16493 fi
16494 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16495 if test -n "$WINDMC_FOR_TARGET"; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16497 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16498 else
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500 $as_echo "no" >&6; }
16501 fi
16502
16503
16504 fi
16505 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16506
16507
16508 if test -n "$WINDMC_FOR_TARGET"; then
16509 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16510 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16511 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16512 fi
16513
16514 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16515 for ncn_progname in windmc; do
16516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16517 set dummy ${ncn_progname}; ac_word=$2
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16519 $as_echo_n "checking for $ac_word... " >&6; }
16520 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 if test -n "$WINDMC_FOR_TARGET"; then
16524 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16525 else
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16528 do
16529 IFS=$as_save_IFS
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16535 break 2
16536 fi
16537 done
16538 done
16539 IFS=$as_save_IFS
16540
16541 fi
16542 fi
16543 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16544 if test -n "$WINDMC_FOR_TARGET"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16546 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16547 else
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 $as_echo "no" >&6; }
16550 fi
16551
16552
16553 done
16554 fi
16555
16556 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16557 for ncn_progname in windmc; do
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16559 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16560 if test -x $with_build_time_tools/${ncn_progname}; then
16561 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16563 $as_echo "yes" >&6; }
16564 break
16565 else
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16568 fi
16569 done
16570 fi
16571
16572 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16573 for ncn_progname in windmc; do
16574 if test -n "$ncn_target_tool_prefix"; then
16575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16578 $as_echo_n "checking for $ac_word... " >&6; }
16579 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16580 $as_echo_n "(cached) " >&6
16581 else
16582 if test -n "$WINDMC_FOR_TARGET"; then
16583 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16584 else
16585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16587 do
16588 IFS=$as_save_IFS
16589 test -z "$as_dir" && as_dir=.
16590 for ac_exec_ext in '' $ac_executable_extensions; do
16591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16592 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16594 break 2
16595 fi
16596 done
16597 done
16598 IFS=$as_save_IFS
16599
16600 fi
16601 fi
16602 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16603 if test -n "$WINDMC_FOR_TARGET"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16605 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16606 else
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16608 $as_echo "no" >&6; }
16609 fi
16610
16611
16612 fi
16613 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16615 set dummy ${ncn_progname}; ac_word=$2
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16617 $as_echo_n "checking for $ac_word... " >&6; }
16618 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16619 $as_echo_n "(cached) " >&6
16620 else
16621 if test -n "$WINDMC_FOR_TARGET"; then
16622 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16623 else
16624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16625 for as_dir in $PATH
16626 do
16627 IFS=$as_save_IFS
16628 test -z "$as_dir" && as_dir=.
16629 for ac_exec_ext in '' $ac_executable_extensions; do
16630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16631 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16633 break 2
16634 fi
16635 done
16636 done
16637 IFS=$as_save_IFS
16638
16639 fi
16640 fi
16641 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16642 if test -n "$WINDMC_FOR_TARGET"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16644 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16645 else
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16647 $as_echo "no" >&6; }
16648 fi
16649
16650
16651 fi
16652 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16653 done
16654 fi
16655
16656 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16657 set dummy windmc
16658 if test $build = $target ; then
16659 WINDMC_FOR_TARGET="$2"
16660 else
16661 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16662 fi
16663 else
16664 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16665 fi
16666
16667 else
16668 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16669 fi
16670
16671
16672 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16673
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16675 $as_echo_n "checking where to find the target ar... " >&6; }
16676 if test "x${build}" != "x${host}" ; then
16677 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16678 # We already found the complete path
16679 ac_dir=`dirname $AR_FOR_TARGET`
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16681 $as_echo "pre-installed in $ac_dir" >&6; }
16682 else
16683 # Canadian cross, just use what we found
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16685 $as_echo "pre-installed" >&6; }
16686 fi
16687 else
16688 ok=yes
16689 case " ${configdirs} " in
16690 *" binutils "*) ;;
16691 *) ok=no ;;
16692 esac
16693
16694 if test $ok = yes; then
16695 # An in-tree tool is available and we can use it
16696 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16698 $as_echo "just compiled" >&6; }
16699 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16700 # We already found the complete path
16701 ac_dir=`dirname $AR_FOR_TARGET`
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16703 $as_echo "pre-installed in $ac_dir" >&6; }
16704 elif test "x$target" = "x$host"; then
16705 # We can use an host tool
16706 AR_FOR_TARGET='$(AR)'
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16708 $as_echo "host tool" >&6; }
16709 else
16710 # We need a cross tool
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16712 $as_echo "pre-installed" >&6; }
16713 fi
16714 fi
16715
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16717 $as_echo_n "checking where to find the target as... " >&6; }
16718 if test "x${build}" != "x${host}" ; then
16719 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16720 # We already found the complete path
16721 ac_dir=`dirname $AS_FOR_TARGET`
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16723 $as_echo "pre-installed in $ac_dir" >&6; }
16724 else
16725 # Canadian cross, just use what we found
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16727 $as_echo "pre-installed" >&6; }
16728 fi
16729 else
16730 ok=yes
16731 case " ${configdirs} " in
16732 *" gas "*) ;;
16733 *) ok=no ;;
16734 esac
16735
16736 if test $ok = yes; then
16737 # An in-tree tool is available and we can use it
16738 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16740 $as_echo "just compiled" >&6; }
16741 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16742 # We already found the complete path
16743 ac_dir=`dirname $AS_FOR_TARGET`
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16745 $as_echo "pre-installed in $ac_dir" >&6; }
16746 elif test "x$target" = "x$host"; then
16747 # We can use an host tool
16748 AS_FOR_TARGET='$(AS)'
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16750 $as_echo "host tool" >&6; }
16751 else
16752 # We need a cross tool
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16754 $as_echo "pre-installed" >&6; }
16755 fi
16756 fi
16757
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16759 $as_echo_n "checking where to find the target cc... " >&6; }
16760 if test "x${build}" != "x${host}" ; then
16761 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16762 # We already found the complete path
16763 ac_dir=`dirname $CC_FOR_TARGET`
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16765 $as_echo "pre-installed in $ac_dir" >&6; }
16766 else
16767 # Canadian cross, just use what we found
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16769 $as_echo "pre-installed" >&6; }
16770 fi
16771 else
16772 ok=yes
16773 case " ${configdirs} " in
16774 *" gcc "*) ;;
16775 *) ok=no ;;
16776 esac
16777
16778 if test $ok = yes; then
16779 # An in-tree tool is available and we can use it
16780 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16782 $as_echo "just compiled" >&6; }
16783 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16784 # We already found the complete path
16785 ac_dir=`dirname $CC_FOR_TARGET`
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16787 $as_echo "pre-installed in $ac_dir" >&6; }
16788 elif test "x$target" = "x$host"; then
16789 # We can use an host tool
16790 CC_FOR_TARGET='$(CC)'
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16792 $as_echo "host tool" >&6; }
16793 else
16794 # We need a cross tool
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16796 $as_echo "pre-installed" >&6; }
16797 fi
16798 fi
16799
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16801 $as_echo_n "checking where to find the target c++... " >&6; }
16802 if test "x${build}" != "x${host}" ; then
16803 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16804 # We already found the complete path
16805 ac_dir=`dirname $CXX_FOR_TARGET`
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16807 $as_echo "pre-installed in $ac_dir" >&6; }
16808 else
16809 # Canadian cross, just use what we found
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16811 $as_echo "pre-installed" >&6; }
16812 fi
16813 else
16814 ok=yes
16815 case " ${configdirs} " in
16816 *" gcc "*) ;;
16817 *) ok=no ;;
16818 esac
16819 case ,${enable_languages}, in
16820 *,c++,*) ;;
16821 *) ok=no ;;
16822 esac
16823 if test $ok = yes; then
16824 # An in-tree tool is available and we can use it
16825 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'
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16827 $as_echo "just compiled" >&6; }
16828 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16829 # We already found the complete path
16830 ac_dir=`dirname $CXX_FOR_TARGET`
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16832 $as_echo "pre-installed in $ac_dir" >&6; }
16833 elif test "x$target" = "x$host"; then
16834 # We can use an host tool
16835 CXX_FOR_TARGET='$(CXX)'
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16837 $as_echo "host tool" >&6; }
16838 else
16839 # We need a cross tool
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16841 $as_echo "pre-installed" >&6; }
16842 fi
16843 fi
16844
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16846 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16847 if test "x${build}" != "x${host}" ; then
16848 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16849 # We already found the complete path
16850 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16852 $as_echo "pre-installed in $ac_dir" >&6; }
16853 else
16854 # Canadian cross, just use what we found
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16856 $as_echo "pre-installed" >&6; }
16857 fi
16858 else
16859 ok=yes
16860 case " ${configdirs} " in
16861 *" gcc "*) ;;
16862 *) ok=no ;;
16863 esac
16864 case ,${enable_languages}, in
16865 *,c++,*) ;;
16866 *) ok=no ;;
16867 esac
16868 if test $ok = yes; then
16869 # An in-tree tool is available and we can use it
16870 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'
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16872 $as_echo "just compiled" >&6; }
16873 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16874 # We already found the complete path
16875 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16877 $as_echo "pre-installed in $ac_dir" >&6; }
16878 elif test "x$target" = "x$host"; then
16879 # We can use an host tool
16880 RAW_CXX_FOR_TARGET='$(CXX)'
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16882 $as_echo "host tool" >&6; }
16883 else
16884 # We need a cross tool
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16886 $as_echo "pre-installed" >&6; }
16887 fi
16888 fi
16889
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16891 $as_echo_n "checking where to find the target dlltool... " >&6; }
16892 if test "x${build}" != "x${host}" ; then
16893 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16894 # We already found the complete path
16895 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16897 $as_echo "pre-installed in $ac_dir" >&6; }
16898 else
16899 # Canadian cross, just use what we found
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16901 $as_echo "pre-installed" >&6; }
16902 fi
16903 else
16904 ok=yes
16905 case " ${configdirs} " in
16906 *" binutils "*) ;;
16907 *) ok=no ;;
16908 esac
16909
16910 if test $ok = yes; then
16911 # An in-tree tool is available and we can use it
16912 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16914 $as_echo "just compiled" >&6; }
16915 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16916 # We already found the complete path
16917 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16919 $as_echo "pre-installed in $ac_dir" >&6; }
16920 elif test "x$target" = "x$host"; then
16921 # We can use an host tool
16922 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16924 $as_echo "host tool" >&6; }
16925 else
16926 # We need a cross tool
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16928 $as_echo "pre-installed" >&6; }
16929 fi
16930 fi
16931
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16933 $as_echo_n "checking where to find the target gcc... " >&6; }
16934 if test "x${build}" != "x${host}" ; then
16935 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16936 # We already found the complete path
16937 ac_dir=`dirname $GCC_FOR_TARGET`
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16939 $as_echo "pre-installed in $ac_dir" >&6; }
16940 else
16941 # Canadian cross, just use what we found
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16943 $as_echo "pre-installed" >&6; }
16944 fi
16945 else
16946 ok=yes
16947 case " ${configdirs} " in
16948 *" gcc "*) ;;
16949 *) ok=no ;;
16950 esac
16951
16952 if test $ok = yes; then
16953 # An in-tree tool is available and we can use it
16954 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16956 $as_echo "just compiled" >&6; }
16957 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16958 # We already found the complete path
16959 ac_dir=`dirname $GCC_FOR_TARGET`
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16961 $as_echo "pre-installed in $ac_dir" >&6; }
16962 elif test "x$target" = "x$host"; then
16963 # We can use an host tool
16964 GCC_FOR_TARGET='$()'
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16966 $as_echo "host tool" >&6; }
16967 else
16968 # We need a cross tool
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16970 $as_echo "pre-installed" >&6; }
16971 fi
16972 fi
16973
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16975 $as_echo_n "checking where to find the target gfortran... " >&6; }
16976 if test "x${build}" != "x${host}" ; then
16977 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16978 # We already found the complete path
16979 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16981 $as_echo "pre-installed in $ac_dir" >&6; }
16982 else
16983 # Canadian cross, just use what we found
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16985 $as_echo "pre-installed" >&6; }
16986 fi
16987 else
16988 ok=yes
16989 case " ${configdirs} " in
16990 *" gcc "*) ;;
16991 *) ok=no ;;
16992 esac
16993 case ,${enable_languages}, in
16994 *,fortran,*) ;;
16995 *) ok=no ;;
16996 esac
16997 if test $ok = yes; then
16998 # An in-tree tool is available and we can use it
16999 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17001 $as_echo "just compiled" >&6; }
17002 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17003 # We already found the complete path
17004 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17006 $as_echo "pre-installed in $ac_dir" >&6; }
17007 elif test "x$target" = "x$host"; then
17008 # We can use an host tool
17009 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17011 $as_echo "host tool" >&6; }
17012 else
17013 # We need a cross tool
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17015 $as_echo "pre-installed" >&6; }
17016 fi
17017 fi
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17020 $as_echo_n "checking where to find the target gccgo... " >&6; }
17021 if test "x${build}" != "x${host}" ; then
17022 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17023 # We already found the complete path
17024 ac_dir=`dirname $GOC_FOR_TARGET`
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17026 $as_echo "pre-installed in $ac_dir" >&6; }
17027 else
17028 # Canadian cross, just use what we found
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17030 $as_echo "pre-installed" >&6; }
17031 fi
17032 else
17033 ok=yes
17034 case " ${configdirs} " in
17035 *" gcc "*) ;;
17036 *) ok=no ;;
17037 esac
17038 case ,${enable_languages}, in
17039 *,go,*) ;;
17040 *) ok=no ;;
17041 esac
17042 if test $ok = yes; then
17043 # An in-tree tool is available and we can use it
17044 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17046 $as_echo "just compiled" >&6; }
17047 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17048 # We already found the complete path
17049 ac_dir=`dirname $GOC_FOR_TARGET`
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17051 $as_echo "pre-installed in $ac_dir" >&6; }
17052 elif test "x$target" = "x$host"; then
17053 # We can use an host tool
17054 GOC_FOR_TARGET='$(GOC)'
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17056 $as_echo "host tool" >&6; }
17057 else
17058 # We need a cross tool
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17060 $as_echo "pre-installed" >&6; }
17061 fi
17062 fi
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17065 $as_echo_n "checking where to find the target gdc... " >&6; }
17066 if test "x${build}" != "x${host}" ; then
17067 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17068 # We already found the complete path
17069 ac_dir=`dirname $GDC_FOR_TARGET`
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17071 $as_echo "pre-installed in $ac_dir" >&6; }
17072 else
17073 # Canadian cross, just use what we found
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17075 $as_echo "pre-installed" >&6; }
17076 fi
17077 else
17078 ok=yes
17079 case " ${configdirs} " in
17080 *" gcc "*) ;;
17081 *) ok=no ;;
17082 esac
17083 case ,${enable_languages}, in
17084 *,d,*) ;;
17085 *) ok=no ;;
17086 esac
17087 if test $ok = yes; then
17088 # An in-tree tool is available and we can use it
17089 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17091 $as_echo "just compiled" >&6; }
17092 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17093 # We already found the complete path
17094 ac_dir=`dirname $GDC_FOR_TARGET`
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17096 $as_echo "pre-installed in $ac_dir" >&6; }
17097 elif test "x$target" = "x$host"; then
17098 # We can use an host tool
17099 GDC_FOR_TARGET='$(GDC)'
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17101 $as_echo "host tool" >&6; }
17102 else
17103 # We need a cross tool
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17105 $as_echo "pre-installed" >&6; }
17106 fi
17107 fi
17108
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17110 $as_echo_n "checking where to find the target ld... " >&6; }
17111 if test "x${build}" != "x${host}" ; then
17112 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17113 # We already found the complete path
17114 ac_dir=`dirname $LD_FOR_TARGET`
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17116 $as_echo "pre-installed in $ac_dir" >&6; }
17117 else
17118 # Canadian cross, just use what we found
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17120 $as_echo "pre-installed" >&6; }
17121 fi
17122 else
17123 ok=yes
17124 case " ${configdirs} " in
17125 *" ld "*) ;;
17126 *) ok=no ;;
17127 esac
17128
17129 if test $ok = yes; then
17130 # An in-tree tool is available and we can use it
17131 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17133 $as_echo "just compiled" >&6; }
17134 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17135 # We already found the complete path
17136 ac_dir=`dirname $LD_FOR_TARGET`
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17138 $as_echo "pre-installed in $ac_dir" >&6; }
17139 elif test "x$target" = "x$host"; then
17140 # We can use an host tool
17141 LD_FOR_TARGET='$(LD)'
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17143 $as_echo "host tool" >&6; }
17144 else
17145 # We need a cross tool
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17147 $as_echo "pre-installed" >&6; }
17148 fi
17149 fi
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17152 $as_echo_n "checking where to find the target lipo... " >&6; }
17153 if test "x${build}" != "x${host}" ; then
17154 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17155 # We already found the complete path
17156 ac_dir=`dirname $LIPO_FOR_TARGET`
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17158 $as_echo "pre-installed in $ac_dir" >&6; }
17159 else
17160 # Canadian cross, just use what we found
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17162 $as_echo "pre-installed" >&6; }
17163 fi
17164 else
17165 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17166 # We already found the complete path
17167 ac_dir=`dirname $LIPO_FOR_TARGET`
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17169 $as_echo "pre-installed in $ac_dir" >&6; }
17170 elif test "x$target" = "x$host"; then
17171 # We can use an host tool
17172 LIPO_FOR_TARGET='$(LIPO)'
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17174 $as_echo "host tool" >&6; }
17175 else
17176 # We need a cross tool
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17178 $as_echo "pre-installed" >&6; }
17179 fi
17180 fi
17181
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17183 $as_echo_n "checking where to find the target nm... " >&6; }
17184 if test "x${build}" != "x${host}" ; then
17185 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17186 # We already found the complete path
17187 ac_dir=`dirname $NM_FOR_TARGET`
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17189 $as_echo "pre-installed in $ac_dir" >&6; }
17190 else
17191 # Canadian cross, just use what we found
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17193 $as_echo "pre-installed" >&6; }
17194 fi
17195 else
17196 ok=yes
17197 case " ${configdirs} " in
17198 *" binutils "*) ;;
17199 *) ok=no ;;
17200 esac
17201
17202 if test $ok = yes; then
17203 # An in-tree tool is available and we can use it
17204 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17206 $as_echo "just compiled" >&6; }
17207 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17208 # We already found the complete path
17209 ac_dir=`dirname $NM_FOR_TARGET`
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17211 $as_echo "pre-installed in $ac_dir" >&6; }
17212 elif test "x$target" = "x$host"; then
17213 # We can use an host tool
17214 NM_FOR_TARGET='$(NM)'
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17216 $as_echo "host tool" >&6; }
17217 else
17218 # We need a cross tool
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17220 $as_echo "pre-installed" >&6; }
17221 fi
17222 fi
17223
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17225 $as_echo_n "checking where to find the target objcopy... " >&6; }
17226 if test "x${build}" != "x${host}" ; then
17227 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17228 # We already found the complete path
17229 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17231 $as_echo "pre-installed in $ac_dir" >&6; }
17232 else
17233 # Canadian cross, just use what we found
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17235 $as_echo "pre-installed" >&6; }
17236 fi
17237 else
17238 ok=yes
17239 case " ${configdirs} " in
17240 *" binutils "*) ;;
17241 *) ok=no ;;
17242 esac
17243
17244 if test $ok = yes; then
17245 # An in-tree tool is available and we can use it
17246 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17248 $as_echo "just compiled" >&6; }
17249 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17250 # We already found the complete path
17251 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17253 $as_echo "pre-installed in $ac_dir" >&6; }
17254 elif test "x$target" = "x$host"; then
17255 # We can use an host tool
17256 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17258 $as_echo "host tool" >&6; }
17259 else
17260 # We need a cross tool
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17262 $as_echo "pre-installed" >&6; }
17263 fi
17264 fi
17265
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17267 $as_echo_n "checking where to find the target objdump... " >&6; }
17268 if test "x${build}" != "x${host}" ; then
17269 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17270 # We already found the complete path
17271 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17273 $as_echo "pre-installed in $ac_dir" >&6; }
17274 else
17275 # Canadian cross, just use what we found
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17277 $as_echo "pre-installed" >&6; }
17278 fi
17279 else
17280 ok=yes
17281 case " ${configdirs} " in
17282 *" binutils "*) ;;
17283 *) ok=no ;;
17284 esac
17285
17286 if test $ok = yes; then
17287 # An in-tree tool is available and we can use it
17288 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17290 $as_echo "just compiled" >&6; }
17291 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17292 # We already found the complete path
17293 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17295 $as_echo "pre-installed in $ac_dir" >&6; }
17296 elif test "x$target" = "x$host"; then
17297 # We can use an host tool
17298 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17300 $as_echo "host tool" >&6; }
17301 else
17302 # We need a cross tool
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17304 $as_echo "pre-installed" >&6; }
17305 fi
17306 fi
17307
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17309 $as_echo_n "checking where to find the target otool... " >&6; }
17310 if test "x${build}" != "x${host}" ; then
17311 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17312 # We already found the complete path
17313 ac_dir=`dirname $OTOOL_FOR_TARGET`
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17315 $as_echo "pre-installed in $ac_dir" >&6; }
17316 else
17317 # Canadian cross, just use what we found
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17319 $as_echo "pre-installed" >&6; }
17320 fi
17321 else
17322 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $OTOOL_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326 $as_echo "pre-installed in $ac_dir" >&6; }
17327 elif test "x$target" = "x$host"; then
17328 # We can use an host tool
17329 OTOOL_FOR_TARGET='$(OTOOL)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17331 $as_echo "host tool" >&6; }
17332 else
17333 # We need a cross tool
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335 $as_echo "pre-installed" >&6; }
17336 fi
17337 fi
17338
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17340 $as_echo_n "checking where to find the target ranlib... " >&6; }
17341 if test "x${build}" != "x${host}" ; then
17342 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $RANLIB_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346 $as_echo "pre-installed in $ac_dir" >&6; }
17347 else
17348 # Canadian cross, just use what we found
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17350 $as_echo "pre-installed" >&6; }
17351 fi
17352 else
17353 ok=yes
17354 case " ${configdirs} " in
17355 *" binutils "*) ;;
17356 *) ok=no ;;
17357 esac
17358
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17363 $as_echo "just compiled" >&6; }
17364 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17365 # We already found the complete path
17366 ac_dir=`dirname $RANLIB_FOR_TARGET`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17368 $as_echo "pre-installed in $ac_dir" >&6; }
17369 elif test "x$target" = "x$host"; then
17370 # We can use an host tool
17371 RANLIB_FOR_TARGET='$(RANLIB)'
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17373 $as_echo "host tool" >&6; }
17374 else
17375 # We need a cross tool
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377 $as_echo "pre-installed" >&6; }
17378 fi
17379 fi
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17382 $as_echo_n "checking where to find the target readelf... " >&6; }
17383 if test "x${build}" != "x${host}" ; then
17384 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17385 # We already found the complete path
17386 ac_dir=`dirname $READELF_FOR_TARGET`
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17388 $as_echo "pre-installed in $ac_dir" >&6; }
17389 else
17390 # Canadian cross, just use what we found
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17392 $as_echo "pre-installed" >&6; }
17393 fi
17394 else
17395 ok=yes
17396 case " ${configdirs} " in
17397 *" binutils "*) ;;
17398 *) ok=no ;;
17399 esac
17400
17401 if test $ok = yes; then
17402 # An in-tree tool is available and we can use it
17403 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17405 $as_echo "just compiled" >&6; }
17406 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17407 # We already found the complete path
17408 ac_dir=`dirname $READELF_FOR_TARGET`
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17410 $as_echo "pre-installed in $ac_dir" >&6; }
17411 elif test "x$target" = "x$host"; then
17412 # We can use an host tool
17413 READELF_FOR_TARGET='$(READELF)'
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17415 $as_echo "host tool" >&6; }
17416 else
17417 # We need a cross tool
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17419 $as_echo "pre-installed" >&6; }
17420 fi
17421 fi
17422
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17424 $as_echo_n "checking where to find the target strip... " >&6; }
17425 if test "x${build}" != "x${host}" ; then
17426 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17427 # We already found the complete path
17428 ac_dir=`dirname $STRIP_FOR_TARGET`
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17430 $as_echo "pre-installed in $ac_dir" >&6; }
17431 else
17432 # Canadian cross, just use what we found
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17434 $as_echo "pre-installed" >&6; }
17435 fi
17436 else
17437 ok=yes
17438 case " ${configdirs} " in
17439 *" binutils "*) ;;
17440 *) ok=no ;;
17441 esac
17442
17443 if test $ok = yes; then
17444 # An in-tree tool is available and we can use it
17445 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17447 $as_echo "just compiled" >&6; }
17448 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17449 # We already found the complete path
17450 ac_dir=`dirname $STRIP_FOR_TARGET`
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17452 $as_echo "pre-installed in $ac_dir" >&6; }
17453 elif test "x$target" = "x$host"; then
17454 # We can use an host tool
17455 STRIP_FOR_TARGET='$(STRIP)'
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17457 $as_echo "host tool" >&6; }
17458 else
17459 # We need a cross tool
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17461 $as_echo "pre-installed" >&6; }
17462 fi
17463 fi
17464
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17466 $as_echo_n "checking where to find the target windres... " >&6; }
17467 if test "x${build}" != "x${host}" ; then
17468 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17469 # We already found the complete path
17470 ac_dir=`dirname $WINDRES_FOR_TARGET`
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17472 $as_echo "pre-installed in $ac_dir" >&6; }
17473 else
17474 # Canadian cross, just use what we found
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17476 $as_echo "pre-installed" >&6; }
17477 fi
17478 else
17479 ok=yes
17480 case " ${configdirs} " in
17481 *" binutils "*) ;;
17482 *) ok=no ;;
17483 esac
17484
17485 if test $ok = yes; then
17486 # An in-tree tool is available and we can use it
17487 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17489 $as_echo "just compiled" >&6; }
17490 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17491 # We already found the complete path
17492 ac_dir=`dirname $WINDRES_FOR_TARGET`
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17494 $as_echo "pre-installed in $ac_dir" >&6; }
17495 elif test "x$target" = "x$host"; then
17496 # We can use an host tool
17497 WINDRES_FOR_TARGET='$(WINDRES)'
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17499 $as_echo "host tool" >&6; }
17500 else
17501 # We need a cross tool
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17503 $as_echo "pre-installed" >&6; }
17504 fi
17505 fi
17506
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17508 $as_echo_n "checking where to find the target windmc... " >&6; }
17509 if test "x${build}" != "x${host}" ; then
17510 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17511 # We already found the complete path
17512 ac_dir=`dirname $WINDMC_FOR_TARGET`
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17514 $as_echo "pre-installed in $ac_dir" >&6; }
17515 else
17516 # Canadian cross, just use what we found
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17518 $as_echo "pre-installed" >&6; }
17519 fi
17520 else
17521 ok=yes
17522 case " ${configdirs} " in
17523 *" binutils "*) ;;
17524 *) ok=no ;;
17525 esac
17526
17527 if test $ok = yes; then
17528 # An in-tree tool is available and we can use it
17529 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17531 $as_echo "just compiled" >&6; }
17532 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17533 # We already found the complete path
17534 ac_dir=`dirname $WINDMC_FOR_TARGET`
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17536 $as_echo "pre-installed in $ac_dir" >&6; }
17537 elif test "x$target" = "x$host"; then
17538 # We can use an host tool
17539 WINDMC_FOR_TARGET='$(WINDMC)'
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17541 $as_echo "host tool" >&6; }
17542 else
17543 # We need a cross tool
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17545 $as_echo "pre-installed" >&6; }
17546 fi
17547 fi
17548
17549
17550
17551
17552
17553 # Certain tools may need extra flags.
17554 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17555 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17556 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17557
17558 # When building target libraries, except in a Canadian cross, we use
17559 # the same toolchain as the compiler we just built.
17560 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17561 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17562 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17563 if test $host = $build; then
17564 case " $configdirs " in
17565 *" gcc "*)
17566 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17567 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17568 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17569 ;;
17570 esac
17571 fi
17572
17573
17574
17575
17576
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17578 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17579 # Check whether --enable-maintainer-mode was given.
17580 if test "${enable_maintainer_mode+set}" = set; then :
17581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17582 else
17583 USE_MAINTAINER_MODE=no
17584 fi
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17587 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17588
17589
17590 if test "$USE_MAINTAINER_MODE" = yes; then
17591 MAINTAINER_MODE_TRUE=
17592 MAINTAINER_MODE_FALSE='#'
17593 else
17594 MAINTAINER_MODE_TRUE='#'
17595 MAINTAINER_MODE_FALSE=
17596 fi
17597 MAINT=$MAINTAINER_MODE_TRUE
17598
17599 # ---------------------
17600 # GCC bootstrap support
17601 # ---------------------
17602
17603 # Stage specific cflags for build.
17604 stage1_cflags="-g"
17605 case $build in
17606 vax-*-*)
17607 case ${GCC} in
17608 yes) stage1_cflags="-g -Wa,-J" ;;
17609 *) stage1_cflags="-g -J" ;;
17610 esac ;;
17611 esac
17612
17613
17614
17615 # Enable --enable-checking in stage1 of the compiler.
17616 # Check whether --enable-stage1-checking was given.
17617 if test "${enable_stage1_checking+set}" = set; then :
17618 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17619 else
17620 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17621 # For --disable-checking or implicit --enable-checking=release, avoid
17622 # setting --enable-checking=gc in the default stage1 checking for LTO
17623 # bootstraps. See PR62077.
17624 case $BUILD_CONFIG in
17625 *lto*)
17626 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17627 *)
17628 stage1_checking=--enable-checking=yes,types;;
17629 esac
17630 if test "x$enable_checking" = x && \
17631 test -d ${srcdir}/gcc && \
17632 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17633 stage1_checking=--enable-checking=yes,types,extra
17634 fi
17635 else
17636 stage1_checking=--enable-checking=$enable_checking,types
17637 fi
17638 fi
17639
17640
17641
17642 # Enable -Werror in bootstrap stage2 and later.
17643 # Check whether --enable-werror was given.
17644 if test "${enable_werror+set}" = set; then :
17645 enableval=$enable_werror;
17646 case ${enable_werror} in
17647 yes) stage2_werror_flag="--enable-werror-always" ;;
17648 *) stage2_werror_flag="" ;;
17649 esac
17650
17651 else
17652
17653 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17654 case $BUILD_CONFIG in
17655 bootstrap-debug)
17656 stage2_werror_flag="--enable-werror-always" ;;
17657 "")
17658 stage2_werror_flag="--enable-werror-always" ;;
17659 esac
17660 fi
17661
17662 fi
17663
17664
17665
17666
17667 # Specify what files to not compare during bootstrap.
17668
17669 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17670 case "$target" in
17671 hppa*64*-*-hpux*) ;;
17672 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17673 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17674 esac
17675
17676
17677 ac_config_files="$ac_config_files Makefile"
17678
17679 cat >confcache <<\_ACEOF
17680 # This file is a shell script that caches the results of configure
17681 # tests run on this system so they can be shared between configure
17682 # scripts and configure runs, see configure's option --config-cache.
17683 # It is not useful on other systems. If it contains results you don't
17684 # want to keep, you may remove or edit it.
17685 #
17686 # config.status only pays attention to the cache file if you give it
17687 # the --recheck option to rerun configure.
17688 #
17689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17691 # following values.
17692
17693 _ACEOF
17694
17695 # The following way of writing the cache mishandles newlines in values,
17696 # but we know of no workaround that is simple, portable, and efficient.
17697 # So, we kill variables containing newlines.
17698 # Ultrix sh set writes to stderr and can't be redirected directly,
17699 # and sets the high bit in the cache file unless we assign to the vars.
17700 (
17701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17702 eval ac_val=\$$ac_var
17703 case $ac_val in #(
17704 *${as_nl}*)
17705 case $ac_var in #(
17706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17708 esac
17709 case $ac_var in #(
17710 _ | IFS | as_nl) ;; #(
17711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17712 *) { eval $ac_var=; unset $ac_var;} ;;
17713 esac ;;
17714 esac
17715 done
17716
17717 (set) 2>&1 |
17718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17719 *${as_nl}ac_space=\ *)
17720 # `set' does not quote correctly, so add quotes: double-quote
17721 # substitution turns \\\\ into \\, and sed turns \\ into \.
17722 sed -n \
17723 "s/'/'\\\\''/g;
17724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17725 ;; #(
17726 *)
17727 # `set' quotes correctly as required by POSIX, so do not add quotes.
17728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17729 ;;
17730 esac |
17731 sort
17732 ) |
17733 sed '
17734 /^ac_cv_env_/b end
17735 t clear
17736 :clear
17737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17738 t end
17739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17740 :end' >>confcache
17741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17742 if test -w "$cache_file"; then
17743 if test "x$cache_file" != "x/dev/null"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17745 $as_echo "$as_me: updating cache $cache_file" >&6;}
17746 if test ! -f "$cache_file" || test -h "$cache_file"; then
17747 cat confcache >"$cache_file"
17748 else
17749 case $cache_file in #(
17750 */* | ?:*)
17751 mv -f confcache "$cache_file"$$ &&
17752 mv -f "$cache_file"$$ "$cache_file" ;; #(
17753 *)
17754 mv -f confcache "$cache_file" ;;
17755 esac
17756 fi
17757 fi
17758 else
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17761 fi
17762 fi
17763 rm -f confcache
17764
17765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17766 # Let make expand exec_prefix.
17767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17768
17769 # Transform confdefs.h into DEFS.
17770 # Protect against shell expansion while executing Makefile rules.
17771 # Protect against Makefile macro expansion.
17772 #
17773 # If the first sed substitution is executed (which looks for macros that
17774 # take arguments), then branch to the quote section. Otherwise,
17775 # look for a macro that doesn't take arguments.
17776 ac_script='
17777 :mline
17778 /\\$/{
17779 N
17780 s,\\\n,,
17781 b mline
17782 }
17783 t clear
17784 :clear
17785 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17786 t quote
17787 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17788 t quote
17789 b any
17790 :quote
17791 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17792 s/\[/\\&/g
17793 s/\]/\\&/g
17794 s/\$/$$/g
17795 H
17796 :any
17797 ${
17798 g
17799 s/^\n//
17800 s/\n/ /g
17801 p
17802 }
17803 '
17804 DEFS=`sed -n "$ac_script" confdefs.h`
17805
17806
17807 ac_libobjs=
17808 ac_ltlibobjs=
17809 U=
17810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17811 # 1. Remove the extension, and $U if already installed.
17812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17813 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17815 # will be set to the directory where LIBOBJS objects are built.
17816 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17817 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17818 done
17819 LIBOBJS=$ac_libobjs
17820
17821 LTLIBOBJS=$ac_ltlibobjs
17822
17823
17824
17825 : "${CONFIG_STATUS=./config.status}"
17826 ac_write_fail=0
17827 ac_clean_files_save=$ac_clean_files
17828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17831 as_write_fail=0
17832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17833 #! $SHELL
17834 # Generated by $as_me.
17835 # Run this file to recreate the current configuration.
17836 # Compiler output produced by configure, useful for debugging
17837 # configure, is in config.log if it exists.
17838
17839 debug=false
17840 ac_cs_recheck=false
17841 ac_cs_silent=false
17842
17843 SHELL=\${CONFIG_SHELL-$SHELL}
17844 export SHELL
17845 _ASEOF
17846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17847 ## -------------------- ##
17848 ## M4sh Initialization. ##
17849 ## -------------------- ##
17850
17851 # Be more Bourne compatible
17852 DUALCASE=1; export DUALCASE # for MKS sh
17853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17854 emulate sh
17855 NULLCMD=:
17856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17857 # is contrary to our usage. Disable this feature.
17858 alias -g '${1+"$@"}'='"$@"'
17859 setopt NO_GLOB_SUBST
17860 else
17861 case `(set -o) 2>/dev/null` in #(
17862 *posix*) :
17863 set -o posix ;; #(
17864 *) :
17865 ;;
17866 esac
17867 fi
17868
17869
17870 as_nl='
17871 '
17872 export as_nl
17873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17877 # Prefer a ksh shell builtin over an external printf program on Solaris,
17878 # but without wasting forks for bash or zsh.
17879 if test -z "$BASH_VERSION$ZSH_VERSION" \
17880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17881 as_echo='print -r --'
17882 as_echo_n='print -rn --'
17883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17884 as_echo='printf %s\n'
17885 as_echo_n='printf %s'
17886 else
17887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17888 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17889 as_echo_n='/usr/ucb/echo -n'
17890 else
17891 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17892 as_echo_n_body='eval
17893 arg=$1;
17894 case $arg in #(
17895 *"$as_nl"*)
17896 expr "X$arg" : "X\\(.*\\)$as_nl";
17897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17898 esac;
17899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17900 '
17901 export as_echo_n_body
17902 as_echo_n='sh -c $as_echo_n_body as_echo'
17903 fi
17904 export as_echo_body
17905 as_echo='sh -c $as_echo_body as_echo'
17906 fi
17907
17908 # The user is always right.
17909 if test "${PATH_SEPARATOR+set}" != set; then
17910 PATH_SEPARATOR=:
17911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17912 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17913 PATH_SEPARATOR=';'
17914 }
17915 fi
17916
17917
17918 # IFS
17919 # We need space, tab and new line, in precisely that order. Quoting is
17920 # there to prevent editors from complaining about space-tab.
17921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17922 # splitting by setting IFS to empty value.)
17923 IFS=" "" $as_nl"
17924
17925 # Find who we are. Look in the path if we contain no directory separator.
17926 as_myself=
17927 case $0 in #((
17928 *[\\/]* ) as_myself=$0 ;;
17929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17931 do
17932 IFS=$as_save_IFS
17933 test -z "$as_dir" && as_dir=.
17934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17935 done
17936 IFS=$as_save_IFS
17937
17938 ;;
17939 esac
17940 # We did not find ourselves, most probably we were run as `sh COMMAND'
17941 # in which case we are not to be found in the path.
17942 if test "x$as_myself" = x; then
17943 as_myself=$0
17944 fi
17945 if test ! -f "$as_myself"; then
17946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17947 exit 1
17948 fi
17949
17950 # Unset variables that we do not need and which cause bugs (e.g. in
17951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17952 # suppresses any "Segmentation fault" message there. '((' could
17953 # trigger a bug in pdksh 5.2.14.
17954 for as_var in BASH_ENV ENV MAIL MAILPATH
17955 do eval test x\${$as_var+set} = xset \
17956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17957 done
17958 PS1='$ '
17959 PS2='> '
17960 PS4='+ '
17961
17962 # NLS nuisances.
17963 LC_ALL=C
17964 export LC_ALL
17965 LANGUAGE=C
17966 export LANGUAGE
17967
17968 # CDPATH.
17969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17970
17971
17972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17973 # ----------------------------------------
17974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17976 # script with STATUS, using 1 if that was 0.
17977 as_fn_error ()
17978 {
17979 as_status=$1; test $as_status -eq 0 && as_status=1
17980 if test "$4"; then
17981 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17983 fi
17984 $as_echo "$as_me: error: $2" >&2
17985 as_fn_exit $as_status
17986 } # as_fn_error
17987
17988
17989 # as_fn_set_status STATUS
17990 # -----------------------
17991 # Set $? to STATUS, without forking.
17992 as_fn_set_status ()
17993 {
17994 return $1
17995 } # as_fn_set_status
17996
17997 # as_fn_exit STATUS
17998 # -----------------
17999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18000 as_fn_exit ()
18001 {
18002 set +e
18003 as_fn_set_status $1
18004 exit $1
18005 } # as_fn_exit
18006
18007 # as_fn_unset VAR
18008 # ---------------
18009 # Portably unset VAR.
18010 as_fn_unset ()
18011 {
18012 { eval $1=; unset $1;}
18013 }
18014 as_unset=as_fn_unset
18015 # as_fn_append VAR VALUE
18016 # ----------------------
18017 # Append the text in VALUE to the end of the definition contained in VAR. Take
18018 # advantage of any shell optimizations that allow amortized linear growth over
18019 # repeated appends, instead of the typical quadratic growth present in naive
18020 # implementations.
18021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18022 eval 'as_fn_append ()
18023 {
18024 eval $1+=\$2
18025 }'
18026 else
18027 as_fn_append ()
18028 {
18029 eval $1=\$$1\$2
18030 }
18031 fi # as_fn_append
18032
18033 # as_fn_arith ARG...
18034 # ------------------
18035 # Perform arithmetic evaluation on the ARGs, and store the result in the
18036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18037 # must be portable across $(()) and expr.
18038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18039 eval 'as_fn_arith ()
18040 {
18041 as_val=$(( $* ))
18042 }'
18043 else
18044 as_fn_arith ()
18045 {
18046 as_val=`expr "$@" || test $? -eq 1`
18047 }
18048 fi # as_fn_arith
18049
18050
18051 if expr a : '\(a\)' >/dev/null 2>&1 &&
18052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18053 as_expr=expr
18054 else
18055 as_expr=false
18056 fi
18057
18058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18059 as_basename=basename
18060 else
18061 as_basename=false
18062 fi
18063
18064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18065 as_dirname=dirname
18066 else
18067 as_dirname=false
18068 fi
18069
18070 as_me=`$as_basename -- "$0" ||
18071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18072 X"$0" : 'X\(//\)$' \| \
18073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18074 $as_echo X/"$0" |
18075 sed '/^.*\/\([^/][^/]*\)\/*$/{
18076 s//\1/
18077 q
18078 }
18079 /^X\/\(\/\/\)$/{
18080 s//\1/
18081 q
18082 }
18083 /^X\/\(\/\).*/{
18084 s//\1/
18085 q
18086 }
18087 s/.*/./; q'`
18088
18089 # Avoid depending upon Character Ranges.
18090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18093 as_cr_digits='0123456789'
18094 as_cr_alnum=$as_cr_Letters$as_cr_digits
18095
18096 ECHO_C= ECHO_N= ECHO_T=
18097 case `echo -n x` in #(((((
18098 -n*)
18099 case `echo 'xy\c'` in
18100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18101 xy) ECHO_C='\c';;
18102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18103 ECHO_T=' ';;
18104 esac;;
18105 *)
18106 ECHO_N='-n';;
18107 esac
18108
18109 rm -f conf$$ conf$$.exe conf$$.file
18110 if test -d conf$$.dir; then
18111 rm -f conf$$.dir/conf$$.file
18112 else
18113 rm -f conf$$.dir
18114 mkdir conf$$.dir 2>/dev/null
18115 fi
18116 if (echo >conf$$.file) 2>/dev/null; then
18117 if ln -s conf$$.file conf$$ 2>/dev/null; then
18118 as_ln_s='ln -s'
18119 # ... but there are two gotchas:
18120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18122 # In both cases, we have to default to `cp -pR'.
18123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18124 as_ln_s='cp -pR'
18125 elif ln conf$$.file conf$$ 2>/dev/null; then
18126 as_ln_s=ln
18127 else
18128 as_ln_s='cp -pR'
18129 fi
18130 else
18131 as_ln_s='cp -pR'
18132 fi
18133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18134 rmdir conf$$.dir 2>/dev/null
18135
18136
18137 # as_fn_mkdir_p
18138 # -------------
18139 # Create "$as_dir" as a directory, including parents if necessary.
18140 as_fn_mkdir_p ()
18141 {
18142
18143 case $as_dir in #(
18144 -*) as_dir=./$as_dir;;
18145 esac
18146 test -d "$as_dir" || eval $as_mkdir_p || {
18147 as_dirs=
18148 while :; do
18149 case $as_dir in #(
18150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18151 *) as_qdir=$as_dir;;
18152 esac
18153 as_dirs="'$as_qdir' $as_dirs"
18154 as_dir=`$as_dirname -- "$as_dir" ||
18155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18156 X"$as_dir" : 'X\(//\)[^/]' \| \
18157 X"$as_dir" : 'X\(//\)$' \| \
18158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18159 $as_echo X"$as_dir" |
18160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18161 s//\1/
18162 q
18163 }
18164 /^X\(\/\/\)[^/].*/{
18165 s//\1/
18166 q
18167 }
18168 /^X\(\/\/\)$/{
18169 s//\1/
18170 q
18171 }
18172 /^X\(\/\).*/{
18173 s//\1/
18174 q
18175 }
18176 s/.*/./; q'`
18177 test -d "$as_dir" && break
18178 done
18179 test -z "$as_dirs" || eval "mkdir $as_dirs"
18180 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18181
18182
18183 } # as_fn_mkdir_p
18184 if mkdir -p . 2>/dev/null; then
18185 as_mkdir_p='mkdir -p "$as_dir"'
18186 else
18187 test -d ./-p && rmdir ./-p
18188 as_mkdir_p=false
18189 fi
18190
18191
18192 # as_fn_executable_p FILE
18193 # -----------------------
18194 # Test if FILE is an executable regular file.
18195 as_fn_executable_p ()
18196 {
18197 test -f "$1" && test -x "$1"
18198 } # as_fn_executable_p
18199 as_test_x='test -x'
18200 as_executable_p=as_fn_executable_p
18201
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18204
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18207
18208
18209 exec 6>&1
18210 ## ----------------------------------- ##
18211 ## Main body of $CONFIG_STATUS script. ##
18212 ## ----------------------------------- ##
18213 _ASEOF
18214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18215
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 # Save the log message, to keep $0 and so on meaningful, and to
18218 # report actual input values of CONFIG_FILES etc. instead of their
18219 # values after options handling.
18220 ac_log="
18221 This file was extended by $as_me, which was
18222 generated by GNU Autoconf 2.69. Invocation command line was
18223
18224 CONFIG_FILES = $CONFIG_FILES
18225 CONFIG_HEADERS = $CONFIG_HEADERS
18226 CONFIG_LINKS = $CONFIG_LINKS
18227 CONFIG_COMMANDS = $CONFIG_COMMANDS
18228 $ $0 $@
18229
18230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18231 "
18232
18233 _ACEOF
18234
18235 case $ac_config_files in *"
18236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18237 esac
18238
18239
18240
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 # Files that config.status was made for.
18243 config_files="$ac_config_files"
18244
18245 _ACEOF
18246
18247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18248 ac_cs_usage="\
18249 \`$as_me' instantiates files and other configuration actions
18250 from templates according to the current configuration. Unless the files
18251 and actions are specified as TAGs, all are instantiated by default.
18252
18253 Usage: $0 [OPTION]... [TAG]...
18254
18255 -h, --help print this help, then exit
18256 -V, --version print version number and configuration settings, then exit
18257 --config print configuration, then exit
18258 -q, --quiet, --silent
18259 do not print progress messages
18260 -d, --debug don't remove temporary files
18261 --recheck update $as_me by reconfiguring in the same conditions
18262 --file=FILE[:TEMPLATE]
18263 instantiate the configuration file FILE
18264
18265 Configuration files:
18266 $config_files
18267
18268 Report bugs to the package provider."
18269
18270 _ACEOF
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18273 ac_cs_version="\\
18274 config.status
18275 configured by $0, generated by GNU Autoconf 2.69,
18276 with options \\"\$ac_cs_config\\"
18277
18278 Copyright (C) 2012 Free Software Foundation, Inc.
18279 This config.status script is free software; the Free Software Foundation
18280 gives unlimited permission to copy, distribute and modify it."
18281
18282 ac_pwd='$ac_pwd'
18283 srcdir='$srcdir'
18284 INSTALL='$INSTALL'
18285 AWK='$AWK'
18286 test -n "\$AWK" || AWK=awk
18287 _ACEOF
18288
18289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18290 # The default lists apply if the user does not specify any file.
18291 ac_need_defaults=:
18292 while test $# != 0
18293 do
18294 case $1 in
18295 --*=?*)
18296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18298 ac_shift=:
18299 ;;
18300 --*=)
18301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18302 ac_optarg=
18303 ac_shift=:
18304 ;;
18305 *)
18306 ac_option=$1
18307 ac_optarg=$2
18308 ac_shift=shift
18309 ;;
18310 esac
18311
18312 case $ac_option in
18313 # Handling of the options.
18314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18315 ac_cs_recheck=: ;;
18316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18317 $as_echo "$ac_cs_version"; exit ;;
18318 --config | --confi | --conf | --con | --co | --c )
18319 $as_echo "$ac_cs_config"; exit ;;
18320 --debug | --debu | --deb | --de | --d | -d )
18321 debug=: ;;
18322 --file | --fil | --fi | --f )
18323 $ac_shift
18324 case $ac_optarg in
18325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18326 '') as_fn_error $? "missing file argument" ;;
18327 esac
18328 as_fn_append CONFIG_FILES " '$ac_optarg'"
18329 ac_need_defaults=false;;
18330 --he | --h | --help | --hel | -h )
18331 $as_echo "$ac_cs_usage"; exit ;;
18332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18334 ac_cs_silent=: ;;
18335
18336 # This is an error.
18337 -*) as_fn_error $? "unrecognized option: \`$1'
18338 Try \`$0 --help' for more information." ;;
18339
18340 *) as_fn_append ac_config_targets " $1"
18341 ac_need_defaults=false ;;
18342
18343 esac
18344 shift
18345 done
18346
18347 ac_configure_extra_args=
18348
18349 if $ac_cs_silent; then
18350 exec 6>/dev/null
18351 ac_configure_extra_args="$ac_configure_extra_args --silent"
18352 fi
18353
18354 _ACEOF
18355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18356 if \$ac_cs_recheck; then
18357 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18358 shift
18359 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18360 CONFIG_SHELL='$SHELL'
18361 export CONFIG_SHELL
18362 exec "\$@"
18363 fi
18364
18365 _ACEOF
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18367 exec 5>>config.log
18368 {
18369 echo
18370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18371 ## Running $as_me. ##
18372 _ASBOX
18373 $as_echo "$ac_log"
18374 } >&5
18375
18376 _ACEOF
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18378 #
18379 # INIT-COMMANDS
18380 #
18381 extrasub_build="$extrasub_build"
18382 extrasub_host="$extrasub_host"
18383 extrasub_target="$extrasub_target"
18384
18385 _ACEOF
18386
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388
18389 # Handling of arguments.
18390 for ac_config_target in $ac_config_targets
18391 do
18392 case $ac_config_target in
18393 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18394
18395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18396 esac
18397 done
18398
18399
18400 # If the user did not use the arguments to specify the items to instantiate,
18401 # then the envvar interface is used. Set only those that are not.
18402 # We use the long form for the default assignment because of an extremely
18403 # bizarre bug on SunOS 4.1.3.
18404 if $ac_need_defaults; then
18405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18406 fi
18407
18408 # Have a temporary directory for convenience. Make it in the build tree
18409 # simply because there is no reason against having it here, and in addition,
18410 # creating and moving files from /tmp can sometimes cause problems.
18411 # Hook for its removal unless debugging.
18412 # Note that there is a small window in which the directory will not be cleaned:
18413 # after its creation but before its name has been assigned to `$tmp'.
18414 $debug ||
18415 {
18416 tmp= ac_tmp=
18417 trap 'exit_status=$?
18418 : "${ac_tmp:=$tmp}"
18419 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18420 ' 0
18421 trap 'as_fn_exit 1' 1 2 13 15
18422 }
18423 # Create a (secure) tmp directory for tmp files.
18424
18425 {
18426 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18427 test -d "$tmp"
18428 } ||
18429 {
18430 tmp=./conf$$-$RANDOM
18431 (umask 077 && mkdir "$tmp")
18432 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18433 ac_tmp=$tmp
18434
18435 # Set up the scripts for CONFIG_FILES section.
18436 # No need to generate them if there are no CONFIG_FILES.
18437 # This happens for instance with `./config.status config.h'.
18438 if test -n "$CONFIG_FILES"; then
18439
18440 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18441 ac_cs_awk_getline=:
18442 ac_cs_awk_pipe_init=
18443 ac_cs_awk_read_file='
18444 while ((getline aline < (F[key])) > 0)
18445 print(aline)
18446 close(F[key])'
18447 ac_cs_awk_pipe_fini=
18448 else
18449 ac_cs_awk_getline=false
18450 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18451 ac_cs_awk_read_file='
18452 print "|#_!!_#|"
18453 print "cat " F[key] " &&"
18454 '$ac_cs_awk_pipe_init
18455 # The final `:' finishes the AND list.
18456 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18457 fi
18458 ac_cr=`echo X | tr X '\015'`
18459 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18460 # But we know of no other shell where ac_cr would be empty at this
18461 # point, so we can use a bashism as a fallback.
18462 if test "x$ac_cr" = x; then
18463 eval ac_cr=\$\'\\r\'
18464 fi
18465 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18466 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18467 ac_cs_awk_cr='\\r'
18468 else
18469 ac_cs_awk_cr=$ac_cr
18470 fi
18471
18472 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18473 _ACEOF
18474
18475 # Create commands to substitute file output variables.
18476 {
18477 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18478 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18479 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18480 echo "_ACAWK" &&
18481 echo "_ACEOF"
18482 } >conf$$files.sh &&
18483 . ./conf$$files.sh ||
18484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18485 rm -f conf$$files.sh
18486
18487 {
18488 echo "cat >conf$$subs.awk <<_ACEOF" &&
18489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18490 echo "_ACEOF"
18491 } >conf$$subs.sh ||
18492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18494 ac_delim='%!_!# '
18495 for ac_last_try in false false false false false :; do
18496 . ./conf$$subs.sh ||
18497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18498
18499 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18500 if test $ac_delim_n = $ac_delim_num; then
18501 break
18502 elif $ac_last_try; then
18503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18504 else
18505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18506 fi
18507 done
18508 rm -f conf$$subs.sh
18509
18510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18511 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18512 _ACEOF
18513 sed -n '
18514 h
18515 s/^/S["/; s/!.*/"]=/
18516 p
18517 g
18518 s/^[^!]*!//
18519 :repl
18520 t repl
18521 s/'"$ac_delim"'$//
18522 t delim
18523 :nl
18524 h
18525 s/\(.\{148\}\)..*/\1/
18526 t more1
18527 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18528 p
18529 n
18530 b repl
18531 :more1
18532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18533 p
18534 g
18535 s/.\{148\}//
18536 t nl
18537 :delim
18538 h
18539 s/\(.\{148\}\)..*/\1/
18540 t more2
18541 s/["\\]/\\&/g; s/^/"/; s/$/"/
18542 p
18543 b
18544 :more2
18545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18546 p
18547 g
18548 s/.\{148\}//
18549 t delim
18550 ' <conf$$subs.awk | sed '
18551 /^[^""]/{
18552 N
18553 s/\n//
18554 }
18555 ' >>$CONFIG_STATUS || ac_write_fail=1
18556 rm -f conf$$subs.awk
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18558 _ACAWK
18559 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18560 for (key in S) S_is_set[key] = 1
18561 FS = "\a"
18562 \$ac_cs_awk_pipe_init
18563 }
18564 {
18565 line = $ 0
18566 nfields = split(line, field, "@")
18567 substed = 0
18568 len = length(field[1])
18569 for (i = 2; i < nfields; i++) {
18570 key = field[i]
18571 keylen = length(key)
18572 if (S_is_set[key]) {
18573 value = S[key]
18574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18575 len += length(value) + length(field[++i])
18576 substed = 1
18577 } else
18578 len += 1 + keylen
18579 }
18580 if (nfields == 3 && !substed) {
18581 key = field[2]
18582 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18583 \$ac_cs_awk_read_file
18584 next
18585 }
18586 }
18587 print line
18588 }
18589 \$ac_cs_awk_pipe_fini
18590 _ACAWK
18591 _ACEOF
18592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18595 else
18596 cat
18597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18599 _ACEOF
18600
18601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18603 # trailing colons and then remove the whole line if VPATH becomes empty
18604 # (actually we leave an empty line to preserve line numbers).
18605 if test "x$srcdir" = x.; then
18606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18607 h
18608 s///
18609 s/^/:/
18610 s/[ ]*$/:/
18611 s/:\$(srcdir):/:/g
18612 s/:\${srcdir}:/:/g
18613 s/:@srcdir@:/:/g
18614 s/^:*//
18615 s/:*$//
18616 x
18617 s/\(=[ ]*\).*/\1/
18618 G
18619 s/\n//
18620 s/^[^=]*=[ ]*$//
18621 }'
18622 fi
18623
18624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18625 fi # test -n "$CONFIG_FILES"
18626
18627
18628 eval set X " :F $CONFIG_FILES "
18629 shift
18630 for ac_tag
18631 do
18632 case $ac_tag in
18633 :[FHLC]) ac_mode=$ac_tag; continue;;
18634 esac
18635 case $ac_mode$ac_tag in
18636 :[FHL]*:*);;
18637 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18638 :[FH]-) ac_tag=-:-;;
18639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18640 esac
18641 ac_save_IFS=$IFS
18642 IFS=:
18643 set x $ac_tag
18644 IFS=$ac_save_IFS
18645 shift
18646 ac_file=$1
18647 shift
18648
18649 case $ac_mode in
18650 :L) ac_source=$1;;
18651 :[FH])
18652 ac_file_inputs=
18653 for ac_f
18654 do
18655 case $ac_f in
18656 -) ac_f="$ac_tmp/stdin";;
18657 *) # Look for the file first in the build tree, then in the source tree
18658 # (if the path is not absolute). The absolute path cannot be DOS-style,
18659 # because $ac_f cannot contain `:'.
18660 test -f "$ac_f" ||
18661 case $ac_f in
18662 [\\/$]*) false;;
18663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18664 esac ||
18665 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18666 esac
18667 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18668 as_fn_append ac_file_inputs " '$ac_f'"
18669 done
18670
18671 # Let's still pretend it is `configure' which instantiates (i.e., don't
18672 # use $as_me), people would be surprised to read:
18673 # /* config.h. Generated by config.status. */
18674 configure_input='Generated from '`
18675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18676 `' by configure.'
18677 if test x"$ac_file" != x-; then
18678 configure_input="$ac_file. $configure_input"
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18680 $as_echo "$as_me: creating $ac_file" >&6;}
18681 fi
18682 # Neutralize special characters interpreted by sed in replacement strings.
18683 case $configure_input in #(
18684 *\&* | *\|* | *\\* )
18685 ac_sed_conf_input=`$as_echo "$configure_input" |
18686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18687 *) ac_sed_conf_input=$configure_input;;
18688 esac
18689
18690 case $ac_tag in
18691 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18693 esac
18694 ;;
18695 esac
18696
18697 ac_dir=`$as_dirname -- "$ac_file" ||
18698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$ac_file" : 'X\(//\)[^/]' \| \
18700 X"$ac_file" : 'X\(//\)$' \| \
18701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18702 $as_echo X"$ac_file" |
18703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18704 s//\1/
18705 q
18706 }
18707 /^X\(\/\/\)[^/].*/{
18708 s//\1/
18709 q
18710 }
18711 /^X\(\/\/\)$/{
18712 s//\1/
18713 q
18714 }
18715 /^X\(\/\).*/{
18716 s//\1/
18717 q
18718 }
18719 s/.*/./; q'`
18720 as_dir="$ac_dir"; as_fn_mkdir_p
18721 ac_builddir=.
18722
18723 case "$ac_dir" in
18724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18725 *)
18726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18727 # A ".." for each directory in $ac_dir_suffix.
18728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18729 case $ac_top_builddir_sub in
18730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18732 esac ;;
18733 esac
18734 ac_abs_top_builddir=$ac_pwd
18735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18736 # for backward compatibility:
18737 ac_top_builddir=$ac_top_build_prefix
18738
18739 case $srcdir in
18740 .) # We are building in place.
18741 ac_srcdir=.
18742 ac_top_srcdir=$ac_top_builddir_sub
18743 ac_abs_top_srcdir=$ac_pwd ;;
18744 [\\/]* | ?:[\\/]* ) # Absolute name.
18745 ac_srcdir=$srcdir$ac_dir_suffix;
18746 ac_top_srcdir=$srcdir
18747 ac_abs_top_srcdir=$srcdir ;;
18748 *) # Relative name.
18749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18750 ac_top_srcdir=$ac_top_build_prefix$srcdir
18751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18752 esac
18753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18754
18755
18756 case $ac_mode in
18757 :F)
18758 #
18759 # CONFIG_FILE
18760 #
18761
18762 case $INSTALL in
18763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18765 esac
18766 _ACEOF
18767
18768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18769 # If the template does not know about datarootdir, expand it.
18770 # FIXME: This hack should be removed a few years after 2.60.
18771 ac_datarootdir_hack=; ac_datarootdir_seen=
18772 ac_sed_dataroot='
18773 /datarootdir/ {
18774 p
18775 q
18776 }
18777 /@datadir@/p
18778 /@docdir@/p
18779 /@infodir@/p
18780 /@localedir@/p
18781 /@mandir@/p'
18782 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18783 *datarootdir*) ac_datarootdir_seen=yes;;
18784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18786 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18787 _ACEOF
18788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18789 ac_datarootdir_hack='
18790 s&@datadir@&$datadir&g
18791 s&@docdir@&$docdir&g
18792 s&@infodir@&$infodir&g
18793 s&@localedir@&$localedir&g
18794 s&@mandir@&$mandir&g
18795 s&\\\${datarootdir}&$datarootdir&g' ;;
18796 esac
18797 _ACEOF
18798
18799 # Neutralize VPATH when `$srcdir' = `.'.
18800 # Shell code in configure.ac might set extrasub.
18801 # FIXME: do we really want to maintain this feature?
18802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18803 ac_sed_extra="$ac_vpsub
18804 $extrasub
18805 _ACEOF
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807 :t
18808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18809 s|@configure_input@|$ac_sed_conf_input|;t t
18810 s&@top_builddir@&$ac_top_builddir_sub&;t t
18811 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18812 s&@srcdir@&$ac_srcdir&;t t
18813 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18814 s&@top_srcdir@&$ac_top_srcdir&;t t
18815 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18816 s&@builddir@&$ac_builddir&;t t
18817 s&@abs_builddir@&$ac_abs_builddir&;t t
18818 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18819 s&@INSTALL@&$ac_INSTALL&;t t
18820 $ac_datarootdir_hack
18821 "
18822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18823 if $ac_cs_awk_getline; then
18824 $AWK -f "$ac_tmp/subs.awk"
18825 else
18826 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18827 fi \
18828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18829
18830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18833 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18835 which seems to be undefined. Please make sure it is defined" >&5
18836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18837 which seems to be undefined. Please make sure it is defined" >&2;}
18838
18839 rm -f "$ac_tmp/stdin"
18840 case $ac_file in
18841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18843 esac \
18844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18845 ;;
18846
18847
18848
18849 esac
18850
18851
18852 case $ac_file$ac_mode in
18853 "Makefile":F) sed "$extrasub_build" Makefile |
18854 sed "$extrasub_host" |
18855 sed "$extrasub_target" > mf$$
18856 mv -f mf$$ Makefile ;;
18857
18858 esac
18859 done # for ac_tag
18860
18861
18862 as_fn_exit 0
18863 _ACEOF
18864 ac_clean_files=$ac_clean_files_save
18865
18866 test $ac_write_fail = 0 ||
18867 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18868
18869
18870 # configure is writing to config.log, and then calls config.status.
18871 # config.status does its own redirection, appending to config.log.
18872 # Unfortunately, on DOS this fails, as config.log is still kept open
18873 # by configure, so config.status won't be able to write to it; its
18874 # output is simply discarded. So we exec the FD to /dev/null,
18875 # effectively closing config.log, so it can be properly (re)opened and
18876 # appended to by config.status. When coming back to configure, we
18877 # need to make the FD available again.
18878 if test "$no_create" != yes; then
18879 ac_cs_success=:
18880 ac_config_status_args=
18881 test "$silent" = yes &&
18882 ac_config_status_args="$ac_config_status_args --quiet"
18883 exec 5>/dev/null
18884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18885 exec 5>>config.log
18886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18887 # would make configure fail if this is the last instruction.
18888 $ac_cs_success || as_fn_exit 1
18889 fi
18890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18892 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18893 fi
18894