]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - configure
add --enable-default-compressed-debug-sections-algorithm configure option
[thirdparty/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 RANLIB_PLUGIN_OPTION
623 AR_PLUGIN_OPTION
624 GDCFLAGS
625 GDC
626 READELF
627 OTOOL
628 OBJDUMP
629 OBJCOPY
630 WINDMC
631 WINDRES
632 STRIP
633 RANLIB
634 NM
635 LIPO
636 LD
637 DSYMUTIL
638 DLLTOOL
639 AS
640 AR
641 RUNTEST
642 EXPECT
643 MAKEINFO
644 FLEX
645 LEX
646 M4
647 BISON
648 YACC
649 WINDRES_FOR_BUILD
650 WINDMC_FOR_BUILD
651 RANLIB_FOR_BUILD
652 NM_FOR_BUILD
653 LD_FOR_BUILD
654 LDFLAGS_FOR_BUILD
655 GDC_FOR_BUILD
656 GOC_FOR_BUILD
657 GFORTRAN_FOR_BUILD
658 DSYMUTIL_FOR_BUILD
659 DLLTOOL_FOR_BUILD
660 CXX_FOR_BUILD
661 CXXFLAGS_FOR_BUILD
662 CPPFLAGS_FOR_BUILD
663 CPP_FOR_BUILD
664 CFLAGS_FOR_BUILD
665 CC_FOR_BUILD
666 AS_FOR_BUILD
667 AR_FOR_BUILD
668 target_configdirs
669 configdirs
670 build_configdirs
671 INSTALL_GDB_TK
672 GDB_TK
673 CONFIGURE_GDB_TK
674 build_tooldir
675 tooldir
676 GCC_SHLIB_SUBDIR
677 RPATH_ENVVAR
678 target_configargs
679 host_configargs
680 build_configargs
681 BUILD_CONFIG
682 LDFLAGS_FOR_TARGET
683 CXXFLAGS_FOR_TARGET
684 CFLAGS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
687 get_gcc_base_ver
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
690 stage1_languages
691 host_shared
692 extra_linker_plugin_flags
693 extra_linker_plugin_configure_flags
694 islinc
695 isllibs
696 poststage1_ldflags
697 poststage1_libs
698 stage1_ldflags
699 stage1_libs
700 extra_isl_gmp_configure_flags
701 extra_mpc_mpfr_configure_flags
702 extra_mpc_gmp_configure_flags
703 extra_mpfr_configure_flags
704 gmpinc
705 gmplibs
706 PGO_BUILD_LTO_CFLAGS
707 PGO_BUILD_USE_CFLAGS
708 PGO_BUILD_GEN_CFLAGS
709 HAVE_CXX11_FOR_BUILD
710 HAVE_CXX11
711 do_compare
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 extra_liboffloadmic_configure_flags
725 target_subdir
726 host_subdir
727 build_subdir
728 build_libsubdir
729 AWK
730 SED
731 LN_S
732 LN
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_os
737 target_vendor
738 target_cpu
739 target
740 host_os
741 host_vendor
742 host_cpu
743 host
744 target_noncanonical
745 host_noncanonical
746 build_noncanonical
747 build_os
748 build_vendor
749 build_cpu
750 build
751 TOPLEVEL_CONFIGURE_ARGUMENTS
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='serialization_dependencies
791 host_makefile_frag
792 target_makefile_frag
793 alphaieee_frag
794 ospace_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_build_libsubdir
798 with_system_zlib
799 with_zstd
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
803 enable_gold
804 enable_ld
805 enable_gprofng
806 enable_compressed_debug_sections
807 enable_default_compressed_debug_sections_algorithm
808 enable_year2038
809 enable_libquadmath
810 enable_libquadmath_support
811 enable_libada
812 enable_libssp
813 enable_libstdcxx
814 enable_liboffloadmic
815 enable_bootstrap
816 enable_pgo_build
817 with_mpc
818 with_mpc_include
819 with_mpc_lib
820 with_mpfr
821 with_mpfr_include
822 with_mpfr_lib
823 with_gmp
824 with_gmp_include
825 with_gmp_lib
826 with_stage1_libs
827 with_static_standard_libraries
828 with_stage1_ldflags
829 with_boot_libs
830 with_boot_ldflags
831 with_isl
832 with_isl_include
833 with_isl_lib
834 enable_isl_version_check
835 enable_lto
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
838 enable_host_shared
839 enable_stage1_languages
840 enable_objc_gc
841 with_target_bdw_gc
842 with_target_bdw_gc_include
843 with_target_bdw_gc_lib
844 with_gcc_major_version_only
845 with_build_sysroot
846 with_debug_prefix_map
847 with_build_config
848 enable_vtable_verify
849 enable_serial_configure
850 with_build_time_tools
851 enable_maintainer_mode
852 enable_stage1_checking
853 enable_werror
854 '
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CXX
864 CXXFLAGS
865 CCC
866 build_configargs
867 host_configargs
868 target_configargs
869 AR
870 AS
871 DLLTOOL
872 DSYMUTIL
873 LD
874 LIPO
875 NM
876 RANLIB
877 STRIP
878 WINDRES
879 WINDMC
880 OBJCOPY
881 OBJDUMP
882 OTOOL
883 READELF
884 CC_FOR_TARGET
885 CXX_FOR_TARGET
886 GCC_FOR_TARGET
887 GFORTRAN_FOR_TARGET
888 GOC_FOR_TARGET
889 GDC_FOR_TARGET
890 AR_FOR_TARGET
891 AS_FOR_TARGET
892 DLLTOOL_FOR_TARGET
893 DSYMUTIL_FOR_TARGET
894 LD_FOR_TARGET
895 LIPO_FOR_TARGET
896 NM_FOR_TARGET
897 OBJCOPY_FOR_TARGET
898 OBJDUMP_FOR_TARGET
899 OTOOL_FOR_TARGET
900 RANLIB_FOR_TARGET
901 READELF_FOR_TARGET
902 STRIP_FOR_TARGET
903 WINDRES_FOR_TARGET
904 WINDMC_FOR_TARGET'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1255
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1289
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1292 ;;
1293
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1303
1304 *)
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 ;;
1311
1312 esac
1313 done
1314
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $? "missing argument to $ac_option"
1318 fi
1319
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $? "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1409 fi
1410 else
1411 ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 case $srcdir in
1432 *" "*)
1433 as_fn_error $? "path to source, $srcdir, contains spaces"
1434 ;;
1435 esac
1436 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514 System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1531 host triple by ARG
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET[=DIR]. Use optional path to find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful for distribution
1539 compilers where those are in separate optional packages.
1540
1541 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1542 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1543 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1544 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1545 Enable compressed debug sections for gas, gold or ld
1546 by default
1547 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1548 Default compression algorithm for
1549 --enable-compressed-debug-sections.
1550 --enable-year2038 enable support for timestamps past the year 2038
1551 --disable-libquadmath do not build libquadmath directory
1552 --disable-libquadmath-support
1553 disable libquadmath support for Fortran
1554 --enable-libada build libada directory
1555 --enable-libssp build libssp directory
1556 --disable-libstdcxx do not build libstdc++-v3 directory
1557 --enable-liboffloadmic=ARG
1558 build liboffloadmic [ARG={no,host,target}]
1559 --enable-bootstrap enable bootstrapping [yes if native build]
1560 --enable-pgo-build[=lto]
1561 enable the PGO build
1562 --disable-isl-version-check
1563 disable check for isl version
1564 --enable-lto enable link time optimization support
1565 --enable-linker-plugin-configure-flags=FLAGS
1566 additional flags for configuring linker plugins
1567 [none]
1568 --enable-linker-plugin-flags=FLAGS
1569 additional flags for configuring and building linker
1570 plugins [none]
1571 --enable-host-shared build host code as shared libraries
1572 --enable-stage1-languages[=all]
1573 choose additional languages to build during stage1.
1574 Mostly useful for compiler development
1575 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1576 Objective-C runtime
1577 --enable-vtable-verify Enable vtable verification feature
1578 --enable-serial-[{host,target,build}-]configure
1579 force sequential configuration of sub-packages for
1580 the host, target or build machine, or all
1581 sub-packages
1582 --enable-maintainer-mode
1583 enable make rules and dependencies not useful (and
1584 sometimes confusing) to the casual installer
1585 --enable-stage1-checking[=all]
1586 choose additional checking for stage1 of the
1587 compiler
1588 --enable-werror enable -Werror in bootstrap stage2 and later
1589
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-build-libsubdir=DIR Directory where to find libraries for build system
1594 --with-system-zlib use installed libz
1595 --with-zstd Support zstd compressed debug sections
1596 (default=auto)
1597 --with-mpc=PATH specify prefix directory for installed MPC package.
1598 Equivalent to --with-mpc-include=PATH/include plus
1599 --with-mpc-lib=PATH/lib
1600 --with-mpc-include=PATH specify directory for installed MPC include files
1601 --with-mpc-lib=PATH specify directory for the installed MPC library
1602 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1603 Equivalent to --with-mpfr-include=PATH/include plus
1604 --with-mpfr-lib=PATH/lib
1605 --with-mpfr-include=PATH
1606 specify directory for installed MPFR include files
1607 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1608 --with-gmp=PATH specify prefix directory for the installed GMP
1609 package. Equivalent to
1610 --with-gmp-include=PATH/include plus
1611 --with-gmp-lib=PATH/lib
1612 --with-gmp-include=PATH specify directory for installed GMP include files
1613 --with-gmp-lib=PATH specify directory for the installed GMP library
1614 --with-stage1-libs=LIBS libraries for stage1
1615 --with-static-standard-libraries
1616 use -static-libstdc++ and -static-libgcc
1617 (default=auto)
1618 --with-stage1-ldflags=FLAGS
1619 linker flags for stage1
1620 --with-boot-libs=LIBS libraries for stage2 and later
1621 --with-boot-ldflags=FLAGS
1622 linker flags for stage2 and later
1623 --with-isl=PATH Specify prefix directory for the installed isl
1624 package. Equivalent to
1625 --with-isl-include=PATH/include plus
1626 --with-isl-lib=PATH/lib
1627 --with-isl-include=PATH Specify directory for installed isl include files
1628 --with-isl-lib=PATH Specify the directory for the installed isl library
1629 --with-target-bdw-gc=PATHLIST
1630 specify prefix directory for installed bdw-gc
1631 package. Equivalent to
1632 --with-target-bdw-gc-include=PATH/include plus
1633 --with-target-bdw-gc-lib=PATH/lib
1634 --with-target-bdw-gc-include=PATHLIST
1635 specify directories for installed bdw-gc include
1636 files
1637 --with-target-bdw-gc-lib=PATHLIST
1638 specify directories for installed bdw-gc library
1639 --with-gcc-major-version-only
1640 use only GCC major number in filesystem paths
1641 --with-build-sysroot=SYSROOT
1642 use sysroot as the system root during the build
1643 --with-debug-prefix-map='A=B C=D ...'
1644 map A to B, C to D ... in debug information
1645 --with-build-config='NAME NAME2...'
1646 use config/NAME.mk build configuration
1647 --with-build-time-tools=PATH
1648 use given path to find target tools during the build
1649
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 build_configargs
1661 additional configure arguments for build directories
1662 host_configargs
1663 additional configure arguments for host directories
1664 target_configargs
1665 additional configure arguments for target directories
1666 AR AR for the host
1667 AS AS for the host
1668 DLLTOOL DLLTOOL for the host
1669 DSYMUTIL DSYMUTIL for the host
1670 LD LD for the host
1671 LIPO LIPO for the host
1672 NM NM for the host
1673 RANLIB RANLIB for the host
1674 STRIP STRIP for the host
1675 WINDRES WINDRES for the host
1676 WINDMC WINDMC for the host
1677 OBJCOPY OBJCOPY for the host
1678 OBJDUMP OBJDUMP for the host
1679 OTOOL OTOOL for the host
1680 READELF READELF for the host
1681 CC_FOR_TARGET
1682 CC for the target
1683 CXX_FOR_TARGET
1684 CXX for the target
1685 GCC_FOR_TARGET
1686 GCC for the target
1687 GFORTRAN_FOR_TARGET
1688 GFORTRAN for the target
1689 GOC_FOR_TARGET
1690 GOC for the target
1691 GDC_FOR_TARGET
1692 GDC for the target
1693 AR_FOR_TARGET
1694 AR for the target
1695 AS_FOR_TARGET
1696 AS for the target
1697 DLLTOOL_FOR_TARGET
1698 DLLTOOL for the target
1699 DSYMUTIL_FOR_TARGET
1700 DSYMUTIL for the target
1701 LD_FOR_TARGET
1702 LD for the target
1703 LIPO_FOR_TARGET
1704 LIPO for the target
1705 NM_FOR_TARGET
1706 NM for the target
1707 OBJCOPY_FOR_TARGET
1708 OBJCOPY for the target
1709 OBJDUMP_FOR_TARGET
1710 OBJDUMP for the target
1711 OTOOL_FOR_TARGET
1712 OTOOL for the target
1713 RANLIB_FOR_TARGET
1714 RANLIB for the target
1715 READELF_FOR_TARGET
1716 READELF for the target
1717 STRIP_FOR_TARGET
1718 STRIP for the target
1719 WINDRES_FOR_TARGET
1720 WINDRES for the target
1721 WINDMC_FOR_TARGET
1722 WINDMC for the target
1723
1724 Use these variables to override the choices made by `configure' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1726
1727 Report bugs to the package provider.
1728 _ACEOF
1729 ac_status=$?
1730 fi
1731
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1737 continue
1738 ac_builddir=.
1739
1740 case "$ac_dir" in
1741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *)
1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749 esac ;;
1750 esac
1751 ac_abs_top_builddir=$ac_pwd
1752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir=$ac_top_build_prefix
1755
1756 case $srcdir in
1757 .) # We are building in place.
1758 ac_srcdir=.
1759 ac_top_srcdir=$ac_top_builddir_sub
1760 ac_abs_top_srcdir=$ac_pwd ;;
1761 [\\/]* | ?:[\\/]* ) # Absolute name.
1762 ac_srcdir=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir=$srcdir
1764 ac_abs_top_srcdir=$srcdir ;;
1765 *) # Relative name.
1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769 esac
1770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771
1772 cd "$ac_dir" || { ac_status=$?; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1775 echo &&
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1778 echo &&
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1780 else
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 fi || ac_status=$?
1783 cd "$ac_pwd" || { ac_status=$?; break; }
1784 done
1785 fi
1786
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1789 cat <<\_ACEOF
1790 configure
1791 generated by GNU Autoconf 2.69
1792
1793 Copyright (C) 2012 Free Software Foundation, Inc.
1794 This configure script is free software; the Free Software Foundation
1795 gives unlimited permission to copy, distribute and modify it.
1796 _ACEOF
1797 exit
1798 fi
1799
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1803
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_compile
1841
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_cxx_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_cxx_try_compile
1879
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_link
1925
1926 # ac_fn_c_try_link LINENO
1927 # -----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_link ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext conftest$ac_exeext
1933 if { { ac_try="$ac_link"
1934 case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>conftest.err
1941 ac_status=$?
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1946 fi
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_c_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest$ac_exeext && {
1952 test "$cross_compiling" = yes ||
1953 test -x conftest$ac_exeext
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=1
1961 fi
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_link
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1974
1975 It was created by $as_me, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1977
1978 $ $0 $@
1979
1980 _ACEOF
1981 exec 5>>config.log
1982 {
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1987
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005 _ASUNAME
2006
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2015
2016 } >&5
2017
2018 cat >&5 <<_ACEOF
2019
2020
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2024
2025 _ACEOF
2026
2027
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2038 do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2075
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222 fi
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324
2325
2326
2327
2328
2329 progname=$0
2330 # if PWD already has a value, it is probably wrong.
2331 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2332
2333 # Export original configure arguments for use by sub-configures.
2334 # Quote arguments with shell meta charatcers.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS=
2336 set -- "$progname" "$@"
2337 for ac_arg
2338 do
2339 case "$ac_arg" in
2340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2341 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2342 # if the argument is of the form -foo=baz, quote the baz part only
2343 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2344 *) ;;
2345 esac
2346 # Add the quoted argument to the list.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2348 done
2349 if test "$silent" = yes; then
2350 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2351 fi
2352 # Remove the initial space we just introduced and, as these will be
2353 # expanded by make, quote '$'.
2354 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2355
2356
2357 # Find the build, host, and target systems.
2358 ac_aux_dir=
2359 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2360 if test -f "$ac_dir/install-sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install-sh -c"
2363 break
2364 elif test -f "$ac_dir/install.sh"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/install.sh -c"
2367 break
2368 elif test -f "$ac_dir/shtool"; then
2369 ac_aux_dir=$ac_dir
2370 ac_install_sh="$ac_aux_dir/shtool install -c"
2371 break
2372 fi
2373 done
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2376 fi
2377
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2385
2386
2387 # Make sure we can run config.sub.
2388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2392 $as_echo_n "checking build system type... " >&6; }
2393 if ${ac_cv_build+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 ac_build_alias=$build_alias
2397 test "x$ac_build_alias" = x &&
2398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2399 test "x$ac_build_alias" = x &&
2400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2406 $as_echo "$ac_cv_build" >&6; }
2407 case $ac_cv_build in
2408 *-*-*) ;;
2409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2410 esac
2411 build=$ac_cv_build
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_build
2414 shift
2415 build_cpu=$1
2416 build_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 build_os=$*
2421 IFS=$ac_save_IFS
2422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2423
2424
2425 case ${build_alias} in
2426 "") build_noncanonical=${build} ;;
2427 *) build_noncanonical=${build_alias} ;;
2428 esac
2429
2430
2431
2432 case ${host_alias} in
2433 "") host_noncanonical=${build_noncanonical} ;;
2434 *) host_noncanonical=${host_alias} ;;
2435 esac
2436
2437
2438
2439 case ${target_alias} in
2440 "") target_noncanonical=${host_noncanonical} ;;
2441 *) target_noncanonical=${target_alias} ;;
2442 esac
2443
2444
2445
2446
2447 test "$host_noncanonical" = "$target_noncanonical" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_transform_name=s,y,y,
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if ${ac_cv_host+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$host_alias" = x; then
2458 ac_cv_host=$ac_cv_build
2459 else
2460 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2467 case $ac_cv_host in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2470 esac
2471 host=$ac_cv_host
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_host
2474 shift
2475 host_cpu=$1
2476 host_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 host_os=$*
2481 IFS=$ac_save_IFS
2482 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if ${ac_cv_target+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test "x$target_alias" = x; then
2491 ac_cv_target=$ac_cv_host
2492 else
2493 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2495 fi
2496
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2501 *-*-*) ;;
2502 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2503 esac
2504 target=$ac_cv_target
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_target
2507 shift
2508 target_cpu=$1
2509 target_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 target_os=$*
2514 IFS=$ac_save_IFS
2515 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2516
2517
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2522 NONENONEs,x,x, &&
2523 program_prefix=${target_alias}-
2524
2525 test "$program_prefix" != NONE &&
2526 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE &&
2529 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $.
2531 # By default was `s,x,x', remove it if useless.
2532 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2533 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2534
2535
2536
2537 # Get 'install' or 'install-sh' and its variants.
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2544 # AIX /bin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if ${ac_cv_path_install+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in #((
2565 ./ | .// | /[cC]/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2579 :
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
2584 else
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one > conftest.one
2587 echo two > conftest.two
2588 mkdir conftest.dir
2589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2590 test -s conftest.one && test -s conftest.two &&
2591 test -s conftest.dir/conftest.one &&
2592 test -s conftest.dir/conftest.two
2593 then
2594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2595 break 3
2596 fi
2597 fi
2598 fi
2599 done
2600 done
2601 ;;
2602 esac
2603
2604 done
2605 IFS=$as_save_IFS
2606
2607 rm -rf conftest.one conftest.two conftest.dir
2608
2609 fi
2610 if test "${ac_cv_path_install+set}" = set; then
2611 INSTALL=$ac_cv_path_install
2612 else
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for INSTALL within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 INSTALL=$ac_install_sh
2618 fi
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2621 $as_echo "$INSTALL" >&6; }
2622
2623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2624 # It thinks the first close brace ends the variable substitution.
2625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2626
2627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2628
2629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2632 $as_echo_n "checking whether ln works... " >&6; }
2633 if ${acx_cv_prog_LN+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 rm -f conftestdata_t
2637 echo >conftestdata_f
2638 if ln conftestdata_f conftestdata_t 2>/dev/null
2639 then
2640 acx_cv_prog_LN=ln
2641 else
2642 acx_cv_prog_LN=no
2643 fi
2644 rm -f conftestdata_f conftestdata_t
2645
2646 fi
2647 if test $acx_cv_prog_LN = no; then
2648 LN="cp"
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2650 $as_echo "no, using $LN" >&6; }
2651 else
2652 LN="$acx_cv_prog_LN"
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 fi
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2658 $as_echo_n "checking whether ln -s works... " >&6; }
2659 LN_S=$as_ln_s
2660 if test "$LN_S" = "ln -s"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2665 $as_echo "no, using $LN_S" >&6; }
2666 fi
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2670 if ${ac_cv_path_SED+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2674 for ac_i in 1 2 3 4 5 6 7; do
2675 ac_script="$ac_script$as_nl$ac_script"
2676 done
2677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2678 { ac_script=; unset ac_script;}
2679 if test -z "$SED"; then
2680 ac_path_SED_found=false
2681 # Loop through the user's path and test for each of PROGNAME-LIST
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_prog in sed gsed; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2690 as_fn_executable_p "$ac_path_SED" || continue
2691 # Check for GNU ac_path_SED and select it if it is found.
2692 # Check for GNU $ac_path_SED
2693 case `"$ac_path_SED" --version 2>&1` in
2694 *GNU*)
2695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2696 *)
2697 ac_count=0
2698 $as_echo_n 0123456789 >"conftest.in"
2699 while :
2700 do
2701 cat "conftest.in" "conftest.in" >"conftest.tmp"
2702 mv "conftest.tmp" "conftest.in"
2703 cp "conftest.in" "conftest.nl"
2704 $as_echo '' >> "conftest.nl"
2705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2707 as_fn_arith $ac_count + 1 && ac_count=$as_val
2708 if test $ac_count -gt ${ac_path_SED_max-0}; then
2709 # Best one so far, save it but keep looking for a better one
2710 ac_cv_path_SED="$ac_path_SED"
2711 ac_path_SED_max=$ac_count
2712 fi
2713 # 10*(2^10) chars as input seems more than enough
2714 test $ac_count -gt 10 && break
2715 done
2716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2717 esac
2718
2719 $ac_path_SED_found && break 3
2720 done
2721 done
2722 done
2723 IFS=$as_save_IFS
2724 if test -z "$ac_cv_path_SED"; then
2725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2726 fi
2727 else
2728 ac_cv_path_SED=$SED
2729 fi
2730
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2733 $as_echo "$ac_cv_path_SED" >&6; }
2734 SED="$ac_cv_path_SED"
2735 rm -f conftest.sed
2736
2737 for ac_prog in gawk mawk nawk awk
2738 do
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_AWK+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$AWK"; then
2747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_AWK="$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 AWK=$ac_cv_prog_AWK
2767 if test -n "$AWK"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2769 $as_echo "$AWK" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 test -n "$AWK" && break
2777 done
2778
2779
2780 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2781
2782 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2783 # a relative path.
2784 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2785 INSTALL="${srcpwd}/install-sh -c"
2786 fi
2787
2788 # Set srcdir to "." if that's what it is.
2789 # This is important for multilib support.
2790 pwd=`${PWDCMD-pwd}`
2791 if test "${pwd}" = "${srcpwd}" ; then
2792 srcdir=.
2793 fi
2794
2795 topsrcdir=$srcpwd
2796
2797 extra_host_args=
2798
2799 ### To add a new directory to the tree, first choose whether it is a target
2800 ### or a host dependent tool. Then put it into the appropriate list
2801 ### (library or tools, host or target), doing a dependency sort.
2802
2803 # Subdirs will be configured in the order listed in build_configdirs,
2804 # configdirs, or target_configdirs; see the serialization section below.
2805
2806 # Dependency sorting is only needed when *configuration* must be done in
2807 # a particular order. In all cases a dependency should be specified in
2808 # the Makefile, whether or not it's implicitly specified here.
2809
2810 # Double entries in build_configdirs, configdirs, or target_configdirs may
2811 # cause circular dependencies and break everything horribly.
2812
2813 # these library is used by various programs built for the build
2814 # environment
2815 #
2816 build_libs="build-libiberty build-libcpp"
2817
2818 # these tools are built for the build environment
2819 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2820
2821 # these libraries are used by various programs built for the host environment
2822 #f
2823 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2824
2825 # these tools are built for the host environment
2826 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2827 # know that we are building the simulator.
2828 # binutils, gas and ld appear in that order because it makes sense to run
2829 # "make check" in that particular order.
2830 # If --enable-gold is used, "gold" may replace "ld".
2831 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"
2832
2833 # these libraries are built for the target environment, and are built after
2834 # the host libraries and the host tools (which may be a cross compiler)
2835 # Note that libiberty is not a target library.
2836 target_libraries="target-libgcc \
2837 target-libbacktrace \
2838 target-libgloss \
2839 target-newlib \
2840 target-libgomp \
2841 target-liboffloadmic \
2842 target-libatomic \
2843 target-libitm \
2844 target-libstdc++-v3 \
2845 target-libsanitizer \
2846 target-libvtv \
2847 target-libssp \
2848 target-libquadmath \
2849 target-libgfortran \
2850 target-libffi \
2851 target-libobjc \
2852 target-libada \
2853 target-libgo \
2854 target-libphobos \
2855 target-zlib"
2856
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2859 #
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2862 #
2863 target_tools="target-rda"
2864
2865 ################################################################################
2866
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs=`echo ${host_libs} ${host_tools}`
2873 target_configdirs=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs=`echo ${build_libs} ${build_tools}`
2875
2876
2877
2878 ################################################################################
2879
2880 srcname="gnu development package"
2881
2882 # This gets set non-empty for some net releases of packages.
2883 appdirs=""
2884
2885 # Define is_cross_compiler to save on calls to 'test'.
2886 is_cross_compiler=
2887 if test x"${host}" = x"${target}" ; then
2888 is_cross_compiler=no
2889 else
2890 is_cross_compiler=yes
2891 fi
2892
2893 # Find the build and target subdir names.
2894
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2900 # finishes. So:
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2903
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir="build-${build_noncanonical}"
2906
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval=$with_build_libsubdir; build_libsubdir="$withval"
2910 else
2911 build_libsubdir="$build_subdir"
2912 fi
2913
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = . && test -d gcc ) \
2916 || test -d $srcdir/../host-${host_noncanonical}; then
2917 host_subdir="host-${host_noncanonical}"
2918 else
2919 host_subdir=.
2920 fi
2921 # No prefix.
2922 target_subdir=${target_noncanonical}
2923
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2926 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2928 fi
2929
2930 # Skipdirs are removed silently.
2931 skipdirs=
2932 # Noconfigdirs are removed loudly.
2933 noconfigdirs=""
2934
2935 use_gnu_ld=
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x$with_gnu_ld = xno ; then
2938 use_gnu_ld=no
2939 noconfigdirs="$noconfigdirs ld gold"
2940 fi
2941
2942 use_gnu_as=
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x$with_gnu_as = xno ; then
2945 use_gnu_as=no
2946 noconfigdirs="$noconfigdirs gas"
2947 fi
2948
2949 use_included_zlib=
2950
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval=$with_system_zlib;
2954 fi
2955
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x$with_system_zlib = xyes ; then
2958 use_included_zlib=no
2959 noconfigdirs="$noconfigdirs zlib"
2960 fi
2961
2962
2963 # Check whether --with-zstd was given.
2964 if test "${with_zstd+set}" = set; then :
2965 withval=$with_zstd;
2966 fi
2967
2968
2969 # some tools are so dependent upon X11 that if we're not building with X,
2970 # it's not even worth trying to configure, much less build, that tool.
2971
2972 case ${with_x} in
2973 yes | "") ;; # the default value for this tree is that X11 is available
2974 no)
2975 skipdirs="${skipdirs} tk itcl libgui"
2976 # We won't be able to build gdbtk without X.
2977 enable_gdbtk=no
2978 ;;
2979 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2980 esac
2981
2982 # Some are only suitable for cross toolchains.
2983 # Remove these if host=target.
2984 cross_only="target-libgloss target-newlib target-opcodes"
2985
2986 case $is_cross_compiler in
2987 no) skipdirs="${skipdirs} ${cross_only}" ;;
2988 esac
2989
2990 # If both --with-headers and --with-libs are specified, default to
2991 # --without-newlib.
2992 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2994 if test x"${with_newlib}" = x ; then
2995 with_newlib=no
2996 fi
2997 fi
2998
2999 # Recognize --with-newlib/--without-newlib.
3000 case ${with_newlib} in
3001 no) skipdirs="${skipdirs} target-newlib" ;;
3002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3003 esac
3004
3005 # Check whether --enable-as-accelerator-for was given.
3006 if test "${enable_as_accelerator_for+set}" = set; then :
3007 enableval=$enable_as_accelerator_for;
3008 fi
3009
3010
3011 # Check whether --enable-offload-targets was given.
3012 if test "${enable_offload_targets+set}" = set; then :
3013 enableval=$enable_offload_targets;
3014 if test x"$enable_offload_targets" = x; then
3015 as_fn_error $? "no offload targets specified" "$LINENO" 5
3016 fi
3017
3018 else
3019 enable_offload_targets=
3020 fi
3021
3022
3023 # Check whether --enable-offload-defaulted was given.
3024 if test "${enable_offload_defaulted+set}" = set; then :
3025 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3026 else
3027 enable_offload_defaulted=
3028 fi
3029
3030
3031 # Handle --enable-gold, --enable-ld.
3032 # --disable-gold [--enable-ld]
3033 # Build only ld. Default option.
3034 # --enable-gold [--enable-ld]
3035 # Build both gold and ld. Install gold as "ld.gold", install ld
3036 # as "ld.bfd" and "ld".
3037 # --enable-gold=default [--enable-ld]
3038 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3039 # install ld as "ld.bfd".
3040 # --enable-gold[=default] --disable-ld
3041 # Build only gold, which is then installed as both "ld.gold" and "ld".
3042 # --enable-gold --enable-ld=default
3043 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3044 # and ld.bfd).
3045 # In other words, ld is default
3046 # --enable-gold=default --enable-ld=default
3047 # Error.
3048
3049 default_ld=
3050 # Check whether --enable-gold was given.
3051 if test "${enable_gold+set}" = set; then :
3052 enableval=$enable_gold; ENABLE_GOLD=$enableval
3053 else
3054 ENABLE_GOLD=no
3055 fi
3056
3057 case "${ENABLE_GOLD}" in
3058 yes|default)
3059 # Check for ELF target.
3060 is_elf=no
3061 case "${target}" in
3062 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3063 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3064 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3065 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3066 case "${target}" in
3067 *-*-linux*aout* | *-*-linux*oldld*)
3068 ;;
3069 *)
3070 is_elf=yes
3071 ;;
3072 esac
3073 esac
3074
3075 if test "$is_elf" = "yes"; then
3076 # Check for target supported by gold.
3077 case "${target}" in
3078 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3079 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3080 configdirs="$configdirs gold"
3081 if test x${ENABLE_GOLD} = xdefault; then
3082 default_ld=gold
3083 fi
3084 ENABLE_GOLD=yes
3085 ;;
3086 esac
3087 fi
3088 ;;
3089 no)
3090 ;;
3091 *)
3092 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3093 ;;
3094 esac
3095
3096 # Check whether --enable-ld was given.
3097 if test "${enable_ld+set}" = set; then :
3098 enableval=$enable_ld; ENABLE_LD=$enableval
3099 else
3100 ENABLE_LD=yes
3101 fi
3102
3103
3104 case "${ENABLE_LD}" in
3105 default)
3106 if test x${default_ld} != x; then
3107 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3108 fi
3109 ;;
3110 yes)
3111 ;;
3112 no)
3113 if test x${ENABLE_GOLD} != xyes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3115 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3116 fi
3117 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3118 ;;
3119 *)
3120 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3121 ;;
3122 esac
3123
3124 # Check whether --enable-gprofng was given.
3125 if test "${enable_gprofng+set}" = set; then :
3126 enableval=$enable_gprofng; enable_gprofng=$enableval
3127 else
3128 enable_gprofng=yes
3129 fi
3130
3131 if test "$enable_gprofng" = "yes"; then
3132 case "${target}" in
3133 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3134 configdirs="$configdirs gprofng"
3135 ;;
3136 esac
3137 fi
3138
3139
3140 # PR gas/19109
3141 # Decide the default method for compressing debug sections.
3142 # Provide a configure time option to override our default.
3143 # Check whether --enable-compressed_debug_sections was given.
3144 if test "${enable_compressed_debug_sections+set}" = set; then :
3145 enableval=$enable_compressed_debug_sections;
3146 if test x"$enable_compressed_debug_sections" = xyes; then
3147 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3148 fi
3149
3150 else
3151 enable_compressed_debug_sections=
3152 fi
3153
3154
3155 # Select default compression algorithm.
3156 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3157 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3158 enableval=$enable_default_compressed_debug_sections_algorithm;
3159 else
3160 default_compressed_debug_sections_algorithm=
3161 fi
3162
3163
3164 # Configure extra directories which are host specific
3165
3166 case "${host}" in
3167 *-cygwin*)
3168 configdirs="$configdirs libtermcap" ;;
3169 esac
3170
3171 # A target can indicate whether a language isn't supported for some reason.
3172 # Only spaces may be used in this macro; not newlines or tabs.
3173 unsupported_languages=
3174
3175 # Remove more programs from consideration, based on the host or
3176 # target this usually means that a port of the program doesn't
3177 # exist yet.
3178
3179 case "${host}" in
3180 i[3456789]86-*-msdosdjgpp*)
3181 noconfigdirs="$noconfigdirs tcl tk itcl"
3182 ;;
3183 esac
3184
3185 # Default to --disable-year2038 until we can handle differences between
3186 # projects that use gnulib (which understands year 2038) and projects that
3187 # do not (like BFD).
3188 # Check whether --enable-year2038 was given.
3189 if test "${enable_year2038+set}" = set; then :
3190 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3191 else
3192 ENABLE_YEAR2038=no
3193 fi
3194
3195 enable_year2038=
3196 if test "${ENABLE_YEAR2038}" = "no" ; then
3197 enable_year2038=no
3198 fi
3199
3200 # Check whether --enable-libquadmath was given.
3201 if test "${enable_libquadmath+set}" = set; then :
3202 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3203 else
3204 ENABLE_LIBQUADMATH=yes
3205 fi
3206
3207 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3208 noconfigdirs="$noconfigdirs target-libquadmath"
3209 fi
3210
3211
3212 # Check whether --enable-libquadmath-support was given.
3213 if test "${enable_libquadmath_support+set}" = set; then :
3214 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3215 else
3216 ENABLE_LIBQUADMATH_SUPPORT=yes
3217 fi
3218
3219 enable_libquadmath_support=
3220 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3221 enable_libquadmath_support=no
3222 fi
3223
3224
3225 # Check whether --enable-libada was given.
3226 if test "${enable_libada+set}" = set; then :
3227 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3228 else
3229 ENABLE_LIBADA=yes
3230 fi
3231
3232 if test "${ENABLE_LIBADA}" != "yes" ; then
3233 noconfigdirs="$noconfigdirs gnattools"
3234 fi
3235
3236 # Check whether --enable-libssp was given.
3237 if test "${enable_libssp+set}" = set; then :
3238 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3239 else
3240 ENABLE_LIBSSP=yes
3241 fi
3242
3243
3244 # Check whether --enable-libstdcxx was given.
3245 if test "${enable_libstdcxx+set}" = set; then :
3246 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3247 else
3248 ENABLE_LIBSTDCXX=default
3249 fi
3250
3251 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3253 fi
3254
3255 # If this is accelerator compiler and its target is intelmic we enable
3256 # target liboffloadmic by default. If this is compiler with offloading
3257 # for intelmic we enable host liboffloadmic by default. Otherwise
3258 # liboffloadmic is disabled by default.
3259 # Check whether --enable-liboffloadmic was given.
3260 if test "${enable_liboffloadmic+set}" = set; then :
3261 enableval=$enable_liboffloadmic; case "$enableval" in
3262 no | host | target)
3263 enable_liboffloadmic=$enableval ;;
3264 *)
3265 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3266 esac
3267 else
3268 if test x"$enable_as_accelerator_for" != x; then
3269 case "${target}" in
3270 *-intelmic-* | *-intelmicemul-*)
3271 enable_liboffloadmic=target
3272 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3273 ;;
3274 *)
3275 enable_liboffloadmic=no
3276 ;;
3277 esac
3278 else
3279 case "${enable_offload_targets}" in
3280 *-intelmic-* | *-intelmicemul-*)
3281 enable_liboffloadmic=host
3282 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3283 ;;
3284 *)
3285 enable_liboffloadmic=no
3286 ;;
3287 esac
3288 fi
3289 fi
3290
3291
3292
3293 # Enable libgomp by default on hosted POSIX systems, and a few others.
3294 if test x$enable_libgomp = x ; then
3295 case "${target}" in
3296 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3297 ;;
3298 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3299 ;;
3300 *-*-solaris2* | *-*-hpux11*)
3301 ;;
3302 *-*-darwin* | *-*-aix*)
3303 ;;
3304 nvptx*-*-* | amdgcn*-*-*)
3305 ;;
3306 *)
3307 noconfigdirs="$noconfigdirs target-libgomp"
3308 ;;
3309 esac
3310 fi
3311
3312 # Disable libatomic on unsupported systems.
3313 if test -d ${srcdir}/libatomic; then
3314 if test x$enable_libatomic = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316 $as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir=${srcdir}/libatomic; \
3318 . ${srcdir}/configure.tgt; \
3319 test -n "$UNSUPPORTED")
3320 then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs="$noconfigdirs target-libatomic"
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3327 fi
3328 fi
3329 fi
3330
3331 # Disable liboffloadmic on unsupported systems.
3332 if test -d ${srcdir}/liboffloadmic; then
3333 if test x$enable_liboffloadmic != xno; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3335 $as_echo_n "checking for liboffloadmic support... " >&6; }
3336 if (srcdir=${srcdir}/liboffloadmic; \
3337 . ${srcdir}/configure.tgt; \
3338 test -n "$UNSUPPORTED")
3339 then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs="$noconfigdirs target-liboffloadmic"
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 fi
3347 fi
3348 fi
3349
3350 # Disable libitm on unsupported systems.
3351 if test -d ${srcdir}/libitm; then
3352 if test x$enable_libitm = x; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3354 $as_echo_n "checking for libitm support... " >&6; }
3355 if (srcdir=${srcdir}/libitm; \
3356 . ${srcdir}/configure.tgt; \
3357 test -n "$UNSUPPORTED")
3358 then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 noconfigdirs="$noconfigdirs target-libitm"
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3365 fi
3366 fi
3367 fi
3368
3369 # Disable libsanitizer on unsupported systems.
3370 if test -d ${srcdir}/libsanitizer; then
3371 if test x$enable_libsanitizer = x; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3373 $as_echo_n "checking for libsanitizer support... " >&6; }
3374 if (srcdir=${srcdir}/libsanitizer; \
3375 . ${srcdir}/configure.tgt; \
3376 test -n "$UNSUPPORTED")
3377 then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs="$noconfigdirs target-libsanitizer"
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384 fi
3385 fi
3386 fi
3387
3388 # Disable libvtv on unsupported systems.
3389 if test -d ${srcdir}/libvtv; then
3390 if test x$enable_libvtv = x; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3392 $as_echo_n "checking for libvtv support... " >&6; }
3393 if (srcdir=${srcdir}/libvtv; \
3394 . ${srcdir}/configure.tgt; \
3395 test "$VTV_SUPPORTED" != "yes")
3396 then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 noconfigdirs="$noconfigdirs target-libvtv"
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402 $as_echo "yes" >&6; }
3403 fi
3404 fi
3405 fi
3406
3407 # Disable libquadmath for some systems.
3408 case "${target}" in
3409 avr-*-*)
3410 noconfigdirs="$noconfigdirs target-libquadmath"
3411 ;;
3412 # libquadmath is unused on AIX and libquadmath build process use of
3413 # LD_LIBRARY_PATH can break AIX bootstrap.
3414 powerpc-*-aix* | rs6000-*-aix*)
3415 noconfigdirs="$noconfigdirs target-libquadmath"
3416 ;;
3417 esac
3418
3419 # Disable libssp for some systems.
3420 case "${target}" in
3421 avr-*-*)
3422 # No hosted I/O support.
3423 noconfigdirs="$noconfigdirs target-libssp"
3424 ;;
3425 bpf-*-*)
3426 noconfigdirs="$noconfigdirs target-libssp"
3427 ;;
3428 powerpc-*-aix* | rs6000-*-aix*)
3429 noconfigdirs="$noconfigdirs target-libssp"
3430 ;;
3431 pru-*-*)
3432 # No hosted I/O support.
3433 noconfigdirs="$noconfigdirs target-libssp"
3434 ;;
3435 rl78-*-*)
3436 # libssp uses a misaligned load to trigger a fault, but the RL78
3437 # doesn't fault for those - instead, it gives a build-time error
3438 # for explicit misaligned loads.
3439 noconfigdirs="$noconfigdirs target-libssp"
3440 ;;
3441 visium-*-*)
3442 # No hosted I/O support.
3443 noconfigdirs="$noconfigdirs target-libssp"
3444 ;;
3445 esac
3446
3447 # Disable libstdc++-v3 for some systems.
3448 # Allow user to override this if they pass --enable-libstdcxx
3449 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3450 case "${target}" in
3451 *-*-vxworks*)
3452 # VxWorks uses the Dinkumware C++ library.
3453 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3454 ;;
3455 amdgcn*-*-*)
3456 # Not ported/fails to build when using newlib.
3457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3458 ;;
3459 arm*-wince-pe*)
3460 # the C++ libraries don't build on top of CE's C libraries
3461 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3462 ;;
3463 avr-*-*)
3464 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3465 ;;
3466 bpf-*-*)
3467 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3468 ;;
3469 ft32-*-*)
3470 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3471 ;;
3472 esac
3473 fi
3474
3475 # Disable C++ on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=c++.
3477 case ,${enable_languages}, in
3478 *,c++,*)
3479 ;;
3480 *)
3481 case "${target}" in
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages c++"
3484 ;;
3485 esac
3486 ;;
3487 esac
3488
3489 # Disable Objc on systems where it is known to not work.
3490 # For testing, you can override this with --enable-languages=objc.
3491 case ,${enable_languages}, in
3492 *,objc,*)
3493 ;;
3494 *)
3495 case "${target}" in
3496 bpf-*-*)
3497 unsupported_languages="$unsupported_languages objc"
3498 ;;
3499 esac
3500 ;;
3501 esac
3502
3503 # Disable D on systems where it is known to not work.
3504 # For testing, you can override this with --enable-languages=d.
3505 case ,${enable_languages}, in
3506 *,d,*)
3507 ;;
3508 *)
3509 case "${target}" in
3510 bpf-*-*)
3511 unsupported_languages="$unsupported_languages d"
3512 ;;
3513 esac
3514 ;;
3515 esac
3516
3517 # Disable libphobos on unsupported systems.
3518 # For testing, you can override this with --enable-libphobos.
3519 if test -d ${srcdir}/libphobos; then
3520 if test x$enable_libphobos = x; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3522 $as_echo_n "checking for libphobos support... " >&6; }
3523 if (srcdir=${srcdir}/libphobos; \
3524 . ${srcdir}/configure.tgt; \
3525 test "$LIBPHOBOS_SUPPORTED" != "yes")
3526 then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 noconfigdirs="$noconfigdirs target-libphobos"
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3533 fi
3534 fi
3535 fi
3536
3537 # Disable Fortran for some systems.
3538 case "${target}" in
3539 mmix-*-*)
3540 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3541 unsupported_languages="$unsupported_languages fortran"
3542 ;;
3543 bpf-*-*)
3544 unsupported_languages="$unsupported_languages fortran"
3545 ;;
3546 esac
3547
3548 # Disable libffi for some systems.
3549 case "${target}" in
3550 powerpc-*-darwin*)
3551 ;;
3552 i[3456789]86-*-darwin*)
3553 ;;
3554 x86_64-*-darwin[912]*)
3555 ;;
3556 *-*-darwin*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 *-*-netware*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 *-*-phoenix*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 *-*-rtems*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 *-*-tpf*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 *-*-uclinux*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 *-*-vxworks*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577 aarch64*-*-freebsd*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3579 ;;
3580 alpha*-*-*vms*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3582 ;;
3583 arm*-*-freebsd*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3585 ;;
3586 arm-wince-pe)
3587 noconfigdirs="$noconfigdirs target-libffi"
3588 ;;
3589 arm*-*-symbianelf*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3591 ;;
3592 bpf-*-*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3594 ;;
3595 cris-*-* | crisv32-*-*)
3596 case "${target}" in
3597 *-*-linux*)
3598 ;;
3599 *) # See PR46792 regarding target-libffi.
3600 noconfigdirs="$noconfigdirs target-libffi";;
3601 esac
3602 ;;
3603 hppa*64*-*-hpux*)
3604 noconfigdirs="$noconfigdirs target-libffi"
3605 ;;
3606 hppa*-hp-hpux11*)
3607 ;;
3608 hppa*-*-hpux*)
3609 noconfigdirs="$noconfigdirs target-libffi"
3610 ;;
3611 ia64*-*-*vms*)
3612 noconfigdirs="$noconfigdirs target-libffi"
3613 ;;
3614 i[3456789]86-w64-mingw*)
3615 noconfigdirs="$noconfigdirs target-libffi"
3616 ;;
3617 i[3456789]86-*-mingw*)
3618 noconfigdirs="$noconfigdirs target-libffi"
3619 ;;
3620 x86_64-*-mingw*)
3621 noconfigdirs="$noconfigdirs target-libffi"
3622 ;;
3623 mmix-*-*)
3624 noconfigdirs="$noconfigdirs target-libffi"
3625 ;;
3626 powerpc-*-aix*)
3627 ;;
3628 rs6000-*-aix*)
3629 ;;
3630 ft32-*-*)
3631 noconfigdirs="$noconfigdirs target-libffi"
3632 ;;
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-libffi"
3635 ;;
3636 esac
3637
3638 # Disable the go frontend on systems where it is known to not work. Please keep
3639 # this in sync with contrib/config-list.mk.
3640 case "${target}" in
3641 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3642 unsupported_languages="$unsupported_languages go"
3643 ;;
3644 esac
3645
3646 # Only allow gdbserver on some systems.
3647 if test -d ${srcdir}/gdbserver; then
3648 if test x$enable_gdbserver = x; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3650 $as_echo_n "checking for gdbserver support... " >&6; }
3651 if (srcdir=${srcdir}/gdbserver; \
3652 . ${srcdir}/configure.srv; \
3653 test -n "$UNSUPPORTED")
3654 then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 noconfigdirs="$noconfigdirs gdbserver"
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661 fi
3662 fi
3663 fi
3664
3665 # Disable libgo for some systems where it is known to not work.
3666 # For testing, you can easily override this with --enable-libgo.
3667 if test x$enable_libgo = x; then
3668 case "${target}" in
3669 *-*-darwin*)
3670 # PR 46986
3671 noconfigdirs="$noconfigdirs target-libgo"
3672 ;;
3673 *-*-cygwin* | *-*-mingw*)
3674 noconfigdirs="$noconfigdirs target-libgo"
3675 ;;
3676 bpf-*-*)
3677 noconfigdirs="$noconfigdirs target-libgo"
3678 ;;
3679 esac
3680 fi
3681
3682 # Default libgloss CPU subdirectory.
3683 libgloss_dir="$target_cpu"
3684
3685 case "${target}" in
3686 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3687 libgloss_dir=wince
3688 ;;
3689 aarch64*-*-* )
3690 libgloss_dir=aarch64
3691 ;;
3692 arm*-*-*)
3693 libgloss_dir=arm
3694 ;;
3695 cris-*-* | crisv32-*-*)
3696 libgloss_dir=cris
3697 ;;
3698 hppa*-*-*)
3699 libgloss_dir=pa
3700 ;;
3701 i[3456789]86-*-*)
3702 libgloss_dir=i386
3703 ;;
3704 loongarch*-*-*)
3705 libgloss_dir=loongarch
3706 ;;
3707 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3708 libgloss_dir=m68hc11
3709 ;;
3710 m68*-*-* | fido-*-*)
3711 libgloss_dir=m68k
3712 ;;
3713 mips*-*-*)
3714 libgloss_dir=mips
3715 ;;
3716 powerpc*-*-*)
3717 libgloss_dir=rs6000
3718 ;;
3719 pru-*-*)
3720 libgloss_dir=pru
3721 ;;
3722 sparc*-*-*)
3723 libgloss_dir=sparc
3724 ;;
3725 esac
3726
3727 # Disable newlib and libgloss for various target OSes.
3728 case "${target}" in
3729 alpha*-dec-osf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 i[3456789]86-*-linux*)
3733 # This section makes it possible to build newlib natively on linux.
3734 # If we are using a cross compiler then don't configure newlib.
3735 if test x${is_cross_compiler} != xno ; then
3736 noconfigdirs="$noconfigdirs target-newlib"
3737 fi
3738 noconfigdirs="$noconfigdirs target-libgloss"
3739 # If we are not using a cross compiler, do configure newlib.
3740 # Note however, that newlib will only be configured in this situation
3741 # if the --with-newlib option has been given, because otherwise
3742 # 'target-newlib' will appear in skipdirs.
3743 ;;
3744 i[3456789]86-*-rdos*)
3745 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 ;;
3747 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3748 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 ;;
3750 sparc-*-sunos4*)
3751 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 ;;
3753 bpf-*-*)
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 ;;
3756 *-*-aix*)
3757 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 ;;
3759 *-*-beos*)
3760 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 ;;
3762 *-*-chorusos)
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 ;;
3765 *-*-dragonfly*)
3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 ;;
3768 *-*-freebsd*)
3769 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 ;;
3771 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 ;;
3774 *-*-lynxos*)
3775 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3776 ;;
3777 *-*-mingw*)
3778 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3779 ;;
3780 *-*-netbsd*)
3781 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3782 ;;
3783 *-*-netware*)
3784 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3785 ;;
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3788 ;;
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3791 ;;
3792 *-*-vxworks*)
3793 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3794 ;;
3795 esac
3796
3797 case "${target}" in
3798 *-*-chorusos)
3799 ;;
3800 aarch64-*-darwin*)
3801 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs="$noconfigdirs sim target-rda"
3803 ;;
3804 amdgcn*-*-*)
3805 ;;
3806 arm-*-darwin*)
3807 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3808 noconfigdirs="$noconfigdirs sim target-rda"
3809 ;;
3810 powerpc-*-darwin*)
3811 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3812 noconfigdirs="$noconfigdirs sim target-rda"
3813 ;;
3814 i[3456789]86-*-darwin*)
3815 noconfigdirs="$noconfigdirs ld gprof"
3816 noconfigdirs="$noconfigdirs sim target-rda"
3817 ;;
3818 x86_64-*-darwin[912]*)
3819 noconfigdirs="$noconfigdirs ld gas gprof"
3820 noconfigdirs="$noconfigdirs sim target-rda"
3821 ;;
3822 *-*-darwin*)
3823 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3824 noconfigdirs="$noconfigdirs sim target-rda"
3825 ;;
3826 *-*-dragonfly*)
3827 ;;
3828 *-*-freebsd*)
3829 if test "x$with_gmp" = x \
3830 && ! test -d ${srcdir}/gmp \
3831 && test -f /usr/local/include/gmp.h; then
3832 with_gmp=/usr/local
3833 fi
3834 ;;
3835 *-*-kaos*)
3836 # Remove unsupported stuff on all kaOS configurations.
3837 noconfigdirs="$noconfigdirs target-libgloss"
3838 ;;
3839 *-*-netbsd*)
3840 ;;
3841 *-*-netware*)
3842 ;;
3843 *-*-phoenix*)
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 ;;
3846 *-*-rtems*)
3847 noconfigdirs="$noconfigdirs target-libgloss"
3848 ;;
3849 # The tpf target doesn't support gdb yet.
3850 *-*-tpf*)
3851 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3852 ;;
3853 *-*-uclinux*)
3854 noconfigdirs="$noconfigdirs target-rda"
3855 ;;
3856 *-*-vxworks*)
3857 ;;
3858 alpha*-dec-osf*)
3859 # ld works, but does not support shared libraries.
3860 # gas doesn't generate exception information.
3861 noconfigdirs="$noconfigdirs gas ld"
3862 ;;
3863 alpha*-*-*vms*)
3864 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3865 ;;
3866 alpha*-*-*)
3867 # newlib is not 64 bit ready
3868 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3869 ;;
3870 bpf-*-*)
3871 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3872 ;;
3873 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3874 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3875 ;;
3876 arc*-*-*)
3877 noconfigdirs="$noconfigdirs sim"
3878 ;;
3879 arm-*-pe*)
3880 noconfigdirs="$noconfigdirs target-libgloss"
3881 ;;
3882 arm-*-riscix*)
3883 noconfigdirs="$noconfigdirs ld target-libgloss"
3884 ;;
3885 avr-*-*)
3886 if test x${with_avrlibc} != xno; then
3887 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3888 fi
3889 ;;
3890 c4x-*-* | tic4x-*-*)
3891 noconfigdirs="$noconfigdirs target-libgloss"
3892 ;;
3893 tic54x-*-*)
3894 noconfigdirs="$noconfigdirs target-libgloss gdb"
3895 ;;
3896 d10v-*-*)
3897 noconfigdirs="$noconfigdirs target-libgloss"
3898 ;;
3899 d30v-*-*)
3900 noconfigdirs="$noconfigdirs gdb"
3901 ;;
3902 fr30-*-elf*)
3903 noconfigdirs="$noconfigdirs gdb"
3904 ;;
3905 ft32-*-*)
3906 noconfigdirs="$noconfigdirs target-rda gprof"
3907 ;;
3908 moxie-*-*)
3909 noconfigdirs="$noconfigdirs"
3910 ;;
3911 h8300*-*-*)
3912 noconfigdirs="$noconfigdirs target-libgloss"
3913 ;;
3914 h8500-*-*)
3915 noconfigdirs="$noconfigdirs target-libgloss"
3916 ;;
3917 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3918 ;;
3919 hppa*64*-*-hpux*)
3920 noconfigdirs="$noconfigdirs gdb"
3921 ;;
3922 hppa*-*-hpux11*)
3923 noconfigdirs="$noconfigdirs gdb ld"
3924 ;;
3925 hppa*64*-*-linux*)
3926 ;;
3927 hppa*-*-linux*)
3928 ;;
3929 hppa*-*-*elf* | \
3930 hppa*-*-lites* | \
3931 hppa*-*-openbsd* | \
3932 hppa*64*-*-*)
3933 ;;
3934 hppa*-*-pro*)
3935 ;;
3936 hppa*-*-*)
3937 noconfigdirs="$noconfigdirs ld"
3938 ;;
3939 i960-*-*)
3940 noconfigdirs="$noconfigdirs gdb"
3941 ;;
3942 ia64*-*-elf*)
3943 # No gdb support yet.
3944 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3945 ;;
3946 ia64*-**-hpux*)
3947 # No ld support yet.
3948 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3949 ;;
3950 ia64*-*-*vms*)
3951 # No ld support yet.
3952 noconfigdirs="$noconfigdirs libgui itcl ld"
3953 ;;
3954 i[3456789]86-w64-mingw*)
3955 ;;
3956 i[3456789]86-*-mingw*)
3957 target_configdirs="$target_configdirs target-winsup"
3958 ;;
3959 *-*-cygwin*)
3960 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3961 noconfigdirs="$noconfigdirs target-libgloss"
3962 # always build newlib if winsup directory is present.
3963 if test -d "$srcdir/winsup/cygwin"; then
3964 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3965 elif test -d "$srcdir/newlib"; then
3966 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3967 fi
3968 ;;
3969 i[3456789]86-*-pe)
3970 noconfigdirs="$noconfigdirs target-libgloss"
3971 ;;
3972 i[3456789]86-*-sco3.2v5*)
3973 # The linker does not yet know about weak symbols in COFF,
3974 # and is not configured to handle mixed ELF and COFF.
3975 noconfigdirs="$noconfigdirs ld target-libgloss"
3976 ;;
3977 i[3456789]86-*-sco*)
3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
3979 ;;
3980 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3981 noconfigdirs="$noconfigdirs target-libgloss"
3982 ;;
3983 i[3456789]86-*-sysv4*)
3984 noconfigdirs="$noconfigdirs target-libgloss"
3985 ;;
3986 i[3456789]86-*-beos*)
3987 noconfigdirs="$noconfigdirs gdb"
3988 ;;
3989 i[3456789]86-*-rdos*)
3990 noconfigdirs="$noconfigdirs gdb"
3991 ;;
3992 mmix-*-*)
3993 noconfigdirs="$noconfigdirs gdb"
3994 ;;
3995 mt-*-*)
3996 noconfigdirs="$noconfigdirs sim"
3997 ;;
3998 nfp-*-*)
3999 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4000 noconfigdirs="$noconfigdirs $target_libraries"
4001 ;;
4002 pdp11-*-*)
4003 noconfigdirs="$noconfigdirs gdb gprof"
4004 ;;
4005 powerpc-*-aix*)
4006 # copied from rs6000-*-* entry
4007 noconfigdirs="$noconfigdirs gprof"
4008 ;;
4009 powerpc*-*-winnt* | powerpc*-*-pe*)
4010 target_configdirs="$target_configdirs target-winsup"
4011 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4012 # always build newlib.
4013 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4014 ;;
4015 # This is temporary until we can link against shared libraries
4016 powerpcle-*-solaris*)
4017 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4018 ;;
4019 powerpc-*-beos*)
4020 noconfigdirs="$noconfigdirs gdb"
4021 ;;
4022 rs6000-*-lynxos*)
4023 noconfigdirs="$noconfigdirs gprof"
4024 ;;
4025 rs6000-*-aix*)
4026 noconfigdirs="$noconfigdirs gprof"
4027 ;;
4028 rs6000-*-*)
4029 noconfigdirs="$noconfigdirs gprof"
4030 ;;
4031 m68k-apollo-*)
4032 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4033 ;;
4034 microblaze*)
4035 noconfigdirs="$noconfigdirs gprof"
4036 ;;
4037 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4038 if test x$with_newlib = xyes; then
4039 noconfigdirs="$noconfigdirs gprof"
4040 fi
4041 ;;
4042 mips*-*-irix5*)
4043 noconfigdirs="$noconfigdirs gprof target-libgloss"
4044 ;;
4045 mips*-*-irix6*)
4046 noconfigdirs="$noconfigdirs gprof target-libgloss"
4047 ;;
4048 mips*-*-bsd*)
4049 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4050 ;;
4051 mips*-*-linux*)
4052 ;;
4053 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4054 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4055 noconfigdirs="$noconfigdirs ld gas gprof"
4056 ;;
4057 mips*-*-*)
4058 noconfigdirs="$noconfigdirs gprof"
4059 ;;
4060 nvptx*-*-*)
4061 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4062 ;;
4063 sh-*-*)
4064 case "${target}" in
4065 sh*-*-elf)
4066 ;;
4067 *)
4068 noconfigdirs="$noconfigdirs target-libgloss" ;;
4069 esac
4070 ;;
4071 sparc-*-sunos4*)
4072 if test x${is_cross_compiler} = xno ; then
4073 use_gnu_ld=no
4074 fi
4075 ;;
4076 tic6x-*-*)
4077 noconfigdirs="$noconfigdirs sim"
4078 ;;
4079 tilepro*-*-* | tilegx*-*-*)
4080 noconfigdirs="$noconfigdirs sim"
4081 ;;
4082 v810-*-*)
4083 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4084 ;;
4085 vax-*-*)
4086 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4087 ;;
4088 wasm32-*-*)
4089 noconfigdirs="$noconfigdirs ld"
4090 ;;
4091 loongarch*-*-linux*)
4092 ;;
4093 loongarch*-*-*)
4094 noconfigdirs="$noconfigdirs gprof"
4095 ;;
4096 esac
4097
4098 # If we aren't building newlib, then don't build libgloss, since libgloss
4099 # depends upon some newlib header files.
4100 case "${noconfigdirs}" in
4101 *target-libgloss*) ;;
4102 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4103 esac
4104
4105 # Work in distributions that contain no compiler tools, like Autoconf.
4106 host_makefile_frag=/dev/null
4107 if test -d ${srcdir}/config ; then
4108 case "${host}" in
4109 i[3456789]86-*-msdosdjgpp*)
4110 host_makefile_frag="config/mh-djgpp"
4111 ;;
4112 *-cygwin*)
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4115 $as_echo_n "checking to see if cat works as expected... " >&6; }
4116 echo a >cygwin-cat-check
4117 if test `cat cygwin-cat-check` = a ; then
4118 rm cygwin-cat-check
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122 rm cygwin-cat-check
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $? "The cat command does not ignore carriage return characters.
4126 Please either mount the build directory in binary mode or run the following
4127 commands before running any configure script:
4128 set -o igncr
4129 export SHELLOPTS
4130 " "$LINENO" 5
4131 fi
4132
4133 host_makefile_frag="config/mh-cygwin"
4134 ;;
4135 *-mingw*)
4136 host_makefile_frag="config/mh-mingw"
4137 ;;
4138 alpha*-linux*)
4139 host_makefile_frag="config/mh-alpha-linux"
4140 ;;
4141 hppa*-hp-hpux10*)
4142 host_makefile_frag="config/mh-pa-hpux10"
4143 ;;
4144 hppa*-hp-hpux*)
4145 host_makefile_frag="config/mh-pa"
4146 ;;
4147 hppa*-*)
4148 host_makefile_frag="config/mh-pa"
4149 ;;
4150 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4151 host_makefile_frag="config/mh-darwin"
4152 ;;
4153 powerpc-*-aix*)
4154 host_makefile_frag="config/mh-ppc-aix"
4155 ;;
4156 rs6000-*-aix*)
4157 host_makefile_frag="config/mh-ppc-aix"
4158 ;;
4159 esac
4160 fi
4161
4162 if test "${build}" != "${host}" ; then
4163 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4164 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4165 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4166 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4167 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4168 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4169 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4170 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4171 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4172 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4173 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4174 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4175 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4176 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4177 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4178 else
4179 AR_FOR_BUILD="\$(AR)"
4180 AS_FOR_BUILD="\$(AS)"
4181 CC_FOR_BUILD="\$(CC)"
4182 CXX_FOR_BUILD="\$(CXX)"
4183 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4184 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4185 GOC_FOR_BUILD="\$(GOC)"
4186 GDC_FOR_BUILD="\$(GDC)"
4187 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4188 LD_FOR_BUILD="\$(LD)"
4189 NM_FOR_BUILD="\$(NM)"
4190 RANLIB_FOR_BUILD="\$(RANLIB)"
4191 WINDRES_FOR_BUILD="\$(WINDRES)"
4192 WINDMC_FOR_BUILD="\$(WINDMC)"
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 CC=$ac_cv_prog_CC
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236
4237
4238 fi
4239 if test -z "$ac_cv_prog_CC"; then
4240 ac_ct_CC=$CC
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="gcc"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4271 $as_echo "$ac_ct_CC" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277 if test "x$ac_ct_CC" = x; then
4278 CC=""
4279 else
4280 case $cross_compiling:$ac_tool_warned in
4281 yes:)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4284 ac_tool_warned=yes ;;
4285 esac
4286 CC=$ac_ct_CC
4287 fi
4288 else
4289 CC="$ac_cv_prog_CC"
4290 fi
4291
4292 if test -z "$CC"; then
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}cc; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_CC+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_CC="${ac_tool_prefix}cc"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 CC=$ac_cv_prog_CC
4322 if test -n "$CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4324 $as_echo "$CC" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331 fi
4332 fi
4333 if test -z "$CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CC+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC="$CC" # Let the user override the test.
4343 else
4344 ac_prog_rejected=no
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected=yes
4354 continue
4355 fi
4356 ac_cv_prog_CC="cc"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy $ac_cv_prog_CC
4367 shift
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set CC to just the basename; use the full file name.
4372 shift
4373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4374 fi
4375 fi
4376 fi
4377 fi
4378 CC=$ac_cv_prog_CC
4379 if test -n "$CC"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4381 $as_echo "$CC" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388 fi
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in cl.exe
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$CC" && break
4431 done
4432 fi
4433 if test -z "$CC"; then
4434 ac_ct_CC=$CC
4435 for ac_prog in cl.exe
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 test -n "$ac_ct_CC" && break
4475 done
4476
4477 if test "x$ac_ct_CC" = x; then
4478 CC=""
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CC=$ac_ct_CC
4487 fi
4488 fi
4489
4490 fi
4491
4492
4493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "no acceptable C compiler found in \$PATH
4496 See \`config.log' for more details" "$LINENO" 5; }
4497
4498 # Provide some information about the compiler.
4499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4500 set X $ac_compile
4501 ac_compiler=$2
4502 for ac_option in --version -v -V -qversion; do
4503 { { ac_try="$ac_compiler $ac_option >&5"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4511 ac_status=$?
4512 if test -s conftest.err; then
4513 sed '10a\
4514 ... rest of stderr output deleted ...
4515 10q' conftest.err >conftest.er1
4516 cat conftest.er1 >&5
4517 fi
4518 rm -f conftest.er1 conftest.err
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }
4521 done
4522
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 ac_clean_files_save=$ac_clean_files
4535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4536 # Try to create an executable without -o first, disregard a.out.
4537 # It will help us diagnose broken compilers, and finding out an intuition
4538 # of exeext.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4540 $as_echo_n "checking whether the C compiler works... " >&6; }
4541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4542
4543 # The possible output files:
4544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4545
4546 ac_rmfiles=
4547 for ac_file in $ac_files
4548 do
4549 case $ac_file in
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4552 esac
4553 done
4554 rm -f $ac_rmfiles
4555
4556 if { { ac_try="$ac_link_default"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_link_default") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }; then :
4567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4570 # so that the user can short-circuit this test for compilers unknown to
4571 # Autoconf.
4572 for ac_file in $ac_files ''
4573 do
4574 test -f "$ac_file" || continue
4575 case $ac_file in
4576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4577 ;;
4578 [ab].out )
4579 # We found the default executable, but exeext='' is most
4580 # certainly right.
4581 break;;
4582 *.* )
4583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4584 then :; else
4585 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 fi
4587 # We set ac_cv_exeext here because the later test for it is not
4588 # safe: cross compilers may not add the suffix if given an `-o'
4589 # argument, so we may need to know it at that point already.
4590 # Even if this section looks crufty: it has the advantage of
4591 # actually working.
4592 break;;
4593 * )
4594 break;;
4595 esac
4596 done
4597 test "$ac_cv_exeext" = no && ac_cv_exeext=
4598
4599 else
4600 ac_file=''
4601 fi
4602 if test -z "$ac_file"; then :
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error 77 "C compiler cannot create executables
4611 See \`config.log' for more details" "$LINENO" 5; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4617 $as_echo_n "checking for C compiler default output file name... " >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4619 $as_echo "$ac_file" >&6; }
4620 ac_exeext=$ac_cv_exeext
4621
4622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4623 ac_clean_files=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4625 $as_echo_n "checking for suffix of executables... " >&6; }
4626 if { { ac_try="$ac_link"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4634 ac_status=$?
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; then :
4637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4639 # work properly (i.e., refer to `conftest.exe'), while it won't with
4640 # `rm'.
4641 for ac_file in conftest.exe conftest conftest.*; do
4642 test -f "$ac_file" || continue
4643 case $ac_file in
4644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4646 break;;
4647 * ) break;;
4648 esac
4649 done
4650 else
4651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4654 See \`config.log' for more details" "$LINENO" 5; }
4655 fi
4656 rm -f conftest conftest$ac_cv_exeext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4658 $as_echo "$ac_cv_exeext" >&6; }
4659
4660 rm -f conftest.$ac_ext
4661 EXEEXT=$ac_cv_exeext
4662 ac_exeext=$EXEEXT
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <stdio.h>
4666 int
4667 main ()
4668 {
4669 FILE *f = fopen ("conftest.out", "w");
4670 return ferror (f) || fclose (f) != 0;
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 ac_clean_files="$ac_clean_files conftest.out"
4677 # Check that the compiler produces executables we can run. If not, either
4678 # the compiler is broken, or we cross compile.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4680 $as_echo_n "checking whether we are cross compiling... " >&6; }
4681 if test "$cross_compiling" != yes; then
4682 { { ac_try="$ac_link"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_link") 2>&5
4690 ac_status=$?
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 if { ac_try='./conftest$ac_cv_exeext'
4694 { { case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_try") 2>&5
4701 ac_status=$?
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; }; then
4704 cross_compiling=no
4705 else
4706 if test "$cross_compiling" = maybe; then
4707 cross_compiling=yes
4708 else
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "cannot run C compiled programs.
4712 If you meant to cross compile, use \`--host'.
4713 See \`config.log' for more details" "$LINENO" 5; }
4714 fi
4715 fi
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4718 $as_echo "$cross_compiling" >&6; }
4719
4720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4721 ac_clean_files=$ac_clean_files_save
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4723 $as_echo_n "checking for suffix of object files... " >&6; }
4724 if ${ac_cv_objext+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.o conftest.obj
4739 if { { ac_try="$ac_compile"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compile") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then :
4750 for ac_file in conftest.o conftest.obj conftest.*; do
4751 test -f "$ac_file" || continue;
4752 case $ac_file in
4753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4755 break;;
4756 esac
4757 done
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 as_fn_error $? "cannot compute suffix of object files: cannot compile
4765 See \`config.log' for more details" "$LINENO" 5; }
4766 fi
4767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4770 $as_echo "$ac_cv_objext" >&6; }
4771 OBJEXT=$ac_cv_objext
4772 ac_objext=$OBJEXT
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main ()
4783 {
4784 #ifndef __GNUC__
4785 choke me
4786 #endif
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_compiler_gnu=yes
4794 else
4795 ac_compiler_gnu=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4804 GCC=yes
4805 else
4806 GCC=
4807 fi
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4817 ac_cv_prog_cc_g=no
4818 CFLAGS="-g"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_g=yes
4832 else
4833 CFLAGS=""
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836
4837 int
4838 main ()
4839 {
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846
4847 else
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4849 CFLAGS="-g"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 ac_cv_prog_cc_g=yes
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4877 CFLAGS="-g -O2"
4878 else
4879 CFLAGS="-g"
4880 fi
4881 else
4882 if test "$GCC" = yes; then
4883 CFLAGS="-O2"
4884 else
4885 CFLAGS=
4886 fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 ac_cv_prog_cc_c89=no
4894 ac_save_CC=$CC
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #include <stdarg.h>
4898 #include <stdio.h>
4899 struct stat;
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4904 char **p;
4905 int i;
4906 {
4907 return p[i];
4908 }
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4910 {
4911 char *s;
4912 va_list v;
4913 va_start (v,p);
4914 s = g (p, va_arg (v,int));
4915 va_end (v);
4916 return s;
4917 }
4918
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4927
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4930 #define FOO(x) 'x'
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4932
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4937 int argc;
4938 char **argv;
4939 int
4940 main ()
4941 {
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4949 do
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4956 done
4957 rm -f conftest.$ac_ext
4958 CC=$ac_save_CC
4959
4960 fi
4961 # AC_CACHE_VAL
4962 case "x$ac_cv_prog_cc_c89" in
4963 x)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4966 xno)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4969 *)
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4973 esac
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4975
4976 fi
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4985 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4986 if ${ac_cv_prog_cc_c99+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 ac_cv_prog_cc_c99=no
4990 ac_save_CC=$CC
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <stdarg.h>
4994 #include <stdbool.h>
4995 #include <stdlib.h>
4996 #include <wchar.h>
4997 #include <stdio.h>
4998
4999 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5000 #define debug(...) fprintf (stderr, __VA_ARGS__)
5001 #define showlist(...) puts (#__VA_ARGS__)
5002 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5003 static void
5004 test_varargs_macros (void)
5005 {
5006 int x = 1234;
5007 int y = 5678;
5008 debug ("Flag");
5009 debug ("X = %d\n", x);
5010 showlist (The first, second, and third items.);
5011 report (x>y, "x is %d but y is %d", x, y);
5012 }
5013
5014 // Check long long types.
5015 #define BIG64 18446744073709551615ull
5016 #define BIG32 4294967295ul
5017 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5018 #if !BIG_OK
5019 your preprocessor is broken;
5020 #endif
5021 #if BIG_OK
5022 #else
5023 your preprocessor is broken;
5024 #endif
5025 static long long int bignum = -9223372036854775807LL;
5026 static unsigned long long int ubignum = BIG64;
5027
5028 struct incomplete_array
5029 {
5030 int datasize;
5031 double data[];
5032 };
5033
5034 struct named_init {
5035 int number;
5036 const wchar_t *name;
5037 double average;
5038 };
5039
5040 typedef const char *ccp;
5041
5042 static inline int
5043 test_restrict (ccp restrict text)
5044 {
5045 // See if C++-style comments work.
5046 // Iterate through items via the restricted pointer.
5047 // Also check for declarations in for loops.
5048 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5049 continue;
5050 return 0;
5051 }
5052
5053 // Check varargs and va_copy.
5054 static void
5055 test_varargs (const char *format, ...)
5056 {
5057 va_list args;
5058 va_start (args, format);
5059 va_list args_copy;
5060 va_copy (args_copy, args);
5061
5062 const char *str;
5063 int number;
5064 float fnumber;
5065
5066 while (*format)
5067 {
5068 switch (*format++)
5069 {
5070 case 's': // string
5071 str = va_arg (args_copy, const char *);
5072 break;
5073 case 'd': // int
5074 number = va_arg (args_copy, int);
5075 break;
5076 case 'f': // float
5077 fnumber = va_arg (args_copy, double);
5078 break;
5079 default:
5080 break;
5081 }
5082 }
5083 va_end (args_copy);
5084 va_end (args);
5085 }
5086
5087 int
5088 main ()
5089 {
5090
5091 // Check bool.
5092 _Bool success = false;
5093
5094 // Check restrict.
5095 if (test_restrict ("String literal") == 0)
5096 success = true;
5097 char *restrict newvar = "Another string";
5098
5099 // Check varargs.
5100 test_varargs ("s, d' f .", "string", 65, 34.234);
5101 test_varargs_macros ();
5102
5103 // Check flexible array members.
5104 struct incomplete_array *ia =
5105 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5106 ia->datasize = 10;
5107 for (int i = 0; i < ia->datasize; ++i)
5108 ia->data[i] = i * 1.234;
5109
5110 // Check named initializers.
5111 struct named_init ni = {
5112 .number = 34,
5113 .name = L"Test wide string",
5114 .average = 543.34343,
5115 };
5116
5117 ni.number = 58;
5118
5119 int dynamic_array[ni.number];
5120 dynamic_array[ni.number - 1] = 543;
5121
5122 // work around unused variable warnings
5123 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5124 || dynamic_array[ni.number - 1] != 543);
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5131 do
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c99=$ac_arg
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c99" != "xno" && break
5138 done
5139 rm -f conftest.$ac_ext
5140 CC=$ac_save_CC
5141
5142 fi
5143 # AC_CACHE_VAL
5144 case "x$ac_cv_prog_cc_c99" in
5145 x)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5148 xno)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5151 *)
5152 CC="$CC $ac_cv_prog_cc_c99"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5154 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5155 esac
5156 if test "x$ac_cv_prog_cc_c99" != xno; then :
5157
5158 fi
5159
5160
5161 ac_ext=cpp
5162 ac_cpp='$CXXCPP $CPPFLAGS'
5163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5166 if test -z "$CXX"; then
5167 if test -n "$CCC"; then
5168 CXX=$CCC
5169 else
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5172 do
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$CXX"; then
5181 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 CXX=$ac_cv_prog_CXX
5201 if test -n "$CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5203 $as_echo "$CXX" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210 test -n "$CXX" && break
5211 done
5212 fi
5213 if test -z "$CXX"; then
5214 ac_ct_CXX=$CXX
5215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5216 do
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$ac_ct_CXX"; then
5225 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_CXX="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5245 if test -n "$ac_ct_CXX"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5247 $as_echo "$ac_ct_CXX" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 test -n "$ac_ct_CXX" && break
5255 done
5256
5257 if test "x$ac_ct_CXX" = x; then
5258 CXX="g++"
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 CXX=$ac_ct_CXX
5267 fi
5268 fi
5269
5270 fi
5271 fi
5272 # Provide some information about the compiler.
5273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5274 set X $ac_compile
5275 ac_compiler=$2
5276 for ac_option in --version -v -V -qversion; do
5277 { { ac_try="$ac_compiler $ac_option >&5"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 $as_echo "$ac_try_echo"; } >&5
5284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5285 ac_status=$?
5286 if test -s conftest.err; then
5287 sed '10a\
5288 ... rest of stderr output deleted ...
5289 10q' conftest.err >conftest.er1
5290 cat conftest.er1 >&5
5291 fi
5292 rm -f conftest.er1 conftest.err
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5295 done
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5298 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5299 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304
5305 int
5306 main ()
5307 {
5308 #ifndef __GNUC__
5309 choke me
5310 #endif
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_compiler_gnu=yes
5318 else
5319 ac_compiler_gnu=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5323
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5326 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5327 if test $ac_compiler_gnu = yes; then
5328 GXX=yes
5329 else
5330 GXX=
5331 fi
5332 ac_test_CXXFLAGS=${CXXFLAGS+set}
5333 ac_save_CXXFLAGS=$CXXFLAGS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5335 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5336 if ${ac_cv_prog_cxx_g+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5340 ac_cxx_werror_flag=yes
5341 ac_cv_prog_cxx_g=no
5342 CXXFLAGS="-g"
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_cxx_try_compile "$LINENO"; then :
5355 ac_cv_prog_cxx_g=yes
5356 else
5357 CXXFLAGS=""
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360
5361 int
5362 main ()
5363 {
5364
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 if ac_fn_cxx_try_compile "$LINENO"; then :
5370
5371 else
5372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5373 CXXFLAGS="-g"
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 int
5378 main ()
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_cxx_try_compile "$LINENO"; then :
5386 ac_cv_prog_cxx_g=yes
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5396 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5397 if test "$ac_test_CXXFLAGS" = set; then
5398 CXXFLAGS=$ac_save_CXXFLAGS
5399 elif test $ac_cv_prog_cxx_g = yes; then
5400 if test "$GXX" = yes; then
5401 CXXFLAGS="-g -O2"
5402 else
5403 CXXFLAGS="-g"
5404 fi
5405 else
5406 if test "$GXX" = yes; then
5407 CXXFLAGS="-O2"
5408 else
5409 CXXFLAGS=
5410 fi
5411 fi
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419 # We must set the default linker to the linker used by gcc for the correct
5420 # operation of libtool. If LD is not defined and we are using gcc, try to
5421 # set the LD default to the ld used by gcc.
5422 if test -z "$LD"; then
5423 if test "$GCC" = yes; then
5424 case $build in
5425 *-*-mingw*)
5426 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5427 *)
5428 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5429 esac
5430 case $gcc_prog_ld in
5431 # Accept absolute paths.
5432 [\\/]* | [A-Za-z]:[\\/]*)
5433 LD="$gcc_prog_ld" ;;
5434 esac
5435 fi
5436 fi
5437
5438 # Check whether -static-libstdc++ -static-libgcc is supported.
5439 have_static_libs=no
5440 if test "$GCC" = yes; then
5441 saved_LDFLAGS="$LDFLAGS"
5442
5443 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5445 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5446 ac_ext=cpp
5447 ac_cpp='$CXXCPP $CPPFLAGS'
5448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5451
5452
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455
5456 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5457 #error -static-libstdc++ not implemented
5458 #endif
5459 int main() {}
5460 _ACEOF
5461 if ac_fn_cxx_try_link "$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }; have_static_libs=yes
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476
5477 LDFLAGS="$saved_LDFLAGS"
5478 fi
5479
5480
5481
5482
5483 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5485 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_GNATBIND+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$GNATBIND"; then
5492 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 GNATBIND=$ac_cv_prog_GNATBIND
5512 if test -n "$GNATBIND"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5514 $as_echo "$GNATBIND" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 fi
5522 if test -z "$ac_cv_prog_GNATBIND"; then
5523 ac_ct_GNATBIND=$GNATBIND
5524 # Extract the first word of "gnatbind", so it can be a program name with args.
5525 set dummy gnatbind; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$ac_ct_GNATBIND"; then
5532 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5552 if test -n "$ac_ct_GNATBIND"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5554 $as_echo "$ac_ct_GNATBIND" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560 if test "x$ac_ct_GNATBIND" = x; then
5561 GNATBIND="no"
5562 else
5563 case $cross_compiling:$ac_tool_warned in
5564 yes:)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned=yes ;;
5568 esac
5569 GNATBIND=$ac_ct_GNATBIND
5570 fi
5571 else
5572 GNATBIND="$ac_cv_prog_GNATBIND"
5573 fi
5574
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GNATMAKE+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$GNATMAKE"; then
5584 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 GNATMAKE=$ac_cv_prog_GNATMAKE
5604 if test -n "$GNATMAKE"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5606 $as_echo "$GNATMAKE" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613 fi
5614 if test -z "$ac_cv_prog_GNATMAKE"; then
5615 ac_ct_GNATMAKE=$GNATMAKE
5616 # Extract the first word of "gnatmake", so it can be a program name with args.
5617 set dummy gnatmake; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$ac_ct_GNATMAKE"; then
5624 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5644 if test -n "$ac_ct_GNATMAKE"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5646 $as_echo "$ac_ct_GNATMAKE" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652 if test "x$ac_ct_GNATMAKE" = x; then
5653 GNATMAKE="no"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656 yes:)
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned=yes ;;
5660 esac
5661 GNATMAKE=$ac_ct_GNATMAKE
5662 fi
5663 else
5664 GNATMAKE="$ac_cv_prog_GNATMAKE"
5665 fi
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5668 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5669 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat >conftest.adb <<EOF
5673 procedure conftest is begin null; end conftest;
5674 EOF
5675 acx_cv_cc_gcc_supports_ada=no
5676 # There is a bug in old released versions of GCC which causes the
5677 # driver to exit successfully when the appropriate language module
5678 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5679 # Therefore we must check for the error message as well as an
5680 # unsuccessful exit.
5681 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5682 # given a .adb file, but produce no object file. So we must check
5683 # if an object file was really produced to guard against this.
5684 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5685 if test x"$errors" = x && test -f conftest.$ac_objext; then
5686 acx_cv_cc_gcc_supports_ada=yes
5687 fi
5688 rm -f conftest.*
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5691 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5692
5693 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5694 have_gnat=yes
5695 else
5696 have_gnat=no
5697 fi
5698
5699 ACX_PROG_GDC
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5701 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5702 if ${gcc_cv_prog_cmp_skip+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 echo abfoo >t1
5706 echo cdfoo >t2
5707 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5708 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5709 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5710 :
5711 else
5712 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5713 fi
5714 fi
5715 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5716 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5717 :
5718 else
5719 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5720 fi
5721 fi
5722 rm t1 t2
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5726 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5727 do_compare="$gcc_cv_prog_cmp_skip"
5728
5729
5730
5731 # Check whether --enable-bootstrap was given.
5732 if test "${enable_bootstrap+set}" = set; then :
5733 enableval=$enable_bootstrap;
5734 else
5735 enable_bootstrap=default
5736 fi
5737
5738
5739 # Issue errors and warnings for invalid/strange bootstrap combinations.
5740 if test -r $srcdir/gcc/configure; then
5741 have_compiler=yes
5742 else
5743 have_compiler=no
5744 fi
5745
5746 case "$have_compiler:$host:$target:$enable_bootstrap" in
5747 *:*:*:no) ;;
5748
5749 # Default behavior. Enable bootstrap if we have a compiler
5750 # and we are in a native configuration.
5751 yes:$build:$build:default)
5752 enable_bootstrap=yes ;;
5753
5754 *:*:*:default)
5755 enable_bootstrap=no ;;
5756
5757 # We have a compiler and we are in a native configuration, bootstrap is ok
5758 yes:$build:$build:yes)
5759 ;;
5760
5761 # Other configurations, but we have a compiler. Assume the user knows
5762 # what he's doing.
5763 yes:*:*:yes)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5765 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5766 ;;
5767
5768 # No compiler: if they passed --enable-bootstrap explicitly, fail
5769 no:*:*:yes)
5770 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5771
5772 # Fail if wrong command line
5773 *)
5774 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5775 ;;
5776 esac
5777
5778 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5779 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5780 # require C++11 (or higher).
5781 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5782 CXX="$CXX -std=c++11"
5783 elif test "$have_compiler" = yes; then
5784 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5785 ac_ext=cpp
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 ac_success=no
5791
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5793 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5794 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799
5800
5801 // If the compiler admits that it is not ready for C++11, why torture it?
5802 // Hopefully, this will speed up the test.
5803
5804 #ifndef __cplusplus
5805
5806 #error "This is not a C++ compiler"
5807
5808 #elif __cplusplus < 201103L
5809
5810 #error "This is not a C++11 compiler"
5811
5812 #else
5813
5814 namespace cxx11
5815 {
5816
5817 namespace test_static_assert
5818 {
5819
5820 template <typename T>
5821 struct check
5822 {
5823 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5824 };
5825
5826 }
5827
5828 namespace test_final_override
5829 {
5830
5831 struct Base
5832 {
5833 virtual ~Base() {}
5834 virtual void f() {}
5835 };
5836
5837 struct Derived : public Base
5838 {
5839 virtual ~Derived() override {}
5840 virtual void f() override {}
5841 };
5842
5843 }
5844
5845 namespace test_double_right_angle_brackets
5846 {
5847
5848 template < typename T >
5849 struct check {};
5850
5851 typedef check<void> single_type;
5852 typedef check<check<void>> double_type;
5853 typedef check<check<check<void>>> triple_type;
5854 typedef check<check<check<check<void>>>> quadruple_type;
5855
5856 }
5857
5858 namespace test_decltype
5859 {
5860
5861 int
5862 f()
5863 {
5864 int a = 1;
5865 decltype(a) b = 2;
5866 return a + b;
5867 }
5868
5869 }
5870
5871 namespace test_type_deduction
5872 {
5873
5874 template < typename T1, typename T2 >
5875 struct is_same
5876 {
5877 static const bool value = false;
5878 };
5879
5880 template < typename T >
5881 struct is_same<T, T>
5882 {
5883 static const bool value = true;
5884 };
5885
5886 template < typename T1, typename T2 >
5887 auto
5888 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5889 {
5890 return a1 + a2;
5891 }
5892
5893 int
5894 test(const int c, volatile int v)
5895 {
5896 static_assert(is_same<int, decltype(0)>::value == true, "");
5897 static_assert(is_same<int, decltype(c)>::value == false, "");
5898 static_assert(is_same<int, decltype(v)>::value == false, "");
5899 auto ac = c;
5900 auto av = v;
5901 auto sumi = ac + av + 'x';
5902 auto sumf = ac + av + 1.0;
5903 static_assert(is_same<int, decltype(ac)>::value == true, "");
5904 static_assert(is_same<int, decltype(av)>::value == true, "");
5905 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5906 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5907 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5908 return (sumf > 0.0) ? sumi : add(c, v);
5909 }
5910
5911 }
5912
5913 namespace test_noexcept
5914 {
5915
5916 int f() { return 0; }
5917 int g() noexcept { return 0; }
5918
5919 static_assert(noexcept(f()) == false, "");
5920 static_assert(noexcept(g()) == true, "");
5921
5922 }
5923
5924 namespace test_constexpr
5925 {
5926
5927 template < typename CharT >
5928 unsigned long constexpr
5929 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5930 {
5931 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5932 }
5933
5934 template < typename CharT >
5935 unsigned long constexpr
5936 strlen_c(const CharT *const s) noexcept
5937 {
5938 return strlen_c_r(s, 0UL);
5939 }
5940
5941 static_assert(strlen_c("") == 0UL, "");
5942 static_assert(strlen_c("1") == 1UL, "");
5943 static_assert(strlen_c("example") == 7UL, "");
5944 static_assert(strlen_c("another\0example") == 7UL, "");
5945
5946 }
5947
5948 namespace test_rvalue_references
5949 {
5950
5951 template < int N >
5952 struct answer
5953 {
5954 static constexpr int value = N;
5955 };
5956
5957 answer<1> f(int&) { return answer<1>(); }
5958 answer<2> f(const int&) { return answer<2>(); }
5959 answer<3> f(int&&) { return answer<3>(); }
5960
5961 void
5962 test()
5963 {
5964 int i = 0;
5965 const int c = 0;
5966 static_assert(decltype(f(i))::value == 1, "");
5967 static_assert(decltype(f(c))::value == 2, "");
5968 static_assert(decltype(f(0))::value == 3, "");
5969 }
5970
5971 }
5972
5973 namespace test_uniform_initialization
5974 {
5975
5976 struct test
5977 {
5978 static const int zero {};
5979 static const int one {1};
5980 };
5981
5982 static_assert(test::zero == 0, "");
5983 static_assert(test::one == 1, "");
5984
5985 }
5986
5987 namespace test_lambdas
5988 {
5989
5990 void
5991 test1()
5992 {
5993 auto lambda1 = [](){};
5994 auto lambda2 = lambda1;
5995 lambda1();
5996 lambda2();
5997 }
5998
5999 int
6000 test2()
6001 {
6002 auto a = [](int i, int j){ return i + j; }(1, 2);
6003 auto b = []() -> int { return '0'; }();
6004 auto c = [=](){ return a + b; }();
6005 auto d = [&](){ return c; }();
6006 auto e = [a, &b](int x) mutable {
6007 const auto identity = [](int y){ return y; };
6008 for (auto i = 0; i < a; ++i)
6009 a += b--;
6010 return x + identity(a + b);
6011 }(0);
6012 return a + b + c + d + e;
6013 }
6014
6015 int
6016 test3()
6017 {
6018 const auto nullary = [](){ return 0; };
6019 const auto unary = [](int x){ return x; };
6020 using nullary_t = decltype(nullary);
6021 using unary_t = decltype(unary);
6022 const auto higher1st = [](nullary_t f){ return f(); };
6023 const auto higher2nd = [unary](nullary_t f1){
6024 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6025 };
6026 return higher1st(nullary) + higher2nd(nullary)(unary);
6027 }
6028
6029 }
6030
6031 namespace test_variadic_templates
6032 {
6033
6034 template <int...>
6035 struct sum;
6036
6037 template <int N0, int... N1toN>
6038 struct sum<N0, N1toN...>
6039 {
6040 static constexpr auto value = N0 + sum<N1toN...>::value;
6041 };
6042
6043 template <>
6044 struct sum<>
6045 {
6046 static constexpr auto value = 0;
6047 };
6048
6049 static_assert(sum<>::value == 0, "");
6050 static_assert(sum<1>::value == 1, "");
6051 static_assert(sum<23>::value == 23, "");
6052 static_assert(sum<1, 2>::value == 3, "");
6053 static_assert(sum<5, 5, 11>::value == 21, "");
6054 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6055
6056 }
6057
6058 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6059 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6060 // because of this.
6061 namespace test_template_alias_sfinae
6062 {
6063
6064 struct foo {};
6065
6066 template<typename T>
6067 using member = typename T::member_type;
6068
6069 template<typename T>
6070 void func(...) {}
6071
6072 template<typename T>
6073 void func(member<T>*) {}
6074
6075 void test();
6076
6077 void test() { func<foo>(0); }
6078
6079 }
6080
6081 } // namespace cxx11
6082
6083 #endif // __cplusplus >= 201103L
6084
6085
6086
6087 _ACEOF
6088 if ac_fn_cxx_try_compile "$LINENO"; then :
6089 ax_cv_cxx_compile_cxx11=yes
6090 else
6091 ax_cv_cxx_compile_cxx11=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6096 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6097 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6098 ac_success=yes
6099 fi
6100
6101 if test x$ac_success = xno; then
6102 for alternative in ${ax_cxx_compile_alternatives}; do
6103 switch="-std=gnu++${alternative}"
6104 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6106 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6107 if eval \${$cachevar+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 ac_save_CXX="$CXX"
6111 CXX="$CXX $switch"
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114
6115
6116 // If the compiler admits that it is not ready for C++11, why torture it?
6117 // Hopefully, this will speed up the test.
6118
6119 #ifndef __cplusplus
6120
6121 #error "This is not a C++ compiler"
6122
6123 #elif __cplusplus < 201103L
6124
6125 #error "This is not a C++11 compiler"
6126
6127 #else
6128
6129 namespace cxx11
6130 {
6131
6132 namespace test_static_assert
6133 {
6134
6135 template <typename T>
6136 struct check
6137 {
6138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6139 };
6140
6141 }
6142
6143 namespace test_final_override
6144 {
6145
6146 struct Base
6147 {
6148 virtual ~Base() {}
6149 virtual void f() {}
6150 };
6151
6152 struct Derived : public Base
6153 {
6154 virtual ~Derived() override {}
6155 virtual void f() override {}
6156 };
6157
6158 }
6159
6160 namespace test_double_right_angle_brackets
6161 {
6162
6163 template < typename T >
6164 struct check {};
6165
6166 typedef check<void> single_type;
6167 typedef check<check<void>> double_type;
6168 typedef check<check<check<void>>> triple_type;
6169 typedef check<check<check<check<void>>>> quadruple_type;
6170
6171 }
6172
6173 namespace test_decltype
6174 {
6175
6176 int
6177 f()
6178 {
6179 int a = 1;
6180 decltype(a) b = 2;
6181 return a + b;
6182 }
6183
6184 }
6185
6186 namespace test_type_deduction
6187 {
6188
6189 template < typename T1, typename T2 >
6190 struct is_same
6191 {
6192 static const bool value = false;
6193 };
6194
6195 template < typename T >
6196 struct is_same<T, T>
6197 {
6198 static const bool value = true;
6199 };
6200
6201 template < typename T1, typename T2 >
6202 auto
6203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6204 {
6205 return a1 + a2;
6206 }
6207
6208 int
6209 test(const int c, volatile int v)
6210 {
6211 static_assert(is_same<int, decltype(0)>::value == true, "");
6212 static_assert(is_same<int, decltype(c)>::value == false, "");
6213 static_assert(is_same<int, decltype(v)>::value == false, "");
6214 auto ac = c;
6215 auto av = v;
6216 auto sumi = ac + av + 'x';
6217 auto sumf = ac + av + 1.0;
6218 static_assert(is_same<int, decltype(ac)>::value == true, "");
6219 static_assert(is_same<int, decltype(av)>::value == true, "");
6220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6223 return (sumf > 0.0) ? sumi : add(c, v);
6224 }
6225
6226 }
6227
6228 namespace test_noexcept
6229 {
6230
6231 int f() { return 0; }
6232 int g() noexcept { return 0; }
6233
6234 static_assert(noexcept(f()) == false, "");
6235 static_assert(noexcept(g()) == true, "");
6236
6237 }
6238
6239 namespace test_constexpr
6240 {
6241
6242 template < typename CharT >
6243 unsigned long constexpr
6244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6245 {
6246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6247 }
6248
6249 template < typename CharT >
6250 unsigned long constexpr
6251 strlen_c(const CharT *const s) noexcept
6252 {
6253 return strlen_c_r(s, 0UL);
6254 }
6255
6256 static_assert(strlen_c("") == 0UL, "");
6257 static_assert(strlen_c("1") == 1UL, "");
6258 static_assert(strlen_c("example") == 7UL, "");
6259 static_assert(strlen_c("another\0example") == 7UL, "");
6260
6261 }
6262
6263 namespace test_rvalue_references
6264 {
6265
6266 template < int N >
6267 struct answer
6268 {
6269 static constexpr int value = N;
6270 };
6271
6272 answer<1> f(int&) { return answer<1>(); }
6273 answer<2> f(const int&) { return answer<2>(); }
6274 answer<3> f(int&&) { return answer<3>(); }
6275
6276 void
6277 test()
6278 {
6279 int i = 0;
6280 const int c = 0;
6281 static_assert(decltype(f(i))::value == 1, "");
6282 static_assert(decltype(f(c))::value == 2, "");
6283 static_assert(decltype(f(0))::value == 3, "");
6284 }
6285
6286 }
6287
6288 namespace test_uniform_initialization
6289 {
6290
6291 struct test
6292 {
6293 static const int zero {};
6294 static const int one {1};
6295 };
6296
6297 static_assert(test::zero == 0, "");
6298 static_assert(test::one == 1, "");
6299
6300 }
6301
6302 namespace test_lambdas
6303 {
6304
6305 void
6306 test1()
6307 {
6308 auto lambda1 = [](){};
6309 auto lambda2 = lambda1;
6310 lambda1();
6311 lambda2();
6312 }
6313
6314 int
6315 test2()
6316 {
6317 auto a = [](int i, int j){ return i + j; }(1, 2);
6318 auto b = []() -> int { return '0'; }();
6319 auto c = [=](){ return a + b; }();
6320 auto d = [&](){ return c; }();
6321 auto e = [a, &b](int x) mutable {
6322 const auto identity = [](int y){ return y; };
6323 for (auto i = 0; i < a; ++i)
6324 a += b--;
6325 return x + identity(a + b);
6326 }(0);
6327 return a + b + c + d + e;
6328 }
6329
6330 int
6331 test3()
6332 {
6333 const auto nullary = [](){ return 0; };
6334 const auto unary = [](int x){ return x; };
6335 using nullary_t = decltype(nullary);
6336 using unary_t = decltype(unary);
6337 const auto higher1st = [](nullary_t f){ return f(); };
6338 const auto higher2nd = [unary](nullary_t f1){
6339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6340 };
6341 return higher1st(nullary) + higher2nd(nullary)(unary);
6342 }
6343
6344 }
6345
6346 namespace test_variadic_templates
6347 {
6348
6349 template <int...>
6350 struct sum;
6351
6352 template <int N0, int... N1toN>
6353 struct sum<N0, N1toN...>
6354 {
6355 static constexpr auto value = N0 + sum<N1toN...>::value;
6356 };
6357
6358 template <>
6359 struct sum<>
6360 {
6361 static constexpr auto value = 0;
6362 };
6363
6364 static_assert(sum<>::value == 0, "");
6365 static_assert(sum<1>::value == 1, "");
6366 static_assert(sum<23>::value == 23, "");
6367 static_assert(sum<1, 2>::value == 3, "");
6368 static_assert(sum<5, 5, 11>::value == 21, "");
6369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6370
6371 }
6372
6373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6375 // because of this.
6376 namespace test_template_alias_sfinae
6377 {
6378
6379 struct foo {};
6380
6381 template<typename T>
6382 using member = typename T::member_type;
6383
6384 template<typename T>
6385 void func(...) {}
6386
6387 template<typename T>
6388 void func(member<T>*) {}
6389
6390 void test();
6391
6392 void test() { func<foo>(0); }
6393
6394 }
6395
6396 } // namespace cxx11
6397
6398 #endif // __cplusplus >= 201103L
6399
6400
6401
6402 _ACEOF
6403 if ac_fn_cxx_try_compile "$LINENO"; then :
6404 eval $cachevar=yes
6405 else
6406 eval $cachevar=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 CXX="$ac_save_CXX"
6410 fi
6411 eval ac_res=\$$cachevar
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6414 if eval test x\$$cachevar = xyes; then
6415 CXX="$CXX $switch"
6416 if test -n "$CXXCPP" ; then
6417 CXXCPP="$CXXCPP $switch"
6418 fi
6419 ac_success=yes
6420 break
6421 fi
6422 done
6423 fi
6424
6425 if test x$ac_success = xno; then
6426 for alternative in ${ax_cxx_compile_alternatives}; do
6427 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6428 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6430 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6431 if eval \${$cachevar+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_save_CXX="$CXX"
6435 CXX="$CXX $switch"
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438
6439
6440 // If the compiler admits that it is not ready for C++11, why torture it?
6441 // Hopefully, this will speed up the test.
6442
6443 #ifndef __cplusplus
6444
6445 #error "This is not a C++ compiler"
6446
6447 #elif __cplusplus < 201103L
6448
6449 #error "This is not a C++11 compiler"
6450
6451 #else
6452
6453 namespace cxx11
6454 {
6455
6456 namespace test_static_assert
6457 {
6458
6459 template <typename T>
6460 struct check
6461 {
6462 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6463 };
6464
6465 }
6466
6467 namespace test_final_override
6468 {
6469
6470 struct Base
6471 {
6472 virtual ~Base() {}
6473 virtual void f() {}
6474 };
6475
6476 struct Derived : public Base
6477 {
6478 virtual ~Derived() override {}
6479 virtual void f() override {}
6480 };
6481
6482 }
6483
6484 namespace test_double_right_angle_brackets
6485 {
6486
6487 template < typename T >
6488 struct check {};
6489
6490 typedef check<void> single_type;
6491 typedef check<check<void>> double_type;
6492 typedef check<check<check<void>>> triple_type;
6493 typedef check<check<check<check<void>>>> quadruple_type;
6494
6495 }
6496
6497 namespace test_decltype
6498 {
6499
6500 int
6501 f()
6502 {
6503 int a = 1;
6504 decltype(a) b = 2;
6505 return a + b;
6506 }
6507
6508 }
6509
6510 namespace test_type_deduction
6511 {
6512
6513 template < typename T1, typename T2 >
6514 struct is_same
6515 {
6516 static const bool value = false;
6517 };
6518
6519 template < typename T >
6520 struct is_same<T, T>
6521 {
6522 static const bool value = true;
6523 };
6524
6525 template < typename T1, typename T2 >
6526 auto
6527 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6528 {
6529 return a1 + a2;
6530 }
6531
6532 int
6533 test(const int c, volatile int v)
6534 {
6535 static_assert(is_same<int, decltype(0)>::value == true, "");
6536 static_assert(is_same<int, decltype(c)>::value == false, "");
6537 static_assert(is_same<int, decltype(v)>::value == false, "");
6538 auto ac = c;
6539 auto av = v;
6540 auto sumi = ac + av + 'x';
6541 auto sumf = ac + av + 1.0;
6542 static_assert(is_same<int, decltype(ac)>::value == true, "");
6543 static_assert(is_same<int, decltype(av)>::value == true, "");
6544 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6545 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6546 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6547 return (sumf > 0.0) ? sumi : add(c, v);
6548 }
6549
6550 }
6551
6552 namespace test_noexcept
6553 {
6554
6555 int f() { return 0; }
6556 int g() noexcept { return 0; }
6557
6558 static_assert(noexcept(f()) == false, "");
6559 static_assert(noexcept(g()) == true, "");
6560
6561 }
6562
6563 namespace test_constexpr
6564 {
6565
6566 template < typename CharT >
6567 unsigned long constexpr
6568 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6569 {
6570 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6571 }
6572
6573 template < typename CharT >
6574 unsigned long constexpr
6575 strlen_c(const CharT *const s) noexcept
6576 {
6577 return strlen_c_r(s, 0UL);
6578 }
6579
6580 static_assert(strlen_c("") == 0UL, "");
6581 static_assert(strlen_c("1") == 1UL, "");
6582 static_assert(strlen_c("example") == 7UL, "");
6583 static_assert(strlen_c("another\0example") == 7UL, "");
6584
6585 }
6586
6587 namespace test_rvalue_references
6588 {
6589
6590 template < int N >
6591 struct answer
6592 {
6593 static constexpr int value = N;
6594 };
6595
6596 answer<1> f(int&) { return answer<1>(); }
6597 answer<2> f(const int&) { return answer<2>(); }
6598 answer<3> f(int&&) { return answer<3>(); }
6599
6600 void
6601 test()
6602 {
6603 int i = 0;
6604 const int c = 0;
6605 static_assert(decltype(f(i))::value == 1, "");
6606 static_assert(decltype(f(c))::value == 2, "");
6607 static_assert(decltype(f(0))::value == 3, "");
6608 }
6609
6610 }
6611
6612 namespace test_uniform_initialization
6613 {
6614
6615 struct test
6616 {
6617 static const int zero {};
6618 static const int one {1};
6619 };
6620
6621 static_assert(test::zero == 0, "");
6622 static_assert(test::one == 1, "");
6623
6624 }
6625
6626 namespace test_lambdas
6627 {
6628
6629 void
6630 test1()
6631 {
6632 auto lambda1 = [](){};
6633 auto lambda2 = lambda1;
6634 lambda1();
6635 lambda2();
6636 }
6637
6638 int
6639 test2()
6640 {
6641 auto a = [](int i, int j){ return i + j; }(1, 2);
6642 auto b = []() -> int { return '0'; }();
6643 auto c = [=](){ return a + b; }();
6644 auto d = [&](){ return c; }();
6645 auto e = [a, &b](int x) mutable {
6646 const auto identity = [](int y){ return y; };
6647 for (auto i = 0; i < a; ++i)
6648 a += b--;
6649 return x + identity(a + b);
6650 }(0);
6651 return a + b + c + d + e;
6652 }
6653
6654 int
6655 test3()
6656 {
6657 const auto nullary = [](){ return 0; };
6658 const auto unary = [](int x){ return x; };
6659 using nullary_t = decltype(nullary);
6660 using unary_t = decltype(unary);
6661 const auto higher1st = [](nullary_t f){ return f(); };
6662 const auto higher2nd = [unary](nullary_t f1){
6663 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6664 };
6665 return higher1st(nullary) + higher2nd(nullary)(unary);
6666 }
6667
6668 }
6669
6670 namespace test_variadic_templates
6671 {
6672
6673 template <int...>
6674 struct sum;
6675
6676 template <int N0, int... N1toN>
6677 struct sum<N0, N1toN...>
6678 {
6679 static constexpr auto value = N0 + sum<N1toN...>::value;
6680 };
6681
6682 template <>
6683 struct sum<>
6684 {
6685 static constexpr auto value = 0;
6686 };
6687
6688 static_assert(sum<>::value == 0, "");
6689 static_assert(sum<1>::value == 1, "");
6690 static_assert(sum<23>::value == 23, "");
6691 static_assert(sum<1, 2>::value == 3, "");
6692 static_assert(sum<5, 5, 11>::value == 21, "");
6693 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6694
6695 }
6696
6697 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6698 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6699 // because of this.
6700 namespace test_template_alias_sfinae
6701 {
6702
6703 struct foo {};
6704
6705 template<typename T>
6706 using member = typename T::member_type;
6707
6708 template<typename T>
6709 void func(...) {}
6710
6711 template<typename T>
6712 void func(member<T>*) {}
6713
6714 void test();
6715
6716 void test() { func<foo>(0); }
6717
6718 }
6719
6720 } // namespace cxx11
6721
6722 #endif // __cplusplus >= 201103L
6723
6724
6725
6726 _ACEOF
6727 if ac_fn_cxx_try_compile "$LINENO"; then :
6728 eval $cachevar=yes
6729 else
6730 eval $cachevar=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 CXX="$ac_save_CXX"
6734 fi
6735 eval ac_res=\$$cachevar
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if eval test x\$$cachevar = xyes; then
6739 CXX="$CXX $switch"
6740 if test -n "$CXXCPP" ; then
6741 CXXCPP="$CXXCPP $switch"
6742 fi
6743 ac_success=yes
6744 break
6745 fi
6746 done
6747 if test x$ac_success = xyes; then
6748 break
6749 fi
6750 done
6751 fi
6752
6753 ac_ext=c
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6760 if test x$ac_success = xno; then
6761 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6762 fi
6763 fi
6764 if test x$ac_success = xno; then
6765 HAVE_CXX11=0
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6767 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6768 else
6769 HAVE_CXX11=1
6770
6771 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6772
6773 fi
6774
6775
6776
6777 if test "${build}" != "${host}"; then
6778 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6779 ac_ext=cpp
6780 ac_cpp='$CXXCPP $CPPFLAGS'
6781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784 ac_success=no
6785 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6786 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6787 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6788 CXX="$CXX_FOR_BUILD"
6789 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6790 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6792 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6793 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798
6799
6800 // If the compiler admits that it is not ready for C++11, why torture it?
6801 // Hopefully, this will speed up the test.
6802
6803 #ifndef __cplusplus
6804
6805 #error "This is not a C++ compiler"
6806
6807 #elif __cplusplus < 201103L
6808
6809 #error "This is not a C++11 compiler"
6810
6811 #else
6812
6813 namespace cxx11
6814 {
6815
6816 namespace test_static_assert
6817 {
6818
6819 template <typename T>
6820 struct check
6821 {
6822 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6823 };
6824
6825 }
6826
6827 namespace test_final_override
6828 {
6829
6830 struct Base
6831 {
6832 virtual ~Base() {}
6833 virtual void f() {}
6834 };
6835
6836 struct Derived : public Base
6837 {
6838 virtual ~Derived() override {}
6839 virtual void f() override {}
6840 };
6841
6842 }
6843
6844 namespace test_double_right_angle_brackets
6845 {
6846
6847 template < typename T >
6848 struct check {};
6849
6850 typedef check<void> single_type;
6851 typedef check<check<void>> double_type;
6852 typedef check<check<check<void>>> triple_type;
6853 typedef check<check<check<check<void>>>> quadruple_type;
6854
6855 }
6856
6857 namespace test_decltype
6858 {
6859
6860 int
6861 f()
6862 {
6863 int a = 1;
6864 decltype(a) b = 2;
6865 return a + b;
6866 }
6867
6868 }
6869
6870 namespace test_type_deduction
6871 {
6872
6873 template < typename T1, typename T2 >
6874 struct is_same
6875 {
6876 static const bool value = false;
6877 };
6878
6879 template < typename T >
6880 struct is_same<T, T>
6881 {
6882 static const bool value = true;
6883 };
6884
6885 template < typename T1, typename T2 >
6886 auto
6887 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6888 {
6889 return a1 + a2;
6890 }
6891
6892 int
6893 test(const int c, volatile int v)
6894 {
6895 static_assert(is_same<int, decltype(0)>::value == true, "");
6896 static_assert(is_same<int, decltype(c)>::value == false, "");
6897 static_assert(is_same<int, decltype(v)>::value == false, "");
6898 auto ac = c;
6899 auto av = v;
6900 auto sumi = ac + av + 'x';
6901 auto sumf = ac + av + 1.0;
6902 static_assert(is_same<int, decltype(ac)>::value == true, "");
6903 static_assert(is_same<int, decltype(av)>::value == true, "");
6904 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6905 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6906 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6907 return (sumf > 0.0) ? sumi : add(c, v);
6908 }
6909
6910 }
6911
6912 namespace test_noexcept
6913 {
6914
6915 int f() { return 0; }
6916 int g() noexcept { return 0; }
6917
6918 static_assert(noexcept(f()) == false, "");
6919 static_assert(noexcept(g()) == true, "");
6920
6921 }
6922
6923 namespace test_constexpr
6924 {
6925
6926 template < typename CharT >
6927 unsigned long constexpr
6928 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6929 {
6930 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6931 }
6932
6933 template < typename CharT >
6934 unsigned long constexpr
6935 strlen_c(const CharT *const s) noexcept
6936 {
6937 return strlen_c_r(s, 0UL);
6938 }
6939
6940 static_assert(strlen_c("") == 0UL, "");
6941 static_assert(strlen_c("1") == 1UL, "");
6942 static_assert(strlen_c("example") == 7UL, "");
6943 static_assert(strlen_c("another\0example") == 7UL, "");
6944
6945 }
6946
6947 namespace test_rvalue_references
6948 {
6949
6950 template < int N >
6951 struct answer
6952 {
6953 static constexpr int value = N;
6954 };
6955
6956 answer<1> f(int&) { return answer<1>(); }
6957 answer<2> f(const int&) { return answer<2>(); }
6958 answer<3> f(int&&) { return answer<3>(); }
6959
6960 void
6961 test()
6962 {
6963 int i = 0;
6964 const int c = 0;
6965 static_assert(decltype(f(i))::value == 1, "");
6966 static_assert(decltype(f(c))::value == 2, "");
6967 static_assert(decltype(f(0))::value == 3, "");
6968 }
6969
6970 }
6971
6972 namespace test_uniform_initialization
6973 {
6974
6975 struct test
6976 {
6977 static const int zero {};
6978 static const int one {1};
6979 };
6980
6981 static_assert(test::zero == 0, "");
6982 static_assert(test::one == 1, "");
6983
6984 }
6985
6986 namespace test_lambdas
6987 {
6988
6989 void
6990 test1()
6991 {
6992 auto lambda1 = [](){};
6993 auto lambda2 = lambda1;
6994 lambda1();
6995 lambda2();
6996 }
6997
6998 int
6999 test2()
7000 {
7001 auto a = [](int i, int j){ return i + j; }(1, 2);
7002 auto b = []() -> int { return '0'; }();
7003 auto c = [=](){ return a + b; }();
7004 auto d = [&](){ return c; }();
7005 auto e = [a, &b](int x) mutable {
7006 const auto identity = [](int y){ return y; };
7007 for (auto i = 0; i < a; ++i)
7008 a += b--;
7009 return x + identity(a + b);
7010 }(0);
7011 return a + b + c + d + e;
7012 }
7013
7014 int
7015 test3()
7016 {
7017 const auto nullary = [](){ return 0; };
7018 const auto unary = [](int x){ return x; };
7019 using nullary_t = decltype(nullary);
7020 using unary_t = decltype(unary);
7021 const auto higher1st = [](nullary_t f){ return f(); };
7022 const auto higher2nd = [unary](nullary_t f1){
7023 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7024 };
7025 return higher1st(nullary) + higher2nd(nullary)(unary);
7026 }
7027
7028 }
7029
7030 namespace test_variadic_templates
7031 {
7032
7033 template <int...>
7034 struct sum;
7035
7036 template <int N0, int... N1toN>
7037 struct sum<N0, N1toN...>
7038 {
7039 static constexpr auto value = N0 + sum<N1toN...>::value;
7040 };
7041
7042 template <>
7043 struct sum<>
7044 {
7045 static constexpr auto value = 0;
7046 };
7047
7048 static_assert(sum<>::value == 0, "");
7049 static_assert(sum<1>::value == 1, "");
7050 static_assert(sum<23>::value == 23, "");
7051 static_assert(sum<1, 2>::value == 3, "");
7052 static_assert(sum<5, 5, 11>::value == 21, "");
7053 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7054
7055 }
7056
7057 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7058 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7059 // because of this.
7060 namespace test_template_alias_sfinae
7061 {
7062
7063 struct foo {};
7064
7065 template<typename T>
7066 using member = typename T::member_type;
7067
7068 template<typename T>
7069 void func(...) {}
7070
7071 template<typename T>
7072 void func(member<T>*) {}
7073
7074 void test();
7075
7076 void test() { func<foo>(0); }
7077
7078 }
7079
7080 } // namespace cxx11
7081
7082 #endif // __cplusplus >= 201103L
7083
7084
7085
7086 _ACEOF
7087 if ac_fn_cxx_try_compile "$LINENO"; then :
7088 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7089 else
7090 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7095 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7096 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7097 ac_success=yes
7098 fi
7099
7100 if test x$ac_success = xno; then
7101 for alternative in ${ax_cxx_compile_alternatives}; do
7102 switch="-std=gnu++${alternative}"
7103 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7105 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7106 if eval \${$cachevar+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 ac_save_CXX="$CXX"
7110 CXX="$CXX $switch"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113
7114
7115 // If the compiler admits that it is not ready for C++11, why torture it?
7116 // Hopefully, this will speed up the test.
7117
7118 #ifndef __cplusplus
7119
7120 #error "This is not a C++ compiler"
7121
7122 #elif __cplusplus < 201103L
7123
7124 #error "This is not a C++11 compiler"
7125
7126 #else
7127
7128 namespace cxx11
7129 {
7130
7131 namespace test_static_assert
7132 {
7133
7134 template <typename T>
7135 struct check
7136 {
7137 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7138 };
7139
7140 }
7141
7142 namespace test_final_override
7143 {
7144
7145 struct Base
7146 {
7147 virtual ~Base() {}
7148 virtual void f() {}
7149 };
7150
7151 struct Derived : public Base
7152 {
7153 virtual ~Derived() override {}
7154 virtual void f() override {}
7155 };
7156
7157 }
7158
7159 namespace test_double_right_angle_brackets
7160 {
7161
7162 template < typename T >
7163 struct check {};
7164
7165 typedef check<void> single_type;
7166 typedef check<check<void>> double_type;
7167 typedef check<check<check<void>>> triple_type;
7168 typedef check<check<check<check<void>>>> quadruple_type;
7169
7170 }
7171
7172 namespace test_decltype
7173 {
7174
7175 int
7176 f()
7177 {
7178 int a = 1;
7179 decltype(a) b = 2;
7180 return a + b;
7181 }
7182
7183 }
7184
7185 namespace test_type_deduction
7186 {
7187
7188 template < typename T1, typename T2 >
7189 struct is_same
7190 {
7191 static const bool value = false;
7192 };
7193
7194 template < typename T >
7195 struct is_same<T, T>
7196 {
7197 static const bool value = true;
7198 };
7199
7200 template < typename T1, typename T2 >
7201 auto
7202 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7203 {
7204 return a1 + a2;
7205 }
7206
7207 int
7208 test(const int c, volatile int v)
7209 {
7210 static_assert(is_same<int, decltype(0)>::value == true, "");
7211 static_assert(is_same<int, decltype(c)>::value == false, "");
7212 static_assert(is_same<int, decltype(v)>::value == false, "");
7213 auto ac = c;
7214 auto av = v;
7215 auto sumi = ac + av + 'x';
7216 auto sumf = ac + av + 1.0;
7217 static_assert(is_same<int, decltype(ac)>::value == true, "");
7218 static_assert(is_same<int, decltype(av)>::value == true, "");
7219 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7220 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7221 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7222 return (sumf > 0.0) ? sumi : add(c, v);
7223 }
7224
7225 }
7226
7227 namespace test_noexcept
7228 {
7229
7230 int f() { return 0; }
7231 int g() noexcept { return 0; }
7232
7233 static_assert(noexcept(f()) == false, "");
7234 static_assert(noexcept(g()) == true, "");
7235
7236 }
7237
7238 namespace test_constexpr
7239 {
7240
7241 template < typename CharT >
7242 unsigned long constexpr
7243 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7244 {
7245 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7246 }
7247
7248 template < typename CharT >
7249 unsigned long constexpr
7250 strlen_c(const CharT *const s) noexcept
7251 {
7252 return strlen_c_r(s, 0UL);
7253 }
7254
7255 static_assert(strlen_c("") == 0UL, "");
7256 static_assert(strlen_c("1") == 1UL, "");
7257 static_assert(strlen_c("example") == 7UL, "");
7258 static_assert(strlen_c("another\0example") == 7UL, "");
7259
7260 }
7261
7262 namespace test_rvalue_references
7263 {
7264
7265 template < int N >
7266 struct answer
7267 {
7268 static constexpr int value = N;
7269 };
7270
7271 answer<1> f(int&) { return answer<1>(); }
7272 answer<2> f(const int&) { return answer<2>(); }
7273 answer<3> f(int&&) { return answer<3>(); }
7274
7275 void
7276 test()
7277 {
7278 int i = 0;
7279 const int c = 0;
7280 static_assert(decltype(f(i))::value == 1, "");
7281 static_assert(decltype(f(c))::value == 2, "");
7282 static_assert(decltype(f(0))::value == 3, "");
7283 }
7284
7285 }
7286
7287 namespace test_uniform_initialization
7288 {
7289
7290 struct test
7291 {
7292 static const int zero {};
7293 static const int one {1};
7294 };
7295
7296 static_assert(test::zero == 0, "");
7297 static_assert(test::one == 1, "");
7298
7299 }
7300
7301 namespace test_lambdas
7302 {
7303
7304 void
7305 test1()
7306 {
7307 auto lambda1 = [](){};
7308 auto lambda2 = lambda1;
7309 lambda1();
7310 lambda2();
7311 }
7312
7313 int
7314 test2()
7315 {
7316 auto a = [](int i, int j){ return i + j; }(1, 2);
7317 auto b = []() -> int { return '0'; }();
7318 auto c = [=](){ return a + b; }();
7319 auto d = [&](){ return c; }();
7320 auto e = [a, &b](int x) mutable {
7321 const auto identity = [](int y){ return y; };
7322 for (auto i = 0; i < a; ++i)
7323 a += b--;
7324 return x + identity(a + b);
7325 }(0);
7326 return a + b + c + d + e;
7327 }
7328
7329 int
7330 test3()
7331 {
7332 const auto nullary = [](){ return 0; };
7333 const auto unary = [](int x){ return x; };
7334 using nullary_t = decltype(nullary);
7335 using unary_t = decltype(unary);
7336 const auto higher1st = [](nullary_t f){ return f(); };
7337 const auto higher2nd = [unary](nullary_t f1){
7338 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7339 };
7340 return higher1st(nullary) + higher2nd(nullary)(unary);
7341 }
7342
7343 }
7344
7345 namespace test_variadic_templates
7346 {
7347
7348 template <int...>
7349 struct sum;
7350
7351 template <int N0, int... N1toN>
7352 struct sum<N0, N1toN...>
7353 {
7354 static constexpr auto value = N0 + sum<N1toN...>::value;
7355 };
7356
7357 template <>
7358 struct sum<>
7359 {
7360 static constexpr auto value = 0;
7361 };
7362
7363 static_assert(sum<>::value == 0, "");
7364 static_assert(sum<1>::value == 1, "");
7365 static_assert(sum<23>::value == 23, "");
7366 static_assert(sum<1, 2>::value == 3, "");
7367 static_assert(sum<5, 5, 11>::value == 21, "");
7368 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7369
7370 }
7371
7372 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7373 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7374 // because of this.
7375 namespace test_template_alias_sfinae
7376 {
7377
7378 struct foo {};
7379
7380 template<typename T>
7381 using member = typename T::member_type;
7382
7383 template<typename T>
7384 void func(...) {}
7385
7386 template<typename T>
7387 void func(member<T>*) {}
7388
7389 void test();
7390
7391 void test() { func<foo>(0); }
7392
7393 }
7394
7395 } // namespace cxx11
7396
7397 #endif // __cplusplus >= 201103L
7398
7399
7400
7401 _ACEOF
7402 if ac_fn_cxx_try_compile "$LINENO"; then :
7403 eval $cachevar=yes
7404 else
7405 eval $cachevar=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 CXX="$ac_save_CXX"
7409 fi
7410 eval ac_res=\$$cachevar
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7412 $as_echo "$ac_res" >&6; }
7413 if eval test x\$$cachevar = xyes; then
7414 CXX="$CXX $switch"
7415 if test -n "$CXXCPP" ; then
7416 CXXCPP="$CXXCPP $switch"
7417 fi
7418 ac_success=yes
7419 break
7420 fi
7421 done
7422 fi
7423
7424 if test x$ac_success = xno; then
7425 for alternative in ${ax_cxx_compile_alternatives}; do
7426 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7427 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7429 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7430 if eval \${$cachevar+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 ac_save_CXX="$CXX"
7434 CXX="$CXX $switch"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437
7438
7439 // If the compiler admits that it is not ready for C++11, why torture it?
7440 // Hopefully, this will speed up the test.
7441
7442 #ifndef __cplusplus
7443
7444 #error "This is not a C++ compiler"
7445
7446 #elif __cplusplus < 201103L
7447
7448 #error "This is not a C++11 compiler"
7449
7450 #else
7451
7452 namespace cxx11
7453 {
7454
7455 namespace test_static_assert
7456 {
7457
7458 template <typename T>
7459 struct check
7460 {
7461 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7462 };
7463
7464 }
7465
7466 namespace test_final_override
7467 {
7468
7469 struct Base
7470 {
7471 virtual ~Base() {}
7472 virtual void f() {}
7473 };
7474
7475 struct Derived : public Base
7476 {
7477 virtual ~Derived() override {}
7478 virtual void f() override {}
7479 };
7480
7481 }
7482
7483 namespace test_double_right_angle_brackets
7484 {
7485
7486 template < typename T >
7487 struct check {};
7488
7489 typedef check<void> single_type;
7490 typedef check<check<void>> double_type;
7491 typedef check<check<check<void>>> triple_type;
7492 typedef check<check<check<check<void>>>> quadruple_type;
7493
7494 }
7495
7496 namespace test_decltype
7497 {
7498
7499 int
7500 f()
7501 {
7502 int a = 1;
7503 decltype(a) b = 2;
7504 return a + b;
7505 }
7506
7507 }
7508
7509 namespace test_type_deduction
7510 {
7511
7512 template < typename T1, typename T2 >
7513 struct is_same
7514 {
7515 static const bool value = false;
7516 };
7517
7518 template < typename T >
7519 struct is_same<T, T>
7520 {
7521 static const bool value = true;
7522 };
7523
7524 template < typename T1, typename T2 >
7525 auto
7526 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7527 {
7528 return a1 + a2;
7529 }
7530
7531 int
7532 test(const int c, volatile int v)
7533 {
7534 static_assert(is_same<int, decltype(0)>::value == true, "");
7535 static_assert(is_same<int, decltype(c)>::value == false, "");
7536 static_assert(is_same<int, decltype(v)>::value == false, "");
7537 auto ac = c;
7538 auto av = v;
7539 auto sumi = ac + av + 'x';
7540 auto sumf = ac + av + 1.0;
7541 static_assert(is_same<int, decltype(ac)>::value == true, "");
7542 static_assert(is_same<int, decltype(av)>::value == true, "");
7543 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7544 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7545 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7546 return (sumf > 0.0) ? sumi : add(c, v);
7547 }
7548
7549 }
7550
7551 namespace test_noexcept
7552 {
7553
7554 int f() { return 0; }
7555 int g() noexcept { return 0; }
7556
7557 static_assert(noexcept(f()) == false, "");
7558 static_assert(noexcept(g()) == true, "");
7559
7560 }
7561
7562 namespace test_constexpr
7563 {
7564
7565 template < typename CharT >
7566 unsigned long constexpr
7567 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7568 {
7569 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7570 }
7571
7572 template < typename CharT >
7573 unsigned long constexpr
7574 strlen_c(const CharT *const s) noexcept
7575 {
7576 return strlen_c_r(s, 0UL);
7577 }
7578
7579 static_assert(strlen_c("") == 0UL, "");
7580 static_assert(strlen_c("1") == 1UL, "");
7581 static_assert(strlen_c("example") == 7UL, "");
7582 static_assert(strlen_c("another\0example") == 7UL, "");
7583
7584 }
7585
7586 namespace test_rvalue_references
7587 {
7588
7589 template < int N >
7590 struct answer
7591 {
7592 static constexpr int value = N;
7593 };
7594
7595 answer<1> f(int&) { return answer<1>(); }
7596 answer<2> f(const int&) { return answer<2>(); }
7597 answer<3> f(int&&) { return answer<3>(); }
7598
7599 void
7600 test()
7601 {
7602 int i = 0;
7603 const int c = 0;
7604 static_assert(decltype(f(i))::value == 1, "");
7605 static_assert(decltype(f(c))::value == 2, "");
7606 static_assert(decltype(f(0))::value == 3, "");
7607 }
7608
7609 }
7610
7611 namespace test_uniform_initialization
7612 {
7613
7614 struct test
7615 {
7616 static const int zero {};
7617 static const int one {1};
7618 };
7619
7620 static_assert(test::zero == 0, "");
7621 static_assert(test::one == 1, "");
7622
7623 }
7624
7625 namespace test_lambdas
7626 {
7627
7628 void
7629 test1()
7630 {
7631 auto lambda1 = [](){};
7632 auto lambda2 = lambda1;
7633 lambda1();
7634 lambda2();
7635 }
7636
7637 int
7638 test2()
7639 {
7640 auto a = [](int i, int j){ return i + j; }(1, 2);
7641 auto b = []() -> int { return '0'; }();
7642 auto c = [=](){ return a + b; }();
7643 auto d = [&](){ return c; }();
7644 auto e = [a, &b](int x) mutable {
7645 const auto identity = [](int y){ return y; };
7646 for (auto i = 0; i < a; ++i)
7647 a += b--;
7648 return x + identity(a + b);
7649 }(0);
7650 return a + b + c + d + e;
7651 }
7652
7653 int
7654 test3()
7655 {
7656 const auto nullary = [](){ return 0; };
7657 const auto unary = [](int x){ return x; };
7658 using nullary_t = decltype(nullary);
7659 using unary_t = decltype(unary);
7660 const auto higher1st = [](nullary_t f){ return f(); };
7661 const auto higher2nd = [unary](nullary_t f1){
7662 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7663 };
7664 return higher1st(nullary) + higher2nd(nullary)(unary);
7665 }
7666
7667 }
7668
7669 namespace test_variadic_templates
7670 {
7671
7672 template <int...>
7673 struct sum;
7674
7675 template <int N0, int... N1toN>
7676 struct sum<N0, N1toN...>
7677 {
7678 static constexpr auto value = N0 + sum<N1toN...>::value;
7679 };
7680
7681 template <>
7682 struct sum<>
7683 {
7684 static constexpr auto value = 0;
7685 };
7686
7687 static_assert(sum<>::value == 0, "");
7688 static_assert(sum<1>::value == 1, "");
7689 static_assert(sum<23>::value == 23, "");
7690 static_assert(sum<1, 2>::value == 3, "");
7691 static_assert(sum<5, 5, 11>::value == 21, "");
7692 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7693
7694 }
7695
7696 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7697 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7698 // because of this.
7699 namespace test_template_alias_sfinae
7700 {
7701
7702 struct foo {};
7703
7704 template<typename T>
7705 using member = typename T::member_type;
7706
7707 template<typename T>
7708 void func(...) {}
7709
7710 template<typename T>
7711 void func(member<T>*) {}
7712
7713 void test();
7714
7715 void test() { func<foo>(0); }
7716
7717 }
7718
7719 } // namespace cxx11
7720
7721 #endif // __cplusplus >= 201103L
7722
7723
7724
7725 _ACEOF
7726 if ac_fn_cxx_try_compile "$LINENO"; then :
7727 eval $cachevar=yes
7728 else
7729 eval $cachevar=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 CXX="$ac_save_CXX"
7733 fi
7734 eval ac_res=\$$cachevar
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7736 $as_echo "$ac_res" >&6; }
7737 if eval test x\$$cachevar = xyes; then
7738 CXX="$CXX $switch"
7739 if test -n "$CXXCPP" ; then
7740 CXXCPP="$CXXCPP $switch"
7741 fi
7742 ac_success=yes
7743 break
7744 fi
7745 done
7746 if test x$ac_success = xyes; then
7747 break
7748 fi
7749 done
7750 fi
7751 CXX_FOR_BUILD="$CXX"
7752 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7753 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7754 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7755 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7756 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7764 if test x$ac_success = xno; then
7765 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7766 fi
7767 fi
7768 if test x$ac_success = xno; then
7769 HAVE_CXX11_FOR_BUILD=0
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7771 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7772 else
7773 HAVE_CXX11_FOR_BUILD=1
7774
7775 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7776
7777 fi
7778
7779
7780 fi
7781 fi
7782
7783 # Check whether --enable-pgo-build was given.
7784 if test "${enable_pgo_build+set}" = set; then :
7785 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7786 else
7787 enable_pgo_build=no
7788 fi
7789
7790
7791 # Issue errors and warnings for invalid/strange PGO build combinations.
7792 case "$have_compiler:$host:$target:$enable_pgo_build" in
7793 *:*:*:no) ;;
7794
7795 # Allow the PGO build only if we aren't building a compiler and
7796 # we are in a native configuration.
7797 no:$build:$build:yes | no:$build:$build:lto) ;;
7798
7799 # Disallow the PGO bootstrap if we are building a compiler.
7800 yes:*:*:yes | yes:*:*:lto)
7801 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7802
7803 *)
7804 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7805 ;;
7806 esac
7807
7808 if test "$enable_pgo_build" != "no"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7810 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7811 old_CFLAGS="$CFLAGS"
7812 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7813 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7814
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int foo;
7818 _ACEOF
7819 if ac_fn_c_try_compile "$LINENO"; then :
7820
7821 else
7822 PGO_BUILD_GEN_CFLAGS=
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 CFLAGS="$old_CFLAGS"
7826 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7834 fi
7835
7836 if test "$enable_pgo_build" = "lto"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7838 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7839 old_CFLAGS="$CFLAGS"
7840 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7841 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 int foo;
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847
7848 else
7849 PGO_BUILD_LTO_CFLAGS=
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 CFLAGS="$old_CFLAGS"
7853 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7855 $as_echo "yes" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7860 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7861 fi
7862 fi
7863 fi
7864
7865
7866
7867
7868 # Used for setting $lt_cv_objdir
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7870 $as_echo_n "checking for objdir... " >&6; }
7871 if ${lt_cv_objdir+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 rm -f .libs 2>/dev/null
7875 mkdir .libs 2>/dev/null
7876 if test -d .libs; then
7877 lt_cv_objdir=.libs
7878 else
7879 # MS-DOS does not allow filenames that begin with a dot.
7880 lt_cv_objdir=_libs
7881 fi
7882 rmdir .libs 2>/dev/null
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7885 $as_echo "$lt_cv_objdir" >&6; }
7886 objdir=$lt_cv_objdir
7887
7888
7889
7890
7891
7892 cat >>confdefs.h <<_ACEOF
7893 #define LT_OBJDIR "$lt_cv_objdir/"
7894 _ACEOF
7895
7896
7897
7898 # Check for GMP, MPFR and MPC
7899 gmplibs="-lmpc -lmpfr -lgmp"
7900 gmpinc=
7901 have_gmp=no
7902
7903 # Specify a location for mpc
7904 # check for this first so it ends up on the link line before mpfr.
7905
7906 # Check whether --with-mpc was given.
7907 if test "${with_mpc+set}" = set; then :
7908 withval=$with_mpc;
7909 fi
7910
7911
7912 # Check whether --with-mpc-include was given.
7913 if test "${with_mpc_include+set}" = set; then :
7914 withval=$with_mpc_include;
7915 fi
7916
7917
7918 # Check whether --with-mpc-lib was given.
7919 if test "${with_mpc_lib+set}" = set; then :
7920 withval=$with_mpc_lib;
7921 fi
7922
7923
7924 if test "x$with_mpc" != x; then
7925 gmplibs="-L$with_mpc/lib $gmplibs"
7926 gmpinc="-I$with_mpc/include $gmpinc"
7927 fi
7928 if test "x$with_mpc_include" != x; then
7929 gmpinc="-I$with_mpc_include $gmpinc"
7930 fi
7931 if test "x$with_mpc_lib" != x; then
7932 gmplibs="-L$with_mpc_lib $gmplibs"
7933 fi
7934 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7935 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7936 gmpinc='-I$$s/mpc/src '"$gmpinc"
7937 # Do not test the mpc version. Assume that it is sufficient, since
7938 # it is in the source tree, and the library has not been built yet
7939 # but it would be included on the link line in the version check below
7940 # hence making the test fail.
7941 have_gmp=yes
7942 fi
7943
7944 # Specify a location for mpfr
7945 # check for this first so it ends up on the link line before gmp.
7946
7947 # Check whether --with-mpfr was given.
7948 if test "${with_mpfr+set}" = set; then :
7949 withval=$with_mpfr;
7950 fi
7951
7952
7953 # Check whether --with-mpfr-include was given.
7954 if test "${with_mpfr_include+set}" = set; then :
7955 withval=$with_mpfr_include;
7956 fi
7957
7958
7959 # Check whether --with-mpfr-lib was given.
7960 if test "${with_mpfr_lib+set}" = set; then :
7961 withval=$with_mpfr_lib;
7962 fi
7963
7964
7965 if test "x$with_mpfr" != x; then
7966 gmplibs="-L$with_mpfr/lib $gmplibs"
7967 gmpinc="-I$with_mpfr/include $gmpinc"
7968 fi
7969 if test "x$with_mpfr_include" != x; then
7970 gmpinc="-I$with_mpfr_include $gmpinc"
7971 fi
7972 if test "x$with_mpfr_lib" != x; then
7973 gmplibs="-L$with_mpfr_lib $gmplibs"
7974 fi
7975 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7976 # MPFR v3.1.0 moved the sources into a src sub-directory.
7977 if ! test -d ${srcdir}/mpfr/src; then
7978 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7979 fi
7980 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7981 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7982 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7983 # Do not test the mpfr version. Assume that it is sufficient, since
7984 # it is in the source tree, and the library has not been built yet
7985 # but it would be included on the link line in the version check below
7986 # hence making the test fail.
7987 have_gmp=yes
7988 fi
7989
7990 # Specify a location for gmp
7991
7992 # Check whether --with-gmp was given.
7993 if test "${with_gmp+set}" = set; then :
7994 withval=$with_gmp;
7995 fi
7996
7997
7998 # Check whether --with-gmp-include was given.
7999 if test "${with_gmp_include+set}" = set; then :
8000 withval=$with_gmp_include;
8001 fi
8002
8003
8004 # Check whether --with-gmp-lib was given.
8005 if test "${with_gmp_lib+set}" = set; then :
8006 withval=$with_gmp_lib;
8007 fi
8008
8009
8010
8011 if test "x$with_gmp" != x; then
8012 gmplibs="-L$with_gmp/lib $gmplibs"
8013 gmpinc="-I$with_gmp/include $gmpinc"
8014 fi
8015 if test "x$with_gmp_include" != x; then
8016 gmpinc="-I$with_gmp_include $gmpinc"
8017 fi
8018 if test "x$with_gmp_lib" != x; then
8019 gmplibs="-L$with_gmp_lib $gmplibs"
8020 fi
8021 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8022 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8023 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8024 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8025 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8026 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8027 # Do not test the gmp version. Assume that it is sufficient, since
8028 # it is in the source tree, and the library has not been built yet
8029 # but it would be included on the link line in the version check below
8030 # hence making the test fail.
8031 have_gmp=yes
8032 fi
8033
8034 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8035 have_gmp=yes
8036 saved_CFLAGS="$CFLAGS"
8037 CFLAGS="$CFLAGS $gmpinc"
8038 # Check for the recommended and required versions of GMP.
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8040 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include "gmp.h"
8044 int
8045 main ()
8046 {
8047
8048 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8049 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8050 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8051 choke me
8052 #endif
8053
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #include <gmp.h>
8062 int
8063 main ()
8064 {
8065
8066 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8067 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8068 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8069 choke me
8070 #endif
8071
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078 $as_echo "yes" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8081 $as_echo "buggy but acceptable" >&6; }
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }; have_gmp=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090 # If we have GMP, check the MPFR version.
8091 if test x"$have_gmp" = xyes; then
8092 # Check for the recommended and required versions of MPFR.
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8094 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 #include <gmp.h>
8098 #include <mpfr.h>
8099 int
8100 main ()
8101 {
8102
8103 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8104 choke me
8105 #endif
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <gmp.h>
8115 #include <mpfr.h>
8116 int
8117 main ()
8118 {
8119
8120 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8121 choke me
8122 #endif
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8133 $as_echo "buggy but acceptable" >&6; }
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }; have_gmp=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142
8143 # Check for the MPC header version.
8144 if test x"$have_gmp" = xyes ; then
8145 # Check for the recommended and required versions of MPC.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8147 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <mpc.h>
8151 int
8152 main ()
8153 {
8154
8155 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8156 choke me
8157 #endif
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <mpc.h>
8167 int
8168 main ()
8169 {
8170
8171 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8172 choke me
8173 #endif
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"; then :
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8184 $as_echo "buggy but acceptable" >&6; }
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }; have_gmp=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193
8194 # Now check the MPFR library.
8195 if test x"$have_gmp" = xyes; then
8196 saved_LIBS="$LIBS"
8197 LIBS="$LIBS $gmplibs"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8199 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 #include <mpc.h>
8203 int
8204 main ()
8205 {
8206
8207 mpfr_t n;
8208 mpfr_t x;
8209 mpc_t c;
8210 int t;
8211 mpfr_init (n);
8212 mpfr_init (x);
8213 mpfr_atan2 (n, n, x, MPFR_RNDN);
8214 mpfr_erfc (n, x, MPFR_RNDN);
8215 mpfr_subnormalize (x, t, MPFR_RNDN);
8216 mpfr_clear(n);
8217 mpfr_clear(x);
8218 mpc_init2 (c, 53);
8219 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8220 mpc_cosh (c, c, MPC_RNDNN);
8221 mpc_pow (c, c, c, MPC_RNDNN);
8222 mpc_acosh (c, c, MPC_RNDNN);
8223 mpc_clear (c);
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }; have_gmp=no
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext \
8237 conftest$ac_exeext conftest.$ac_ext
8238 LIBS="$saved_LIBS"
8239 fi
8240
8241 CFLAGS="$saved_CFLAGS"
8242
8243 # The library versions listed in the error message below should match
8244 # the HARD-minimums enforced above.
8245 if test x$have_gmp != xyes; then
8246 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8247 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8248 their locations. Source code for these libraries can be found at
8249 their respective hosting sites as well as at
8250 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8251 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8252 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8253 make sure that you have installed both the libraries and the header
8254 files. They may be located in separate packages." "$LINENO" 5
8255 fi
8256 fi
8257
8258 # Flags needed for both GMP, MPFR and/or MPC.
8259
8260
8261
8262
8263
8264
8265
8266 # Libraries to use for stage1 or when not bootstrapping.
8267
8268 # Check whether --with-stage1-libs was given.
8269 if test "${with_stage1_libs+set}" = set; then :
8270 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8271 stage1_libs=
8272 else
8273 stage1_libs=$withval
8274 fi
8275 else
8276 stage1_libs=
8277 fi
8278
8279
8280
8281 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8282 # default is yes if gcc is being built; no otherwise. The reason for
8283 # this default is that gdb is sometimes linked against GNU Source
8284 # Highlight, which is a shared library that uses C++ exceptions. In
8285 # this case, -static-libstdc++ will cause crashes.
8286
8287 # Check whether --with-static-standard-libraries was given.
8288 if test "${with_static_standard_libraries+set}" = set; then :
8289 withval=$with_static_standard_libraries;
8290 else
8291 with_static_standard_libraries=auto
8292 fi
8293
8294 if test "$with_static_standard_libraries" = auto; then
8295 with_static_standard_libraries=$have_compiler
8296 fi
8297
8298 # Linker flags to use for stage1 or when not bootstrapping.
8299
8300 # Check whether --with-stage1-ldflags was given.
8301 if test "${with_stage1_ldflags+set}" = set; then :
8302 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8303 stage1_ldflags=
8304 else
8305 stage1_ldflags=$withval
8306 fi
8307 else
8308 stage1_ldflags=
8309 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8310 # if supported. But if the user explicitly specified the libraries to use,
8311 # trust that they are doing what they want.
8312 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8313 -a "$have_static_libs" = yes; then
8314 stage1_ldflags="-static-libstdc++ -static-libgcc"
8315 fi
8316 fi
8317
8318
8319
8320 # Libraries to use for stage2 and later builds.
8321
8322 # Check whether --with-boot-libs was given.
8323 if test "${with_boot_libs+set}" = set; then :
8324 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8325 poststage1_libs=
8326 else
8327 poststage1_libs=$withval
8328 fi
8329 else
8330 poststage1_libs=
8331 fi
8332
8333
8334
8335 # Linker flags to use for stage2 and later builds.
8336
8337 # Check whether --with-boot-ldflags was given.
8338 if test "${with_boot_ldflags+set}" = set; then :
8339 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8340 poststage1_ldflags=
8341 else
8342 poststage1_ldflags=$withval
8343 fi
8344 else
8345 poststage1_ldflags=
8346 # In stages 2 and 3, default to linking libstdc++ and libgcc
8347 # statically. But if the user explicitly specified the libraries to
8348 # use, trust that they are doing what they want.
8349 if test "$poststage1_libs" = ""; then
8350 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8351 fi
8352 fi
8353
8354
8355
8356 # GCC GRAPHITE dependency isl.
8357 # Basic setup is inlined here, actual checks are in config/isl.m4
8358
8359
8360 # Check whether --with-isl was given.
8361 if test "${with_isl+set}" = set; then :
8362 withval=$with_isl;
8363 fi
8364
8365
8366 # Treat --without-isl as a request to disable
8367 # GRAPHITE support and skip all following checks.
8368 if test "x$with_isl" != "xno"; then
8369 # Check for isl
8370
8371
8372 # Check whether --with-isl-include was given.
8373 if test "${with_isl_include+set}" = set; then :
8374 withval=$with_isl_include;
8375 fi
8376
8377
8378 # Check whether --with-isl-lib was given.
8379 if test "${with_isl_lib+set}" = set; then :
8380 withval=$with_isl_lib;
8381 fi
8382
8383
8384 # Check whether --enable-isl-version-check was given.
8385 if test "${enable_isl_version_check+set}" = set; then :
8386 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8387 else
8388 ENABLE_ISL_CHECK=yes
8389 fi
8390
8391
8392 # Initialize isllibs and islinc.
8393 case $with_isl in
8394 no)
8395 isllibs=
8396 islinc=
8397 ;;
8398 "" | yes)
8399 ;;
8400 *)
8401 isllibs="-L$with_isl/lib"
8402 islinc="-I$with_isl/include"
8403 ;;
8404 esac
8405 if test "x${with_isl_include}" != x ; then
8406 islinc="-I$with_isl_include"
8407 fi
8408 if test "x${with_isl_lib}" != x; then
8409 isllibs="-L$with_isl_lib"
8410 fi
8411 if test "x${islinc}" = x && test "x${isllibs}" = x \
8412 && test -d ${srcdir}/isl; then
8413 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8414 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8415 ENABLE_ISL_CHECK=no
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8417 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8418 fi
8419
8420 isllibs="${isllibs} -lisl"
8421
8422
8423
8424 if test "${ENABLE_ISL_CHECK}" = yes ; then
8425 _isl_saved_CFLAGS=$CFLAGS
8426 _isl_saved_LDFLAGS=$LDFLAGS
8427 _isl_saved_LIBS=$LIBS
8428
8429 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8430 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8431 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8434 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <isl/schedule.h>
8438 int
8439 main ()
8440 {
8441 isl_options_set_schedule_serialize_sccs (NULL, 0);
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 gcc_cv_isl=yes
8448 else
8449 gcc_cv_isl=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8454 $as_echo "$gcc_cv_isl" >&6; }
8455
8456 if test "${gcc_cv_isl}" = no ; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8458 $as_echo "required isl version is 0.15 or later" >&6; }
8459 fi
8460
8461 CFLAGS=$_isl_saved_CFLAGS
8462 LDFLAGS=$_isl_saved_LDFLAGS
8463 LIBS=$_isl_saved_LIBS
8464 fi
8465
8466
8467
8468
8469
8470
8471 if test "x${with_isl}" = xno; then
8472 graphite_requested=no
8473 elif test "x${with_isl}" != x \
8474 || test "x${with_isl_include}" != x \
8475 || test "x${with_isl_lib}" != x ; then
8476 graphite_requested=yes
8477 else
8478 graphite_requested=no
8479 fi
8480
8481
8482
8483 if test "${gcc_cv_isl}" = no ; then
8484 isllibs=
8485 islinc=
8486 fi
8487
8488 if test "${graphite_requested}" = yes \
8489 && test "x${isllibs}" = x \
8490 && test "x${islinc}" = x ; then
8491
8492 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8493 fi
8494
8495
8496 fi
8497
8498 # If the isl check failed, disable builds of in-tree variant of isl
8499 if test "x$with_isl" = xno ||
8500 test "x$gcc_cv_isl" = xno; then
8501 noconfigdirs="$noconfigdirs isl"
8502 islinc=
8503 fi
8504
8505
8506
8507
8508 # Check for LTO support.
8509 # Check whether --enable-lto was given.
8510 if test "${enable_lto+set}" = set; then :
8511 enableval=$enable_lto; enable_lto=$enableval
8512 else
8513 enable_lto=yes; default_enable_lto=yes
8514 fi
8515
8516
8517
8518
8519
8520 target_elf=no
8521 case $target in
8522 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8523 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8524 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8525 nvptx-*-none)
8526 target_elf=no
8527 ;;
8528 *)
8529 target_elf=yes
8530 ;;
8531 esac
8532
8533 if test $target_elf = yes; then :
8534 # ELF platforms build the lto-plugin always.
8535 build_lto_plugin=yes
8536
8537 else
8538 if test x"$default_enable_lto" = x"yes" ; then
8539 case $target in
8540 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8541 # On other non-ELF platforms, LTO has yet to be validated.
8542 *) enable_lto=no ;;
8543 esac
8544 else
8545 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8546 # It would also be nice to check the binutils support, but we don't
8547 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8548 # warn during gcc/ subconfigure; unless you're bootstrapping with
8549 # -flto it won't be needed until after installation anyway.
8550 case $target in
8551 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8552 *) if test x"$enable_lto" = x"yes"; then
8553 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8554 fi
8555 ;;
8556 esac
8557 fi
8558 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8559 # Build it unless LTO was explicitly disabled.
8560 case $target in
8561 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8562 *) ;;
8563 esac
8564
8565 fi
8566
8567
8568 # Check whether --enable-linker-plugin-configure-flags was given.
8569 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8570 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8571 else
8572 extra_linker_plugin_configure_flags=
8573 fi
8574
8575
8576 # Check whether --enable-linker-plugin-flags was given.
8577 if test "${enable_linker_plugin_flags+set}" = set; then :
8578 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8579 else
8580 extra_linker_plugin_flags=
8581 fi
8582
8583
8584
8585 # Enable --enable-host-shared.
8586 # Checked early to determine whether jit is an 'all' language
8587 # Check whether --enable-host-shared was given.
8588 if test "${enable_host_shared+set}" = set; then :
8589 enableval=$enable_host_shared; host_shared=$enableval
8590 case $host in
8591 x86_64-*-darwin* | aarch64-*-darwin*)
8592 if test x$host_shared != xyes ; then
8593 # PIC is the default, and actually cannot be switched off.
8594 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8595 host_shared=yes
8596 fi ;;
8597 *) ;;
8598 esac
8599 else
8600 case $host in
8601 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8602 *) host_shared=no ;;
8603 esac
8604 fi
8605
8606
8607
8608 # By default, C and C++ are the only stage 1 languages.
8609 stage1_languages=,c,
8610
8611 # Target libraries that we bootstrap.
8612 bootstrap_target_libs=,target-libgcc,
8613
8614 # Figure out what language subdirectories are present.
8615 # Look if the user specified --enable-languages="..."; if not, use
8616 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8617 # go away some day.
8618 # NB: embedded tabs in this IF block -- do not untabify
8619 if test -d ${srcdir}/gcc; then
8620 if test x"${enable_languages+set}" != xset; then
8621 if test x"${LANGUAGES+set}" = xset; then
8622 enable_languages="${LANGUAGES}"
8623 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8624 else
8625 enable_languages=default
8626 fi
8627 else
8628 if test x"${enable_languages}" = x ||
8629 test x"${enable_languages}" = xyes;
8630 then
8631 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8632 exit 1
8633 fi
8634 fi
8635 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8636
8637 # 'f95' is the old name for the 'fortran' language. We issue a warning
8638 # and make the substitution.
8639 case ,${enable_languages}, in
8640 *,f95,*)
8641 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8642 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8643 ;;
8644 esac
8645
8646 # If bootstrapping, C++ must be enabled.
8647 case ",$enable_languages,:$enable_bootstrap" in
8648 *,c++,*:*) ;;
8649 *:yes)
8650 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8651 enable_languages="${enable_languages},c++"
8652 else
8653 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8654 fi
8655 ;;
8656 esac
8657
8658 # First scan to see if an enabled language requires some other language.
8659 # We assume that a given config-lang.in will list all the language
8660 # front ends it requires, even if some are required indirectly.
8661 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8662 case ${lang_frag} in
8663 ..) ;;
8664 # The odd quoting in the next line works around
8665 # an apparent bug in bash 1.12 on linux.
8666 ${srcdir}/gcc/[*]/config-lang.in) ;;
8667 *)
8668 # From the config-lang.in, get $language, $lang_requires, and
8669 # $lang_requires_boot_languages.
8670 language=
8671 lang_requires=
8672 lang_requires_boot_languages=
8673 # set srcdir during sourcing lang_frag to the gcc dir.
8674 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8675 # polutes this shell
8676 saved_srcdir=${srcdir}
8677 srcdir=${srcdir}/gcc . ${lang_frag}
8678 srcdir=${saved_srcdir}
8679 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8680 case ,${enable_languages}, in
8681 *,$other,*) ;;
8682 *,default,*) ;;
8683 *,all,*) ;;
8684 *,$language,*)
8685 echo " \`$other' language required by \`$language'; enabling" 1>&2
8686 enable_languages="${enable_languages},${other}"
8687 ;;
8688 esac
8689 done
8690 for other in ${lang_requires_boot_languages} ; do
8691 if test "$other" != "c"; then
8692 case ,${enable_stage1_languages}, in
8693 *,$other,*) ;;
8694 *,default,*) ;;
8695 *,all,*) ;;
8696 *)
8697 case ,${enable_languages}, in
8698 *,$language,*)
8699 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8700 enable_stage1_languages="$enable_stage1_languages,${other}"
8701 ;;
8702 esac
8703 ;;
8704 esac
8705 fi
8706 done
8707 ;;
8708 esac
8709 done
8710
8711 new_enable_languages=,c,
8712
8713 # If LTO is enabled, add the LTO front end.
8714 if test "$enable_lto" = "yes" ; then
8715 case ,${enable_languages}, in
8716 *,lto,*) ;;
8717 *) enable_languages="${enable_languages},lto" ;;
8718 esac
8719 if test "${build_lto_plugin}" = "yes" ; then
8720 configdirs="$configdirs lto-plugin"
8721 fi
8722 fi
8723
8724 # If we're building an offloading compiler, add the LTO front end.
8725 if test x"$enable_as_accelerator_for" != x ; then
8726 case ,${enable_languages}, in
8727 *,lto,*) ;;
8728 *) enable_languages="${enable_languages},lto" ;;
8729 esac
8730 fi
8731
8732 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8733 potential_languages=,c,
8734
8735 enabled_target_libs=
8736 disabled_target_libs=
8737
8738 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8739 case ${lang_frag} in
8740 ..) ;;
8741 # The odd quoting in the next line works around
8742 # an apparent bug in bash 1.12 on linux.
8743 ${srcdir}/gcc/[*]/config-lang.in) ;;
8744 *)
8745 # From the config-lang.in, get $language, $target_libs,
8746 # $lang_dirs, $boot_language, and $build_by_default
8747 language=
8748 target_libs=
8749 lang_dirs=
8750 subdir_requires=
8751 boot_language=no
8752 build_by_default=yes
8753 # set srcdir during sourcing. See above about save & restore
8754 saved_srcdir=${srcdir}
8755 srcdir=${srcdir}/gcc . ${lang_frag}
8756 srcdir=${saved_srcdir}
8757 if test x${language} = x; then
8758 echo "${lang_frag} doesn't set \$language." 1>&2
8759 exit 1
8760 fi
8761
8762 if test "$language" = "c++"; then
8763 boot_language=yes
8764 fi
8765
8766 add_this_lang=no
8767 # C is always enabled, so no need to add it again
8768 if test "$language" != "c"; then
8769 case ,${enable_languages}, in
8770 *,${language},*)
8771 # Language was explicitly selected; include it
8772 add_this_lang=yes
8773 ;;
8774 *,all,*)
8775 # All languages are enabled
8776 add_this_lang=all
8777 ;;
8778 *,default,*)
8779 # 'default' was selected, select it if it is a default language
8780 add_this_lang=${build_by_default}
8781 ;;
8782 esac
8783 fi
8784
8785 # Disable languages that need other directories if these aren't available.
8786 for i in $subdir_requires; do
8787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8788 case ${add_this_lang} in
8789 yes)
8790 # Specifically requested language; tell them.
8791 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8792 ;;
8793 all)
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8795 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8796 add_this_lang=unsupported
8797 ;;
8798 *)
8799 # Silently disable.
8800 add_this_lang=unsupported
8801 ;;
8802 esac
8803 done
8804
8805 # Disable Ada if no preexisting GNAT is available.
8806 case ${add_this_lang}:${language}:${have_gnat} in
8807 yes:ada:no)
8808 # Specifically requested language; tell them.
8809 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8810 ;;
8811 all:ada:no)
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8813 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8814 add_this_lang=unsupported
8815 ;;
8816 *:ada:no)
8817 # Silently disable.
8818 add_this_lang=unsupported
8819 ;;
8820 esac
8821
8822 # Disable D if no preexisting GDC is available.
8823 case ${add_this_lang}:${language}:${have_gdc} in
8824 yes:d:no)
8825 # Specifically requested language; tell them.
8826 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8827 ;;
8828 all:d:no)
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8830 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8831 add_this_lang=unsupported
8832 ;;
8833 *:d:no)
8834 # Silently disable.
8835 add_this_lang=unsupported
8836 ;;
8837 esac
8838
8839 # Disable jit if -enable-host-shared not specified
8840 # but not if building for Mingw. All code in Windows
8841 # is position independent code (PIC).
8842 case $target in
8843 *mingw*) ;;
8844 *)
8845 case ${add_this_lang}:${language}:${host_shared} in
8846 yes:jit:no)
8847 # PR jit/64780: explicitly specify --enable-host-shared
8848 as_fn_error $? "
8849 Enabling language \"jit\" requires --enable-host-shared.
8850
8851 --enable-host-shared typically slows the rest of the compiler down by
8852 a few %, so you must explicitly enable it.
8853
8854 If you want to build both the jit and the regular compiler, it is often
8855 best to do this via two separate configure/builds, in separate
8856 directories, to avoid imposing the performance cost of
8857 --enable-host-shared on the regular compiler." "$LINENO" 5
8858 ;;
8859 all:jit:no)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8861 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8862 add_this_lang=unsupported
8863 ;;
8864 *:jit:no)
8865 # Silently disable.
8866 add_this_lang=unsupported
8867 ;;
8868 esac
8869 ;;
8870 esac
8871
8872 # Disable a language that is unsupported by the target.
8873 case "${add_this_lang}: $unsupported_languages " in
8874 no:*) ;;
8875 unsupported:*) ;;
8876 *:*" $language "*)
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8878 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8879 add_this_lang=unsupported
8880 ;;
8881 esac
8882
8883 case $add_this_lang in
8884 unsupported)
8885 # Remove language-dependent dirs.
8886 disabled_target_libs="$disabled_target_libs $target_libs"
8887 noconfigdirs="$noconfigdirs $lang_dirs"
8888 ;;
8889 no)
8890 # Remove language-dependent dirs; still show language as supported.
8891 disabled_target_libs="$disabled_target_libs $target_libs"
8892 noconfigdirs="$noconfigdirs $lang_dirs"
8893 potential_languages="${potential_languages}${language},"
8894 ;;
8895 all|yes)
8896 new_enable_languages="${new_enable_languages}${language},"
8897 potential_languages="${potential_languages}${language},"
8898 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8899 enabled_target_libs="$enabled_target_libs $target_libs"
8900 case "${boot_language}:,$enable_stage1_languages," in
8901 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8902 # Add to (comma-separated) list of stage 1 languages.
8903 case ",$stage1_languages," in
8904 *,$language,* | ,yes, | ,all,) ;;
8905 *) stage1_languages="${stage1_languages}${language}," ;;
8906 esac
8907 # We need to bootstrap any supporting libraries.
8908 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8909 ;;
8910 esac
8911 ;;
8912 esac
8913 ;;
8914 esac
8915 done
8916
8917 # Add target libraries which are only needed for disabled languages
8918 # to noconfigdirs.
8919 if test -n "$disabled_target_libs"; then
8920 for dir in $disabled_target_libs; do
8921 case " $enabled_target_libs " in
8922 *" ${dir} "*) ;;
8923 *) noconfigdirs="$noconfigdirs $dir" ;;
8924 esac
8925 done
8926 fi
8927
8928 # Check whether --enable-stage1-languages was given.
8929 if test "${enable_stage1_languages+set}" = set; then :
8930 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8931 ,no,|,,)
8932 # Set it to something that will have no effect in the loop below
8933 enable_stage1_languages=c ;;
8934 ,yes,)
8935 enable_stage1_languages=`echo $new_enable_languages | \
8936 sed -e "s/^,//" -e "s/,$//" ` ;;
8937 *,all,*)
8938 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8939 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8940 esac
8941
8942 # Add "good" languages from enable_stage1_languages to stage1_languages,
8943 # while "bad" languages go in missing_languages. Leave no duplicates.
8944 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8945 case $potential_languages in
8946 *,$i,*)
8947 case $stage1_languages in
8948 *,$i,*) ;;
8949 *) stage1_languages="$stage1_languages$i," ;;
8950 esac ;;
8951 *)
8952 case $missing_languages in
8953 *,$i,*) ;;
8954 *) missing_languages="$missing_languages$i," ;;
8955 esac ;;
8956 esac
8957 done
8958 fi
8959
8960
8961 # Remove leading/trailing commas that were added for simplicity
8962 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8963 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8964 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8965 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8966
8967 if test "x$missing_languages" != x; then
8968 as_fn_error $? "
8969 The following requested languages could not be built: ${missing_languages}
8970 Supported languages are: ${potential_languages}" "$LINENO" 5
8971 fi
8972 if test "x$new_enable_languages" != "x$enable_languages"; then
8973 echo The following languages will be built: ${new_enable_languages}
8974 enable_languages="$new_enable_languages"
8975 fi
8976
8977
8978 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8979 fi
8980
8981 # Handle --disable-<component> generically.
8982 for dir in $configdirs $build_configdirs $target_configdirs ; do
8983 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8984 varname=`echo $dirname | sed -e s/+/_/g`
8985 if eval test x\${enable_${varname}} "=" xno ; then
8986 noconfigdirs="$noconfigdirs $dir"
8987 fi
8988 done
8989
8990 # Check for Boehm's garbage collector
8991 # Check whether --enable-objc-gc was given.
8992 if test "${enable_objc_gc+set}" = set; then :
8993 enableval=$enable_objc_gc;
8994 fi
8995
8996
8997 # Check whether --with-target-bdw-gc was given.
8998 if test "${with_target_bdw_gc+set}" = set; then :
8999 withval=$with_target_bdw_gc;
9000 fi
9001
9002
9003 # Check whether --with-target-bdw-gc-include was given.
9004 if test "${with_target_bdw_gc_include+set}" = set; then :
9005 withval=$with_target_bdw_gc_include;
9006 fi
9007
9008
9009 # Check whether --with-target-bdw-gc-lib was given.
9010 if test "${with_target_bdw_gc_lib+set}" = set; then :
9011 withval=$with_target_bdw_gc_lib;
9012 fi
9013
9014
9015 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9017 $as_echo_n "checking for bdw garbage collector... " >&6; }
9018 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9020 $as_echo "using bdw-gc in default locations" >&6; }
9021 else
9022 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9023 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9024 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9025 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9028 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9029 fi
9030 fi
9031 esac
9032
9033 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9034 case ,${enable_languages}, in
9035 *,c++,*)
9036 # Disable libitm, libsanitizer if we're not building libstdc++
9037 case "${noconfigdirs}" in
9038 *target-libstdc++-v3*)
9039 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9040 ;;
9041 *) ;;
9042 esac
9043 ;;
9044 *)
9045 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9046 ;;
9047 esac
9048
9049 # If gcc/ is not in the source tree then we'll not be building a
9050 # target compiler, assume in that case we don't want to build any
9051 # target libraries or tools.
9052 #
9053 # This was added primarily for the benefit for binutils-gdb who reuse
9054 # this configure script, but don't always have target tools available.
9055 if test ! -d ${srcdir}/gcc; then
9056 skipdirs="${skipdirs} ${target_configdirs}"
9057 fi
9058
9059 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9060 # $build_configdirs and $target_configdirs.
9061 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9062
9063 notsupp=""
9064 for dir in . $skipdirs $noconfigdirs ; do
9065 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9066 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9067 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9068 if test -r $srcdir/$dirname/configure ; then
9069 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9070 true
9071 else
9072 notsupp="$notsupp $dir"
9073 fi
9074 fi
9075 fi
9076 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9077 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9078 if test -r $srcdir/$dirname/configure ; then
9079 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9080 true
9081 else
9082 notsupp="$notsupp $dir"
9083 fi
9084 fi
9085 fi
9086 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9087 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9088 if test -r $srcdir/$dirname/configure ; then
9089 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9090 true
9091 else
9092 notsupp="$notsupp $dir"
9093 fi
9094 fi
9095 fi
9096 done
9097
9098 # Quietly strip out all directories which aren't configurable in this tree.
9099 # This relies on all configurable subdirectories being autoconfiscated, which
9100 # is now the case.
9101 build_configdirs_all="$build_configdirs"
9102 build_configdirs=
9103 for i in ${build_configdirs_all} ; do
9104 j=`echo $i | sed -e s/build-//g`
9105 if test -f ${srcdir}/$j/configure ; then
9106 build_configdirs="${build_configdirs} $i"
9107 fi
9108 done
9109
9110 configdirs_all="$configdirs"
9111 configdirs=
9112 for i in ${configdirs_all} ; do
9113 if test -f ${srcdir}/$i/configure ; then
9114 configdirs="${configdirs} $i"
9115 fi
9116 done
9117
9118 target_configdirs_all="$target_configdirs"
9119 target_configdirs=
9120 for i in ${target_configdirs_all} ; do
9121 j=`echo $i | sed -e s/target-//g`
9122 if test -f ${srcdir}/$j/configure ; then
9123 target_configdirs="${target_configdirs} $i"
9124 fi
9125 done
9126
9127 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9128 # so we have to add it after the preceding checks.
9129 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9130 then
9131 case " $configdirs " in
9132 *" libiberty "*)
9133 # If we can build libiberty, we can also build libiberty-linker-plugin.
9134 configdirs="$configdirs libiberty-linker-plugin"
9135 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9136 --with-libiberty=../libiberty-linker-plugin";;
9137 *)
9138 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9139 esac
9140 fi
9141
9142 # Sometimes we have special requirements for the host libiberty.
9143 extra_host_libiberty_configure_flags=
9144 case " $configdirs " in
9145 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9146 # When these are to be built as shared libraries, the same applies to
9147 # libiberty.
9148 extra_host_libiberty_configure_flags=--enable-shared
9149 ;;
9150 esac
9151
9152
9153 # Sometimes we have special requirements for the host zlib.
9154 extra_host_zlib_configure_flags=
9155 case " $configdirs " in
9156 *" bfd "*)
9157 # When bfd is to be built as a shared library, the same applies to
9158 # zlib.
9159 if test "$enable_shared" = "yes"; then
9160 extra_host_zlib_configure_flags=--enable-host-shared
9161 fi
9162 ;;
9163 esac
9164
9165
9166 # Produce a warning message for the subdirs we can't configure.
9167 # This isn't especially interesting in the Cygnus tree, but in the individual
9168 # FSF releases, it's important to let people know when their machine isn't
9169 # supported by the one or two programs in a package.
9170
9171 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9172 # If $appdirs is non-empty, at least one of those directories must still
9173 # be configured, or we error out. (E.g., if the gas release supports a
9174 # specified target in some subdirs but not the gas subdir, we shouldn't
9175 # pretend that all is well.)
9176 if test -n "$appdirs" ; then
9177 for dir in $appdirs ; do
9178 if test -r $dir/Makefile.in ; then
9179 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9180 appdirs=""
9181 break
9182 fi
9183 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9184 appdirs=""
9185 break
9186 fi
9187 fi
9188 done
9189 if test -n "$appdirs" ; then
9190 echo "*** This configuration is not supported by this package." 1>&2
9191 exit 1
9192 fi
9193 fi
9194 # Okay, some application will build, or we don't care to check. Still
9195 # notify of subdirs not getting built.
9196 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9197 echo " ${notsupp}" 1>&2
9198 echo " (Any other directories should still work fine.)" 1>&2
9199 fi
9200
9201 case "$host" in
9202 *msdosdjgpp*)
9203 enable_gdbtk=no ;;
9204 esac
9205
9206 # To find our prefix, in gcc_cv_tool_prefix.
9207
9208 # The user is always right.
9209 if test "${PATH_SEPARATOR+set}" != set; then
9210 echo "#! /bin/sh" >conf$$.sh
9211 echo "exit 0" >>conf$$.sh
9212 chmod +x conf$$.sh
9213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9214 PATH_SEPARATOR=';'
9215 else
9216 PATH_SEPARATOR=:
9217 fi
9218 rm -f conf$$.sh
9219 fi
9220
9221
9222 get_gcc_base_ver="cat"
9223
9224 # Check whether --with-gcc-major-version-only was given.
9225 if test "${with_gcc_major_version_only+set}" = set; then :
9226 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9227 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9228 fi
9229
9230 fi
9231
9232
9233
9234
9235
9236
9237 if test "x$exec_prefix" = xNONE; then
9238 if test "x$prefix" = xNONE; then
9239 gcc_cv_tool_prefix=$ac_default_prefix
9240 else
9241 gcc_cv_tool_prefix=$prefix
9242 fi
9243 else
9244 gcc_cv_tool_prefix=$exec_prefix
9245 fi
9246
9247 # If there is no compiler in the tree, use the PATH only. In any
9248 # case, if there is no compiler in the tree nobody should use
9249 # AS_FOR_TARGET and LD_FOR_TARGET.
9250 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9251 if test x$with_gcc_major_version_only = xyes ; then
9252 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9253 else
9254 gcc_version=`cat $srcdir/gcc/BASE-VER`
9255 fi
9256 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9257 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9258 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9259 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9260 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9261 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9262 else
9263 gcc_cv_tool_dirs=
9264 fi
9265
9266 if test x$build = x$target && test -n "$md_exec_prefix"; then
9267 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9268 fi
9269
9270
9271
9272 copy_dirs=
9273
9274
9275 # Check whether --with-build-sysroot was given.
9276 if test "${with_build_sysroot+set}" = set; then :
9277 withval=$with_build_sysroot; if test x"$withval" != x ; then
9278 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9279 fi
9280 else
9281 SYSROOT_CFLAGS_FOR_TARGET=
9282 fi
9283
9284
9285
9286
9287 # Check whether --with-debug-prefix-map was given.
9288 if test "${with_debug_prefix_map+set}" = set; then :
9289 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9290 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9291 for debug_map in $withval; do
9292 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9293 done
9294 fi
9295 else
9296 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9297 fi
9298
9299
9300
9301 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9302 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9303 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9304 # We want to ensure that TARGET libraries (which we know are built with
9305 # gcc) are built with "-O2 -g", so include those options when setting
9306 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9307 if test "x$CFLAGS_FOR_TARGET" = x; then
9308 if test "x${is_cross_compiler}" = xyes; then
9309 CFLAGS_FOR_TARGET="-g -O2"
9310 else
9311 CFLAGS_FOR_TARGET=$CFLAGS
9312 case " $CFLAGS " in
9313 *" -O2 "*) ;;
9314 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9315 esac
9316 case " $CFLAGS " in
9317 *" -g "* | *" -g3 "*) ;;
9318 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9319 esac
9320 fi
9321 fi
9322
9323
9324 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9325 if test "x${is_cross_compiler}" = xyes; then
9326 CXXFLAGS_FOR_TARGET="-g -O2"
9327 else
9328 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9329 case " $CXXFLAGS " in
9330 *" -O2 "*) ;;
9331 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9332 esac
9333 case " $CXXFLAGS " in
9334 *" -g "* | *" -g3 "*) ;;
9335 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9336 esac
9337 fi
9338 fi
9339
9340
9341
9342
9343 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9344 # the named directory are copied to $(tooldir)/sys-include.
9345 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9346 if test x${is_cross_compiler} = xno ; then
9347 echo 1>&2 '***' --with-headers is only supported when cross compiling
9348 exit 1
9349 fi
9350 if test x"${with_headers}" != xyes ; then
9351 x=${gcc_cv_tool_prefix}
9352 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9353 fi
9354 fi
9355
9356 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9357 # the name directories are copied to $(tooldir)/lib. Multiple directories
9358 # are permitted.
9359 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9360 if test x${is_cross_compiler} = xno ; then
9361 echo 1>&2 '***' --with-libs is only supported when cross compiling
9362 exit 1
9363 fi
9364 if test x"${with_libs}" != xyes ; then
9365 # Copy the libraries in reverse order, so that files in the first named
9366 # library override files in subsequent libraries.
9367 x=${gcc_cv_tool_prefix}
9368 for l in ${with_libs}; do
9369 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9370 done
9371 fi
9372 fi
9373
9374 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9375 #
9376 # This is done by determining whether or not the appropriate directory
9377 # is available, and by checking whether or not specific configurations
9378 # have requested that this magic not happen.
9379 #
9380 # The command line options always override the explicit settings in
9381 # configure.ac, and the settings in configure.ac override this magic.
9382 #
9383 # If the default for a toolchain is to use GNU as and ld, and you don't
9384 # want to do that, then you should use the --without-gnu-as and
9385 # --without-gnu-ld options for the configure script. Similarly, if
9386 # the default is to use the included zlib and you don't want to do that,
9387 # you should use the --with-system-zlib option for the configure script.
9388
9389 if test x${use_gnu_as} = x &&
9390 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9391 with_gnu_as=yes
9392 extra_host_args="$extra_host_args --with-gnu-as"
9393 fi
9394
9395 if test x${use_gnu_ld} = x &&
9396 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9397 with_gnu_ld=yes
9398 extra_host_args="$extra_host_args --with-gnu-ld"
9399 fi
9400
9401 if test x${use_included_zlib} = x &&
9402 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9403 :
9404 else
9405 with_system_zlib=yes
9406 extra_host_args="$extra_host_args --with-system-zlib"
9407 fi
9408
9409 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9410 # can detect this case.
9411
9412 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9413 with_newlib=yes
9414 extra_host_args="$extra_host_args --with-newlib"
9415 fi
9416
9417 # Handle ${copy_dirs}
9418 set fnord ${copy_dirs}
9419 shift
9420 while test $# != 0 ; do
9421 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9422 :
9423 else
9424 echo Copying $1 to $2
9425
9426 # Use the install script to create the directory and all required
9427 # parent directories.
9428 if test -d $2 ; then
9429 :
9430 else
9431 echo >config.temp
9432 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9433 fi
9434
9435 # Copy the directory, assuming we have tar.
9436 # FIXME: Should we use B in the second tar? Not all systems support it.
9437 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9438
9439 # It is the responsibility of the user to correctly adjust all
9440 # symlinks. If somebody can figure out how to handle them correctly
9441 # here, feel free to add the code.
9442
9443 echo $1 > $2/COPIED
9444 fi
9445 shift; shift
9446 done
9447
9448 # Determine a target-dependent exec_prefix that the installed
9449 # gcc will search in. Keep this list sorted by triplet, with
9450 # the *-*-osname triplets last.
9451 md_exec_prefix=
9452 case "${target}" in
9453 i[34567]86-pc-msdosdjgpp*)
9454 md_exec_prefix=/dev/env/DJDIR/bin
9455 ;;
9456 *-*-hpux* | \
9457 *-*-nto-qnx* | \
9458 *-*-solaris2*)
9459 md_exec_prefix=/usr/ccs/bin
9460 ;;
9461 esac
9462
9463 extra_arflags_for_target=
9464 extra_nmflags_for_target=
9465 extra_ranlibflags_for_target=
9466 target_makefile_frag=/dev/null
9467 case "${target}" in
9468 spu-*-*)
9469 target_makefile_frag="config/mt-spu"
9470 ;;
9471 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9472 target_makefile_frag="config/mt-sde"
9473 ;;
9474 mipsisa*-*-elfoabi*)
9475 target_makefile_frag="config/mt-mips-elfoabi"
9476 ;;
9477 mips*-*-*linux* | mips*-*-gnu*)
9478 target_makefile_frag="config/mt-mips-gnu"
9479 ;;
9480 nios2-*-elf*)
9481 target_makefile_frag="config/mt-nios2-elf"
9482 ;;
9483 *-*-linux-android*)
9484 target_makefile_frag="config/mt-android"
9485 ;;
9486 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9487 target_makefile_frag="config/mt-gnu"
9488 ;;
9489 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9490 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9491 # commands to handle both 32-bit and 64-bit objects. These flags are
9492 # harmless if we're using GNU nm or ar.
9493 extra_arflags_for_target=" -X32_64"
9494 extra_nmflags_for_target=" -B -X32_64"
9495 ;;
9496 esac
9497
9498 alphaieee_frag=/dev/null
9499 case $target in
9500 alpha*-*-*)
9501 # This just makes sure to use the -mieee option to build target libs.
9502 # This should probably be set individually by each library.
9503 alphaieee_frag="config/mt-alphaieee"
9504 ;;
9505 esac
9506
9507 # If --enable-target-optspace always use -Os instead of -O2 to build
9508 # the target libraries, similarly if it is not specified, use -Os
9509 # on selected platforms.
9510 ospace_frag=/dev/null
9511 case "${enable_target_optspace}:${target}" in
9512 yes:*)
9513 ospace_frag="config/mt-ospace"
9514 ;;
9515 :d30v-*)
9516 ospace_frag="config/mt-d30v"
9517 ;;
9518 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9519 ospace_frag="config/mt-ospace"
9520 ;;
9521 no:* | :*)
9522 ;;
9523 *)
9524 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9525 ;;
9526 esac
9527
9528 # Some systems (e.g., one of the i386-aix systems the gas testers are
9529 # using) don't handle "\$" correctly, so don't use it here.
9530 tooldir='${exec_prefix}'/${target_noncanonical}
9531 build_tooldir=${tooldir}
9532
9533 # Create a .gdbinit file which runs the one in srcdir
9534 # and tells GDB to look there for source files.
9535
9536 if test -r ${srcdir}/.gdbinit ; then
9537 case ${srcdir} in
9538 .) ;;
9539 *) cat > ./.gdbinit <<EOF
9540 # ${NO_EDIT}
9541 dir ${srcdir}
9542 dir .
9543 source ${srcdir}/.gdbinit
9544 EOF
9545 ;;
9546 esac
9547 fi
9548
9549 # Make sure that the compiler is able to generate an executable. If it
9550 # can't, we are probably in trouble. We don't care whether we can run the
9551 # executable--we might be using a cross compiler--we only care whether it
9552 # can be created. At this point the main configure script has set CC.
9553 we_are_ok=no
9554 echo "int main () { return 0; }" > conftest.c
9555 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9556 if test $? = 0 ; then
9557 if test -s conftest || test -s conftest.exe ; then
9558 we_are_ok=yes
9559 fi
9560 fi
9561 case $we_are_ok in
9562 no)
9563 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9564 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9565 rm -f conftest*
9566 exit 1
9567 ;;
9568 esac
9569 rm -f conftest*
9570
9571 # Decide which environment variable is used to find dynamic libraries.
9572 case "${host}" in
9573 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9574 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9575 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9576 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9577 esac
9578
9579 # On systems where the dynamic library environment variable is PATH,
9580 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9581 # built executables to PATH.
9582 if test "$RPATH_ENVVAR" = PATH; then
9583 GCC_SHLIB_SUBDIR=/shlib
9584 else
9585 GCC_SHLIB_SUBDIR=
9586 fi
9587
9588 # Adjust the toplevel makefile according to whether bootstrap was selected.
9589 case $enable_bootstrap in
9590 yes)
9591 bootstrap_suffix=bootstrap
9592 BUILD_CONFIG=bootstrap-debug
9593 ;;
9594 no)
9595 bootstrap_suffix=no-bootstrap
9596 BUILD_CONFIG=
9597 ;;
9598 esac
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9601 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9602
9603
9604 # Check whether --with-build-config was given.
9605 if test "${with_build_config+set}" = set; then :
9606 withval=$with_build_config; case $with_build_config in
9607 yes) with_build_config= ;;
9608 no) with_build_config= BUILD_CONFIG= ;;
9609 esac
9610 fi
9611
9612
9613 if test "x${with_build_config}" != x; then
9614 BUILD_CONFIG=$with_build_config
9615 else
9616 case $BUILD_CONFIG in
9617 bootstrap-debug)
9618 if echo "int f (void) { return 0; }" > conftest.c &&
9619 ${CC} -c conftest.c &&
9620 mv conftest.o conftest.o.g0 &&
9621 ${CC} -c -g conftest.c &&
9622 mv conftest.o conftest.o.g &&
9623 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9624 :
9625 else
9626 BUILD_CONFIG=
9627 fi
9628 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9629 ;;
9630 esac
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9633 $as_echo "$BUILD_CONFIG" >&6; }
9634
9635
9636 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9638 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9639 # Check whether --enable-vtable-verify was given.
9640 if test "${enable_vtable_verify+set}" = set; then :
9641 enableval=$enable_vtable_verify; case "$enableval" in
9642 yes) enable_vtable_verify=yes ;;
9643 no) enable_vtable_verify=no ;;
9644 *) enable_vtable_verify=no;;
9645 esac
9646 else
9647 enable_vtable_verify=no
9648 fi
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9651 $as_echo "$enable_vtable_verify" >&6; }
9652
9653 # Record target_configdirs and the configure arguments for target and
9654 # build configuration in Makefile.
9655 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9656 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9657 bootstrap_fixincludes=no
9658
9659 # If we are building libgomp, bootstrap it.
9660 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9661 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9662 fi
9663
9664 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9665 # or bootstrap-ubsan, bootstrap it.
9666 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9667 case "$BUILD_CONFIG" in
9668 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9669 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9670 bootstrap_fixincludes=yes
9671 ;;
9672 esac
9673 fi
9674
9675 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9676 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9677 test "$enable_vtable_verify" != no; then
9678 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9679 fi
9680
9681 # If we are building libatomic and the list of enabled languages includes the
9682 # D frontend, bootstrap it.
9683 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9684 case ,${enable_languages}, in
9685 *,d,*)
9686 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9687 ;;
9688 esac
9689 fi
9690
9691 # Determine whether gdb needs tk/tcl or not.
9692 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9693 # and in that case we want gdb to be built without tk. Ugh!
9694 # In fact I believe gdb is the *only* package directly dependent on tk,
9695 # so we should be able to put the 'maybe's in unconditionally and
9696 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9697 # 100% sure that that's safe though.
9698
9699 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9700 case "$enable_gdbtk" in
9701 no)
9702 GDB_TK="" ;;
9703 yes)
9704 GDB_TK="${gdb_tk}" ;;
9705 *)
9706 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9707 # distro. Eventually someone will fix this and move Insight, nee
9708 # gdbtk to a separate directory.
9709 if test -d ${srcdir}/gdb/gdbtk ; then
9710 GDB_TK="${gdb_tk}"
9711 else
9712 GDB_TK=""
9713 fi
9714 ;;
9715 esac
9716 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9717 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9718
9719 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9720 # else does, only include them if one of these is built. The Makefile
9721 # provides the ordering, so it's enough here to add to the list.
9722 case " ${configdirs} " in
9723 *\ gdb\ *)
9724 configdirs="${configdirs} gnulib gdbsupport"
9725 ;;
9726 *\ gdbserver\ *)
9727 configdirs="${configdirs} gnulib gdbsupport"
9728 ;;
9729 *\ sim\ *)
9730 configdirs="${configdirs} gnulib"
9731 ;;
9732 esac
9733
9734 # Strip out unwanted targets.
9735
9736 # While at that, we remove Makefiles if we were started for recursive
9737 # configuration, so that the top-level Makefile reconfigures them,
9738 # like we used to do when configure itself was recursive.
9739
9740 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9741 # but now we're fixing up the Makefile ourselves with the additional
9742 # commands passed to AC_CONFIG_FILES. Use separate variables
9743 # extrasub-{build,host,target} not because there is any reason to split
9744 # the substitutions up that way, but only to remain below the limit of
9745 # 99 commands in a script, for HP-UX sed.
9746
9747 # Do not nest @if/@endif or @unless/@endunless pairs, because
9748 # configure will not warn you at all.
9749
9750 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9751 yes:yes:*\ gold\ *:*,c++,*) ;;
9752 yes:yes:*\ gold\ *:*)
9753 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9754 ;;
9755 esac
9756
9757 extrasub_build=
9758 for module in ${build_configdirs} ; do
9759 if test -z "${no_recursion}" \
9760 && test -f ${build_subdir}/${module}/Makefile; then
9761 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9762 rm -f ${build_subdir}/${module}/Makefile
9763 fi
9764 extrasub_build="$extrasub_build
9765 /^@if build-$module\$/d
9766 /^@endif build-$module\$/d
9767 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9768 /^@if build-$module-$bootstrap_suffix\$/d
9769 /^@endif build-$module-$bootstrap_suffix\$/d
9770 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9771 done
9772 extrasub_host=
9773 for module in ${configdirs} ; do
9774 if test -z "${no_recursion}"; then
9775 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9776 if test -f ${file}; then
9777 echo 1>&2 "*** removing ${file} to force reconfigure"
9778 rm -f ${file}
9779 fi
9780 done
9781 fi
9782 case ${module},${bootstrap_fixincludes} in
9783 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9784 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9785 esac
9786 extrasub_host="$extrasub_host
9787 /^@if $module\$/d
9788 /^@endif $module\$/d
9789 /^@unless $module\$/,/^@endunless $module\$/d
9790 /^@if $module-$host_bootstrap_suffix\$/d
9791 /^@endif $module-$host_bootstrap_suffix\$/d
9792 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9793 done
9794 extrasub_target=
9795 for module in ${target_configdirs} ; do
9796 if test -z "${no_recursion}" \
9797 && test -f ${target_subdir}/${module}/Makefile; then
9798 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9799 rm -f ${target_subdir}/${module}/Makefile
9800 fi
9801
9802 # We only bootstrap target libraries listed in bootstrap_target_libs.
9803 case $bootstrap_target_libs in
9804 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9805 *) target_bootstrap_suffix=no-bootstrap ;;
9806 esac
9807
9808 extrasub_target="$extrasub_target
9809 /^@if target-$module\$/d
9810 /^@endif target-$module\$/d
9811 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9812 /^@if target-$module-$target_bootstrap_suffix\$/d
9813 /^@endif target-$module-$target_bootstrap_suffix\$/d
9814 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9815 done
9816
9817 # Do the final fixup along with target modules.
9818 extrasub_target="$extrasub_target
9819 /^@if /,/^@endif /d
9820 /^@unless /d
9821 /^@endunless /d"
9822
9823 if test "$enable_pgo_build" != "no"; then
9824 extrasub_build="$extrasub_build
9825 /^@if pgo-build\$/d
9826 /^@endif pgo-build\$/d"
9827 fi
9828
9829 # Create the serialization dependencies. This uses a temporary file.
9830
9831 # Check whether --enable-serial-configure was given.
9832 if test "${enable_serial_configure+set}" = set; then :
9833 enableval=$enable_serial_configure;
9834 fi
9835
9836
9837 case ${enable_serial_configure} in
9838 yes)
9839 enable_serial_build_configure=yes
9840 enable_serial_host_configure=yes
9841 enable_serial_target_configure=yes
9842 ;;
9843 esac
9844
9845 # These force 'configure's to be done one at a time, to avoid problems
9846 # with contention over a shared config.cache.
9847 rm -f serdep.tmp
9848 echo '# serdep.tmp' > serdep.tmp
9849 olditem=
9850 test "x${enable_serial_build_configure}" = xyes &&
9851 for item in ${build_configdirs} ; do
9852 case ${olditem} in
9853 "") ;;
9854 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9855 esac
9856 olditem=${item}
9857 done
9858 olditem=
9859 test "x${enable_serial_host_configure}" = xyes &&
9860 for item in ${configdirs} ; do
9861 case ${olditem} in
9862 "") ;;
9863 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9864 esac
9865 olditem=${item}
9866 done
9867 olditem=
9868 test "x${enable_serial_target_configure}" = xyes &&
9869 for item in ${target_configdirs} ; do
9870 case ${olditem} in
9871 "") ;;
9872 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9873 esac
9874 olditem=${item}
9875 done
9876 serialization_dependencies=serdep.tmp
9877
9878
9879 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9880 # target, nonopt, and variable assignments. These are the ones we
9881 # might not want to pass down to subconfigures. The exception being
9882 # --cache-file=/dev/null, which is used to turn off the use of cache
9883 # files altogether, and which should be passed on to subconfigures.
9884 # Also strip program-prefix, program-suffix, and program-transform-name,
9885 # so that we can pass down a consistent program-transform-name.
9886 baseargs=
9887 tbaseargs=
9888 keep_next=no
9889 skip_next=no
9890 eval "set -- $ac_configure_args"
9891 for ac_arg
9892 do
9893 if test X"$skip_next" = X"yes"; then
9894 skip_next=no
9895 continue
9896 fi
9897 if test X"$keep_next" = X"yes"; then
9898 case $ac_arg in
9899 *\'*)
9900 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9901 esac
9902 baseargs="$baseargs '$ac_arg'"
9903 tbaseargs="$tbaseargs '$ac_arg'"
9904 keep_next=no
9905 continue
9906 fi
9907
9908 # Handle separated arguments. Based on the logic generated by
9909 # autoconf 2.59.
9910 case $ac_arg in
9911 *=* | --config-cache | -C | -disable-* | --disable-* \
9912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9914 | -with-* | --with-* | -without-* | --without-* | --x)
9915 separate_arg=no
9916 ;;
9917 -*)
9918 separate_arg=yes
9919 ;;
9920 *)
9921 separate_arg=no
9922 ;;
9923 esac
9924
9925 skip_targ=no
9926 case $ac_arg in
9927
9928 --with-* | --without-*)
9929 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9930
9931 case $libopt in
9932 *[-_]include)
9933 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9934 ;;
9935 *[-_]lib)
9936 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9937 ;;
9938 *)
9939 lib=$libopt
9940 ;;
9941 esac
9942
9943
9944 case $lib in
9945 mpc | mpfr | gmp | isl)
9946 # If we're processing --with-$lib, --with-$lib-include or
9947 # --with-$lib-lib, for one of the libs above, and target is
9948 # different from host, don't pass the current argument to any
9949 # target library's configure.
9950 if test x$is_cross_compiler = xyes; then
9951 skip_targ=yes
9952 fi
9953 ;;
9954 esac
9955 ;;
9956 esac
9957
9958 case "$ac_arg" in
9959 --cache-file=/dev/null | \
9960 -cache-file=/dev/null )
9961 # Handled here to avoid the test to skip args below.
9962 baseargs="$baseargs '$ac_arg'"
9963 tbaseargs="$tbaseargs '$ac_arg'"
9964 # Assert: $separate_arg should always be no.
9965 keep_next=$separate_arg
9966 ;;
9967 --no*)
9968 continue
9969 ;;
9970 --c* | \
9971 --sr* | \
9972 --ho* | \
9973 --bu* | \
9974 --t* | \
9975 --program-* | \
9976 -cache_file* | \
9977 -srcdir* | \
9978 -host* | \
9979 -build* | \
9980 -target* | \
9981 -program-prefix* | \
9982 -program-suffix* | \
9983 -program-transform-name* )
9984 skip_next=$separate_arg
9985 continue
9986 ;;
9987 -*)
9988 # An option. Add it.
9989 case $ac_arg in
9990 *\'*)
9991 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9992 esac
9993 baseargs="$baseargs '$ac_arg'"
9994 if test X"$skip_targ" = Xno; then
9995 tbaseargs="$tbaseargs '$ac_arg'"
9996 fi
9997 keep_next=$separate_arg
9998 ;;
9999 *)
10000 # Either a variable assignment, or a nonopt (triplet). Don't
10001 # pass it down; let the Makefile handle this.
10002 continue
10003 ;;
10004 esac
10005 done
10006 # Remove the initial space we just introduced and, as these will be
10007 # expanded by make, quote '$'.
10008 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10009
10010 # Add in --program-transform-name, after --program-prefix and
10011 # --program-suffix have been applied to it. Autoconf has already
10012 # doubled dollar signs and backslashes in program_transform_name; we want
10013 # the backslashes un-doubled, and then the entire thing wrapped in single
10014 # quotes, because this will be expanded first by make and then by the shell.
10015 # Also, because we want to override the logic in subdir configure scripts to
10016 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10017 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10018 ${program_transform_name}
10019 EOF_SED
10020 gcc_transform_name=`cat conftestsed.out`
10021 rm -f conftestsed.out
10022 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10023 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10024 if test "$silent" = yes; then
10025 baseargs="$baseargs --silent"
10026 tbaseargs="$tbaseargs --silent"
10027 fi
10028
10029 baseargs="$baseargs --disable-option-checking"
10030 tbaseargs="$tbaseargs --disable-option-checking"
10031
10032 if test "$enable_year2038" = no; then
10033 baseargs="$baseargs --disable-year2038"
10034 tbaseargs="$tbaseargs --disable-year2038"
10035 fi
10036
10037 # Record and document user additions to sub configure arguments.
10038
10039
10040
10041
10042 # For the build-side libraries, we just need to pretend we're native,
10043 # and not use the same cache file. Multilibs are neither needed nor
10044 # desired. We can't even use the same cache file for all build-side
10045 # libraries, as they're compiled differently; some with C, some with
10046 # C++ or with different feature-enabling options.
10047 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10048
10049 # For host modules, accept cache file option, or specification as blank.
10050 case "${cache_file}" in
10051 "") # empty
10052 cache_file_option="" ;;
10053 /* | [A-Za-z]:[\\/]* ) # absolute path
10054 cache_file_option="--cache-file=${cache_file}" ;;
10055 *) # relative path
10056 cache_file_option="--cache-file=../${cache_file}" ;;
10057 esac
10058
10059 # Host dirs don't like to share a cache file either, horribly enough.
10060 # This seems to be due to autoconf 2.5x stupidity.
10061 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10062
10063 target_configargs="$target_configargs ${tbaseargs}"
10064
10065 # Passing a --with-cross-host argument lets the target libraries know
10066 # whether they are being built with a cross-compiler or being built
10067 # native. However, it would be better to use other mechanisms to make the
10068 # sorts of decisions they want to make on this basis. Please consider
10069 # this option to be deprecated. FIXME.
10070 if test x${is_cross_compiler} = xyes ; then
10071 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10072 fi
10073
10074 # Special user-friendly check for native x86_64-linux build, if
10075 # multilib is not explicitly enabled.
10076 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10077 x86_64-*linux*:yes:$build:$build:)
10078 # Make sure we have a development environment that handles 32-bit
10079 dev64=no
10080 echo "int main () { return 0; }" > conftest.c
10081 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10082 if test $? = 0 ; then
10083 if test -s conftest || test -s conftest.exe ; then
10084 dev64=yes
10085 fi
10086 fi
10087 rm -f conftest*
10088 if test x${dev64} != xyes ; then
10089 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
10090 fi
10091 ;;
10092 esac
10093
10094 # Default to --enable-multilib.
10095 if test x${enable_multilib} = x ; then
10096 target_configargs="--enable-multilib ${target_configargs}"
10097 fi
10098
10099 # Pass --with-newlib if appropriate. Note that target_configdirs has
10100 # changed from the earlier setting of with_newlib.
10101 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10102 target_configargs="--with-newlib ${target_configargs}"
10103 fi
10104
10105 # Different target subdirs use different values of certain variables
10106 # (notably CXX). Worse, multilibs use *lots* of different values.
10107 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10108 # it doesn't automatically accept command-line overrides of them.
10109 # This means it's not safe for target subdirs to share a cache file,
10110 # which is disgusting, but there you have it. Hopefully this can be
10111 # fixed in future. It's still worthwhile to use a cache file for each
10112 # directory. I think.
10113
10114 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10115 # We need to pass --target, as newer autoconf's requires consistency
10116 # for target_alias and gcc doesn't manage it consistently.
10117 target_configargs="--cache-file=./config.cache ${target_configargs}"
10118
10119 FLAGS_FOR_TARGET=
10120 case " $target_configdirs " in
10121 *" newlib "*)
10122 case " $target_configargs " in
10123 *" --with-newlib "*)
10124 case "$target" in
10125 *-cygwin*)
10126 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10127 ;;
10128 esac
10129
10130 # If we're not building GCC, don't discard standard headers.
10131 if test -d ${srcdir}/gcc; then
10132 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10133
10134 if test "${build}" != "${host}"; then
10135 # On Canadian crosses, CC_FOR_TARGET will have already been set
10136 # by `configure', so we won't have an opportunity to add -Bgcc/
10137 # to it. This is right: we don't want to search that directory
10138 # for binaries, but we want the header files in there, so add
10139 # them explicitly.
10140 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10141
10142 # Someone might think of using the pre-installed headers on
10143 # Canadian crosses, in case the installed compiler is not fully
10144 # compatible with the compiler being built. In this case, it
10145 # would be better to flag an error than risking having
10146 # incompatible object files being constructed. We can't
10147 # guarantee that an error will be flagged, but let's hope the
10148 # compiler will do it, when presented with incompatible header
10149 # files.
10150 fi
10151 fi
10152
10153 case "${target}-${is_cross_compiler}" in
10154 i[3456789]86-*-linux*-no)
10155 # Here host == target, so we don't need to build gcc,
10156 # so we don't want to discard standard headers.
10157 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10158 ;;
10159 *)
10160 # If we're building newlib, use its generic headers last, but search
10161 # for any libc-related directories first (so make it the last -B
10162 # switch).
10163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10164
10165 # If we're building libgloss, find the startup file, simulator library
10166 # and linker script.
10167 case " $target_configdirs " in
10168 *" libgloss "*)
10169 # Look for startup file, simulator library and maybe linker script.
10170 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10171 # Look for libnosys.a in case the target needs it.
10172 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10173 # Most targets have the linker script in the source directory.
10174 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10175 ;;
10176 esac
10177 ;;
10178 esac
10179 ;;
10180 esac
10181 ;;
10182 esac
10183
10184 case "$target" in
10185 x86_64-*mingw* | *-w64-mingw*)
10186 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10187 # however, use a symlink named 'mingw' in ${prefix} .
10188 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10189 ;;
10190 *-mingw*)
10191 # MinGW can't be handled as Cygwin above since it does not use newlib.
10192 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'
10193 ;;
10194 esac
10195
10196 # Allow the user to override the flags for
10197 # our build compiler if desired.
10198 if test x"${build}" = x"${host}" ; then
10199 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10200 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10201 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10202 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10203 fi
10204
10205 # On Canadian crosses, we'll be searching the right directories for
10206 # the previously-installed cross compiler, so don't bother to add
10207 # flags for directories within the install tree of the compiler
10208 # being built; programs in there won't even run.
10209 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10210 # Search for pre-installed headers if nothing else fits.
10211 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10212 fi
10213
10214 if test "x${use_gnu_ld}" = x &&
10215 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10216 # Arrange for us to find uninstalled linker scripts.
10217 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10218 fi
10219
10220 # Search for other target-specific linker scripts and such.
10221 case "${target}" in
10222 mep*)
10223 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10224 ;;
10225 # The VxWorks support for shared libraries is getting in
10226 # incrementally. Make sure it doesn't get activated implicitly:
10227 *vxworks*)
10228 if test "${enable_shared-unset}" = unset ; then
10229 enable_shared=no
10230 # So the build of libraries knows ...
10231 target_configargs="${target_configargs} --disable-shared"
10232 # So gcc knows ...
10233 host_configargs="${host_configargs} --disable-shared"
10234 fi
10235 ;;
10236 esac
10237
10238 # Makefile fragments.
10239 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10240 do
10241 eval fragval=\$$frag
10242 if test $fragval != /dev/null; then
10243 eval $frag=${srcdir}/$fragval
10244 fi
10245 done
10246
10247
10248
10249
10250
10251 # Miscellanea: directories, flags, etc.
10252
10253
10254
10255
10256
10257
10258
10259
10260 # Build module lists & subconfigure args.
10261
10262
10263
10264 # Host module lists & subconfigure args.
10265
10266
10267
10268
10269 # Target module lists & subconfigure args.
10270
10271
10272
10273 # Build tools.
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294 # Generate default definitions for YACC, M4, LEX and other programs that run
10295 # on the build machine. These are used if the Makefile can't locate these
10296 # programs in objdir.
10297 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10298
10299 for ac_prog in 'bison -y' byacc yacc
10300 do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_prog_YACC+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 if test -n "$YACC"; then
10309 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10310 else
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_YACC="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322 done
10323 done
10324 IFS=$as_save_IFS
10325
10326 fi
10327 fi
10328 YACC=$ac_cv_prog_YACC
10329 if test -n "$YACC"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10331 $as_echo "$YACC" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338 test -n "$YACC" && break
10339 done
10340 test -n "$YACC" || YACC="$MISSING bison -y"
10341
10342 case " $build_configdirs " in
10343 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10344 esac
10345
10346 for ac_prog in bison
10347 do
10348 # Extract the first word of "$ac_prog", so it can be a program name with args.
10349 set dummy $ac_prog; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_prog_BISON+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 if test -n "$BISON"; then
10356 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_BISON="$ac_prog"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369 done
10370 done
10371 IFS=$as_save_IFS
10372
10373 fi
10374 fi
10375 BISON=$ac_cv_prog_BISON
10376 if test -n "$BISON"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10378 $as_echo "$BISON" >&6; }
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383
10384
10385 test -n "$BISON" && break
10386 done
10387 test -n "$BISON" || BISON="$MISSING bison"
10388
10389 case " $build_configdirs " in
10390 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10391 esac
10392
10393 for ac_prog in gm4 gnum4 m4
10394 do
10395 # Extract the first word of "$ac_prog", so it can be a program name with args.
10396 set dummy $ac_prog; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if ${ac_cv_prog_M4+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test -n "$M4"; then
10403 ac_cv_prog_M4="$M4" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_prog_M4="$ac_prog"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416 done
10417 done
10418 IFS=$as_save_IFS
10419
10420 fi
10421 fi
10422 M4=$ac_cv_prog_M4
10423 if test -n "$M4"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10425 $as_echo "$M4" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10429 fi
10430
10431
10432 test -n "$M4" && break
10433 done
10434 test -n "$M4" || M4="$MISSING m4"
10435
10436 case " $build_configdirs " in
10437 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10438 esac
10439
10440 for ac_prog in flex lex
10441 do
10442 # Extract the first word of "$ac_prog", so it can be a program name with args.
10443 set dummy $ac_prog; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if ${ac_cv_prog_LEX+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 if test -n "$LEX"; then
10450 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10451 else
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10454 do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_prog_LEX="$ac_prog"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10462 fi
10463 done
10464 done
10465 IFS=$as_save_IFS
10466
10467 fi
10468 fi
10469 LEX=$ac_cv_prog_LEX
10470 if test -n "$LEX"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10472 $as_echo "$LEX" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; }
10476 fi
10477
10478
10479 test -n "$LEX" && break
10480 done
10481 test -n "$LEX" || LEX="$MISSING flex"
10482
10483 case " $build_configdirs " in
10484 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10485 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10486 esac
10487
10488 for ac_prog in flex
10489 do
10490 # Extract the first word of "$ac_prog", so it can be a program name with args.
10491 set dummy $ac_prog; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_FLEX+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 if test -n "$FLEX"; then
10498 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10499 else
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10502 do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_FLEX="$ac_prog"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511 done
10512 done
10513 IFS=$as_save_IFS
10514
10515 fi
10516 fi
10517 FLEX=$ac_cv_prog_FLEX
10518 if test -n "$FLEX"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10520 $as_echo "$FLEX" >&6; }
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10524 fi
10525
10526
10527 test -n "$FLEX" && break
10528 done
10529 test -n "$FLEX" || FLEX="$MISSING flex"
10530
10531 case " $build_configdirs " in
10532 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10533 esac
10534
10535 for ac_prog in makeinfo
10536 do
10537 # Extract the first word of "$ac_prog", so it can be a program name with args.
10538 set dummy $ac_prog; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_prog_MAKEINFO+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 if test -n "$MAKEINFO"; then
10545 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_prog_MAKEINFO="$ac_prog"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558 done
10559 done
10560 IFS=$as_save_IFS
10561
10562 fi
10563 fi
10564 MAKEINFO=$ac_cv_prog_MAKEINFO
10565 if test -n "$MAKEINFO"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10567 $as_echo "$MAKEINFO" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10573
10574 test -n "$MAKEINFO" && break
10575 done
10576 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10577
10578 case " $build_configdirs " in
10579 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10580 *)
10581
10582 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10583 # higher, else we use the "missing" dummy.
10584 if ${MAKEINFO} --version \
10585 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10586 :
10587 else
10588 MAKEINFO="$MISSING makeinfo"
10589 fi
10590 ;;
10591
10592 esac
10593
10594 # FIXME: expect and dejagnu may become build tools?
10595
10596 for ac_prog in expect
10597 do
10598 # Extract the first word of "$ac_prog", so it can be a program name with args.
10599 set dummy $ac_prog; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if ${ac_cv_prog_EXPECT+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 if test -n "$EXPECT"; then
10606 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615 ac_cv_prog_EXPECT="$ac_prog"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10618 fi
10619 done
10620 done
10621 IFS=$as_save_IFS
10622
10623 fi
10624 fi
10625 EXPECT=$ac_cv_prog_EXPECT
10626 if test -n "$EXPECT"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10628 $as_echo "$EXPECT" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633
10634
10635 test -n "$EXPECT" && break
10636 done
10637 test -n "$EXPECT" || EXPECT="expect"
10638
10639 case " $configdirs " in
10640 *" expect "*)
10641 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10642 ;;
10643 esac
10644
10645 for ac_prog in runtest
10646 do
10647 # Extract the first word of "$ac_prog", so it can be a program name with args.
10648 set dummy $ac_prog; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_prog_RUNTEST+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 if test -n "$RUNTEST"; then
10655 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10656 else
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10659 do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_RUNTEST="$ac_prog"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668 done
10669 done
10670 IFS=$as_save_IFS
10671
10672 fi
10673 fi
10674 RUNTEST=$ac_cv_prog_RUNTEST
10675 if test -n "$RUNTEST"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10677 $as_echo "$RUNTEST" >&6; }
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10681 fi
10682
10683
10684 test -n "$RUNTEST" && break
10685 done
10686 test -n "$RUNTEST" || RUNTEST="runtest"
10687
10688 case " $configdirs " in
10689 *" dejagnu "*)
10690 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10691 ;;
10692 esac
10693
10694
10695 # Host tools.
10696 ncn_tool_prefix=
10697 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10698 ncn_target_tool_prefix=
10699 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10700
10701
10702
10703 if test -n "$AR"; then
10704 ac_cv_prog_AR=$AR
10705 elif test -n "$ac_cv_prog_AR"; then
10706 AR=$ac_cv_prog_AR
10707 fi
10708
10709 if test -n "$ac_cv_prog_AR"; then
10710 for ncn_progname in ar; do
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_progname}; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_prog_AR+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 if test -n "$AR"; then
10719 ac_cv_prog_AR="$AR" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_AR="${ncn_progname}"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732 done
10733 done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 AR=$ac_cv_prog_AR
10739 if test -n "$AR"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10741 $as_echo "$AR" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746
10747
10748 done
10749 fi
10750
10751 for ncn_progname in ar; do
10752 if test -n "$ncn_tool_prefix"; then
10753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10754 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_prog_AR+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 if test -n "$AR"; then
10761 ac_cv_prog_AR="$AR" # Let the user override the test.
10762 else
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10773 fi
10774 done
10775 done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 AR=$ac_cv_prog_AR
10781 if test -n "$AR"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10783 $as_echo "$AR" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790 fi
10791 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10793 set dummy ${ncn_progname}; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_prog_AR+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test -n "$AR"; then
10800 ac_cv_prog_AR="$AR" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10804 do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_AR="${ncn_progname}"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813 done
10814 done
10815 IFS=$as_save_IFS
10816
10817 fi
10818 fi
10819 AR=$ac_cv_prog_AR
10820 if test -n "$AR"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10822 $as_echo "$AR" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827
10828
10829 fi
10830 test -n "$ac_cv_prog_AR" && break
10831 done
10832
10833 if test -z "$ac_cv_prog_AR" ; then
10834 set dummy ar
10835 if test $build = $host ; then
10836 AR="$2"
10837 else
10838 AR="${ncn_tool_prefix}$2"
10839 fi
10840 fi
10841
10842
10843
10844 if test -n "$AS"; then
10845 ac_cv_prog_AS=$AS
10846 elif test -n "$ac_cv_prog_AS"; then
10847 AS=$ac_cv_prog_AS
10848 fi
10849
10850 if test -n "$ac_cv_prog_AS"; then
10851 for ncn_progname in as; do
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10853 set dummy ${ncn_progname}; ac_word=$2
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855 $as_echo_n "checking for $ac_word... " >&6; }
10856 if ${ac_cv_prog_AS+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 if test -n "$AS"; then
10860 ac_cv_prog_AS="$AS" # Let the user override the test.
10861 else
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $PATH
10864 do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869 ac_cv_prog_AS="${ncn_progname}"
10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873 done
10874 done
10875 IFS=$as_save_IFS
10876
10877 fi
10878 fi
10879 AS=$ac_cv_prog_AS
10880 if test -n "$AS"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10882 $as_echo "$AS" >&6; }
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10886 fi
10887
10888
10889 done
10890 fi
10891
10892 for ncn_progname in as; do
10893 if test -n "$ncn_tool_prefix"; then
10894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10895 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10897 $as_echo_n "checking for $ac_word... " >&6; }
10898 if ${ac_cv_prog_AS+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 if test -n "$AS"; then
10902 ac_cv_prog_AS="$AS" # Let the user override the test.
10903 else
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10906 do
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915 done
10916 done
10917 IFS=$as_save_IFS
10918
10919 fi
10920 fi
10921 AS=$ac_cv_prog_AS
10922 if test -n "$AS"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10924 $as_echo "$AS" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10929
10930
10931 fi
10932 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_prog_AS+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$AS"; then
10941 ac_cv_prog_AS="$AS" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_AS="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954 done
10955 done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 AS=$ac_cv_prog_AS
10961 if test -n "$AS"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10963 $as_echo "$AS" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 fi
10971 test -n "$ac_cv_prog_AS" && break
10972 done
10973
10974 if test -z "$ac_cv_prog_AS" ; then
10975 set dummy as
10976 if test $build = $host ; then
10977 AS="$2"
10978 else
10979 AS="${ncn_tool_prefix}$2"
10980 fi
10981 fi
10982
10983
10984
10985 if test -n "$DLLTOOL"; then
10986 ac_cv_prog_DLLTOOL=$DLLTOOL
10987 elif test -n "$ac_cv_prog_DLLTOOL"; then
10988 DLLTOOL=$ac_cv_prog_DLLTOOL
10989 fi
10990
10991 if test -n "$ac_cv_prog_DLLTOOL"; then
10992 for ncn_progname in dlltool; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_progname}; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_prog_DLLTOOL+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test -n "$DLLTOOL"; then
11001 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_DLLTOOL="${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014 done
11015 done
11016 IFS=$as_save_IFS
11017
11018 fi
11019 fi
11020 DLLTOOL=$ac_cv_prog_DLLTOOL
11021 if test -n "$DLLTOOL"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11023 $as_echo "$DLLTOOL" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11027 fi
11028
11029
11030 done
11031 fi
11032
11033 for ncn_progname in dlltool; do
11034 if test -n "$ncn_tool_prefix"; then
11035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11036 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_prog_DLLTOOL+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 if test -n "$DLLTOOL"; then
11043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11052 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056 done
11057 done
11058 IFS=$as_save_IFS
11059
11060 fi
11061 fi
11062 DLLTOOL=$ac_cv_prog_DLLTOOL
11063 if test -n "$DLLTOOL"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11065 $as_echo "$DLLTOOL" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072 fi
11073 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11075 set dummy ${ncn_progname}; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if ${ac_cv_prog_DLLTOOL+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 if test -n "$DLLTOOL"; then
11082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11091 ac_cv_prog_DLLTOOL="${ncn_progname}"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 break 2
11094 fi
11095 done
11096 done
11097 IFS=$as_save_IFS
11098
11099 fi
11100 fi
11101 DLLTOOL=$ac_cv_prog_DLLTOOL
11102 if test -n "$DLLTOOL"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11104 $as_echo "$DLLTOOL" >&6; }
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 fi
11112 test -n "$ac_cv_prog_DLLTOOL" && break
11113 done
11114
11115 if test -z "$ac_cv_prog_DLLTOOL" ; then
11116 set dummy dlltool
11117 if test $build = $host ; then
11118 DLLTOOL="$2"
11119 else
11120 DLLTOOL="${ncn_tool_prefix}$2"
11121 fi
11122 fi
11123
11124
11125
11126 if test -n "$DSYMUTIL"; then
11127 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11128 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11130 fi
11131
11132 if test -n "$ac_cv_prog_DSYMUTIL"; then
11133 for ncn_progname in dsymutil; do
11134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11135 set dummy ${ncn_progname}; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test -n "$DSYMUTIL"; then
11142 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11146 do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155 done
11156 done
11157 IFS=$as_save_IFS
11158
11159 fi
11160 fi
11161 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11162 if test -n "$DSYMUTIL"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11164 $as_echo "$DSYMUTIL" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168 fi
11169
11170
11171 done
11172 fi
11173
11174 for ncn_progname in dsymutil; do
11175 if test -n "$ncn_tool_prefix"; then
11176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 $as_echo_n "checking for $ac_word... " >&6; }
11180 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11181 $as_echo_n "(cached) " >&6
11182 else
11183 if test -n "$DSYMUTIL"; then
11184 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11196 fi
11197 done
11198 done
11199 IFS=$as_save_IFS
11200
11201 fi
11202 fi
11203 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11204 if test -n "$DSYMUTIL"; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11206 $as_echo "$DSYMUTIL" >&6; }
11207 else
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209 $as_echo "no" >&6; }
11210 fi
11211
11212
11213 fi
11214 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test -n "$DSYMUTIL"; then
11223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11227 do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236 done
11237 done
11238 IFS=$as_save_IFS
11239
11240 fi
11241 fi
11242 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11243 if test -n "$DSYMUTIL"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11245 $as_echo "$DSYMUTIL" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249 fi
11250
11251
11252 fi
11253 test -n "$ac_cv_prog_DSYMUTIL" && break
11254 done
11255
11256 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11257 set dummy dsymutil
11258 if test $build = $host ; then
11259 DSYMUTIL="$2"
11260 else
11261 DSYMUTIL="${ncn_tool_prefix}$2"
11262 fi
11263 fi
11264
11265
11266
11267 if test -n "$LD"; then
11268 ac_cv_prog_LD=$LD
11269 elif test -n "$ac_cv_prog_LD"; then
11270 LD=$ac_cv_prog_LD
11271 fi
11272
11273 if test -n "$ac_cv_prog_LD"; then
11274 for ncn_progname in ld; do
11275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11276 set dummy ${ncn_progname}; ac_word=$2
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278 $as_echo_n "checking for $ac_word... " >&6; }
11279 if ${ac_cv_prog_LD+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 if test -n "$LD"; then
11283 ac_cv_prog_LD="$LD" # Let the user override the test.
11284 else
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11287 do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_prog_LD="${ncn_progname}"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11295 fi
11296 done
11297 done
11298 IFS=$as_save_IFS
11299
11300 fi
11301 fi
11302 LD=$ac_cv_prog_LD
11303 if test -n "$LD"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11305 $as_echo "$LD" >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11309 fi
11310
11311
11312 done
11313 fi
11314
11315 for ncn_progname in ld; do
11316 if test -n "$ncn_tool_prefix"; then
11317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11318 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if ${ac_cv_prog_LD+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 if test -n "$LD"; then
11325 ac_cv_prog_LD="$LD" # Let the user override the test.
11326 else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11334 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338 done
11339 done
11340 IFS=$as_save_IFS
11341
11342 fi
11343 fi
11344 LD=$ac_cv_prog_LD
11345 if test -n "$LD"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11347 $as_echo "$LD" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352
11353
11354 fi
11355 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11357 set dummy ${ncn_progname}; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if ${ac_cv_prog_LD+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 if test -n "$LD"; then
11364 ac_cv_prog_LD="$LD" # Let the user override the test.
11365 else
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 ac_cv_prog_LD="${ncn_progname}"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 break 2
11376 fi
11377 done
11378 done
11379 IFS=$as_save_IFS
11380
11381 fi
11382 fi
11383 LD=$ac_cv_prog_LD
11384 if test -n "$LD"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11386 $as_echo "$LD" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393 fi
11394 test -n "$ac_cv_prog_LD" && break
11395 done
11396
11397 if test -z "$ac_cv_prog_LD" ; then
11398 set dummy ld
11399 if test $build = $host ; then
11400 LD="$2"
11401 else
11402 LD="${ncn_tool_prefix}$2"
11403 fi
11404 fi
11405
11406
11407
11408 if test -n "$LIPO"; then
11409 ac_cv_prog_LIPO=$LIPO
11410 elif test -n "$ac_cv_prog_LIPO"; then
11411 LIPO=$ac_cv_prog_LIPO
11412 fi
11413
11414 if test -n "$ac_cv_prog_LIPO"; then
11415 for ncn_progname in lipo; do
11416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if ${ac_cv_prog_LIPO+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 if test -n "$LIPO"; then
11424 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11428 do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_LIPO="${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11436 fi
11437 done
11438 done
11439 IFS=$as_save_IFS
11440
11441 fi
11442 fi
11443 LIPO=$ac_cv_prog_LIPO
11444 if test -n "$LIPO"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11446 $as_echo "$LIPO" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11450 fi
11451
11452
11453 done
11454 fi
11455
11456 for ncn_progname in lipo; do
11457 if test -n "$ncn_tool_prefix"; then
11458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_prog_LIPO+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 if test -n "$LIPO"; then
11466 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11467 else
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471 IFS=$as_save_IFS
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 break 2
11478 fi
11479 done
11480 done
11481 IFS=$as_save_IFS
11482
11483 fi
11484 fi
11485 LIPO=$ac_cv_prog_LIPO
11486 if test -n "$LIPO"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11488 $as_echo "$LIPO" >&6; }
11489 else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11492 fi
11493
11494
11495 fi
11496 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11498 set dummy ${ncn_progname}; ac_word=$2
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11500 $as_echo_n "checking for $ac_word... " >&6; }
11501 if ${ac_cv_prog_LIPO+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 if test -n "$LIPO"; then
11505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11506 else
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11509 do
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_LIPO="${ncn_progname}"
11515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 break 2
11517 fi
11518 done
11519 done
11520 IFS=$as_save_IFS
11521
11522 fi
11523 fi
11524 LIPO=$ac_cv_prog_LIPO
11525 if test -n "$LIPO"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11527 $as_echo "$LIPO" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531 fi
11532
11533
11534 fi
11535 test -n "$ac_cv_prog_LIPO" && break
11536 done
11537
11538 if test -z "$ac_cv_prog_LIPO" ; then
11539 set dummy lipo
11540 if test $build = $host ; then
11541 LIPO="$2"
11542 else
11543 LIPO="${ncn_tool_prefix}$2"
11544 fi
11545 fi
11546
11547
11548
11549 if test -n "$NM"; then
11550 ac_cv_prog_NM=$NM
11551 elif test -n "$ac_cv_prog_NM"; then
11552 NM=$ac_cv_prog_NM
11553 fi
11554
11555 if test -n "$ac_cv_prog_NM"; then
11556 for ncn_progname in nm; do
11557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11558 set dummy ${ncn_progname}; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 $as_echo_n "checking for $ac_word... " >&6; }
11561 if ${ac_cv_prog_NM+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 if test -n "$NM"; then
11565 ac_cv_prog_NM="$NM" # Let the user override the test.
11566 else
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_prog_NM="${ncn_progname}"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11577 fi
11578 done
11579 done
11580 IFS=$as_save_IFS
11581
11582 fi
11583 fi
11584 NM=$ac_cv_prog_NM
11585 if test -n "$NM"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11587 $as_echo "$NM" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11591 fi
11592
11593
11594 done
11595 fi
11596
11597 for ncn_progname in nm; do
11598 if test -n "$ncn_tool_prefix"; then
11599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602 $as_echo_n "checking for $ac_word... " >&6; }
11603 if ${ac_cv_prog_NM+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 if test -n "$NM"; then
11607 ac_cv_prog_NM="$NM" # Let the user override the test.
11608 else
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11611 do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620 done
11621 done
11622 IFS=$as_save_IFS
11623
11624 fi
11625 fi
11626 NM=$ac_cv_prog_NM
11627 if test -n "$NM"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11629 $as_echo "$NM" >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634
11635
11636 fi
11637 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11639 set dummy ${ncn_progname}; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_prog_NM+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 if test -n "$NM"; then
11646 ac_cv_prog_NM="$NM" # Let the user override the test.
11647 else
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_NM="${ncn_progname}"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659 done
11660 done
11661 IFS=$as_save_IFS
11662
11663 fi
11664 fi
11665 NM=$ac_cv_prog_NM
11666 if test -n "$NM"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11668 $as_echo "$NM" >&6; }
11669 else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11672 fi
11673
11674
11675 fi
11676 test -n "$ac_cv_prog_NM" && break
11677 done
11678
11679 if test -z "$ac_cv_prog_NM" ; then
11680 set dummy nm
11681 if test $build = $host ; then
11682 NM="$2"
11683 else
11684 NM="${ncn_tool_prefix}$2"
11685 fi
11686 fi
11687
11688
11689
11690 if test -n "$RANLIB"; then
11691 ac_cv_prog_RANLIB=$RANLIB
11692 elif test -n "$ac_cv_prog_RANLIB"; then
11693 RANLIB=$ac_cv_prog_RANLIB
11694 fi
11695
11696 if test -n "$ac_cv_prog_RANLIB"; then
11697 for ncn_progname in ranlib; do
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_RANLIB+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test -n "$RANLIB"; then
11706 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
11726 if test -n "$RANLIB"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11728 $as_echo "$RANLIB" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 done
11736 fi
11737
11738 for ncn_progname in ranlib; do
11739 if test -n "$ncn_tool_prefix"; then
11740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if ${ac_cv_prog_RANLIB+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test -n "$RANLIB"; then
11748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11749 else
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11760 fi
11761 done
11762 done
11763 IFS=$as_save_IFS
11764
11765 fi
11766 fi
11767 RANLIB=$ac_cv_prog_RANLIB
11768 if test -n "$RANLIB"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11770 $as_echo "$RANLIB" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 fi
11778 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11780 set dummy ${ncn_progname}; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_prog_RANLIB+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 if test -n "$RANLIB"; then
11787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11788 else
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_prog_RANLIB="${ncn_progname}"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798 break 2
11799 fi
11800 done
11801 done
11802 IFS=$as_save_IFS
11803
11804 fi
11805 fi
11806 RANLIB=$ac_cv_prog_RANLIB
11807 if test -n "$RANLIB"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11809 $as_echo "$RANLIB" >&6; }
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815
11816 fi
11817 test -n "$ac_cv_prog_RANLIB" && break
11818 done
11819
11820 if test -z "$ac_cv_prog_RANLIB" ; then
11821 RANLIB="true"
11822 fi
11823
11824
11825
11826 if test -n "$STRIP"; then
11827 ac_cv_prog_STRIP=$STRIP
11828 elif test -n "$ac_cv_prog_STRIP"; then
11829 STRIP=$ac_cv_prog_STRIP
11830 fi
11831
11832 if test -n "$ac_cv_prog_STRIP"; then
11833 for ncn_progname in strip; do
11834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11835 set dummy ${ncn_progname}; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_STRIP+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -n "$STRIP"; then
11842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_STRIP="${ncn_progname}"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11854 fi
11855 done
11856 done
11857 IFS=$as_save_IFS
11858
11859 fi
11860 fi
11861 STRIP=$ac_cv_prog_STRIP
11862 if test -n "$STRIP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11864 $as_echo "$STRIP" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870
11871 done
11872 fi
11873
11874 for ncn_progname in strip; do
11875 if test -n "$ncn_tool_prefix"; then
11876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_prog_STRIP+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$STRIP"; then
11884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897 done
11898 done
11899 IFS=$as_save_IFS
11900
11901 fi
11902 fi
11903 STRIP=$ac_cv_prog_STRIP
11904 if test -n "$STRIP"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11906 $as_echo "$STRIP" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912
11913 fi
11914 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_progname}; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_prog_STRIP+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 if test -n "$STRIP"; then
11923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_STRIP="${ncn_progname}"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11935 fi
11936 done
11937 done
11938 IFS=$as_save_IFS
11939
11940 fi
11941 fi
11942 STRIP=$ac_cv_prog_STRIP
11943 if test -n "$STRIP"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11945 $as_echo "$STRIP" >&6; }
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950
11951
11952 fi
11953 test -n "$ac_cv_prog_STRIP" && break
11954 done
11955
11956 if test -z "$ac_cv_prog_STRIP" ; then
11957 STRIP="true"
11958 fi
11959
11960
11961
11962 if test -n "$WINDRES"; then
11963 ac_cv_prog_WINDRES=$WINDRES
11964 elif test -n "$ac_cv_prog_WINDRES"; then
11965 WINDRES=$ac_cv_prog_WINDRES
11966 fi
11967
11968 if test -n "$ac_cv_prog_WINDRES"; then
11969 for ncn_progname in windres; do
11970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11971 set dummy ${ncn_progname}; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_prog_WINDRES+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 if test -n "$WINDRES"; then
11978 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11979 else
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11982 do
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_prog_WINDRES="${ncn_progname}"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11990 fi
11991 done
11992 done
11993 IFS=$as_save_IFS
11994
11995 fi
11996 fi
11997 WINDRES=$ac_cv_prog_WINDRES
11998 if test -n "$WINDRES"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12000 $as_echo "$WINDRES" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12004 fi
12005
12006
12007 done
12008 fi
12009
12010 for ncn_progname in windres; do
12011 if test -n "$ncn_tool_prefix"; then
12012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12013 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_prog_WINDRES+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 if test -n "$WINDRES"; then
12020 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12021 else
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033 done
12034 done
12035 IFS=$as_save_IFS
12036
12037 fi
12038 fi
12039 WINDRES=$ac_cv_prog_WINDRES
12040 if test -n "$WINDRES"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12042 $as_echo "$WINDRES" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046 fi
12047
12048
12049 fi
12050 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12052 set dummy ${ncn_progname}; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_WINDRES+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 if test -n "$WINDRES"; then
12059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_WINDRES="${ncn_progname}"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 WINDRES=$ac_cv_prog_WINDRES
12079 if test -n "$WINDRES"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12081 $as_echo "$WINDRES" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 test -n "$ac_cv_prog_WINDRES" && break
12090 done
12091
12092 if test -z "$ac_cv_prog_WINDRES" ; then
12093 set dummy windres
12094 if test $build = $host ; then
12095 WINDRES="$2"
12096 else
12097 WINDRES="${ncn_tool_prefix}$2"
12098 fi
12099 fi
12100
12101
12102
12103 if test -n "$WINDMC"; then
12104 ac_cv_prog_WINDMC=$WINDMC
12105 elif test -n "$ac_cv_prog_WINDMC"; then
12106 WINDMC=$ac_cv_prog_WINDMC
12107 fi
12108
12109 if test -n "$ac_cv_prog_WINDMC"; then
12110 for ncn_progname in windmc; do
12111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12112 set dummy ${ncn_progname}; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if ${ac_cv_prog_WINDMC+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test -n "$WINDMC"; then
12119 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12120 else
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 ac_cv_prog_WINDMC="${ncn_progname}"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 fi
12137 fi
12138 WINDMC=$ac_cv_prog_WINDMC
12139 if test -n "$WINDMC"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12141 $as_echo "$WINDMC" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146
12147
12148 done
12149 fi
12150
12151 for ncn_progname in windmc; do
12152 if test -n "$ncn_tool_prefix"; then
12153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12154 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if ${ac_cv_prog_WINDMC+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 if test -n "$WINDMC"; then
12161 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12162 else
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12165 do
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 break 2
12173 fi
12174 done
12175 done
12176 IFS=$as_save_IFS
12177
12178 fi
12179 fi
12180 WINDMC=$ac_cv_prog_WINDMC
12181 if test -n "$WINDMC"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12183 $as_echo "$WINDMC" >&6; }
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188
12189
12190 fi
12191 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12193 set dummy ${ncn_progname}; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_prog_WINDMC+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 if test -n "$WINDMC"; then
12200 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12201 else
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12204 do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_prog_WINDMC="${ncn_progname}"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12212 fi
12213 done
12214 done
12215 IFS=$as_save_IFS
12216
12217 fi
12218 fi
12219 WINDMC=$ac_cv_prog_WINDMC
12220 if test -n "$WINDMC"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12222 $as_echo "$WINDMC" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227
12228
12229 fi
12230 test -n "$ac_cv_prog_WINDMC" && break
12231 done
12232
12233 if test -z "$ac_cv_prog_WINDMC" ; then
12234 set dummy windmc
12235 if test $build = $host ; then
12236 WINDMC="$2"
12237 else
12238 WINDMC="${ncn_tool_prefix}$2"
12239 fi
12240 fi
12241
12242
12243
12244 if test -n "$OBJCOPY"; then
12245 ac_cv_prog_OBJCOPY=$OBJCOPY
12246 elif test -n "$ac_cv_prog_OBJCOPY"; then
12247 OBJCOPY=$ac_cv_prog_OBJCOPY
12248 fi
12249
12250 if test -n "$ac_cv_prog_OBJCOPY"; then
12251 for ncn_progname in objcopy; do
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253 set dummy ${ncn_progname}; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_prog_OBJCOPY+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$OBJCOPY"; then
12260 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_prog_OBJCOPY="${ncn_progname}"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273 done
12274 done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 OBJCOPY=$ac_cv_prog_OBJCOPY
12280 if test -n "$OBJCOPY"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12282 $as_echo "$OBJCOPY" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288
12289 done
12290 fi
12291
12292 for ncn_progname in objcopy; do
12293 if test -n "$ncn_tool_prefix"; then
12294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12295 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_prog_OBJCOPY+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 if test -n "$OBJCOPY"; then
12302 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12303 else
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12306 do
12307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 break 2
12314 fi
12315 done
12316 done
12317 IFS=$as_save_IFS
12318
12319 fi
12320 fi
12321 OBJCOPY=$ac_cv_prog_OBJCOPY
12322 if test -n "$OBJCOPY"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12324 $as_echo "$OBJCOPY" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 fi
12329
12330
12331 fi
12332 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12334 set dummy ${ncn_progname}; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if ${ac_cv_prog_OBJCOPY+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test -n "$OBJCOPY"; then
12341 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12342 else
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12345 do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_prog_OBJCOPY="${ncn_progname}"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12353 fi
12354 done
12355 done
12356 IFS=$as_save_IFS
12357
12358 fi
12359 fi
12360 OBJCOPY=$ac_cv_prog_OBJCOPY
12361 if test -n "$OBJCOPY"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12363 $as_echo "$OBJCOPY" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368
12369
12370 fi
12371 test -n "$ac_cv_prog_OBJCOPY" && break
12372 done
12373
12374 if test -z "$ac_cv_prog_OBJCOPY" ; then
12375 set dummy objcopy
12376 if test $build = $host ; then
12377 OBJCOPY="$2"
12378 else
12379 OBJCOPY="${ncn_tool_prefix}$2"
12380 fi
12381 fi
12382
12383
12384
12385 if test -n "$OBJDUMP"; then
12386 ac_cv_prog_OBJDUMP=$OBJDUMP
12387 elif test -n "$ac_cv_prog_OBJDUMP"; then
12388 OBJDUMP=$ac_cv_prog_OBJDUMP
12389 fi
12390
12391 if test -n "$ac_cv_prog_OBJDUMP"; then
12392 for ncn_progname in objdump; do
12393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12394 set dummy ${ncn_progname}; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if ${ac_cv_prog_OBJDUMP+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 if test -n "$OBJDUMP"; then
12401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12402 else
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_OBJDUMP="${ncn_progname}"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414 done
12415 done
12416 IFS=$as_save_IFS
12417
12418 fi
12419 fi
12420 OBJDUMP=$ac_cv_prog_OBJDUMP
12421 if test -n "$OBJDUMP"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12423 $as_echo "$OBJDUMP" >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428
12429
12430 done
12431 fi
12432
12433 for ncn_progname in objdump; do
12434 if test -n "$ncn_tool_prefix"; then
12435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if ${ac_cv_prog_OBJDUMP+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 if test -n "$OBJDUMP"; then
12443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12444 else
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12447 do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12455 fi
12456 done
12457 done
12458 IFS=$as_save_IFS
12459
12460 fi
12461 fi
12462 OBJDUMP=$ac_cv_prog_OBJDUMP
12463 if test -n "$OBJDUMP"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12465 $as_echo "$OBJDUMP" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12469 fi
12470
12471
12472 fi
12473 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12475 set dummy ${ncn_progname}; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_prog_OBJDUMP+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 if test -n "$OBJDUMP"; then
12482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_OBJDUMP="${ncn_progname}"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 break 2
12494 fi
12495 done
12496 done
12497 IFS=$as_save_IFS
12498
12499 fi
12500 fi
12501 OBJDUMP=$ac_cv_prog_OBJDUMP
12502 if test -n "$OBJDUMP"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12504 $as_echo "$OBJDUMP" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510
12511 fi
12512 test -n "$ac_cv_prog_OBJDUMP" && break
12513 done
12514
12515 if test -z "$ac_cv_prog_OBJDUMP" ; then
12516 set dummy objdump
12517 if test $build = $host ; then
12518 OBJDUMP="$2"
12519 else
12520 OBJDUMP="${ncn_tool_prefix}$2"
12521 fi
12522 fi
12523
12524
12525
12526 if test -n "$OTOOL"; then
12527 ac_cv_prog_OTOOL=$OTOOL
12528 elif test -n "$ac_cv_prog_OTOOL"; then
12529 OTOOL=$ac_cv_prog_OTOOL
12530 fi
12531
12532 if test -n "$ac_cv_prog_OTOOL"; then
12533 for ncn_progname in otool; do
12534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12535 set dummy ${ncn_progname}; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_prog_OTOOL+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 if test -n "$OTOOL"; then
12542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12543 else
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12546 do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_prog_OTOOL="${ncn_progname}"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555 done
12556 done
12557 IFS=$as_save_IFS
12558
12559 fi
12560 fi
12561 OTOOL=$ac_cv_prog_OTOOL
12562 if test -n "$OTOOL"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12564 $as_echo "$OTOOL" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569
12570
12571 done
12572 fi
12573
12574 for ncn_progname in otool; do
12575 if test -n "$ncn_tool_prefix"; then
12576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12577 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_prog_OTOOL+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 if test -n "$OTOOL"; then
12584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12585 else
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12596 fi
12597 done
12598 done
12599 IFS=$as_save_IFS
12600
12601 fi
12602 fi
12603 OTOOL=$ac_cv_prog_OTOOL
12604 if test -n "$OTOOL"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12606 $as_echo "$OTOOL" >&6; }
12607 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610 fi
12611
12612
12613 fi
12614 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12616 set dummy ${ncn_progname}; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618 $as_echo_n "checking for $ac_word... " >&6; }
12619 if ${ac_cv_prog_OTOOL+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 if test -n "$OTOOL"; then
12623 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12624 else
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_prog_OTOOL="${ncn_progname}"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636 done
12637 done
12638 IFS=$as_save_IFS
12639
12640 fi
12641 fi
12642 OTOOL=$ac_cv_prog_OTOOL
12643 if test -n "$OTOOL"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12645 $as_echo "$OTOOL" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12649 fi
12650
12651
12652 fi
12653 test -n "$ac_cv_prog_OTOOL" && break
12654 done
12655
12656 if test -z "$ac_cv_prog_OTOOL" ; then
12657 set dummy otool
12658 if test $build = $host ; then
12659 OTOOL="$2"
12660 else
12661 OTOOL="${ncn_tool_prefix}$2"
12662 fi
12663 fi
12664
12665
12666
12667 if test -n "$READELF"; then
12668 ac_cv_prog_READELF=$READELF
12669 elif test -n "$ac_cv_prog_READELF"; then
12670 READELF=$ac_cv_prog_READELF
12671 fi
12672
12673 if test -n "$ac_cv_prog_READELF"; then
12674 for ncn_progname in readelf; do
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if ${ac_cv_prog_READELF+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -n "$READELF"; then
12683 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_prog_READELF="${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696 done
12697 done
12698 IFS=$as_save_IFS
12699
12700 fi
12701 fi
12702 READELF=$ac_cv_prog_READELF
12703 if test -n "$READELF"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12705 $as_echo "$READELF" >&6; }
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12709 fi
12710
12711
12712 done
12713 fi
12714
12715 for ncn_progname in readelf; do
12716 if test -n "$ncn_tool_prefix"; then
12717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12718 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_prog_READELF+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test -n "$READELF"; then
12725 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12726 else
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12729 do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738 done
12739 done
12740 IFS=$as_save_IFS
12741
12742 fi
12743 fi
12744 READELF=$ac_cv_prog_READELF
12745 if test -n "$READELF"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12747 $as_echo "$READELF" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753
12754 fi
12755 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12757 set dummy ${ncn_progname}; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if ${ac_cv_prog_READELF+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 if test -n "$READELF"; then
12764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12765 else
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12768 do
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12773 ac_cv_prog_READELF="${ncn_progname}"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12776 fi
12777 done
12778 done
12779 IFS=$as_save_IFS
12780
12781 fi
12782 fi
12783 READELF=$ac_cv_prog_READELF
12784 if test -n "$READELF"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12786 $as_echo "$READELF" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 fi
12791
12792
12793 fi
12794 test -n "$ac_cv_prog_READELF" && break
12795 done
12796
12797 if test -z "$ac_cv_prog_READELF" ; then
12798 set dummy readelf
12799 if test $build = $host ; then
12800 READELF="$2"
12801 else
12802 READELF="${ncn_tool_prefix}$2"
12803 fi
12804 fi
12805
12806
12807
12808
12809
12810
12811
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12814 $as_echo_n "checking for -plugin option... " >&6; }
12815
12816 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12817 plugin_option=
12818 for plugin in $plugin_names; do
12819 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12820 if test x$plugin_so = x$plugin; then
12821 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12822 fi
12823 if test x$plugin_so != x$plugin; then
12824 plugin_option="--plugin $plugin_so"
12825 break
12826 fi
12827 done
12828 if test -n "$ac_tool_prefix"; then
12829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12830 set dummy ${ac_tool_prefix}ar; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if ${ac_cv_prog_AR+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -n "$AR"; then
12837 ac_cv_prog_AR="$AR" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12841 do
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_prog_AR="${ac_tool_prefix}ar"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12849 fi
12850 done
12851 done
12852 IFS=$as_save_IFS
12853
12854 fi
12855 fi
12856 AR=$ac_cv_prog_AR
12857 if test -n "$AR"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12859 $as_echo "$AR" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12863 fi
12864
12865
12866 fi
12867 if test -z "$ac_cv_prog_AR"; then
12868 ac_ct_AR=$AR
12869 # Extract the first word of "ar", so it can be a program name with args.
12870 set dummy ar; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$ac_ct_AR"; then
12877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886 ac_cv_prog_ac_ct_AR="ar"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12889 fi
12890 done
12891 done
12892 IFS=$as_save_IFS
12893
12894 fi
12895 fi
12896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12897 if test -n "$ac_ct_AR"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12899 $as_echo "$ac_ct_AR" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904
12905 if test "x$ac_ct_AR" = x; then
12906 AR=""
12907 else
12908 case $cross_compiling:$ac_tool_warned in
12909 yes:)
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912 ac_tool_warned=yes ;;
12913 esac
12914 AR=$ac_ct_AR
12915 fi
12916 else
12917 AR="$ac_cv_prog_AR"
12918 fi
12919
12920 if test "${AR}" = "" ; then
12921 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
12922 fi
12923 touch conftest.c
12924 ${AR} $plugin_option rc conftest.a conftest.c
12925 if test "$?" != 0; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
12927 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
12928 plugin_option=
12929 fi
12930 rm -f conftest.*
12931 if test -n "$plugin_option"; then
12932 PLUGIN_OPTION="$plugin_option"
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12934 $as_echo "$plugin_option" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940 AR_PLUGIN_OPTION=
12941 RANLIB_PLUGIN_OPTION=
12942 if test -n "$PLUGIN_OPTION"; then
12943 if $AR --help 2>&1 | grep -q "\--plugin"; then
12944 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12945 fi
12946 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12947 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12948 fi
12949 fi
12950
12951
12952
12953 # Target tools.
12954
12955 # Check whether --with-build-time-tools was given.
12956 if test "${with_build_time_tools+set}" = set; then :
12957 withval=$with_build_time_tools; case x"$withval" in
12958 x/*) ;;
12959 *)
12960 with_build_time_tools=
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12962 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12963 ;;
12964 esac
12965 else
12966 with_build_time_tools=
12967 fi
12968
12969
12970
12971
12972 if test -n "$CC_FOR_TARGET"; then
12973 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12974 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12975 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12976 fi
12977
12978 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12979 for ncn_progname in cc gcc; do
12980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12981 set dummy ${ncn_progname}; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983 $as_echo_n "checking for $ac_word... " >&6; }
12984 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 if test -n "$CC_FOR_TARGET"; then
12988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005 fi
13006 fi
13007 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13008 if test -n "$CC_FOR_TARGET"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13010 $as_echo "$CC_FOR_TARGET" >&6; }
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014 fi
13015
13016
13017 done
13018 fi
13019
13020 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13021 for ncn_progname in cc gcc; do
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13024 if test -x $with_build_time_tools/${ncn_progname}; then
13025 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13028 break
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033 done
13034 fi
13035
13036 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13037 for ncn_progname in cc gcc; do
13038 if test -n "$ncn_target_tool_prefix"; then
13039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$CC_FOR_TARGET"; then
13047 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13051 do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060 done
13061 done
13062 IFS=$as_save_IFS
13063
13064 fi
13065 fi
13066 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13067 if test -n "$CC_FOR_TARGET"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13069 $as_echo "$CC_FOR_TARGET" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 fi
13074
13075
13076 fi
13077 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13079 set dummy ${ncn_progname}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test -n "$CC_FOR_TARGET"; then
13086 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099 done
13100 done
13101 IFS=$as_save_IFS
13102
13103 fi
13104 fi
13105 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13106 if test -n "$CC_FOR_TARGET"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13108 $as_echo "$CC_FOR_TARGET" >&6; }
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13112 fi
13113
13114
13115 fi
13116 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13117 done
13118 fi
13119
13120 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13121 set dummy cc gcc
13122 if test $build = $target ; then
13123 CC_FOR_TARGET="$2"
13124 else
13125 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13126 fi
13127 else
13128 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13129 fi
13130
13131
13132
13133 if test -n "$CXX_FOR_TARGET"; then
13134 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13135 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13136 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13137 fi
13138
13139 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13140 for ncn_progname in c++ g++ cxx gxx; do
13141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13142 set dummy ${ncn_progname}; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 if test -n "$CXX_FOR_TARGET"; then
13149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13150 else
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13153 do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 break 2
13161 fi
13162 done
13163 done
13164 IFS=$as_save_IFS
13165
13166 fi
13167 fi
13168 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13169 if test -n "$CXX_FOR_TARGET"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13171 $as_echo "$CXX_FOR_TARGET" >&6; }
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13175 fi
13176
13177
13178 done
13179 fi
13180
13181 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13182 for ncn_progname in c++ g++ cxx gxx; do
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13185 if test -x $with_build_time_tools/${ncn_progname}; then
13186 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13188 $as_echo "yes" >&6; }
13189 break
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13193 fi
13194 done
13195 fi
13196
13197 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13198 for ncn_progname in c++ g++ cxx gxx; do
13199 if test -n "$ncn_target_tool_prefix"; then
13200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 if test -n "$CXX_FOR_TARGET"; then
13208 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221 done
13222 done
13223 IFS=$as_save_IFS
13224
13225 fi
13226 fi
13227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13228 if test -n "$CXX_FOR_TARGET"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13230 $as_echo "$CXX_FOR_TARGET" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 fi
13235
13236
13237 fi
13238 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13240 set dummy ${ncn_progname}; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 if test -n "$CXX_FOR_TARGET"; then
13247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13256 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13259 fi
13260 done
13261 done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13267 if test -n "$CXX_FOR_TARGET"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13269 $as_echo "$CXX_FOR_TARGET" >&6; }
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274
13275
13276 fi
13277 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13278 done
13279 fi
13280
13281 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13282 set dummy c++ g++ cxx gxx
13283 if test $build = $target ; then
13284 CXX_FOR_TARGET="$2"
13285 else
13286 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13287 fi
13288 else
13289 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13290 fi
13291
13292
13293
13294 if test -n "$GCC_FOR_TARGET"; then
13295 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13296 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13298 fi
13299
13300 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13301 for ncn_progname in gcc; do
13302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$GCC_FOR_TARGET"; then
13310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13330 if test -n "$GCC_FOR_TARGET"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13332 $as_echo "$GCC_FOR_TARGET" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337
13338
13339 done
13340 fi
13341
13342 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13343 for ncn_progname in gcc; do
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13346 if test -x $with_build_time_tools/${ncn_progname}; then
13347 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13349 $as_echo "yes" >&6; }
13350 break
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355 done
13356 fi
13357
13358 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13359 for ncn_progname in gcc; do
13360 if test -n "$ncn_target_tool_prefix"; then
13361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$GCC_FOR_TARGET"; then
13369 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13389 if test -n "$GCC_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13391 $as_echo "$GCC_FOR_TARGET" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398 fi
13399 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13401 set dummy ${ncn_progname}; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 if test -n "$GCC_FOR_TARGET"; then
13408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13409 else
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13412 do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421 done
13422 done
13423 IFS=$as_save_IFS
13424
13425 fi
13426 fi
13427 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13428 if test -n "$GCC_FOR_TARGET"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13430 $as_echo "$GCC_FOR_TARGET" >&6; }
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436
13437 fi
13438 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13439 done
13440 fi
13441
13442 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13443 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13444 else
13445 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13446 fi
13447
13448
13449
13450 if test -n "$GFORTRAN_FOR_TARGET"; then
13451 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13452 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13453 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13454 fi
13455
13456 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13457 for ncn_progname in gfortran; do
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13459 set dummy ${ncn_progname}; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -n "$GFORTRAN_FOR_TARGET"; then
13466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13486 if test -n "$GFORTRAN_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13488 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 fi
13493
13494
13495 done
13496 fi
13497
13498 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13499 for ncn_progname in gfortran; do
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13502 if test -x $with_build_time_tools/${ncn_progname}; then
13503 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505 $as_echo "yes" >&6; }
13506 break
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13510 fi
13511 done
13512 fi
13513
13514 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13515 for ncn_progname in gfortran; do
13516 if test -n "$ncn_target_tool_prefix"; then
13517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 if test -n "$GFORTRAN_FOR_TARGET"; then
13525 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538 done
13539 done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13545 if test -n "$GFORTRAN_FOR_TARGET"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13547 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552
13553
13554 fi
13555 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13557 set dummy ${ncn_progname}; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 if test -n "$GFORTRAN_FOR_TARGET"; then
13564 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13565 else
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13568 do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 break 2
13576 fi
13577 done
13578 done
13579 IFS=$as_save_IFS
13580
13581 fi
13582 fi
13583 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13584 if test -n "$GFORTRAN_FOR_TARGET"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13586 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13587 else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13590 fi
13591
13592
13593 fi
13594 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13595 done
13596 fi
13597
13598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13599 set dummy gfortran
13600 if test $build = $target ; then
13601 GFORTRAN_FOR_TARGET="$2"
13602 else
13603 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13604 fi
13605 else
13606 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13607 fi
13608
13609
13610
13611 if test -n "$GOC_FOR_TARGET"; then
13612 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13613 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13614 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13615 fi
13616
13617 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13618 for ncn_progname in gccgo; do
13619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13620 set dummy ${ncn_progname}; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 if test -n "$GOC_FOR_TARGET"; then
13627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13628 else
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13631 do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640 done
13641 done
13642 IFS=$as_save_IFS
13643
13644 fi
13645 fi
13646 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13647 if test -n "$GOC_FOR_TARGET"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13649 $as_echo "$GOC_FOR_TARGET" >&6; }
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655
13656 done
13657 fi
13658
13659 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13660 for ncn_progname in gccgo; do
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13662 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13663 if test -x $with_build_time_tools/${ncn_progname}; then
13664 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13666 $as_echo "yes" >&6; }
13667 break
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13671 fi
13672 done
13673 fi
13674
13675 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13676 for ncn_progname in gccgo; do
13677 if test -n "$ncn_target_tool_prefix"; then
13678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13679 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 if test -n "$GOC_FOR_TARGET"; then
13686 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13687 else
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 fi
13704 fi
13705 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13706 if test -n "$GOC_FOR_TARGET"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13708 $as_echo "$GOC_FOR_TARGET" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 fi
13713
13714
13715 fi
13716 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13718 set dummy ${ncn_progname}; ac_word=$2
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13720 $as_echo_n "checking for $ac_word... " >&6; }
13721 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 if test -n "$GOC_FOR_TARGET"; then
13725 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13726 else
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13729 do
13730 IFS=$as_save_IFS
13731 test -z "$as_dir" && as_dir=.
13732 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13734 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13736 break 2
13737 fi
13738 done
13739 done
13740 IFS=$as_save_IFS
13741
13742 fi
13743 fi
13744 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13745 if test -n "$GOC_FOR_TARGET"; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13747 $as_echo "$GOC_FOR_TARGET" >&6; }
13748 else
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13750 $as_echo "no" >&6; }
13751 fi
13752
13753
13754 fi
13755 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13756 done
13757 fi
13758
13759 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13760 set dummy gccgo
13761 if test $build = $target ; then
13762 GOC_FOR_TARGET="$2"
13763 else
13764 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13765 fi
13766 else
13767 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13768 fi
13769
13770
13771
13772 if test -n "$GDC_FOR_TARGET"; then
13773 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13774 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13775 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13776 fi
13777
13778 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13779 for ncn_progname in gdc; do
13780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13781 set dummy ${ncn_progname}; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 if test -n "$GDC_FOR_TARGET"; then
13788 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13789 else
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13792 do
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13797 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13799 break 2
13800 fi
13801 done
13802 done
13803 IFS=$as_save_IFS
13804
13805 fi
13806 fi
13807 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13808 if test -n "$GDC_FOR_TARGET"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13810 $as_echo "$GDC_FOR_TARGET" >&6; }
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13814 fi
13815
13816
13817 done
13818 fi
13819
13820 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13821 for ncn_progname in gdc; do
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13823 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13824 if test -x $with_build_time_tools/${ncn_progname}; then
13825 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13827 $as_echo "yes" >&6; }
13828 break
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833 done
13834 fi
13835
13836 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13837 for ncn_progname in gdc; do
13838 if test -n "$ncn_target_tool_prefix"; then
13839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842 $as_echo_n "checking for $ac_word... " >&6; }
13843 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 if test -n "$GDC_FOR_TARGET"; then
13847 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13848 else
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864 fi
13865 fi
13866 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13867 if test -n "$GDC_FOR_TARGET"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13869 $as_echo "$GDC_FOR_TARGET" >&6; }
13870 else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13873 fi
13874
13875
13876 fi
13877 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13879 set dummy ${ncn_progname}; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881 $as_echo_n "checking for $ac_word... " >&6; }
13882 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 if test -n "$GDC_FOR_TARGET"; then
13886 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13887 else
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13890 do
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897 break 2
13898 fi
13899 done
13900 done
13901 IFS=$as_save_IFS
13902
13903 fi
13904 fi
13905 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13906 if test -n "$GDC_FOR_TARGET"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13908 $as_echo "$GDC_FOR_TARGET" >&6; }
13909 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13912 fi
13913
13914
13915 fi
13916 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13917 done
13918 fi
13919
13920 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13921 set dummy gdc
13922 if test $build = $target ; then
13923 GDC_FOR_TARGET="$2"
13924 else
13925 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13926 fi
13927 else
13928 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13929 fi
13930
13931
13932
13933 cat > conftest.c << \EOF
13934 #ifdef __GNUC__
13935 gcc_yay;
13936 #endif
13937 EOF
13938 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13939 have_gcc_for_target=yes
13940 else
13941 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13942 have_gcc_for_target=no
13943 fi
13944 rm conftest.c
13945
13946
13947
13948
13949 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13950 if test -n "$with_build_time_tools"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13952 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13953 if test -x $with_build_time_tools/ar; then
13954 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13955 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13957 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13958 else
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960 $as_echo "no" >&6; }
13961 fi
13962 elif test $build != $host && test $have_gcc_for_target = yes; then
13963 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13964 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13965 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13966 fi
13967 fi
13968 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13969 # Extract the first word of "ar", so it can be a program name with args.
13970 set dummy ar; ac_word=$2
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13972 $as_echo_n "checking for $ac_word... " >&6; }
13973 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 case $AR_FOR_TARGET in
13977 [\\/]* | ?:[\\/]*)
13978 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13979 ;;
13980 *)
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $gcc_cv_tool_dirs
13983 do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992 done
13993 done
13994 IFS=$as_save_IFS
13995
13996 ;;
13997 esac
13998 fi
13999 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14000 if test -n "$AR_FOR_TARGET"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14002 $as_echo "$AR_FOR_TARGET" >&6; }
14003 else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 $as_echo "no" >&6; }
14006 fi
14007
14008
14009 fi
14010 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14011
14012
14013 if test -n "$AR_FOR_TARGET"; then
14014 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14015 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14016 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14017 fi
14018
14019 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14020 for ncn_progname in ar; do
14021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14022 set dummy ${ncn_progname}; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 if test -n "$AR_FOR_TARGET"; then
14029 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14033 do
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 break 2
14041 fi
14042 done
14043 done
14044 IFS=$as_save_IFS
14045
14046 fi
14047 fi
14048 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14049 if test -n "$AR_FOR_TARGET"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14051 $as_echo "$AR_FOR_TARGET" >&6; }
14052 else
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14055 fi
14056
14057
14058 done
14059 fi
14060
14061 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14062 for ncn_progname in ar; do
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14064 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14065 if test -x $with_build_time_tools/${ncn_progname}; then
14066 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 $as_echo "yes" >&6; }
14069 break
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074 done
14075 fi
14076
14077 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14078 for ncn_progname in ar; do
14079 if test -n "$ncn_target_tool_prefix"; then
14080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 $as_echo_n "checking for $ac_word... " >&6; }
14084 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 if test -n "$AR_FOR_TARGET"; then
14088 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14089 else
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14092 do
14093 IFS=$as_save_IFS
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 break 2
14100 fi
14101 done
14102 done
14103 IFS=$as_save_IFS
14104
14105 fi
14106 fi
14107 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14108 if test -n "$AR_FOR_TARGET"; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14110 $as_echo "$AR_FOR_TARGET" >&6; }
14111 else
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114 fi
14115
14116
14117 fi
14118 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14120 set dummy ${ncn_progname}; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122 $as_echo_n "checking for $ac_word... " >&6; }
14123 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 if test -n "$AR_FOR_TARGET"; then
14127 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14128 else
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14131 do
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14139 fi
14140 done
14141 done
14142 IFS=$as_save_IFS
14143
14144 fi
14145 fi
14146 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14147 if test -n "$AR_FOR_TARGET"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14149 $as_echo "$AR_FOR_TARGET" >&6; }
14150 else
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152 $as_echo "no" >&6; }
14153 fi
14154
14155
14156 fi
14157 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14158 done
14159 fi
14160
14161 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14162 set dummy ar
14163 if test $build = $target ; then
14164 AR_FOR_TARGET="$2"
14165 else
14166 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14167 fi
14168 else
14169 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14170 fi
14171
14172 else
14173 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14174 fi
14175
14176
14177
14178
14179 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14180 if test -n "$with_build_time_tools"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14182 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14183 if test -x $with_build_time_tools/as; then
14184 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14185 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14187 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14188 else
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "no" >&6; }
14191 fi
14192 elif test $build != $host && test $have_gcc_for_target = yes; then
14193 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14194 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14195 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14196 fi
14197 fi
14198 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14199 # Extract the first word of "as", so it can be a program name with args.
14200 set dummy as; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 case $AS_FOR_TARGET in
14207 [\\/]* | ?:[\\/]*)
14208 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14209 ;;
14210 *)
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $gcc_cv_tool_dirs
14213 do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14221 fi
14222 done
14223 done
14224 IFS=$as_save_IFS
14225
14226 ;;
14227 esac
14228 fi
14229 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14230 if test -n "$AS_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14232 $as_echo "$AS_FOR_TARGET" >&6; }
14233 else
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14236 fi
14237
14238
14239 fi
14240 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14241
14242
14243 if test -n "$AS_FOR_TARGET"; then
14244 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14245 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14246 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14247 fi
14248
14249 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14250 for ncn_progname in as; do
14251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14252 set dummy ${ncn_progname}; ac_word=$2
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14254 $as_echo_n "checking for $ac_word... " >&6; }
14255 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 if test -n "$AS_FOR_TARGET"; then
14259 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14260 else
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14263 do
14264 IFS=$as_save_IFS
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 break 2
14271 fi
14272 done
14273 done
14274 IFS=$as_save_IFS
14275
14276 fi
14277 fi
14278 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14279 if test -n "$AS_FOR_TARGET"; then
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14281 $as_echo "$AS_FOR_TARGET" >&6; }
14282 else
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14284 $as_echo "no" >&6; }
14285 fi
14286
14287
14288 done
14289 fi
14290
14291 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14292 for ncn_progname in as; do
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14295 if test -x $with_build_time_tools/${ncn_progname}; then
14296 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298 $as_echo "yes" >&6; }
14299 break
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14303 fi
14304 done
14305 fi
14306
14307 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14308 for ncn_progname in as; do
14309 if test -n "$ncn_target_tool_prefix"; then
14310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14313 $as_echo_n "checking for $ac_word... " >&6; }
14314 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 if test -n "$AS_FOR_TARGET"; then
14318 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14319 else
14320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321 for as_dir in $PATH
14322 do
14323 IFS=$as_save_IFS
14324 test -z "$as_dir" && as_dir=.
14325 for ac_exec_ext in '' $ac_executable_extensions; do
14326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14327 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14329 break 2
14330 fi
14331 done
14332 done
14333 IFS=$as_save_IFS
14334
14335 fi
14336 fi
14337 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14338 if test -n "$AS_FOR_TARGET"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14340 $as_echo "$AS_FOR_TARGET" >&6; }
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 fi
14345
14346
14347 fi
14348 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14350 set dummy ${ncn_progname}; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 if test -n "$AS_FOR_TARGET"; then
14357 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14361 do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14369 fi
14370 done
14371 done
14372 IFS=$as_save_IFS
14373
14374 fi
14375 fi
14376 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14377 if test -n "$AS_FOR_TARGET"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14379 $as_echo "$AS_FOR_TARGET" >&6; }
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14383 fi
14384
14385
14386 fi
14387 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14388 done
14389 fi
14390
14391 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14392 set dummy as
14393 if test $build = $target ; then
14394 AS_FOR_TARGET="$2"
14395 else
14396 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14397 fi
14398 else
14399 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14400 fi
14401
14402 else
14403 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14404 fi
14405
14406
14407
14408
14409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14410 if test -n "$with_build_time_tools"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14412 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14413 if test -x $with_build_time_tools/dlltool; then
14414 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14415 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14417 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14418 else
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 $as_echo "no" >&6; }
14421 fi
14422 elif test $build != $host && test $have_gcc_for_target = yes; then
14423 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14424 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14425 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14426 fi
14427 fi
14428 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14429 # Extract the first word of "dlltool", so it can be a program name with args.
14430 set dummy dlltool; ac_word=$2
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14432 $as_echo_n "checking for $ac_word... " >&6; }
14433 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 case $DLLTOOL_FOR_TARGET in
14437 [\\/]* | ?:[\\/]*)
14438 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14439 ;;
14440 *)
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $gcc_cv_tool_dirs
14443 do
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 ;;
14457 esac
14458 fi
14459 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14460 if test -n "$DLLTOOL_FOR_TARGET"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14462 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14463 else
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14466 fi
14467
14468
14469 fi
14470 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14471
14472
14473 if test -n "$DLLTOOL_FOR_TARGET"; then
14474 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14475 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14476 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14477 fi
14478
14479 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14480 for ncn_progname in dlltool; do
14481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14482 set dummy ${ncn_progname}; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 $as_echo_n "checking for $ac_word... " >&6; }
14485 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 if test -n "$DLLTOOL_FOR_TARGET"; then
14489 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14490 else
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14493 do
14494 IFS=$as_save_IFS
14495 test -z "$as_dir" && as_dir=.
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14500 break 2
14501 fi
14502 done
14503 done
14504 IFS=$as_save_IFS
14505
14506 fi
14507 fi
14508 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14509 if test -n "$DLLTOOL_FOR_TARGET"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14511 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 fi
14516
14517
14518 done
14519 fi
14520
14521 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14522 for ncn_progname in dlltool; do
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14525 if test -x $with_build_time_tools/${ncn_progname}; then
14526 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529 break
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14533 fi
14534 done
14535 fi
14536
14537 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14538 for ncn_progname in dlltool; do
14539 if test -n "$ncn_target_tool_prefix"; then
14540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14543 $as_echo_n "checking for $ac_word... " >&6; }
14544 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 if test -n "$DLLTOOL_FOR_TARGET"; then
14548 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14549 else
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14552 do
14553 IFS=$as_save_IFS
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14557 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14559 break 2
14560 fi
14561 done
14562 done
14563 IFS=$as_save_IFS
14564
14565 fi
14566 fi
14567 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14568 if test -n "$DLLTOOL_FOR_TARGET"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14570 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14571 else
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14574 fi
14575
14576
14577 fi
14578 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14580 set dummy ${ncn_progname}; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14582 $as_echo_n "checking for $ac_word... " >&6; }
14583 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 if test -n "$DLLTOOL_FOR_TARGET"; then
14587 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14588 else
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14591 do
14592 IFS=$as_save_IFS
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14598 break 2
14599 fi
14600 done
14601 done
14602 IFS=$as_save_IFS
14603
14604 fi
14605 fi
14606 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14607 if test -n "$DLLTOOL_FOR_TARGET"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14609 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14613 fi
14614
14615
14616 fi
14617 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14618 done
14619 fi
14620
14621 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14622 set dummy dlltool
14623 if test $build = $target ; then
14624 DLLTOOL_FOR_TARGET="$2"
14625 else
14626 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14627 fi
14628 else
14629 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14630 fi
14631
14632 else
14633 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14634 fi
14635
14636
14637
14638
14639 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14640 if test -n "$with_build_time_tools"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14642 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14643 if test -x $with_build_time_tools/dsymutil; then
14644 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14645 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14647 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14648 else
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14650 $as_echo "no" >&6; }
14651 fi
14652 elif test $build != $host && test $have_gcc_for_target = yes; then
14653 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14654 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14655 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14656 fi
14657 fi
14658 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14659 # Extract the first word of "dsymutil", so it can be a program name with args.
14660 set dummy dsymutil; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14662 $as_echo_n "checking for $ac_word... " >&6; }
14663 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 case $DSYMUTIL_FOR_TARGET in
14667 [\\/]* | ?:[\\/]*)
14668 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14669 ;;
14670 *)
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $gcc_cv_tool_dirs
14673 do
14674 IFS=$as_save_IFS
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14680 break 2
14681 fi
14682 done
14683 done
14684 IFS=$as_save_IFS
14685
14686 ;;
14687 esac
14688 fi
14689 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14690 if test -n "$DSYMUTIL_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14692 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14693 else
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695 $as_echo "no" >&6; }
14696 fi
14697
14698
14699 fi
14700 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14701
14702
14703 if test -n "$DSYMUTIL_FOR_TARGET"; then
14704 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14705 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14706 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14707 fi
14708
14709 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14710 for ncn_progname in dsymutil; do
14711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14712 set dummy ${ncn_progname}; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14716 $as_echo_n "(cached) " >&6
14717 else
14718 if test -n "$DSYMUTIL_FOR_TARGET"; then
14719 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14720 else
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724 IFS=$as_save_IFS
14725 test -z "$as_dir" && as_dir=.
14726 for ac_exec_ext in '' $ac_executable_extensions; do
14727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14728 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14730 break 2
14731 fi
14732 done
14733 done
14734 IFS=$as_save_IFS
14735
14736 fi
14737 fi
14738 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14739 if test -n "$DSYMUTIL_FOR_TARGET"; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14741 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14742 else
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14745 fi
14746
14747
14748 done
14749 fi
14750
14751 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14752 for ncn_progname in dsymutil; do
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14755 if test -x $with_build_time_tools/${ncn_progname}; then
14756 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14758 $as_echo "yes" >&6; }
14759 break
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14763 fi
14764 done
14765 fi
14766
14767 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14768 for ncn_progname in dsymutil; do
14769 if test -n "$ncn_target_tool_prefix"; then
14770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14773 $as_echo_n "checking for $ac_word... " >&6; }
14774 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 if test -n "$DSYMUTIL_FOR_TARGET"; then
14778 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14779 else
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14782 do
14783 IFS=$as_save_IFS
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14787 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14789 break 2
14790 fi
14791 done
14792 done
14793 IFS=$as_save_IFS
14794
14795 fi
14796 fi
14797 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14798 if test -n "$DSYMUTIL_FOR_TARGET"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14800 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14801 else
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 $as_echo "no" >&6; }
14804 fi
14805
14806
14807 fi
14808 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14810 set dummy ${ncn_progname}; ac_word=$2
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14812 $as_echo_n "checking for $ac_word... " >&6; }
14813 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 if test -n "$DSYMUTIL_FOR_TARGET"; then
14817 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14818 else
14819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14820 for as_dir in $PATH
14821 do
14822 IFS=$as_save_IFS
14823 test -z "$as_dir" && as_dir=.
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14826 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14828 break 2
14829 fi
14830 done
14831 done
14832 IFS=$as_save_IFS
14833
14834 fi
14835 fi
14836 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14837 if test -n "$DSYMUTIL_FOR_TARGET"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14839 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14840 else
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 $as_echo "no" >&6; }
14843 fi
14844
14845
14846 fi
14847 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14848 done
14849 fi
14850
14851 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14852 set dummy dsymutil
14853 if test $build = $target ; then
14854 DSYMUTIL_FOR_TARGET="$2"
14855 else
14856 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14857 fi
14858 else
14859 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14860 fi
14861
14862 else
14863 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14864 fi
14865
14866
14867
14868
14869 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14870 if test -n "$with_build_time_tools"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14872 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14873 if test -x $with_build_time_tools/ld; then
14874 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14875 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14877 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14878 else
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880 $as_echo "no" >&6; }
14881 fi
14882 elif test $build != $host && test $have_gcc_for_target = yes; then
14883 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14884 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14885 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14886 fi
14887 fi
14888 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14889 # Extract the first word of "ld", so it can be a program name with args.
14890 set dummy ld; ac_word=$2
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14892 $as_echo_n "checking for $ac_word... " >&6; }
14893 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 case $LD_FOR_TARGET in
14897 [\\/]* | ?:[\\/]*)
14898 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14899 ;;
14900 *)
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $gcc_cv_tool_dirs
14903 do
14904 IFS=$as_save_IFS
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14910 break 2
14911 fi
14912 done
14913 done
14914 IFS=$as_save_IFS
14915
14916 ;;
14917 esac
14918 fi
14919 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14920 if test -n "$LD_FOR_TARGET"; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14922 $as_echo "$LD_FOR_TARGET" >&6; }
14923 else
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14925 $as_echo "no" >&6; }
14926 fi
14927
14928
14929 fi
14930 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14931
14932
14933 if test -n "$LD_FOR_TARGET"; then
14934 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14935 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14936 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14937 fi
14938
14939 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14940 for ncn_progname in ld; do
14941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14942 set dummy ${ncn_progname}; ac_word=$2
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944 $as_echo_n "checking for $ac_word... " >&6; }
14945 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947 else
14948 if test -n "$LD_FOR_TARGET"; then
14949 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14950 else
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952 for as_dir in $PATH
14953 do
14954 IFS=$as_save_IFS
14955 test -z "$as_dir" && as_dir=.
14956 for ac_exec_ext in '' $ac_executable_extensions; do
14957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14958 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14960 break 2
14961 fi
14962 done
14963 done
14964 IFS=$as_save_IFS
14965
14966 fi
14967 fi
14968 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14969 if test -n "$LD_FOR_TARGET"; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14971 $as_echo "$LD_FOR_TARGET" >&6; }
14972 else
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 $as_echo "no" >&6; }
14975 fi
14976
14977
14978 done
14979 fi
14980
14981 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14982 for ncn_progname in ld; do
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14985 if test -x $with_build_time_tools/${ncn_progname}; then
14986 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14988 $as_echo "yes" >&6; }
14989 break
14990 else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14993 fi
14994 done
14995 fi
14996
14997 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14998 for ncn_progname in ld; do
14999 if test -n "$ncn_target_tool_prefix"; then
15000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15003 $as_echo_n "checking for $ac_word... " >&6; }
15004 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15005 $as_echo_n "(cached) " >&6
15006 else
15007 if test -n "$LD_FOR_TARGET"; then
15008 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15009 else
15010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15011 for as_dir in $PATH
15012 do
15013 IFS=$as_save_IFS
15014 test -z "$as_dir" && as_dir=.
15015 for ac_exec_ext in '' $ac_executable_extensions; do
15016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15017 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15019 break 2
15020 fi
15021 done
15022 done
15023 IFS=$as_save_IFS
15024
15025 fi
15026 fi
15027 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15028 if test -n "$LD_FOR_TARGET"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15030 $as_echo "$LD_FOR_TARGET" >&6; }
15031 else
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035
15036
15037 fi
15038 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15040 set dummy ${ncn_progname}; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15042 $as_echo_n "checking for $ac_word... " >&6; }
15043 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 if test -n "$LD_FOR_TARGET"; then
15047 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15048 else
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15051 do
15052 IFS=$as_save_IFS
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060 done
15061 done
15062 IFS=$as_save_IFS
15063
15064 fi
15065 fi
15066 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15067 if test -n "$LD_FOR_TARGET"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15069 $as_echo "$LD_FOR_TARGET" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074
15075
15076 fi
15077 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15078 done
15079 fi
15080
15081 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15082 set dummy ld
15083 if test $build = $target ; then
15084 LD_FOR_TARGET="$2"
15085 else
15086 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15087 fi
15088 else
15089 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15090 fi
15091
15092 else
15093 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15094 fi
15095
15096
15097
15098
15099 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15100 if test -n "$with_build_time_tools"; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15102 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15103 if test -x $with_build_time_tools/lipo; then
15104 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15105 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15107 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15108 else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112 elif test $build != $host && test $have_gcc_for_target = yes; then
15113 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15114 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15115 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15116 fi
15117 fi
15118 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15119 # Extract the first word of "lipo", so it can be a program name with args.
15120 set dummy lipo; ac_word=$2
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15122 $as_echo_n "checking for $ac_word... " >&6; }
15123 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15124 $as_echo_n "(cached) " >&6
15125 else
15126 case $LIPO_FOR_TARGET in
15127 [\\/]* | ?:[\\/]*)
15128 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15129 ;;
15130 *)
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $gcc_cv_tool_dirs
15133 do
15134 IFS=$as_save_IFS
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 break 2
15141 fi
15142 done
15143 done
15144 IFS=$as_save_IFS
15145
15146 ;;
15147 esac
15148 fi
15149 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15150 if test -n "$LIPO_FOR_TARGET"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15152 $as_echo "$LIPO_FOR_TARGET" >&6; }
15153 else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15156 fi
15157
15158
15159 fi
15160 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15161
15162
15163 if test -n "$LIPO_FOR_TARGET"; then
15164 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15165 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15166 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15167 fi
15168
15169 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15170 for ncn_progname in lipo; do
15171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15172 set dummy ${ncn_progname}; ac_word=$2
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15174 $as_echo_n "checking for $ac_word... " >&6; }
15175 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 if test -n "$LIPO_FOR_TARGET"; then
15179 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15180 else
15181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15182 for as_dir in $PATH
15183 do
15184 IFS=$as_save_IFS
15185 test -z "$as_dir" && as_dir=.
15186 for ac_exec_ext in '' $ac_executable_extensions; do
15187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15188 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15190 break 2
15191 fi
15192 done
15193 done
15194 IFS=$as_save_IFS
15195
15196 fi
15197 fi
15198 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15199 if test -n "$LIPO_FOR_TARGET"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15201 $as_echo "$LIPO_FOR_TARGET" >&6; }
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 $as_echo "no" >&6; }
15205 fi
15206
15207
15208 done
15209 fi
15210
15211 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15212 for ncn_progname in lipo; do
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15215 if test -x $with_build_time_tools/${ncn_progname}; then
15216 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15218 $as_echo "yes" >&6; }
15219 break
15220 else
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15223 fi
15224 done
15225 fi
15226
15227 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15228 for ncn_progname in lipo; do
15229 if test -n "$ncn_target_tool_prefix"; then
15230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15233 $as_echo_n "checking for $ac_word... " >&6; }
15234 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 if test -n "$LIPO_FOR_TARGET"; then
15238 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15239 else
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15242 do
15243 IFS=$as_save_IFS
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15247 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15249 break 2
15250 fi
15251 done
15252 done
15253 IFS=$as_save_IFS
15254
15255 fi
15256 fi
15257 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15258 if test -n "$LIPO_FOR_TARGET"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15260 $as_echo "$LIPO_FOR_TARGET" >&6; }
15261 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15264 fi
15265
15266
15267 fi
15268 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15270 set dummy ${ncn_progname}; ac_word=$2
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15272 $as_echo_n "checking for $ac_word... " >&6; }
15273 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 if test -n "$LIPO_FOR_TARGET"; then
15277 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15278 else
15279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15281 do
15282 IFS=$as_save_IFS
15283 test -z "$as_dir" && as_dir=.
15284 for ac_exec_ext in '' $ac_executable_extensions; do
15285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15286 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15288 break 2
15289 fi
15290 done
15291 done
15292 IFS=$as_save_IFS
15293
15294 fi
15295 fi
15296 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15297 if test -n "$LIPO_FOR_TARGET"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15299 $as_echo "$LIPO_FOR_TARGET" >&6; }
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15303 fi
15304
15305
15306 fi
15307 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15308 done
15309 fi
15310
15311 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15312 set dummy lipo
15313 if test $build = $target ; then
15314 LIPO_FOR_TARGET="$2"
15315 else
15316 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15317 fi
15318 else
15319 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15320 fi
15321
15322 else
15323 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15324 fi
15325
15326
15327
15328
15329 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15330 if test -n "$with_build_time_tools"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15332 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15333 if test -x $with_build_time_tools/nm; then
15334 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15335 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15337 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15338 else
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15340 $as_echo "no" >&6; }
15341 fi
15342 elif test $build != $host && test $have_gcc_for_target = yes; then
15343 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15344 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15345 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15346 fi
15347 fi
15348 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15349 # Extract the first word of "nm", so it can be a program name with args.
15350 set dummy nm; ac_word=$2
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15352 $as_echo_n "checking for $ac_word... " >&6; }
15353 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 case $NM_FOR_TARGET in
15357 [\\/]* | ?:[\\/]*)
15358 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15359 ;;
15360 *)
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $gcc_cv_tool_dirs
15363 do
15364 IFS=$as_save_IFS
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15370 break 2
15371 fi
15372 done
15373 done
15374 IFS=$as_save_IFS
15375
15376 ;;
15377 esac
15378 fi
15379 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15380 if test -n "$NM_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15382 $as_echo "$NM_FOR_TARGET" >&6; }
15383 else
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385 $as_echo "no" >&6; }
15386 fi
15387
15388
15389 fi
15390 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15391
15392
15393 if test -n "$NM_FOR_TARGET"; then
15394 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15395 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15396 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15397 fi
15398
15399 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15400 for ncn_progname in nm; do
15401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15402 set dummy ${ncn_progname}; ac_word=$2
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15404 $as_echo_n "checking for $ac_word... " >&6; }
15405 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407 else
15408 if test -n "$NM_FOR_TARGET"; then
15409 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15410 else
15411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15412 for as_dir in $PATH
15413 do
15414 IFS=$as_save_IFS
15415 test -z "$as_dir" && as_dir=.
15416 for ac_exec_ext in '' $ac_executable_extensions; do
15417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15418 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15420 break 2
15421 fi
15422 done
15423 done
15424 IFS=$as_save_IFS
15425
15426 fi
15427 fi
15428 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15429 if test -n "$NM_FOR_TARGET"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15431 $as_echo "$NM_FOR_TARGET" >&6; }
15432 else
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15434 $as_echo "no" >&6; }
15435 fi
15436
15437
15438 done
15439 fi
15440
15441 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15442 for ncn_progname in nm; do
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15445 if test -x $with_build_time_tools/${ncn_progname}; then
15446 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15448 $as_echo "yes" >&6; }
15449 break
15450 else
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15453 fi
15454 done
15455 fi
15456
15457 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15458 for ncn_progname in nm; do
15459 if test -n "$ncn_target_tool_prefix"; then
15460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15463 $as_echo_n "checking for $ac_word... " >&6; }
15464 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15465 $as_echo_n "(cached) " >&6
15466 else
15467 if test -n "$NM_FOR_TARGET"; then
15468 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15469 else
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in $PATH
15472 do
15473 IFS=$as_save_IFS
15474 test -z "$as_dir" && as_dir=.
15475 for ac_exec_ext in '' $ac_executable_extensions; do
15476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15477 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15479 break 2
15480 fi
15481 done
15482 done
15483 IFS=$as_save_IFS
15484
15485 fi
15486 fi
15487 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15488 if test -n "$NM_FOR_TARGET"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15490 $as_echo "$NM_FOR_TARGET" >&6; }
15491 else
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15494 fi
15495
15496
15497 fi
15498 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15500 set dummy ${ncn_progname}; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15502 $as_echo_n "checking for $ac_word... " >&6; }
15503 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 if test -n "$NM_FOR_TARGET"; then
15507 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15508 else
15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 for as_dir in $PATH
15511 do
15512 IFS=$as_save_IFS
15513 test -z "$as_dir" && as_dir=.
15514 for ac_exec_ext in '' $ac_executable_extensions; do
15515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15518 break 2
15519 fi
15520 done
15521 done
15522 IFS=$as_save_IFS
15523
15524 fi
15525 fi
15526 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15527 if test -n "$NM_FOR_TARGET"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15529 $as_echo "$NM_FOR_TARGET" >&6; }
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534
15535
15536 fi
15537 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15538 done
15539 fi
15540
15541 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15542 set dummy nm
15543 if test $build = $target ; then
15544 NM_FOR_TARGET="$2"
15545 else
15546 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15547 fi
15548 else
15549 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15550 fi
15551
15552 else
15553 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15554 fi
15555
15556
15557
15558
15559 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15560 if test -n "$with_build_time_tools"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15562 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15563 if test -x $with_build_time_tools/objcopy; then
15564 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15565 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15567 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15568 else
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15570 $as_echo "no" >&6; }
15571 fi
15572 elif test $build != $host && test $have_gcc_for_target = yes; then
15573 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15574 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15575 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15576 fi
15577 fi
15578 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15579 # Extract the first word of "objcopy", so it can be a program name with args.
15580 set dummy objcopy; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15582 $as_echo_n "checking for $ac_word... " >&6; }
15583 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 case $OBJCOPY_FOR_TARGET in
15587 [\\/]* | ?:[\\/]*)
15588 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15589 ;;
15590 *)
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $gcc_cv_tool_dirs
15593 do
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15600 break 2
15601 fi
15602 done
15603 done
15604 IFS=$as_save_IFS
15605
15606 ;;
15607 esac
15608 fi
15609 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15610 if test -n "$OBJCOPY_FOR_TARGET"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15612 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15613 else
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616 fi
15617
15618
15619 fi
15620 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15621
15622
15623 if test -n "$OBJCOPY_FOR_TARGET"; then
15624 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15625 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15626 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15627 fi
15628
15629 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15630 for ncn_progname in objcopy; do
15631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15632 set dummy ${ncn_progname}; ac_word=$2
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15634 $as_echo_n "checking for $ac_word... " >&6; }
15635 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if test -n "$OBJCOPY_FOR_TARGET"; then
15639 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15640 else
15641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15642 for as_dir in $PATH
15643 do
15644 IFS=$as_save_IFS
15645 test -z "$as_dir" && as_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15648 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15650 break 2
15651 fi
15652 done
15653 done
15654 IFS=$as_save_IFS
15655
15656 fi
15657 fi
15658 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15659 if test -n "$OBJCOPY_FOR_TARGET"; then
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15661 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15662 else
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15664 $as_echo "no" >&6; }
15665 fi
15666
15667
15668 done
15669 fi
15670
15671 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15672 for ncn_progname in objcopy; do
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15674 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15675 if test -x $with_build_time_tools/${ncn_progname}; then
15676 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678 $as_echo "yes" >&6; }
15679 break
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15683 fi
15684 done
15685 fi
15686
15687 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15688 for ncn_progname in objcopy; do
15689 if test -n "$ncn_target_tool_prefix"; then
15690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693 $as_echo_n "checking for $ac_word... " >&6; }
15694 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15697 if test -n "$OBJCOPY_FOR_TARGET"; then
15698 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15699 else
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15702 do
15703 IFS=$as_save_IFS
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15709 break 2
15710 fi
15711 done
15712 done
15713 IFS=$as_save_IFS
15714
15715 fi
15716 fi
15717 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15718 if test -n "$OBJCOPY_FOR_TARGET"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15720 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15721 else
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15724 fi
15725
15726
15727 fi
15728 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15730 set dummy ${ncn_progname}; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15732 $as_echo_n "checking for $ac_word... " >&6; }
15733 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 if test -n "$OBJCOPY_FOR_TARGET"; then
15737 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15738 else
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15741 do
15742 IFS=$as_save_IFS
15743 test -z "$as_dir" && as_dir=.
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15746 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15748 break 2
15749 fi
15750 done
15751 done
15752 IFS=$as_save_IFS
15753
15754 fi
15755 fi
15756 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15757 if test -n "$OBJCOPY_FOR_TARGET"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15759 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15763 fi
15764
15765
15766 fi
15767 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15768 done
15769 fi
15770
15771 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15772 set dummy objcopy
15773 if test $build = $target ; then
15774 OBJCOPY_FOR_TARGET="$2"
15775 else
15776 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15777 fi
15778 else
15779 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15780 fi
15781
15782 else
15783 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15784 fi
15785
15786
15787
15788
15789 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15790 if test -n "$with_build_time_tools"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15792 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15793 if test -x $with_build_time_tools/objdump; then
15794 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15795 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15797 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15798 else
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15801 fi
15802 elif test $build != $host && test $have_gcc_for_target = yes; then
15803 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15804 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15805 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15806 fi
15807 fi
15808 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15809 # Extract the first word of "objdump", so it can be a program name with args.
15810 set dummy objdump; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15812 $as_echo_n "checking for $ac_word... " >&6; }
15813 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 case $OBJDUMP_FOR_TARGET in
15817 [\\/]* | ?:[\\/]*)
15818 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15819 ;;
15820 *)
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $gcc_cv_tool_dirs
15823 do
15824 IFS=$as_save_IFS
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15830 break 2
15831 fi
15832 done
15833 done
15834 IFS=$as_save_IFS
15835
15836 ;;
15837 esac
15838 fi
15839 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15840 if test -n "$OBJDUMP_FOR_TARGET"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15842 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15846 fi
15847
15848
15849 fi
15850 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15851
15852
15853 if test -n "$OBJDUMP_FOR_TARGET"; then
15854 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15855 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15856 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15857 fi
15858
15859 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15860 for ncn_progname in objdump; do
15861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15862 set dummy ${ncn_progname}; ac_word=$2
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15864 $as_echo_n "checking for $ac_word... " >&6; }
15865 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 if test -n "$OBJDUMP_FOR_TARGET"; then
15869 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15870 else
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15873 do
15874 IFS=$as_save_IFS
15875 test -z "$as_dir" && as_dir=.
15876 for ac_exec_ext in '' $ac_executable_extensions; do
15877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15880 break 2
15881 fi
15882 done
15883 done
15884 IFS=$as_save_IFS
15885
15886 fi
15887 fi
15888 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15889 if test -n "$OBJDUMP_FOR_TARGET"; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15891 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15892 else
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15894 $as_echo "no" >&6; }
15895 fi
15896
15897
15898 done
15899 fi
15900
15901 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15902 for ncn_progname in objdump; do
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15904 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15905 if test -x $with_build_time_tools/${ncn_progname}; then
15906 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15908 $as_echo "yes" >&6; }
15909 break
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913 fi
15914 done
15915 fi
15916
15917 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15918 for ncn_progname in objdump; do
15919 if test -n "$ncn_target_tool_prefix"; then
15920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15923 $as_echo_n "checking for $ac_word... " >&6; }
15924 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15927 if test -n "$OBJDUMP_FOR_TARGET"; then
15928 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15929 else
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931 for as_dir in $PATH
15932 do
15933 IFS=$as_save_IFS
15934 test -z "$as_dir" && as_dir=.
15935 for ac_exec_ext in '' $ac_executable_extensions; do
15936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15939 break 2
15940 fi
15941 done
15942 done
15943 IFS=$as_save_IFS
15944
15945 fi
15946 fi
15947 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15948 if test -n "$OBJDUMP_FOR_TARGET"; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15950 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15951 else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15954 fi
15955
15956
15957 fi
15958 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15960 set dummy ${ncn_progname}; ac_word=$2
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15962 $as_echo_n "checking for $ac_word... " >&6; }
15963 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15966 if test -n "$OBJDUMP_FOR_TARGET"; then
15967 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15968 else
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15971 do
15972 IFS=$as_save_IFS
15973 test -z "$as_dir" && as_dir=.
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15978 break 2
15979 fi
15980 done
15981 done
15982 IFS=$as_save_IFS
15983
15984 fi
15985 fi
15986 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15987 if test -n "$OBJDUMP_FOR_TARGET"; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15989 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15993 fi
15994
15995
15996 fi
15997 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15998 done
15999 fi
16000
16001 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16002 set dummy objdump
16003 if test $build = $target ; then
16004 OBJDUMP_FOR_TARGET="$2"
16005 else
16006 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16007 fi
16008 else
16009 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16010 fi
16011
16012 else
16013 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16014 fi
16015
16016
16017
16018
16019 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16020 if test -n "$with_build_time_tools"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16022 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16023 if test -x $with_build_time_tools/otool; then
16024 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16025 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16027 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16028 else
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031 fi
16032 elif test $build != $host && test $have_gcc_for_target = yes; then
16033 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16034 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16035 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16036 fi
16037 fi
16038 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16039 # Extract the first word of "otool", so it can be a program name with args.
16040 set dummy otool; ac_word=$2
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16042 $as_echo_n "checking for $ac_word... " >&6; }
16043 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16044 $as_echo_n "(cached) " >&6
16045 else
16046 case $OTOOL_FOR_TARGET in
16047 [\\/]* | ?:[\\/]*)
16048 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16049 ;;
16050 *)
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $gcc_cv_tool_dirs
16053 do
16054 IFS=$as_save_IFS
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 break 2
16061 fi
16062 done
16063 done
16064 IFS=$as_save_IFS
16065
16066 ;;
16067 esac
16068 fi
16069 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16070 if test -n "$OTOOL_FOR_TARGET"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16072 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16073 else
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16075 $as_echo "no" >&6; }
16076 fi
16077
16078
16079 fi
16080 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16081
16082
16083 if test -n "$OTOOL_FOR_TARGET"; then
16084 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16085 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16086 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16087 fi
16088
16089 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16090 for ncn_progname in otool; do
16091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16092 set dummy ${ncn_progname}; ac_word=$2
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16094 $as_echo_n "checking for $ac_word... " >&6; }
16095 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 if test -n "$OTOOL_FOR_TARGET"; then
16099 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16100 else
16101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16102 for as_dir in $PATH
16103 do
16104 IFS=$as_save_IFS
16105 test -z "$as_dir" && as_dir=.
16106 for ac_exec_ext in '' $ac_executable_extensions; do
16107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16108 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16110 break 2
16111 fi
16112 done
16113 done
16114 IFS=$as_save_IFS
16115
16116 fi
16117 fi
16118 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16119 if test -n "$OTOOL_FOR_TARGET"; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16121 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16122 else
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124 $as_echo "no" >&6; }
16125 fi
16126
16127
16128 done
16129 fi
16130
16131 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16132 for ncn_progname in otool; do
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16135 if test -x $with_build_time_tools/${ncn_progname}; then
16136 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16138 $as_echo "yes" >&6; }
16139 break
16140 else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 $as_echo "no" >&6; }
16143 fi
16144 done
16145 fi
16146
16147 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16148 for ncn_progname in otool; do
16149 if test -n "$ncn_target_tool_prefix"; then
16150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16157 if test -n "$OTOOL_FOR_TARGET"; then
16158 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16159 else
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161 for as_dir in $PATH
16162 do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 for ac_exec_ext in '' $ac_executable_extensions; do
16166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16167 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16169 break 2
16170 fi
16171 done
16172 done
16173 IFS=$as_save_IFS
16174
16175 fi
16176 fi
16177 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16178 if test -n "$OTOOL_FOR_TARGET"; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16180 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183 $as_echo "no" >&6; }
16184 fi
16185
16186
16187 fi
16188 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16190 set dummy ${ncn_progname}; ac_word=$2
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16192 $as_echo_n "checking for $ac_word... " >&6; }
16193 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 if test -n "$OTOOL_FOR_TARGET"; then
16197 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16198 else
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200 for as_dir in $PATH
16201 do
16202 IFS=$as_save_IFS
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 break 2
16209 fi
16210 done
16211 done
16212 IFS=$as_save_IFS
16213
16214 fi
16215 fi
16216 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16217 if test -n "$OTOOL_FOR_TARGET"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16219 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16223 fi
16224
16225
16226 fi
16227 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16228 done
16229 fi
16230
16231 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16232 set dummy otool
16233 if test $build = $target ; then
16234 OTOOL_FOR_TARGET="$2"
16235 else
16236 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16237 fi
16238 else
16239 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16240 fi
16241
16242 else
16243 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16244 fi
16245
16246
16247
16248
16249 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16250 if test -n "$with_build_time_tools"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16252 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16253 if test -x $with_build_time_tools/ranlib; then
16254 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16255 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16257 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16258 else
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261 fi
16262 elif test $build != $host && test $have_gcc_for_target = yes; then
16263 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16264 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16265 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16266 fi
16267 fi
16268 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16269 # Extract the first word of "ranlib", so it can be a program name with args.
16270 set dummy ranlib; ac_word=$2
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16272 $as_echo_n "checking for $ac_word... " >&6; }
16273 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 case $RANLIB_FOR_TARGET in
16277 [\\/]* | ?:[\\/]*)
16278 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16279 ;;
16280 *)
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $gcc_cv_tool_dirs
16283 do
16284 IFS=$as_save_IFS
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16290 break 2
16291 fi
16292 done
16293 done
16294 IFS=$as_save_IFS
16295
16296 ;;
16297 esac
16298 fi
16299 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16300 if test -n "$RANLIB_FOR_TARGET"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16302 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16303 else
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306 fi
16307
16308
16309 fi
16310 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16311
16312
16313 if test -n "$RANLIB_FOR_TARGET"; then
16314 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16315 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16316 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16317 fi
16318
16319 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16320 for ncn_progname in ranlib; do
16321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16322 set dummy ${ncn_progname}; ac_word=$2
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16324 $as_echo_n "checking for $ac_word... " >&6; }
16325 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327 else
16328 if test -n "$RANLIB_FOR_TARGET"; then
16329 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16330 else
16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16333 do
16334 IFS=$as_save_IFS
16335 test -z "$as_dir" && as_dir=.
16336 for ac_exec_ext in '' $ac_executable_extensions; do
16337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16338 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16340 break 2
16341 fi
16342 done
16343 done
16344 IFS=$as_save_IFS
16345
16346 fi
16347 fi
16348 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16349 if test -n "$RANLIB_FOR_TARGET"; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16351 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16352 else
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16355 fi
16356
16357
16358 done
16359 fi
16360
16361 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16362 for ncn_progname in ranlib; do
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16364 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16365 if test -x $with_build_time_tools/${ncn_progname}; then
16366 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16368 $as_echo "yes" >&6; }
16369 break
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16373 fi
16374 done
16375 fi
16376
16377 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16378 for ncn_progname in ranlib; do
16379 if test -n "$ncn_target_tool_prefix"; then
16380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16383 $as_echo_n "checking for $ac_word... " >&6; }
16384 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16385 $as_echo_n "(cached) " >&6
16386 else
16387 if test -n "$RANLIB_FOR_TARGET"; then
16388 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16389 else
16390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16391 for as_dir in $PATH
16392 do
16393 IFS=$as_save_IFS
16394 test -z "$as_dir" && as_dir=.
16395 for ac_exec_ext in '' $ac_executable_extensions; do
16396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16397 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16399 break 2
16400 fi
16401 done
16402 done
16403 IFS=$as_save_IFS
16404
16405 fi
16406 fi
16407 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16408 if test -n "$RANLIB_FOR_TARGET"; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16410 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16411 else
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413 $as_echo "no" >&6; }
16414 fi
16415
16416
16417 fi
16418 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16420 set dummy ${ncn_progname}; ac_word=$2
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16422 $as_echo_n "checking for $ac_word... " >&6; }
16423 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 if test -n "$RANLIB_FOR_TARGET"; then
16427 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16428 else
16429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16430 for as_dir in $PATH
16431 do
16432 IFS=$as_save_IFS
16433 test -z "$as_dir" && as_dir=.
16434 for ac_exec_ext in '' $ac_executable_extensions; do
16435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16436 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16438 break 2
16439 fi
16440 done
16441 done
16442 IFS=$as_save_IFS
16443
16444 fi
16445 fi
16446 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16447 if test -n "$RANLIB_FOR_TARGET"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16449 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453 fi
16454
16455
16456 fi
16457 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16458 done
16459 fi
16460
16461 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16462 set dummy ranlib
16463 if test $build = $target ; then
16464 RANLIB_FOR_TARGET="$2"
16465 else
16466 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16467 fi
16468 else
16469 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16470 fi
16471
16472 else
16473 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16474 fi
16475
16476
16477
16478
16479 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16480 if test -n "$with_build_time_tools"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16482 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16483 if test -x $with_build_time_tools/readelf; then
16484 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16485 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16487 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16488 else
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16491 fi
16492 elif test $build != $host && test $have_gcc_for_target = yes; then
16493 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16494 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16495 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16496 fi
16497 fi
16498 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16499 # Extract the first word of "readelf", so it can be a program name with args.
16500 set dummy readelf; ac_word=$2
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16502 $as_echo_n "checking for $ac_word... " >&6; }
16503 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 case $READELF_FOR_TARGET in
16507 [\\/]* | ?:[\\/]*)
16508 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16509 ;;
16510 *)
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $gcc_cv_tool_dirs
16513 do
16514 IFS=$as_save_IFS
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520 break 2
16521 fi
16522 done
16523 done
16524 IFS=$as_save_IFS
16525
16526 ;;
16527 esac
16528 fi
16529 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16530 if test -n "$READELF_FOR_TARGET"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16532 $as_echo "$READELF_FOR_TARGET" >&6; }
16533 else
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16535 $as_echo "no" >&6; }
16536 fi
16537
16538
16539 fi
16540 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16541
16542
16543 if test -n "$READELF_FOR_TARGET"; then
16544 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16545 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16546 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16547 fi
16548
16549 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16550 for ncn_progname in readelf; do
16551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16552 set dummy ${ncn_progname}; ac_word=$2
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16554 $as_echo_n "checking for $ac_word... " >&6; }
16555 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 if test -n "$READELF_FOR_TARGET"; then
16559 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16560 else
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16563 do
16564 IFS=$as_save_IFS
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16570 break 2
16571 fi
16572 done
16573 done
16574 IFS=$as_save_IFS
16575
16576 fi
16577 fi
16578 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16579 if test -n "$READELF_FOR_TARGET"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16581 $as_echo "$READELF_FOR_TARGET" >&6; }
16582 else
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16585 fi
16586
16587
16588 done
16589 fi
16590
16591 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16592 for ncn_progname in readelf; do
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16594 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16595 if test -x $with_build_time_tools/${ncn_progname}; then
16596 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16598 $as_echo "yes" >&6; }
16599 break
16600 else
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602 $as_echo "no" >&6; }
16603 fi
16604 done
16605 fi
16606
16607 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16608 for ncn_progname in readelf; do
16609 if test -n "$ncn_target_tool_prefix"; then
16610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16613 $as_echo_n "checking for $ac_word... " >&6; }
16614 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 if test -n "$READELF_FOR_TARGET"; then
16618 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16619 else
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH
16622 do
16623 IFS=$as_save_IFS
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16629 break 2
16630 fi
16631 done
16632 done
16633 IFS=$as_save_IFS
16634
16635 fi
16636 fi
16637 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16638 if test -n "$READELF_FOR_TARGET"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16640 $as_echo "$READELF_FOR_TARGET" >&6; }
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16644 fi
16645
16646
16647 fi
16648 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16650 set dummy ${ncn_progname}; ac_word=$2
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16652 $as_echo_n "checking for $ac_word... " >&6; }
16653 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 if test -n "$READELF_FOR_TARGET"; then
16657 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16658 else
16659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660 for as_dir in $PATH
16661 do
16662 IFS=$as_save_IFS
16663 test -z "$as_dir" && as_dir=.
16664 for ac_exec_ext in '' $ac_executable_extensions; do
16665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16668 break 2
16669 fi
16670 done
16671 done
16672 IFS=$as_save_IFS
16673
16674 fi
16675 fi
16676 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16677 if test -n "$READELF_FOR_TARGET"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16679 $as_echo "$READELF_FOR_TARGET" >&6; }
16680 else
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16683 fi
16684
16685
16686 fi
16687 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16688 done
16689 fi
16690
16691 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16692 set dummy readelf
16693 if test $build = $target ; then
16694 READELF_FOR_TARGET="$2"
16695 else
16696 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16697 fi
16698 else
16699 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16700 fi
16701
16702 else
16703 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16704 fi
16705
16706
16707
16708
16709 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16710 if test -n "$with_build_time_tools"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16712 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16713 if test -x $with_build_time_tools/strip; then
16714 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16715 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16717 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16718 else
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720 $as_echo "no" >&6; }
16721 fi
16722 elif test $build != $host && test $have_gcc_for_target = yes; then
16723 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16724 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16725 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16726 fi
16727 fi
16728 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16729 # Extract the first word of "strip", so it can be a program name with args.
16730 set dummy strip; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16732 $as_echo_n "checking for $ac_word... " >&6; }
16733 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16734 $as_echo_n "(cached) " >&6
16735 else
16736 case $STRIP_FOR_TARGET in
16737 [\\/]* | ?:[\\/]*)
16738 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16739 ;;
16740 *)
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $gcc_cv_tool_dirs
16743 do
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16751 fi
16752 done
16753 done
16754 IFS=$as_save_IFS
16755
16756 ;;
16757 esac
16758 fi
16759 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16760 if test -n "$STRIP_FOR_TARGET"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16762 $as_echo "$STRIP_FOR_TARGET" >&6; }
16763 else
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16766 fi
16767
16768
16769 fi
16770 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16771
16772
16773 if test -n "$STRIP_FOR_TARGET"; then
16774 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16775 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16776 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16777 fi
16778
16779 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16780 for ncn_progname in strip; do
16781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16782 set dummy ${ncn_progname}; ac_word=$2
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16784 $as_echo_n "checking for $ac_word... " >&6; }
16785 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16786 $as_echo_n "(cached) " >&6
16787 else
16788 if test -n "$STRIP_FOR_TARGET"; then
16789 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16790 else
16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16793 do
16794 IFS=$as_save_IFS
16795 test -z "$as_dir" && as_dir=.
16796 for ac_exec_ext in '' $ac_executable_extensions; do
16797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16798 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16800 break 2
16801 fi
16802 done
16803 done
16804 IFS=$as_save_IFS
16805
16806 fi
16807 fi
16808 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16809 if test -n "$STRIP_FOR_TARGET"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16811 $as_echo "$STRIP_FOR_TARGET" >&6; }
16812 else
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814 $as_echo "no" >&6; }
16815 fi
16816
16817
16818 done
16819 fi
16820
16821 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16822 for ncn_progname in strip; do
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16824 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16825 if test -x $with_build_time_tools/${ncn_progname}; then
16826 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829 break
16830 else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834 done
16835 fi
16836
16837 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16838 for ncn_progname in strip; do
16839 if test -n "$ncn_target_tool_prefix"; then
16840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843 $as_echo_n "checking for $ac_word... " >&6; }
16844 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 if test -n "$STRIP_FOR_TARGET"; then
16848 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16849 else
16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16851 for as_dir in $PATH
16852 do
16853 IFS=$as_save_IFS
16854 test -z "$as_dir" && as_dir=.
16855 for ac_exec_ext in '' $ac_executable_extensions; do
16856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16857 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16859 break 2
16860 fi
16861 done
16862 done
16863 IFS=$as_save_IFS
16864
16865 fi
16866 fi
16867 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16868 if test -n "$STRIP_FOR_TARGET"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16870 $as_echo "$STRIP_FOR_TARGET" >&6; }
16871 else
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16874 fi
16875
16876
16877 fi
16878 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16880 set dummy ${ncn_progname}; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16882 $as_echo_n "checking for $ac_word... " >&6; }
16883 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 if test -n "$STRIP_FOR_TARGET"; then
16887 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16888 else
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16891 do
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16898 break 2
16899 fi
16900 done
16901 done
16902 IFS=$as_save_IFS
16903
16904 fi
16905 fi
16906 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16907 if test -n "$STRIP_FOR_TARGET"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16909 $as_echo "$STRIP_FOR_TARGET" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16913 fi
16914
16915
16916 fi
16917 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16918 done
16919 fi
16920
16921 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16922 set dummy strip
16923 if test $build = $target ; then
16924 STRIP_FOR_TARGET="$2"
16925 else
16926 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16927 fi
16928 else
16929 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16930 fi
16931
16932 else
16933 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16934 fi
16935
16936
16937
16938
16939 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16940 if test -n "$with_build_time_tools"; then
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16942 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16943 if test -x $with_build_time_tools/windres; then
16944 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16945 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16947 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16948 else
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16950 $as_echo "no" >&6; }
16951 fi
16952 elif test $build != $host && test $have_gcc_for_target = yes; then
16953 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16954 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16955 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16956 fi
16957 fi
16958 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16959 # Extract the first word of "windres", so it can be a program name with args.
16960 set dummy windres; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16962 $as_echo_n "checking for $ac_word... " >&6; }
16963 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 case $WINDRES_FOR_TARGET in
16967 [\\/]* | ?:[\\/]*)
16968 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16969 ;;
16970 *)
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $gcc_cv_tool_dirs
16973 do
16974 IFS=$as_save_IFS
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 break 2
16981 fi
16982 done
16983 done
16984 IFS=$as_save_IFS
16985
16986 ;;
16987 esac
16988 fi
16989 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16990 if test -n "$WINDRES_FOR_TARGET"; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16992 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16993 else
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16996 fi
16997
16998
16999 fi
17000 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17001
17002
17003 if test -n "$WINDRES_FOR_TARGET"; then
17004 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17005 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17006 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17007 fi
17008
17009 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17010 for ncn_progname in windres; do
17011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17012 set dummy ${ncn_progname}; ac_word=$2
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17014 $as_echo_n "checking for $ac_word... " >&6; }
17015 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17016 $as_echo_n "(cached) " >&6
17017 else
17018 if test -n "$WINDRES_FOR_TARGET"; then
17019 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17020 else
17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022 for as_dir in $PATH
17023 do
17024 IFS=$as_save_IFS
17025 test -z "$as_dir" && as_dir=.
17026 for ac_exec_ext in '' $ac_executable_extensions; do
17027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17028 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17030 break 2
17031 fi
17032 done
17033 done
17034 IFS=$as_save_IFS
17035
17036 fi
17037 fi
17038 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17039 if test -n "$WINDRES_FOR_TARGET"; then
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17041 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17042 else
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 $as_echo "no" >&6; }
17045 fi
17046
17047
17048 done
17049 fi
17050
17051 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17052 for ncn_progname in windres; do
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17054 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17055 if test -x $with_build_time_tools/${ncn_progname}; then
17056 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17059 break
17060 else
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062 $as_echo "no" >&6; }
17063 fi
17064 done
17065 fi
17066
17067 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17068 for ncn_progname in windres; do
17069 if test -n "$ncn_target_tool_prefix"; then
17070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17073 $as_echo_n "checking for $ac_word... " >&6; }
17074 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17075 $as_echo_n "(cached) " >&6
17076 else
17077 if test -n "$WINDRES_FOR_TARGET"; then
17078 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17079 else
17080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081 for as_dir in $PATH
17082 do
17083 IFS=$as_save_IFS
17084 test -z "$as_dir" && as_dir=.
17085 for ac_exec_ext in '' $ac_executable_extensions; do
17086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17087 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17089 break 2
17090 fi
17091 done
17092 done
17093 IFS=$as_save_IFS
17094
17095 fi
17096 fi
17097 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17098 if test -n "$WINDRES_FOR_TARGET"; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17100 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17101 else
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17104 fi
17105
17106
17107 fi
17108 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17110 set dummy ${ncn_progname}; ac_word=$2
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17112 $as_echo_n "checking for $ac_word... " >&6; }
17113 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17114 $as_echo_n "(cached) " >&6
17115 else
17116 if test -n "$WINDRES_FOR_TARGET"; then
17117 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17118 else
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17121 do
17122 IFS=$as_save_IFS
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 break 2
17129 fi
17130 done
17131 done
17132 IFS=$as_save_IFS
17133
17134 fi
17135 fi
17136 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17137 if test -n "$WINDRES_FOR_TARGET"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17139 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17143 fi
17144
17145
17146 fi
17147 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17148 done
17149 fi
17150
17151 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17152 set dummy windres
17153 if test $build = $target ; then
17154 WINDRES_FOR_TARGET="$2"
17155 else
17156 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17157 fi
17158 else
17159 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17160 fi
17161
17162 else
17163 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17164 fi
17165
17166
17167
17168
17169 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17170 if test -n "$with_build_time_tools"; then
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17172 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17173 if test -x $with_build_time_tools/windmc; then
17174 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17175 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17177 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17178 else
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181 fi
17182 elif test $build != $host && test $have_gcc_for_target = yes; then
17183 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17184 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17185 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17186 fi
17187 fi
17188 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17189 # Extract the first word of "windmc", so it can be a program name with args.
17190 set dummy windmc; ac_word=$2
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17192 $as_echo_n "checking for $ac_word... " >&6; }
17193 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 case $WINDMC_FOR_TARGET in
17197 [\\/]* | ?:[\\/]*)
17198 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17199 ;;
17200 *)
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $gcc_cv_tool_dirs
17203 do
17204 IFS=$as_save_IFS
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17210 break 2
17211 fi
17212 done
17213 done
17214 IFS=$as_save_IFS
17215
17216 ;;
17217 esac
17218 fi
17219 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17220 if test -n "$WINDMC_FOR_TARGET"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17222 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17223 else
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17225 $as_echo "no" >&6; }
17226 fi
17227
17228
17229 fi
17230 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17231
17232
17233 if test -n "$WINDMC_FOR_TARGET"; then
17234 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17235 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17236 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17237 fi
17238
17239 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17240 for ncn_progname in windmc; do
17241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17242 set dummy ${ncn_progname}; ac_word=$2
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17244 $as_echo_n "checking for $ac_word... " >&6; }
17245 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17246 $as_echo_n "(cached) " >&6
17247 else
17248 if test -n "$WINDMC_FOR_TARGET"; then
17249 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17250 else
17251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17253 do
17254 IFS=$as_save_IFS
17255 test -z "$as_dir" && as_dir=.
17256 for ac_exec_ext in '' $ac_executable_extensions; do
17257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17258 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17260 break 2
17261 fi
17262 done
17263 done
17264 IFS=$as_save_IFS
17265
17266 fi
17267 fi
17268 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17269 if test -n "$WINDMC_FOR_TARGET"; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17271 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17272 else
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275 fi
17276
17277
17278 done
17279 fi
17280
17281 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17282 for ncn_progname in windmc; do
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17285 if test -x $with_build_time_tools/${ncn_progname}; then
17286 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 $as_echo "yes" >&6; }
17289 break
17290 else
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17292 $as_echo "no" >&6; }
17293 fi
17294 done
17295 fi
17296
17297 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17298 for ncn_progname in windmc; do
17299 if test -n "$ncn_target_tool_prefix"; then
17300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17303 $as_echo_n "checking for $ac_word... " >&6; }
17304 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17305 $as_echo_n "(cached) " >&6
17306 else
17307 if test -n "$WINDMC_FOR_TARGET"; then
17308 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17309 else
17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17311 for as_dir in $PATH
17312 do
17313 IFS=$as_save_IFS
17314 test -z "$as_dir" && as_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17317 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17319 break 2
17320 fi
17321 done
17322 done
17323 IFS=$as_save_IFS
17324
17325 fi
17326 fi
17327 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17328 if test -n "$WINDMC_FOR_TARGET"; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17330 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17331 else
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17334 fi
17335
17336
17337 fi
17338 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17340 set dummy ${ncn_progname}; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17342 $as_echo_n "checking for $ac_word... " >&6; }
17343 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17344 $as_echo_n "(cached) " >&6
17345 else
17346 if test -n "$WINDMC_FOR_TARGET"; then
17347 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17348 else
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17351 do
17352 IFS=$as_save_IFS
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358 break 2
17359 fi
17360 done
17361 done
17362 IFS=$as_save_IFS
17363
17364 fi
17365 fi
17366 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17367 if test -n "$WINDMC_FOR_TARGET"; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17369 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 fi
17374
17375
17376 fi
17377 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17378 done
17379 fi
17380
17381 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17382 set dummy windmc
17383 if test $build = $target ; then
17384 WINDMC_FOR_TARGET="$2"
17385 else
17386 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17387 fi
17388 else
17389 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17390 fi
17391
17392 else
17393 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17394 fi
17395
17396
17397 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17398
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17400 $as_echo_n "checking where to find the target ar... " >&6; }
17401 if test "x${build}" != "x${host}" ; then
17402 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17403 # We already found the complete path
17404 ac_dir=`dirname $AR_FOR_TARGET`
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17406 $as_echo "pre-installed in $ac_dir" >&6; }
17407 else
17408 # Canadian cross, just use what we found
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17410 $as_echo "pre-installed" >&6; }
17411 fi
17412 else
17413 ok=yes
17414 case " ${configdirs} " in
17415 *" binutils "*) ;;
17416 *) ok=no ;;
17417 esac
17418
17419 if test $ok = yes; then
17420 # An in-tree tool is available and we can use it
17421 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17423 $as_echo "just compiled" >&6; }
17424 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17425 # We already found the complete path
17426 ac_dir=`dirname $AR_FOR_TARGET`
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17428 $as_echo "pre-installed in $ac_dir" >&6; }
17429 elif test "x$target" = "x$host"; then
17430 # We can use an host tool
17431 AR_FOR_TARGET='$(AR)'
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17433 $as_echo "host tool" >&6; }
17434 else
17435 # We need a cross tool
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17437 $as_echo "pre-installed" >&6; }
17438 fi
17439 fi
17440
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17442 $as_echo_n "checking where to find the target as... " >&6; }
17443 if test "x${build}" != "x${host}" ; then
17444 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17445 # We already found the complete path
17446 ac_dir=`dirname $AS_FOR_TARGET`
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17448 $as_echo "pre-installed in $ac_dir" >&6; }
17449 else
17450 # Canadian cross, just use what we found
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17452 $as_echo "pre-installed" >&6; }
17453 fi
17454 else
17455 ok=yes
17456 case " ${configdirs} " in
17457 *" gas "*) ;;
17458 *) ok=no ;;
17459 esac
17460
17461 if test $ok = yes; then
17462 # An in-tree tool is available and we can use it
17463 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17465 $as_echo "just compiled" >&6; }
17466 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17467 # We already found the complete path
17468 ac_dir=`dirname $AS_FOR_TARGET`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17470 $as_echo "pre-installed in $ac_dir" >&6; }
17471 elif test "x$target" = "x$host"; then
17472 # We can use an host tool
17473 AS_FOR_TARGET='$(AS)'
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17475 $as_echo "host tool" >&6; }
17476 else
17477 # We need a cross tool
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17479 $as_echo "pre-installed" >&6; }
17480 fi
17481 fi
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17484 $as_echo_n "checking where to find the target cc... " >&6; }
17485 if test "x${build}" != "x${host}" ; then
17486 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17487 # We already found the complete path
17488 ac_dir=`dirname $CC_FOR_TARGET`
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17490 $as_echo "pre-installed in $ac_dir" >&6; }
17491 else
17492 # Canadian cross, just use what we found
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17494 $as_echo "pre-installed" >&6; }
17495 fi
17496 else
17497 ok=yes
17498 case " ${configdirs} " in
17499 *" gcc "*) ;;
17500 *) ok=no ;;
17501 esac
17502
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507 $as_echo "just compiled" >&6; }
17508 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $CC_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 CC_FOR_TARGET='$(CC)'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517 $as_echo "host tool" >&6; }
17518 else
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521 $as_echo "pre-installed" >&6; }
17522 fi
17523 fi
17524
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17526 $as_echo_n "checking where to find the target c++... " >&6; }
17527 if test "x${build}" != "x${host}" ; then
17528 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $CXX_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533 else
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536 $as_echo "pre-installed" >&6; }
17537 fi
17538 else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" gcc "*) ;;
17542 *) ok=no ;;
17543 esac
17544 case ,${enable_languages}, in
17545 *,c++,*) ;;
17546 *) ok=no ;;
17547 esac
17548 if test $ok = yes; then
17549 # An in-tree tool is available and we can use it
17550 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'
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17552 $as_echo "just compiled" >&6; }
17553 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17554 # We already found the complete path
17555 ac_dir=`dirname $CXX_FOR_TARGET`
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17557 $as_echo "pre-installed in $ac_dir" >&6; }
17558 elif test "x$target" = "x$host"; then
17559 # We can use an host tool
17560 CXX_FOR_TARGET='$(CXX)'
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17562 $as_echo "host tool" >&6; }
17563 else
17564 # We need a cross tool
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17566 $as_echo "pre-installed" >&6; }
17567 fi
17568 fi
17569
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17571 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17572 if test "x${build}" != "x${host}" ; then
17573 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17574 # We already found the complete path
17575 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17577 $as_echo "pre-installed in $ac_dir" >&6; }
17578 else
17579 # Canadian cross, just use what we found
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17581 $as_echo "pre-installed" >&6; }
17582 fi
17583 else
17584 ok=yes
17585 case " ${configdirs} " in
17586 *" gcc "*) ;;
17587 *) ok=no ;;
17588 esac
17589 case ,${enable_languages}, in
17590 *,c++,*) ;;
17591 *) ok=no ;;
17592 esac
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 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'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17597 $as_echo "just compiled" >&6; }
17598 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602 $as_echo "pre-installed in $ac_dir" >&6; }
17603 elif test "x$target" = "x$host"; then
17604 # We can use an host tool
17605 RAW_CXX_FOR_TARGET='$(CXX)'
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17607 $as_echo "host tool" >&6; }
17608 else
17609 # We need a cross tool
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611 $as_echo "pre-installed" >&6; }
17612 fi
17613 fi
17614
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17616 $as_echo_n "checking where to find the target dlltool... " >&6; }
17617 if test "x${build}" != "x${host}" ; then
17618 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17619 # We already found the complete path
17620 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17622 $as_echo "pre-installed in $ac_dir" >&6; }
17623 else
17624 # Canadian cross, just use what we found
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626 $as_echo "pre-installed" >&6; }
17627 fi
17628 else
17629 ok=yes
17630 case " ${configdirs} " in
17631 *" binutils "*) ;;
17632 *) ok=no ;;
17633 esac
17634
17635 if test $ok = yes; then
17636 # An in-tree tool is available and we can use it
17637 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17639 $as_echo "just compiled" >&6; }
17640 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17641 # We already found the complete path
17642 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17644 $as_echo "pre-installed in $ac_dir" >&6; }
17645 elif test "x$target" = "x$host"; then
17646 # We can use an host tool
17647 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17649 $as_echo "host tool" >&6; }
17650 else
17651 # We need a cross tool
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17653 $as_echo "pre-installed" >&6; }
17654 fi
17655 fi
17656
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17658 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17659 if test "x${build}" != "x${host}" ; then
17660 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17661 # We already found the complete path
17662 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17664 $as_echo "pre-installed in $ac_dir" >&6; }
17665 else
17666 # Canadian cross, just use what we found
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17668 $as_echo "pre-installed" >&6; }
17669 fi
17670 else
17671 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17672 # We already found the complete path
17673 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17675 $as_echo "pre-installed in $ac_dir" >&6; }
17676 elif test "x$target" = "x$host"; then
17677 # We can use an host tool
17678 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17680 $as_echo "host tool" >&6; }
17681 else
17682 # We need a cross tool
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17684 $as_echo "pre-installed" >&6; }
17685 fi
17686 fi
17687
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17689 $as_echo_n "checking where to find the target gcc... " >&6; }
17690 if test "x${build}" != "x${host}" ; then
17691 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17692 # We already found the complete path
17693 ac_dir=`dirname $GCC_FOR_TARGET`
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17695 $as_echo "pre-installed in $ac_dir" >&6; }
17696 else
17697 # Canadian cross, just use what we found
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17699 $as_echo "pre-installed" >&6; }
17700 fi
17701 else
17702 ok=yes
17703 case " ${configdirs} " in
17704 *" gcc "*) ;;
17705 *) ok=no ;;
17706 esac
17707
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712 $as_echo "just compiled" >&6; }
17713 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $GCC_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 GCC_FOR_TARGET='$()'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722 $as_echo "host tool" >&6; }
17723 else
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17727 fi
17728 fi
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17731 $as_echo_n "checking where to find the target gfortran... " >&6; }
17732 if test "x${build}" != "x${host}" ; then
17733 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738 else
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741 $as_echo "pre-installed" >&6; }
17742 fi
17743 else
17744 ok=yes
17745 case " ${configdirs} " in
17746 *" gcc "*) ;;
17747 *) ok=no ;;
17748 esac
17749 case ,${enable_languages}, in
17750 *,fortran,*) ;;
17751 *) ok=no ;;
17752 esac
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757 $as_echo "just compiled" >&6; }
17758 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767 $as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771 $as_echo "pre-installed" >&6; }
17772 fi
17773 fi
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17776 $as_echo_n "checking where to find the target gccgo... " >&6; }
17777 if test "x${build}" != "x${host}" ; then
17778 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $GOC_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786 $as_echo "pre-installed" >&6; }
17787 fi
17788 else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" gcc "*) ;;
17792 *) ok=no ;;
17793 esac
17794 case ,${enable_languages}, in
17795 *,go,*) ;;
17796 *) ok=no ;;
17797 esac
17798 if test $ok = yes; then
17799 # An in-tree tool is available and we can use it
17800 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17802 $as_echo "just compiled" >&6; }
17803 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17804 # We already found the complete path
17805 ac_dir=`dirname $GOC_FOR_TARGET`
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17807 $as_echo "pre-installed in $ac_dir" >&6; }
17808 elif test "x$target" = "x$host"; then
17809 # We can use an host tool
17810 GOC_FOR_TARGET='$(GOC)'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17812 $as_echo "host tool" >&6; }
17813 else
17814 # We need a cross tool
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17816 $as_echo "pre-installed" >&6; }
17817 fi
17818 fi
17819
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17821 $as_echo_n "checking where to find the target gdc... " >&6; }
17822 if test "x${build}" != "x${host}" ; then
17823 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17824 # We already found the complete path
17825 ac_dir=`dirname $GDC_FOR_TARGET`
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17827 $as_echo "pre-installed in $ac_dir" >&6; }
17828 else
17829 # Canadian cross, just use what we found
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17831 $as_echo "pre-installed" >&6; }
17832 fi
17833 else
17834 ok=yes
17835 case " ${configdirs} " in
17836 *" gcc "*) ;;
17837 *) ok=no ;;
17838 esac
17839 case ,${enable_languages}, in
17840 *,d,*) ;;
17841 *) ok=no ;;
17842 esac
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17847 $as_echo "just compiled" >&6; }
17848 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
17850 ac_dir=`dirname $GDC_FOR_TARGET`
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17852 $as_echo "pre-installed in $ac_dir" >&6; }
17853 elif test "x$target" = "x$host"; then
17854 # We can use an host tool
17855 GDC_FOR_TARGET='$(GDC)'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17857 $as_echo "host tool" >&6; }
17858 else
17859 # We need a cross tool
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17861 $as_echo "pre-installed" >&6; }
17862 fi
17863 fi
17864
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17866 $as_echo_n "checking where to find the target ld... " >&6; }
17867 if test "x${build}" != "x${host}" ; then
17868 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17869 # We already found the complete path
17870 ac_dir=`dirname $LD_FOR_TARGET`
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17872 $as_echo "pre-installed in $ac_dir" >&6; }
17873 else
17874 # Canadian cross, just use what we found
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17876 $as_echo "pre-installed" >&6; }
17877 fi
17878 else
17879 ok=yes
17880 case " ${configdirs} " in
17881 *" ld "*) ;;
17882 *) ok=no ;;
17883 esac
17884
17885 if test $ok = yes; then
17886 # An in-tree tool is available and we can use it
17887 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17889 $as_echo "just compiled" >&6; }
17890 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17891 # We already found the complete path
17892 ac_dir=`dirname $LD_FOR_TARGET`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17894 $as_echo "pre-installed in $ac_dir" >&6; }
17895 elif test "x$target" = "x$host"; then
17896 # We can use an host tool
17897 LD_FOR_TARGET='$(LD)'
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17899 $as_echo "host tool" >&6; }
17900 else
17901 # We need a cross tool
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17903 $as_echo "pre-installed" >&6; }
17904 fi
17905 fi
17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17908 $as_echo_n "checking where to find the target lipo... " >&6; }
17909 if test "x${build}" != "x${host}" ; then
17910 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17911 # We already found the complete path
17912 ac_dir=`dirname $LIPO_FOR_TARGET`
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17914 $as_echo "pre-installed in $ac_dir" >&6; }
17915 else
17916 # Canadian cross, just use what we found
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17918 $as_echo "pre-installed" >&6; }
17919 fi
17920 else
17921 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17922 # We already found the complete path
17923 ac_dir=`dirname $LIPO_FOR_TARGET`
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17925 $as_echo "pre-installed in $ac_dir" >&6; }
17926 elif test "x$target" = "x$host"; then
17927 # We can use an host tool
17928 LIPO_FOR_TARGET='$(LIPO)'
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17930 $as_echo "host tool" >&6; }
17931 else
17932 # We need a cross tool
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17934 $as_echo "pre-installed" >&6; }
17935 fi
17936 fi
17937
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17939 $as_echo_n "checking where to find the target nm... " >&6; }
17940 if test "x${build}" != "x${host}" ; then
17941 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17942 # We already found the complete path
17943 ac_dir=`dirname $NM_FOR_TARGET`
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17945 $as_echo "pre-installed in $ac_dir" >&6; }
17946 else
17947 # Canadian cross, just use what we found
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17949 $as_echo "pre-installed" >&6; }
17950 fi
17951 else
17952 ok=yes
17953 case " ${configdirs} " in
17954 *" binutils "*) ;;
17955 *) ok=no ;;
17956 esac
17957
17958 if test $ok = yes; then
17959 # An in-tree tool is available and we can use it
17960 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17962 $as_echo "just compiled" >&6; }
17963 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17964 # We already found the complete path
17965 ac_dir=`dirname $NM_FOR_TARGET`
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17967 $as_echo "pre-installed in $ac_dir" >&6; }
17968 elif test "x$target" = "x$host"; then
17969 # We can use an host tool
17970 NM_FOR_TARGET='$(NM)'
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17972 $as_echo "host tool" >&6; }
17973 else
17974 # We need a cross tool
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17976 $as_echo "pre-installed" >&6; }
17977 fi
17978 fi
17979
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17981 $as_echo_n "checking where to find the target objcopy... " >&6; }
17982 if test "x${build}" != "x${host}" ; then
17983 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17987 $as_echo "pre-installed in $ac_dir" >&6; }
17988 else
17989 # Canadian cross, just use what we found
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17991 $as_echo "pre-installed" >&6; }
17992 fi
17993 else
17994 ok=yes
17995 case " ${configdirs} " in
17996 *" binutils "*) ;;
17997 *) ok=no ;;
17998 esac
17999
18000 if test $ok = yes; then
18001 # An in-tree tool is available and we can use it
18002 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18004 $as_echo "just compiled" >&6; }
18005 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18006 # We already found the complete path
18007 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18009 $as_echo "pre-installed in $ac_dir" >&6; }
18010 elif test "x$target" = "x$host"; then
18011 # We can use an host tool
18012 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18014 $as_echo "host tool" >&6; }
18015 else
18016 # We need a cross tool
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18018 $as_echo "pre-installed" >&6; }
18019 fi
18020 fi
18021
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18023 $as_echo_n "checking where to find the target objdump... " >&6; }
18024 if test "x${build}" != "x${host}" ; then
18025 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18026 # We already found the complete path
18027 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18029 $as_echo "pre-installed in $ac_dir" >&6; }
18030 else
18031 # Canadian cross, just use what we found
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18033 $as_echo "pre-installed" >&6; }
18034 fi
18035 else
18036 ok=yes
18037 case " ${configdirs} " in
18038 *" binutils "*) ;;
18039 *) ok=no ;;
18040 esac
18041
18042 if test $ok = yes; then
18043 # An in-tree tool is available and we can use it
18044 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18046 $as_echo "just compiled" >&6; }
18047 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18048 # We already found the complete path
18049 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18051 $as_echo "pre-installed in $ac_dir" >&6; }
18052 elif test "x$target" = "x$host"; then
18053 # We can use an host tool
18054 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18056 $as_echo "host tool" >&6; }
18057 else
18058 # We need a cross tool
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18060 $as_echo "pre-installed" >&6; }
18061 fi
18062 fi
18063
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18065 $as_echo_n "checking where to find the target otool... " >&6; }
18066 if test "x${build}" != "x${host}" ; then
18067 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $OTOOL_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18071 $as_echo "pre-installed in $ac_dir" >&6; }
18072 else
18073 # Canadian cross, just use what we found
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18075 $as_echo "pre-installed" >&6; }
18076 fi
18077 else
18078 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18079 # We already found the complete path
18080 ac_dir=`dirname $OTOOL_FOR_TARGET`
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18082 $as_echo "pre-installed in $ac_dir" >&6; }
18083 elif test "x$target" = "x$host"; then
18084 # We can use an host tool
18085 OTOOL_FOR_TARGET='$(OTOOL)'
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18087 $as_echo "host tool" >&6; }
18088 else
18089 # We need a cross tool
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18091 $as_echo "pre-installed" >&6; }
18092 fi
18093 fi
18094
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18096 $as_echo_n "checking where to find the target ranlib... " >&6; }
18097 if test "x${build}" != "x${host}" ; then
18098 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18099 # We already found the complete path
18100 ac_dir=`dirname $RANLIB_FOR_TARGET`
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18102 $as_echo "pre-installed in $ac_dir" >&6; }
18103 else
18104 # Canadian cross, just use what we found
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18106 $as_echo "pre-installed" >&6; }
18107 fi
18108 else
18109 ok=yes
18110 case " ${configdirs} " in
18111 *" binutils "*) ;;
18112 *) ok=no ;;
18113 esac
18114
18115 if test $ok = yes; then
18116 # An in-tree tool is available and we can use it
18117 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18119 $as_echo "just compiled" >&6; }
18120 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18121 # We already found the complete path
18122 ac_dir=`dirname $RANLIB_FOR_TARGET`
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18124 $as_echo "pre-installed in $ac_dir" >&6; }
18125 elif test "x$target" = "x$host"; then
18126 # We can use an host tool
18127 RANLIB_FOR_TARGET='$(RANLIB)'
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18129 $as_echo "host tool" >&6; }
18130 else
18131 # We need a cross tool
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18133 $as_echo "pre-installed" >&6; }
18134 fi
18135 fi
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18138 $as_echo_n "checking where to find the target readelf... " >&6; }
18139 if test "x${build}" != "x${host}" ; then
18140 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18141 # We already found the complete path
18142 ac_dir=`dirname $READELF_FOR_TARGET`
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18144 $as_echo "pre-installed in $ac_dir" >&6; }
18145 else
18146 # Canadian cross, just use what we found
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18148 $as_echo "pre-installed" >&6; }
18149 fi
18150 else
18151 ok=yes
18152 case " ${configdirs} " in
18153 *" binutils "*) ;;
18154 *) ok=no ;;
18155 esac
18156
18157 if test $ok = yes; then
18158 # An in-tree tool is available and we can use it
18159 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18161 $as_echo "just compiled" >&6; }
18162 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18163 # We already found the complete path
18164 ac_dir=`dirname $READELF_FOR_TARGET`
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18166 $as_echo "pre-installed in $ac_dir" >&6; }
18167 elif test "x$target" = "x$host"; then
18168 # We can use an host tool
18169 READELF_FOR_TARGET='$(READELF)'
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18171 $as_echo "host tool" >&6; }
18172 else
18173 # We need a cross tool
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18175 $as_echo "pre-installed" >&6; }
18176 fi
18177 fi
18178
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18180 $as_echo_n "checking where to find the target strip... " >&6; }
18181 if test "x${build}" != "x${host}" ; then
18182 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18183 # We already found the complete path
18184 ac_dir=`dirname $STRIP_FOR_TARGET`
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18186 $as_echo "pre-installed in $ac_dir" >&6; }
18187 else
18188 # Canadian cross, just use what we found
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18190 $as_echo "pre-installed" >&6; }
18191 fi
18192 else
18193 ok=yes
18194 case " ${configdirs} " in
18195 *" binutils "*) ;;
18196 *) ok=no ;;
18197 esac
18198
18199 if test $ok = yes; then
18200 # An in-tree tool is available and we can use it
18201 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18203 $as_echo "just compiled" >&6; }
18204 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18205 # We already found the complete path
18206 ac_dir=`dirname $STRIP_FOR_TARGET`
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18208 $as_echo "pre-installed in $ac_dir" >&6; }
18209 elif test "x$target" = "x$host"; then
18210 # We can use an host tool
18211 STRIP_FOR_TARGET='$(STRIP)'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18213 $as_echo "host tool" >&6; }
18214 else
18215 # We need a cross tool
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18217 $as_echo "pre-installed" >&6; }
18218 fi
18219 fi
18220
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18222 $as_echo_n "checking where to find the target windres... " >&6; }
18223 if test "x${build}" != "x${host}" ; then
18224 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18225 # We already found the complete path
18226 ac_dir=`dirname $WINDRES_FOR_TARGET`
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18228 $as_echo "pre-installed in $ac_dir" >&6; }
18229 else
18230 # Canadian cross, just use what we found
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18232 $as_echo "pre-installed" >&6; }
18233 fi
18234 else
18235 ok=yes
18236 case " ${configdirs} " in
18237 *" binutils "*) ;;
18238 *) ok=no ;;
18239 esac
18240
18241 if test $ok = yes; then
18242 # An in-tree tool is available and we can use it
18243 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18245 $as_echo "just compiled" >&6; }
18246 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18247 # We already found the complete path
18248 ac_dir=`dirname $WINDRES_FOR_TARGET`
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18250 $as_echo "pre-installed in $ac_dir" >&6; }
18251 elif test "x$target" = "x$host"; then
18252 # We can use an host tool
18253 WINDRES_FOR_TARGET='$(WINDRES)'
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18255 $as_echo "host tool" >&6; }
18256 else
18257 # We need a cross tool
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18259 $as_echo "pre-installed" >&6; }
18260 fi
18261 fi
18262
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18264 $as_echo_n "checking where to find the target windmc... " >&6; }
18265 if test "x${build}" != "x${host}" ; then
18266 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18267 # We already found the complete path
18268 ac_dir=`dirname $WINDMC_FOR_TARGET`
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18270 $as_echo "pre-installed in $ac_dir" >&6; }
18271 else
18272 # Canadian cross, just use what we found
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18274 $as_echo "pre-installed" >&6; }
18275 fi
18276 else
18277 ok=yes
18278 case " ${configdirs} " in
18279 *" binutils "*) ;;
18280 *) ok=no ;;
18281 esac
18282
18283 if test $ok = yes; then
18284 # An in-tree tool is available and we can use it
18285 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18287 $as_echo "just compiled" >&6; }
18288 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18289 # We already found the complete path
18290 ac_dir=`dirname $WINDMC_FOR_TARGET`
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18292 $as_echo "pre-installed in $ac_dir" >&6; }
18293 elif test "x$target" = "x$host"; then
18294 # We can use an host tool
18295 WINDMC_FOR_TARGET='$(WINDMC)'
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18297 $as_echo "host tool" >&6; }
18298 else
18299 # We need a cross tool
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18301 $as_echo "pre-installed" >&6; }
18302 fi
18303 fi
18304
18305
18306
18307
18308
18309 # Certain tools may need extra flags.
18310 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18311 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18312 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18313
18314 # When building target libraries, except in a Canadian cross, we use
18315 # the same toolchain as the compiler we just built.
18316 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18317 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18318 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18319 if test $host = $build; then
18320 case " $configdirs " in
18321 *" gcc "*)
18322 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18323 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18324 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18325 ;;
18326 esac
18327 fi
18328
18329
18330
18331
18332
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18334 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18335 # Check whether --enable-maintainer-mode was given.
18336 if test "${enable_maintainer_mode+set}" = set; then :
18337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18338 else
18339 USE_MAINTAINER_MODE=no
18340 fi
18341
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18344
18345
18346 if test "$USE_MAINTAINER_MODE" = yes; then
18347 MAINTAINER_MODE_TRUE=
18348 MAINTAINER_MODE_FALSE='#'
18349 else
18350 MAINTAINER_MODE_TRUE='#'
18351 MAINTAINER_MODE_FALSE=
18352 fi
18353 MAINT=$MAINTAINER_MODE_TRUE
18354
18355 # ---------------------
18356 # GCC bootstrap support
18357 # ---------------------
18358
18359 # Stage specific cflags for build.
18360 stage1_cflags="-g"
18361 case $build in
18362 vax-*-*)
18363 case ${GCC} in
18364 yes) stage1_cflags="-g -Wa,-J" ;;
18365 *) stage1_cflags="-g -J" ;;
18366 esac ;;
18367 esac
18368
18369
18370
18371 # Enable --enable-checking in stage1 of the compiler.
18372 # Check whether --enable-stage1-checking was given.
18373 if test "${enable_stage1_checking+set}" = set; then :
18374 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18375 else
18376 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18377 # For --disable-checking or implicit --enable-checking=release, avoid
18378 # setting --enable-checking=gc in the default stage1 checking for LTO
18379 # bootstraps. See PR62077.
18380 case $BUILD_CONFIG in
18381 *lto*)
18382 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18383 *)
18384 stage1_checking=--enable-checking=yes,types;;
18385 esac
18386 if test "x$enable_checking" = x && \
18387 test -d ${srcdir}/gcc && \
18388 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18389 stage1_checking=--enable-checking=yes,types,extra
18390 fi
18391 else
18392 stage1_checking=--enable-checking=$enable_checking,types
18393 fi
18394 fi
18395
18396
18397
18398 # Enable -Werror in bootstrap stage2 and later.
18399 # Check whether --enable-werror was given.
18400 if test "${enable_werror+set}" = set; then :
18401 enableval=$enable_werror;
18402 case ${enable_werror} in
18403 yes) stage2_werror_flag="--enable-werror-always" ;;
18404 *) stage2_werror_flag="" ;;
18405 esac
18406
18407 else
18408
18409 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18410 case $BUILD_CONFIG in
18411 bootstrap-debug)
18412 stage2_werror_flag="--enable-werror-always" ;;
18413 "")
18414 stage2_werror_flag="--enable-werror-always" ;;
18415 esac
18416 fi
18417
18418 fi
18419
18420
18421
18422
18423 # Specify what files to not compare during bootstrap.
18424
18425 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18426 case "$target" in
18427 hppa*64*-*-hpux*) ;;
18428 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18429 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18430 esac
18431
18432
18433 ac_config_files="$ac_config_files Makefile"
18434
18435 cat >confcache <<\_ACEOF
18436 # This file is a shell script that caches the results of configure
18437 # tests run on this system so they can be shared between configure
18438 # scripts and configure runs, see configure's option --config-cache.
18439 # It is not useful on other systems. If it contains results you don't
18440 # want to keep, you may remove or edit it.
18441 #
18442 # config.status only pays attention to the cache file if you give it
18443 # the --recheck option to rerun configure.
18444 #
18445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18447 # following values.
18448
18449 _ACEOF
18450
18451 # The following way of writing the cache mishandles newlines in values,
18452 # but we know of no workaround that is simple, portable, and efficient.
18453 # So, we kill variables containing newlines.
18454 # Ultrix sh set writes to stderr and can't be redirected directly,
18455 # and sets the high bit in the cache file unless we assign to the vars.
18456 (
18457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18458 eval ac_val=\$$ac_var
18459 case $ac_val in #(
18460 *${as_nl}*)
18461 case $ac_var in #(
18462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18464 esac
18465 case $ac_var in #(
18466 _ | IFS | as_nl) ;; #(
18467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18468 *) { eval $ac_var=; unset $ac_var;} ;;
18469 esac ;;
18470 esac
18471 done
18472
18473 (set) 2>&1 |
18474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18475 *${as_nl}ac_space=\ *)
18476 # `set' does not quote correctly, so add quotes: double-quote
18477 # substitution turns \\\\ into \\, and sed turns \\ into \.
18478 sed -n \
18479 "s/'/'\\\\''/g;
18480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18481 ;; #(
18482 *)
18483 # `set' quotes correctly as required by POSIX, so do not add quotes.
18484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18485 ;;
18486 esac |
18487 sort
18488 ) |
18489 sed '
18490 /^ac_cv_env_/b end
18491 t clear
18492 :clear
18493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18494 t end
18495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18496 :end' >>confcache
18497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18498 if test -w "$cache_file"; then
18499 if test "x$cache_file" != "x/dev/null"; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18501 $as_echo "$as_me: updating cache $cache_file" >&6;}
18502 if test ! -f "$cache_file" || test -h "$cache_file"; then
18503 cat confcache >"$cache_file"
18504 else
18505 case $cache_file in #(
18506 */* | ?:*)
18507 mv -f confcache "$cache_file"$$ &&
18508 mv -f "$cache_file"$$ "$cache_file" ;; #(
18509 *)
18510 mv -f confcache "$cache_file" ;;
18511 esac
18512 fi
18513 fi
18514 else
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18517 fi
18518 fi
18519 rm -f confcache
18520
18521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18522 # Let make expand exec_prefix.
18523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18524
18525 # Transform confdefs.h into DEFS.
18526 # Protect against shell expansion while executing Makefile rules.
18527 # Protect against Makefile macro expansion.
18528 #
18529 # If the first sed substitution is executed (which looks for macros that
18530 # take arguments), then branch to the quote section. Otherwise,
18531 # look for a macro that doesn't take arguments.
18532 ac_script='
18533 :mline
18534 /\\$/{
18535 N
18536 s,\\\n,,
18537 b mline
18538 }
18539 t clear
18540 :clear
18541 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18542 t quote
18543 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18544 t quote
18545 b any
18546 :quote
18547 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18548 s/\[/\\&/g
18549 s/\]/\\&/g
18550 s/\$/$$/g
18551 H
18552 :any
18553 ${
18554 g
18555 s/^\n//
18556 s/\n/ /g
18557 p
18558 }
18559 '
18560 DEFS=`sed -n "$ac_script" confdefs.h`
18561
18562
18563 ac_libobjs=
18564 ac_ltlibobjs=
18565 U=
18566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18567 # 1. Remove the extension, and $U if already installed.
18568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18571 # will be set to the directory where LIBOBJS objects are built.
18572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18574 done
18575 LIBOBJS=$ac_libobjs
18576
18577 LTLIBOBJS=$ac_ltlibobjs
18578
18579
18580
18581 : "${CONFIG_STATUS=./config.status}"
18582 ac_write_fail=0
18583 ac_clean_files_save=$ac_clean_files
18584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18587 as_write_fail=0
18588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18589 #! $SHELL
18590 # Generated by $as_me.
18591 # Run this file to recreate the current configuration.
18592 # Compiler output produced by configure, useful for debugging
18593 # configure, is in config.log if it exists.
18594
18595 debug=false
18596 ac_cs_recheck=false
18597 ac_cs_silent=false
18598
18599 SHELL=\${CONFIG_SHELL-$SHELL}
18600 export SHELL
18601 _ASEOF
18602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18603 ## -------------------- ##
18604 ## M4sh Initialization. ##
18605 ## -------------------- ##
18606
18607 # Be more Bourne compatible
18608 DUALCASE=1; export DUALCASE # for MKS sh
18609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18610 emulate sh
18611 NULLCMD=:
18612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18613 # is contrary to our usage. Disable this feature.
18614 alias -g '${1+"$@"}'='"$@"'
18615 setopt NO_GLOB_SUBST
18616 else
18617 case `(set -o) 2>/dev/null` in #(
18618 *posix*) :
18619 set -o posix ;; #(
18620 *) :
18621 ;;
18622 esac
18623 fi
18624
18625
18626 as_nl='
18627 '
18628 export as_nl
18629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18633 # Prefer a ksh shell builtin over an external printf program on Solaris,
18634 # but without wasting forks for bash or zsh.
18635 if test -z "$BASH_VERSION$ZSH_VERSION" \
18636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18637 as_echo='print -r --'
18638 as_echo_n='print -rn --'
18639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18640 as_echo='printf %s\n'
18641 as_echo_n='printf %s'
18642 else
18643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18645 as_echo_n='/usr/ucb/echo -n'
18646 else
18647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18648 as_echo_n_body='eval
18649 arg=$1;
18650 case $arg in #(
18651 *"$as_nl"*)
18652 expr "X$arg" : "X\\(.*\\)$as_nl";
18653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18654 esac;
18655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18656 '
18657 export as_echo_n_body
18658 as_echo_n='sh -c $as_echo_n_body as_echo'
18659 fi
18660 export as_echo_body
18661 as_echo='sh -c $as_echo_body as_echo'
18662 fi
18663
18664 # The user is always right.
18665 if test "${PATH_SEPARATOR+set}" != set; then
18666 PATH_SEPARATOR=:
18667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18669 PATH_SEPARATOR=';'
18670 }
18671 fi
18672
18673
18674 # IFS
18675 # We need space, tab and new line, in precisely that order. Quoting is
18676 # there to prevent editors from complaining about space-tab.
18677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18678 # splitting by setting IFS to empty value.)
18679 IFS=" "" $as_nl"
18680
18681 # Find who we are. Look in the path if we contain no directory separator.
18682 as_myself=
18683 case $0 in #((
18684 *[\\/]* ) as_myself=$0 ;;
18685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18686 for as_dir in $PATH
18687 do
18688 IFS=$as_save_IFS
18689 test -z "$as_dir" && as_dir=.
18690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18691 done
18692 IFS=$as_save_IFS
18693
18694 ;;
18695 esac
18696 # We did not find ourselves, most probably we were run as `sh COMMAND'
18697 # in which case we are not to be found in the path.
18698 if test "x$as_myself" = x; then
18699 as_myself=$0
18700 fi
18701 if test ! -f "$as_myself"; then
18702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18703 exit 1
18704 fi
18705
18706 # Unset variables that we do not need and which cause bugs (e.g. in
18707 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18708 # suppresses any "Segmentation fault" message there. '((' could
18709 # trigger a bug in pdksh 5.2.14.
18710 for as_var in BASH_ENV ENV MAIL MAILPATH
18711 do eval test x\${$as_var+set} = xset \
18712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18713 done
18714 PS1='$ '
18715 PS2='> '
18716 PS4='+ '
18717
18718 # NLS nuisances.
18719 LC_ALL=C
18720 export LC_ALL
18721 LANGUAGE=C
18722 export LANGUAGE
18723
18724 # CDPATH.
18725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18726
18727
18728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18729 # ----------------------------------------
18730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18732 # script with STATUS, using 1 if that was 0.
18733 as_fn_error ()
18734 {
18735 as_status=$1; test $as_status -eq 0 && as_status=1
18736 if test "$4"; then
18737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18739 fi
18740 $as_echo "$as_me: error: $2" >&2
18741 as_fn_exit $as_status
18742 } # as_fn_error
18743
18744
18745 # as_fn_set_status STATUS
18746 # -----------------------
18747 # Set $? to STATUS, without forking.
18748 as_fn_set_status ()
18749 {
18750 return $1
18751 } # as_fn_set_status
18752
18753 # as_fn_exit STATUS
18754 # -----------------
18755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18756 as_fn_exit ()
18757 {
18758 set +e
18759 as_fn_set_status $1
18760 exit $1
18761 } # as_fn_exit
18762
18763 # as_fn_unset VAR
18764 # ---------------
18765 # Portably unset VAR.
18766 as_fn_unset ()
18767 {
18768 { eval $1=; unset $1;}
18769 }
18770 as_unset=as_fn_unset
18771 # as_fn_append VAR VALUE
18772 # ----------------------
18773 # Append the text in VALUE to the end of the definition contained in VAR. Take
18774 # advantage of any shell optimizations that allow amortized linear growth over
18775 # repeated appends, instead of the typical quadratic growth present in naive
18776 # implementations.
18777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18778 eval 'as_fn_append ()
18779 {
18780 eval $1+=\$2
18781 }'
18782 else
18783 as_fn_append ()
18784 {
18785 eval $1=\$$1\$2
18786 }
18787 fi # as_fn_append
18788
18789 # as_fn_arith ARG...
18790 # ------------------
18791 # Perform arithmetic evaluation on the ARGs, and store the result in the
18792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18793 # must be portable across $(()) and expr.
18794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18795 eval 'as_fn_arith ()
18796 {
18797 as_val=$(( $* ))
18798 }'
18799 else
18800 as_fn_arith ()
18801 {
18802 as_val=`expr "$@" || test $? -eq 1`
18803 }
18804 fi # as_fn_arith
18805
18806
18807 if expr a : '\(a\)' >/dev/null 2>&1 &&
18808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18809 as_expr=expr
18810 else
18811 as_expr=false
18812 fi
18813
18814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18815 as_basename=basename
18816 else
18817 as_basename=false
18818 fi
18819
18820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18821 as_dirname=dirname
18822 else
18823 as_dirname=false
18824 fi
18825
18826 as_me=`$as_basename -- "$0" ||
18827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18828 X"$0" : 'X\(//\)$' \| \
18829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18830 $as_echo X/"$0" |
18831 sed '/^.*\/\([^/][^/]*\)\/*$/{
18832 s//\1/
18833 q
18834 }
18835 /^X\/\(\/\/\)$/{
18836 s//\1/
18837 q
18838 }
18839 /^X\/\(\/\).*/{
18840 s//\1/
18841 q
18842 }
18843 s/.*/./; q'`
18844
18845 # Avoid depending upon Character Ranges.
18846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18849 as_cr_digits='0123456789'
18850 as_cr_alnum=$as_cr_Letters$as_cr_digits
18851
18852 ECHO_C= ECHO_N= ECHO_T=
18853 case `echo -n x` in #(((((
18854 -n*)
18855 case `echo 'xy\c'` in
18856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18857 xy) ECHO_C='\c';;
18858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18859 ECHO_T=' ';;
18860 esac;;
18861 *)
18862 ECHO_N='-n';;
18863 esac
18864
18865 rm -f conf$$ conf$$.exe conf$$.file
18866 if test -d conf$$.dir; then
18867 rm -f conf$$.dir/conf$$.file
18868 else
18869 rm -f conf$$.dir
18870 mkdir conf$$.dir 2>/dev/null
18871 fi
18872 if (echo >conf$$.file) 2>/dev/null; then
18873 if ln -s conf$$.file conf$$ 2>/dev/null; then
18874 as_ln_s='ln -s'
18875 # ... but there are two gotchas:
18876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18878 # In both cases, we have to default to `cp -pR'.
18879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18880 as_ln_s='cp -pR'
18881 elif ln conf$$.file conf$$ 2>/dev/null; then
18882 as_ln_s=ln
18883 else
18884 as_ln_s='cp -pR'
18885 fi
18886 else
18887 as_ln_s='cp -pR'
18888 fi
18889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18890 rmdir conf$$.dir 2>/dev/null
18891
18892
18893 # as_fn_mkdir_p
18894 # -------------
18895 # Create "$as_dir" as a directory, including parents if necessary.
18896 as_fn_mkdir_p ()
18897 {
18898
18899 case $as_dir in #(
18900 -*) as_dir=./$as_dir;;
18901 esac
18902 test -d "$as_dir" || eval $as_mkdir_p || {
18903 as_dirs=
18904 while :; do
18905 case $as_dir in #(
18906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18907 *) as_qdir=$as_dir;;
18908 esac
18909 as_dirs="'$as_qdir' $as_dirs"
18910 as_dir=`$as_dirname -- "$as_dir" ||
18911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18912 X"$as_dir" : 'X\(//\)[^/]' \| \
18913 X"$as_dir" : 'X\(//\)$' \| \
18914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18915 $as_echo X"$as_dir" |
18916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18917 s//\1/
18918 q
18919 }
18920 /^X\(\/\/\)[^/].*/{
18921 s//\1/
18922 q
18923 }
18924 /^X\(\/\/\)$/{
18925 s//\1/
18926 q
18927 }
18928 /^X\(\/\).*/{
18929 s//\1/
18930 q
18931 }
18932 s/.*/./; q'`
18933 test -d "$as_dir" && break
18934 done
18935 test -z "$as_dirs" || eval "mkdir $as_dirs"
18936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18937
18938
18939 } # as_fn_mkdir_p
18940 if mkdir -p . 2>/dev/null; then
18941 as_mkdir_p='mkdir -p "$as_dir"'
18942 else
18943 test -d ./-p && rmdir ./-p
18944 as_mkdir_p=false
18945 fi
18946
18947
18948 # as_fn_executable_p FILE
18949 # -----------------------
18950 # Test if FILE is an executable regular file.
18951 as_fn_executable_p ()
18952 {
18953 test -f "$1" && test -x "$1"
18954 } # as_fn_executable_p
18955 as_test_x='test -x'
18956 as_executable_p=as_fn_executable_p
18957
18958 # Sed expression to map a string onto a valid CPP name.
18959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18960
18961 # Sed expression to map a string onto a valid variable name.
18962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18963
18964
18965 exec 6>&1
18966 ## ----------------------------------- ##
18967 ## Main body of $CONFIG_STATUS script. ##
18968 ## ----------------------------------- ##
18969 _ASEOF
18970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18971
18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18973 # Save the log message, to keep $0 and so on meaningful, and to
18974 # report actual input values of CONFIG_FILES etc. instead of their
18975 # values after options handling.
18976 ac_log="
18977 This file was extended by $as_me, which was
18978 generated by GNU Autoconf 2.69. Invocation command line was
18979
18980 CONFIG_FILES = $CONFIG_FILES
18981 CONFIG_HEADERS = $CONFIG_HEADERS
18982 CONFIG_LINKS = $CONFIG_LINKS
18983 CONFIG_COMMANDS = $CONFIG_COMMANDS
18984 $ $0 $@
18985
18986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18987 "
18988
18989 _ACEOF
18990
18991 case $ac_config_files in *"
18992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18993 esac
18994
18995
18996
18997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18998 # Files that config.status was made for.
18999 config_files="$ac_config_files"
19000
19001 _ACEOF
19002
19003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19004 ac_cs_usage="\
19005 \`$as_me' instantiates files and other configuration actions
19006 from templates according to the current configuration. Unless the files
19007 and actions are specified as TAGs, all are instantiated by default.
19008
19009 Usage: $0 [OPTION]... [TAG]...
19010
19011 -h, --help print this help, then exit
19012 -V, --version print version number and configuration settings, then exit
19013 --config print configuration, then exit
19014 -q, --quiet, --silent
19015 do not print progress messages
19016 -d, --debug don't remove temporary files
19017 --recheck update $as_me by reconfiguring in the same conditions
19018 --file=FILE[:TEMPLATE]
19019 instantiate the configuration file FILE
19020
19021 Configuration files:
19022 $config_files
19023
19024 Report bugs to the package provider."
19025
19026 _ACEOF
19027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19029 ac_cs_version="\\
19030 config.status
19031 configured by $0, generated by GNU Autoconf 2.69,
19032 with options \\"\$ac_cs_config\\"
19033
19034 Copyright (C) 2012 Free Software Foundation, Inc.
19035 This config.status script is free software; the Free Software Foundation
19036 gives unlimited permission to copy, distribute and modify it."
19037
19038 ac_pwd='$ac_pwd'
19039 srcdir='$srcdir'
19040 INSTALL='$INSTALL'
19041 AWK='$AWK'
19042 test -n "\$AWK" || AWK=awk
19043 _ACEOF
19044
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046 # The default lists apply if the user does not specify any file.
19047 ac_need_defaults=:
19048 while test $# != 0
19049 do
19050 case $1 in
19051 --*=?*)
19052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19054 ac_shift=:
19055 ;;
19056 --*=)
19057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19058 ac_optarg=
19059 ac_shift=:
19060 ;;
19061 *)
19062 ac_option=$1
19063 ac_optarg=$2
19064 ac_shift=shift
19065 ;;
19066 esac
19067
19068 case $ac_option in
19069 # Handling of the options.
19070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19071 ac_cs_recheck=: ;;
19072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19073 $as_echo "$ac_cs_version"; exit ;;
19074 --config | --confi | --conf | --con | --co | --c )
19075 $as_echo "$ac_cs_config"; exit ;;
19076 --debug | --debu | --deb | --de | --d | -d )
19077 debug=: ;;
19078 --file | --fil | --fi | --f )
19079 $ac_shift
19080 case $ac_optarg in
19081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19082 '') as_fn_error $? "missing file argument" ;;
19083 esac
19084 as_fn_append CONFIG_FILES " '$ac_optarg'"
19085 ac_need_defaults=false;;
19086 --he | --h | --help | --hel | -h )
19087 $as_echo "$ac_cs_usage"; exit ;;
19088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19090 ac_cs_silent=: ;;
19091
19092 # This is an error.
19093 -*) as_fn_error $? "unrecognized option: \`$1'
19094 Try \`$0 --help' for more information." ;;
19095
19096 *) as_fn_append ac_config_targets " $1"
19097 ac_need_defaults=false ;;
19098
19099 esac
19100 shift
19101 done
19102
19103 ac_configure_extra_args=
19104
19105 if $ac_cs_silent; then
19106 exec 6>/dev/null
19107 ac_configure_extra_args="$ac_configure_extra_args --silent"
19108 fi
19109
19110 _ACEOF
19111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19112 if \$ac_cs_recheck; then
19113 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19114 shift
19115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19116 CONFIG_SHELL='$SHELL'
19117 export CONFIG_SHELL
19118 exec "\$@"
19119 fi
19120
19121 _ACEOF
19122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19123 exec 5>>config.log
19124 {
19125 echo
19126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19127 ## Running $as_me. ##
19128 _ASBOX
19129 $as_echo "$ac_log"
19130 } >&5
19131
19132 _ACEOF
19133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19134 #
19135 # INIT-COMMANDS
19136 #
19137 extrasub_build="$extrasub_build"
19138 extrasub_host="$extrasub_host"
19139 extrasub_target="$extrasub_target"
19140
19141 _ACEOF
19142
19143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144
19145 # Handling of arguments.
19146 for ac_config_target in $ac_config_targets
19147 do
19148 case $ac_config_target in
19149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19150
19151 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19152 esac
19153 done
19154
19155
19156 # If the user did not use the arguments to specify the items to instantiate,
19157 # then the envvar interface is used. Set only those that are not.
19158 # We use the long form for the default assignment because of an extremely
19159 # bizarre bug on SunOS 4.1.3.
19160 if $ac_need_defaults; then
19161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19162 fi
19163
19164 # Have a temporary directory for convenience. Make it in the build tree
19165 # simply because there is no reason against having it here, and in addition,
19166 # creating and moving files from /tmp can sometimes cause problems.
19167 # Hook for its removal unless debugging.
19168 # Note that there is a small window in which the directory will not be cleaned:
19169 # after its creation but before its name has been assigned to `$tmp'.
19170 $debug ||
19171 {
19172 tmp= ac_tmp=
19173 trap 'exit_status=$?
19174 : "${ac_tmp:=$tmp}"
19175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19176 ' 0
19177 trap 'as_fn_exit 1' 1 2 13 15
19178 }
19179 # Create a (secure) tmp directory for tmp files.
19180
19181 {
19182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19183 test -d "$tmp"
19184 } ||
19185 {
19186 tmp=./conf$$-$RANDOM
19187 (umask 077 && mkdir "$tmp")
19188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19189 ac_tmp=$tmp
19190
19191 # Set up the scripts for CONFIG_FILES section.
19192 # No need to generate them if there are no CONFIG_FILES.
19193 # This happens for instance with `./config.status config.h'.
19194 if test -n "$CONFIG_FILES"; then
19195
19196 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19197 ac_cs_awk_getline=:
19198 ac_cs_awk_pipe_init=
19199 ac_cs_awk_read_file='
19200 while ((getline aline < (F[key])) > 0)
19201 print(aline)
19202 close(F[key])'
19203 ac_cs_awk_pipe_fini=
19204 else
19205 ac_cs_awk_getline=false
19206 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19207 ac_cs_awk_read_file='
19208 print "|#_!!_#|"
19209 print "cat " F[key] " &&"
19210 '$ac_cs_awk_pipe_init
19211 # The final `:' finishes the AND list.
19212 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19213 fi
19214 ac_cr=`echo X | tr X '\015'`
19215 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19216 # But we know of no other shell where ac_cr would be empty at this
19217 # point, so we can use a bashism as a fallback.
19218 if test "x$ac_cr" = x; then
19219 eval ac_cr=\$\'\\r\'
19220 fi
19221 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19222 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19223 ac_cs_awk_cr='\\r'
19224 else
19225 ac_cs_awk_cr=$ac_cr
19226 fi
19227
19228 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19229 _ACEOF
19230
19231 # Create commands to substitute file output variables.
19232 {
19233 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19234 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19235 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19236 echo "_ACAWK" &&
19237 echo "_ACEOF"
19238 } >conf$$files.sh &&
19239 . ./conf$$files.sh ||
19240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19241 rm -f conf$$files.sh
19242
19243 {
19244 echo "cat >conf$$subs.awk <<_ACEOF" &&
19245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19246 echo "_ACEOF"
19247 } >conf$$subs.sh ||
19248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19250 ac_delim='%!_!# '
19251 for ac_last_try in false false false false false :; do
19252 . ./conf$$subs.sh ||
19253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19254
19255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19256 if test $ac_delim_n = $ac_delim_num; then
19257 break
19258 elif $ac_last_try; then
19259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19260 else
19261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19262 fi
19263 done
19264 rm -f conf$$subs.sh
19265
19266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19268 _ACEOF
19269 sed -n '
19270 h
19271 s/^/S["/; s/!.*/"]=/
19272 p
19273 g
19274 s/^[^!]*!//
19275 :repl
19276 t repl
19277 s/'"$ac_delim"'$//
19278 t delim
19279 :nl
19280 h
19281 s/\(.\{148\}\)..*/\1/
19282 t more1
19283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19284 p
19285 n
19286 b repl
19287 :more1
19288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19289 p
19290 g
19291 s/.\{148\}//
19292 t nl
19293 :delim
19294 h
19295 s/\(.\{148\}\)..*/\1/
19296 t more2
19297 s/["\\]/\\&/g; s/^/"/; s/$/"/
19298 p
19299 b
19300 :more2
19301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19302 p
19303 g
19304 s/.\{148\}//
19305 t delim
19306 ' <conf$$subs.awk | sed '
19307 /^[^""]/{
19308 N
19309 s/\n//
19310 }
19311 ' >>$CONFIG_STATUS || ac_write_fail=1
19312 rm -f conf$$subs.awk
19313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19314 _ACAWK
19315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19316 for (key in S) S_is_set[key] = 1
19317 FS = "\a"
19318 \$ac_cs_awk_pipe_init
19319 }
19320 {
19321 line = $ 0
19322 nfields = split(line, field, "@")
19323 substed = 0
19324 len = length(field[1])
19325 for (i = 2; i < nfields; i++) {
19326 key = field[i]
19327 keylen = length(key)
19328 if (S_is_set[key]) {
19329 value = S[key]
19330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19331 len += length(value) + length(field[++i])
19332 substed = 1
19333 } else
19334 len += 1 + keylen
19335 }
19336 if (nfields == 3 && !substed) {
19337 key = field[2]
19338 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19339 \$ac_cs_awk_read_file
19340 next
19341 }
19342 }
19343 print line
19344 }
19345 \$ac_cs_awk_pipe_fini
19346 _ACAWK
19347 _ACEOF
19348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19350 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19351 else
19352 cat
19353 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19354 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19355 _ACEOF
19356
19357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19359 # trailing colons and then remove the whole line if VPATH becomes empty
19360 # (actually we leave an empty line to preserve line numbers).
19361 if test "x$srcdir" = x.; then
19362 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19363 h
19364 s///
19365 s/^/:/
19366 s/[ ]*$/:/
19367 s/:\$(srcdir):/:/g
19368 s/:\${srcdir}:/:/g
19369 s/:@srcdir@:/:/g
19370 s/^:*//
19371 s/:*$//
19372 x
19373 s/\(=[ ]*\).*/\1/
19374 G
19375 s/\n//
19376 s/^[^=]*=[ ]*$//
19377 }'
19378 fi
19379
19380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19381 fi # test -n "$CONFIG_FILES"
19382
19383
19384 eval set X " :F $CONFIG_FILES "
19385 shift
19386 for ac_tag
19387 do
19388 case $ac_tag in
19389 :[FHLC]) ac_mode=$ac_tag; continue;;
19390 esac
19391 case $ac_mode$ac_tag in
19392 :[FHL]*:*);;
19393 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19394 :[FH]-) ac_tag=-:-;;
19395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19396 esac
19397 ac_save_IFS=$IFS
19398 IFS=:
19399 set x $ac_tag
19400 IFS=$ac_save_IFS
19401 shift
19402 ac_file=$1
19403 shift
19404
19405 case $ac_mode in
19406 :L) ac_source=$1;;
19407 :[FH])
19408 ac_file_inputs=
19409 for ac_f
19410 do
19411 case $ac_f in
19412 -) ac_f="$ac_tmp/stdin";;
19413 *) # Look for the file first in the build tree, then in the source tree
19414 # (if the path is not absolute). The absolute path cannot be DOS-style,
19415 # because $ac_f cannot contain `:'.
19416 test -f "$ac_f" ||
19417 case $ac_f in
19418 [\\/$]*) false;;
19419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19420 esac ||
19421 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19422 esac
19423 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19424 as_fn_append ac_file_inputs " '$ac_f'"
19425 done
19426
19427 # Let's still pretend it is `configure' which instantiates (i.e., don't
19428 # use $as_me), people would be surprised to read:
19429 # /* config.h. Generated by config.status. */
19430 configure_input='Generated from '`
19431 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19432 `' by configure.'
19433 if test x"$ac_file" != x-; then
19434 configure_input="$ac_file. $configure_input"
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19436 $as_echo "$as_me: creating $ac_file" >&6;}
19437 fi
19438 # Neutralize special characters interpreted by sed in replacement strings.
19439 case $configure_input in #(
19440 *\&* | *\|* | *\\* )
19441 ac_sed_conf_input=`$as_echo "$configure_input" |
19442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19443 *) ac_sed_conf_input=$configure_input;;
19444 esac
19445
19446 case $ac_tag in
19447 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19449 esac
19450 ;;
19451 esac
19452
19453 ac_dir=`$as_dirname -- "$ac_file" ||
19454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19455 X"$ac_file" : 'X\(//\)[^/]' \| \
19456 X"$ac_file" : 'X\(//\)$' \| \
19457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19458 $as_echo X"$ac_file" |
19459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19460 s//\1/
19461 q
19462 }
19463 /^X\(\/\/\)[^/].*/{
19464 s//\1/
19465 q
19466 }
19467 /^X\(\/\/\)$/{
19468 s//\1/
19469 q
19470 }
19471 /^X\(\/\).*/{
19472 s//\1/
19473 q
19474 }
19475 s/.*/./; q'`
19476 as_dir="$ac_dir"; as_fn_mkdir_p
19477 ac_builddir=.
19478
19479 case "$ac_dir" in
19480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19481 *)
19482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19483 # A ".." for each directory in $ac_dir_suffix.
19484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19485 case $ac_top_builddir_sub in
19486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19488 esac ;;
19489 esac
19490 ac_abs_top_builddir=$ac_pwd
19491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19492 # for backward compatibility:
19493 ac_top_builddir=$ac_top_build_prefix
19494
19495 case $srcdir in
19496 .) # We are building in place.
19497 ac_srcdir=.
19498 ac_top_srcdir=$ac_top_builddir_sub
19499 ac_abs_top_srcdir=$ac_pwd ;;
19500 [\\/]* | ?:[\\/]* ) # Absolute name.
19501 ac_srcdir=$srcdir$ac_dir_suffix;
19502 ac_top_srcdir=$srcdir
19503 ac_abs_top_srcdir=$srcdir ;;
19504 *) # Relative name.
19505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19506 ac_top_srcdir=$ac_top_build_prefix$srcdir
19507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19508 esac
19509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19510
19511
19512 case $ac_mode in
19513 :F)
19514 #
19515 # CONFIG_FILE
19516 #
19517
19518 case $INSTALL in
19519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19521 esac
19522 _ACEOF
19523
19524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19525 # If the template does not know about datarootdir, expand it.
19526 # FIXME: This hack should be removed a few years after 2.60.
19527 ac_datarootdir_hack=; ac_datarootdir_seen=
19528 ac_sed_dataroot='
19529 /datarootdir/ {
19530 p
19531 q
19532 }
19533 /@datadir@/p
19534 /@docdir@/p
19535 /@infodir@/p
19536 /@localedir@/p
19537 /@mandir@/p'
19538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19539 *datarootdir*) ac_datarootdir_seen=yes;;
19540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19543 _ACEOF
19544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19545 ac_datarootdir_hack='
19546 s&@datadir@&$datadir&g
19547 s&@docdir@&$docdir&g
19548 s&@infodir@&$infodir&g
19549 s&@localedir@&$localedir&g
19550 s&@mandir@&$mandir&g
19551 s&\\\${datarootdir}&$datarootdir&g' ;;
19552 esac
19553 _ACEOF
19554
19555 # Neutralize VPATH when `$srcdir' = `.'.
19556 # Shell code in configure.ac might set extrasub.
19557 # FIXME: do we really want to maintain this feature?
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 ac_sed_extra="$ac_vpsub
19560 $extrasub
19561 _ACEOF
19562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19563 :t
19564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19565 s|@configure_input@|$ac_sed_conf_input|;t t
19566 s&@top_builddir@&$ac_top_builddir_sub&;t t
19567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19568 s&@srcdir@&$ac_srcdir&;t t
19569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19570 s&@top_srcdir@&$ac_top_srcdir&;t t
19571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19572 s&@builddir@&$ac_builddir&;t t
19573 s&@abs_builddir@&$ac_abs_builddir&;t t
19574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19575 s&@INSTALL@&$ac_INSTALL&;t t
19576 $ac_datarootdir_hack
19577 "
19578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19579 if $ac_cs_awk_getline; then
19580 $AWK -f "$ac_tmp/subs.awk"
19581 else
19582 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19583 fi \
19584 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19585
19586 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19587 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19588 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19589 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19591 which seems to be undefined. Please make sure it is defined" >&5
19592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19593 which seems to be undefined. Please make sure it is defined" >&2;}
19594
19595 rm -f "$ac_tmp/stdin"
19596 case $ac_file in
19597 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19598 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19599 esac \
19600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19601 ;;
19602
19603
19604
19605 esac
19606
19607
19608 case $ac_file$ac_mode in
19609 "Makefile":F) sed "$extrasub_build" Makefile |
19610 sed "$extrasub_host" |
19611 sed "$extrasub_target" > mf$$
19612 mv -f mf$$ Makefile ;;
19613
19614 esac
19615 done # for ac_tag
19616
19617
19618 as_fn_exit 0
19619 _ACEOF
19620 ac_clean_files=$ac_clean_files_save
19621
19622 test $ac_write_fail = 0 ||
19623 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19624
19625
19626 # configure is writing to config.log, and then calls config.status.
19627 # config.status does its own redirection, appending to config.log.
19628 # Unfortunately, on DOS this fails, as config.log is still kept open
19629 # by configure, so config.status won't be able to write to it; its
19630 # output is simply discarded. So we exec the FD to /dev/null,
19631 # effectively closing config.log, so it can be properly (re)opened and
19632 # appended to by config.status. When coming back to configure, we
19633 # need to make the FD available again.
19634 if test "$no_create" != yes; then
19635 ac_cs_success=:
19636 ac_config_status_args=
19637 test "$silent" = yes &&
19638 ac_config_status_args="$ac_config_status_args --quiet"
19639 exec 5>/dev/null
19640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19641 exec 5>>config.log
19642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19643 # would make configure fail if this is the last instruction.
19644 $ac_cs_success || as_fn_exit 1
19645 fi
19646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19649 fi
19650