]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - configure
configure: remove dependencies on gmp and mpfr when gdb is disabled
[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 PKG_CONFIG_PATH
625 GDCFLAGS
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 GDC
713 GNATMAKE
714 GNATBIND
715 ac_ct_CXX
716 CXXFLAGS
717 CXX
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 extra_liboffloadmic_configure_flags
726 target_subdir
727 host_subdir
728 build_subdir
729 build_libsubdir
730 AWK
731 SED
732 LN_S
733 LN
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 target_noncanonical
746 host_noncanonical
747 build_noncanonical
748 build_os
749 build_vendor
750 build_cpu
751 build
752 TOPLEVEL_CONFIGURE_ARGUMENTS
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='serialization_dependencies
792 host_makefile_frag
793 target_makefile_frag
794 alphaieee_frag
795 ospace_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_build_libsubdir
799 with_system_zlib
800 with_zstd
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
804 enable_gold
805 enable_ld
806 enable_gprofng
807 enable_compressed_debug_sections
808 enable_default_compressed_debug_sections_algorithm
809 enable_year2038
810 enable_libquadmath
811 enable_libquadmath_support
812 enable_libada
813 enable_libssp
814 enable_libstdcxx
815 enable_liboffloadmic
816 enable_bootstrap
817 enable_pgo_build
818 with_mpc
819 with_mpc_include
820 with_mpc_lib
821 with_mpfr
822 with_mpfr_include
823 with_mpfr_lib
824 with_gmp
825 with_gmp_include
826 with_gmp_lib
827 with_stage1_libs
828 with_static_standard_libraries
829 with_stage1_ldflags
830 with_boot_libs
831 with_boot_ldflags
832 with_isl
833 with_isl_include
834 with_isl_lib
835 enable_isl_version_check
836 enable_lto
837 enable_linker_plugin_configure_flags
838 enable_linker_plugin_flags
839 enable_host_shared
840 enable_stage1_languages
841 enable_objc_gc
842 with_target_bdw_gc
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
846 with_build_sysroot
847 with_debug_prefix_map
848 with_build_config
849 enable_vtable_verify
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
854 enable_werror
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CXX
865 CXXFLAGS
866 CCC
867 build_configargs
868 host_configargs
869 target_configargs
870 AR
871 AS
872 DLLTOOL
873 DSYMUTIL
874 LD
875 LIPO
876 NM
877 RANLIB
878 STRIP
879 WINDRES
880 WINDMC
881 OBJCOPY
882 OBJDUMP
883 OTOOL
884 READELF
885 CC_FOR_TARGET
886 CXX_FOR_TARGET
887 GCC_FOR_TARGET
888 GFORTRAN_FOR_TARGET
889 GOC_FOR_TARGET
890 GDC_FOR_TARGET
891 AR_FOR_TARGET
892 AS_FOR_TARGET
893 DLLTOOL_FOR_TARGET
894 DSYMUTIL_FOR_TARGET
895 LD_FOR_TARGET
896 LIPO_FOR_TARGET
897 NM_FOR_TARGET
898 OBJCOPY_FOR_TARGET
899 OBJDUMP_FOR_TARGET
900 OTOOL_FOR_TARGET
901 RANLIB_FOR_TARGET
902 READELF_FOR_TARGET
903 STRIP_FOR_TARGET
904 WINDRES_FOR_TARGET
905 WINDMC_FOR_TARGET'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1212
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1222
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1229
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1240
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1256
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1272
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1276
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1283
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1290
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1293 ;;
1294
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1304
1305 *)
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 ;;
1312
1313 esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1319 fi
1320
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327 fi
1328
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1334 do
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411 else
1412 ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1417 fi
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425 fi
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 case $srcdir in
1433 *" "*)
1434 as_fn_error $? "path to source, $srcdir, contains spaces"
1435 ;;
1436 esac
1437 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures this package to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523
1524 cat <<\_ACEOF
1525
1526 Optional Features:
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-as-accelerator-for=ARG
1531 build as offload target compiler. Specify offload
1532 host triple by ARG
1533 --enable-offload-targets=LIST
1534 enable offloading to devices from comma-separated
1535 LIST of TARGET[=DIR]. Use optional path to find
1536 offload target compiler during the build
1537 --enable-offload-defaulted
1538 If enabled, configured but not installed offload compilers and
1539 libgomp plugins are silently ignored. Useful for distribution
1540 compilers where those are in separate optional packages.
1541
1542 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1543 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1544 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1545 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1546 Enable compressed debug sections for gas, gold or ld
1547 by default
1548 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1549 Default compression algorithm for
1550 --enable-compressed-debug-sections.
1551 --enable-year2038 enable support for timestamps past the year 2038
1552 --disable-libquadmath do not build libquadmath directory
1553 --disable-libquadmath-support
1554 disable libquadmath support for Fortran
1555 --enable-libada build libada directory
1556 --enable-libssp build libssp directory
1557 --disable-libstdcxx do not build libstdc++-v3 directory
1558 --enable-liboffloadmic=ARG
1559 build liboffloadmic [ARG={no,host,target}]
1560 --enable-bootstrap enable bootstrapping [yes if native build]
1561 --enable-pgo-build[=lto]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check for isl version
1565 --enable-lto enable link time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags for configuring linker plugins
1568 [none]
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags for configuring and building linker
1571 plugins [none]
1572 --enable-host-shared build host code as shared libraries
1573 --enable-stage1-languages[=all]
1574 choose additional languages to build during stage1.
1575 Mostly useful for compiler development
1576 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1577 Objective-C runtime
1578 --enable-vtable-verify Enable vtable verification feature
1579 --enable-serial-[{host,target,build}-]configure
1580 force sequential configuration of sub-packages for
1581 the host, target or build machine, or all
1582 sub-packages
1583 --enable-maintainer-mode
1584 enable make rules and dependencies not useful (and
1585 sometimes confusing) to the casual installer
1586 --enable-stage1-checking[=all]
1587 choose additional checking for stage1 of the
1588 compiler
1589 --enable-werror enable -Werror in bootstrap stage2 and later
1590
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-build-libsubdir=DIR Directory where to find libraries for build system
1595 --with-system-zlib use installed libz
1596 --with-zstd Support zstd compressed debug sections
1597 (default=auto)
1598 --with-mpc=PATH specify prefix directory for installed MPC package.
1599 Equivalent to --with-mpc-include=PATH/include plus
1600 --with-mpc-lib=PATH/lib
1601 --with-mpc-include=PATH specify directory for installed MPC include files
1602 --with-mpc-lib=PATH specify directory for the installed MPC library
1603 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1604 Equivalent to --with-mpfr-include=PATH/include plus
1605 --with-mpfr-lib=PATH/lib
1606 --with-mpfr-include=PATH
1607 specify directory for installed MPFR include files
1608 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1609 --with-gmp=PATH specify prefix directory for the installed GMP
1610 package. Equivalent to
1611 --with-gmp-include=PATH/include plus
1612 --with-gmp-lib=PATH/lib
1613 --with-gmp-include=PATH specify directory for installed GMP include files
1614 --with-gmp-lib=PATH specify directory for the installed GMP library
1615 --with-stage1-libs=LIBS libraries for stage1
1616 --with-static-standard-libraries
1617 use -static-libstdc++ and -static-libgcc
1618 (default=auto)
1619 --with-stage1-ldflags=FLAGS
1620 linker flags for stage1
1621 --with-boot-libs=LIBS libraries for stage2 and later
1622 --with-boot-ldflags=FLAGS
1623 linker flags for stage2 and later
1624 --with-isl=PATH Specify prefix directory for the installed isl
1625 package. Equivalent to
1626 --with-isl-include=PATH/include plus
1627 --with-isl-lib=PATH/lib
1628 --with-isl-include=PATH Specify directory for installed isl include files
1629 --with-isl-lib=PATH Specify the directory for the installed isl library
1630 --with-target-bdw-gc=PATHLIST
1631 specify prefix directory for installed bdw-gc
1632 package. Equivalent to
1633 --with-target-bdw-gc-include=PATH/include plus
1634 --with-target-bdw-gc-lib=PATH/lib
1635 --with-target-bdw-gc-include=PATHLIST
1636 specify directories for installed bdw-gc include
1637 files
1638 --with-target-bdw-gc-lib=PATHLIST
1639 specify directories for installed bdw-gc library
1640 --with-gcc-major-version-only
1641 use only GCC major number in filesystem paths
1642 --with-build-sysroot=SYSROOT
1643 use sysroot as the system root during the build
1644 --with-debug-prefix-map='A=B C=D ...'
1645 map A to B, C to D ... in debug information
1646 --with-build-config='NAME NAME2...'
1647 use config/NAME.mk build configuration
1648 --with-build-time-tools=PATH
1649 use given path to find target tools during the build
1650
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1659 CXX C++ compiler command
1660 CXXFLAGS C++ compiler flags
1661 build_configargs
1662 additional configure arguments for build directories
1663 host_configargs
1664 additional configure arguments for host directories
1665 target_configargs
1666 additional configure arguments for target directories
1667 AR AR for the host
1668 AS AS for the host
1669 DLLTOOL DLLTOOL for the host
1670 DSYMUTIL DSYMUTIL for the host
1671 LD LD for the host
1672 LIPO LIPO for the host
1673 NM NM for the host
1674 RANLIB RANLIB for the host
1675 STRIP STRIP for the host
1676 WINDRES WINDRES for the host
1677 WINDMC WINDMC for the host
1678 OBJCOPY OBJCOPY for the host
1679 OBJDUMP OBJDUMP for the host
1680 OTOOL OTOOL for the host
1681 READELF READELF for the host
1682 CC_FOR_TARGET
1683 CC for the target
1684 CXX_FOR_TARGET
1685 CXX for the target
1686 GCC_FOR_TARGET
1687 GCC for the target
1688 GFORTRAN_FOR_TARGET
1689 GFORTRAN for the target
1690 GOC_FOR_TARGET
1691 GOC for the target
1692 GDC_FOR_TARGET
1693 GDC for the target
1694 AR_FOR_TARGET
1695 AR for the target
1696 AS_FOR_TARGET
1697 AS for the target
1698 DLLTOOL_FOR_TARGET
1699 DLLTOOL for the target
1700 DSYMUTIL_FOR_TARGET
1701 DSYMUTIL for the target
1702 LD_FOR_TARGET
1703 LD for the target
1704 LIPO_FOR_TARGET
1705 LIPO for the target
1706 NM_FOR_TARGET
1707 NM for the target
1708 OBJCOPY_FOR_TARGET
1709 OBJCOPY for the target
1710 OBJDUMP_FOR_TARGET
1711 OBJDUMP for the target
1712 OTOOL_FOR_TARGET
1713 OTOOL for the target
1714 RANLIB_FOR_TARGET
1715 RANLIB for the target
1716 READELF_FOR_TARGET
1717 READELF for the target
1718 STRIP_FOR_TARGET
1719 STRIP for the target
1720 WINDRES_FOR_TARGET
1721 WINDRES for the target
1722 WINDMC_FOR_TARGET
1723 WINDMC for the target
1724
1725 Use these variables to override the choices made by `configure' or to help
1726 it to find libraries and programs with nonstandard names/locations.
1727
1728 Report bugs to the package provider.
1729 _ACEOF
1730 ac_status=$?
1731 fi
1732
1733 if test "$ac_init_help" = "recursive"; then
1734 # If there are subdirs, report their specific --help.
1735 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1736 test -d "$ac_dir" ||
1737 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1738 continue
1739 ac_builddir=.
1740
1741 case "$ac_dir" in
1742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *)
1744 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1745 # A ".." for each directory in $ac_dir_suffix.
1746 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1747 case $ac_top_builddir_sub in
1748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1750 esac ;;
1751 esac
1752 ac_abs_top_builddir=$ac_pwd
1753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1754 # for backward compatibility:
1755 ac_top_builddir=$ac_top_build_prefix
1756
1757 case $srcdir in
1758 .) # We are building in place.
1759 ac_srcdir=.
1760 ac_top_srcdir=$ac_top_builddir_sub
1761 ac_abs_top_srcdir=$ac_pwd ;;
1762 [\\/]* | ?:[\\/]* ) # Absolute name.
1763 ac_srcdir=$srcdir$ac_dir_suffix;
1764 ac_top_srcdir=$srcdir
1765 ac_abs_top_srcdir=$srcdir ;;
1766 *) # Relative name.
1767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1768 ac_top_srcdir=$ac_top_build_prefix$srcdir
1769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1770 esac
1771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1772
1773 cd "$ac_dir" || { ac_status=$?; continue; }
1774 # Check for guested configure.
1775 if test -f "$ac_srcdir/configure.gnu"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778 elif test -f "$ac_srcdir/configure"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure" --help=recursive
1781 else
1782 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 fi || ac_status=$?
1784 cd "$ac_pwd" || { ac_status=$?; break; }
1785 done
1786 fi
1787
1788 test -n "$ac_init_help" && exit $ac_status
1789 if $ac_init_version; then
1790 cat <<\_ACEOF
1791 configure
1792 generated by GNU Autoconf 2.69
1793
1794 Copyright (C) 2012 Free Software Foundation, Inc.
1795 This configure script is free software; the Free Software Foundation
1796 gives unlimited permission to copy, distribute and modify it.
1797 _ACEOF
1798 exit
1799 fi
1800
1801 ## ------------------------ ##
1802 ## Autoconf initialization. ##
1803 ## ------------------------ ##
1804
1805 # ac_fn_c_try_compile LINENO
1806 # --------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_compile ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_compile
1842
1843 # ac_fn_cxx_try_compile LINENO
1844 # ----------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_compile ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=1
1875 fi
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_cxx_try_compile
1880
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_cxx_try_link
1926
1927 # ac_fn_c_try_link LINENO
1928 # -----------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_c_try_link ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1935 case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1942 ac_status=$?
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1947 fi
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest$ac_exeext
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1960
1961 ac_retval=1
1962 fi
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
1971 } # ac_fn_c_try_link
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by $as_me, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092 (
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120 )
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168 ' 0
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 done
2172 ac_signal=0
2173
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2176
2177 $as_echo "/* confdefs.h */" > confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2208 ac_site_file1=NONE
2209 ac_site_file2=NONE
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237 done
2238
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254 fi
2255
2256 # Check that the precious variables saved in the cache have kept the same
2257 # value.
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2304 fi
2305 done
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 fi
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325
2326
2327
2328
2329
2330 progname=$0
2331 # if PWD already has a value, it is probably wrong.
2332 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2333
2334 # Export original configure arguments for use by sub-configures.
2335 # Quote arguments with shell meta charatcers.
2336 TOPLEVEL_CONFIGURE_ARGUMENTS=
2337 set -- "$progname" "$@"
2338 for ac_arg
2339 do
2340 case "$ac_arg" in
2341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2342 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2343 # if the argument is of the form -foo=baz, quote the baz part only
2344 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2345 *) ;;
2346 esac
2347 # Add the quoted argument to the list.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2349 done
2350 if test "$silent" = yes; then
2351 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2352 fi
2353 # Remove the initial space we just introduced and, as these will be
2354 # expanded by make, quote '$'.
2355 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2356
2357
2358 # Find the build, host, and target systems.
2359 ac_aux_dir=
2360 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
2374 done
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2377 fi
2378
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2391
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 ac_build_alias=$build_alias
2398 test "x$ac_build_alias" = x &&
2399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x &&
2401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2404
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2409 *-*-*) ;;
2410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2411 esac
2412 build=$ac_cv_build
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_build
2415 shift
2416 build_cpu=$1
2417 build_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 build_os=$*
2422 IFS=$ac_save_IFS
2423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424
2425
2426 case ${build_alias} in
2427 "") build_noncanonical=${build} ;;
2428 *) build_noncanonical=${build_alias} ;;
2429 esac
2430
2431
2432
2433 case ${host_alias} in
2434 "") host_noncanonical=${build_noncanonical} ;;
2435 *) host_noncanonical=${host_alias} ;;
2436 esac
2437
2438
2439
2440 case ${target_alias} in
2441 "") target_noncanonical=${host_noncanonical} ;;
2442 *) target_noncanonical=${target_alias} ;;
2443 esac
2444
2445
2446
2447
2448 test "$host_noncanonical" = "$target_noncanonical" &&
2449 test "$program_prefix$program_suffix$program_transform_name" = \
2450 NONENONEs,x,x, &&
2451 program_transform_name=s,y,y,
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2454 $as_echo_n "checking host system type... " >&6; }
2455 if ${ac_cv_host+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test "x$host_alias" = x; then
2459 ac_cv_host=$ac_cv_build
2460 else
2461 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2463 fi
2464
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2467 $as_echo "$ac_cv_host" >&6; }
2468 case $ac_cv_host in
2469 *-*-*) ;;
2470 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2471 esac
2472 host=$ac_cv_host
2473 ac_save_IFS=$IFS; IFS='-'
2474 set x $ac_cv_host
2475 shift
2476 host_cpu=$1
2477 host_vendor=$2
2478 shift; shift
2479 # Remember, the first character of IFS is used to create $*,
2480 # except with old shells:
2481 host_os=$*
2482 IFS=$ac_save_IFS
2483 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2484
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2487 $as_echo_n "checking target system type... " >&6; }
2488 if ${ac_cv_target+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test "x$target_alias" = x; then
2492 ac_cv_target=$ac_cv_host
2493 else
2494 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2496 fi
2497
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2500 $as_echo "$ac_cv_target" >&6; }
2501 case $ac_cv_target in
2502 *-*-*) ;;
2503 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2504 esac
2505 target=$ac_cv_target
2506 ac_save_IFS=$IFS; IFS='-'
2507 set x $ac_cv_target
2508 shift
2509 target_cpu=$1
2510 target_vendor=$2
2511 shift; shift
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2514 target_os=$*
2515 IFS=$ac_save_IFS
2516 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2517
2518
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522 test "$program_prefix$program_suffix$program_transform_name" = \
2523 NONENONEs,x,x, &&
2524 program_prefix=${target_alias}-
2525
2526 test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE &&
2530 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536
2537
2538 # Get 'install' or 'install-sh' and its variants.
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2545 # AIX /bin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 # Reject install programs that cannot install multiple files.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2554 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2555 if test -z "$INSTALL"; then
2556 if ${ac_cv_path_install+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 # Account for people who put trailing slashes in PATH elements.
2565 case $as_dir/ in #((
2566 ./ | .// | /[cC]/* | \
2567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2568 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2569 /usr/ucb/* ) ;;
2570 *)
2571 # OSF1 and SCO ODT 3.0 have their own names for install.
2572 # Don't use installbsd from OSF since it installs stuff as root
2573 # by default.
2574 for ac_prog in ginstall scoinst install; do
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2577 if test $ac_prog = install &&
2578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2579 # AIX install. It has an incompatible calling convention.
2580 :
2581 elif test $ac_prog = install &&
2582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583 # program-specific install script used by HP pwplus--don't use.
2584 :
2585 else
2586 rm -rf conftest.one conftest.two conftest.dir
2587 echo one > conftest.one
2588 echo two > conftest.two
2589 mkdir conftest.dir
2590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2591 test -s conftest.one && test -s conftest.two &&
2592 test -s conftest.dir/conftest.one &&
2593 test -s conftest.dir/conftest.two
2594 then
2595 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2596 break 3
2597 fi
2598 fi
2599 fi
2600 done
2601 done
2602 ;;
2603 esac
2604
2605 done
2606 IFS=$as_save_IFS
2607
2608 rm -rf conftest.one conftest.two conftest.dir
2609
2610 fi
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL=$ac_cv_path_install
2613 else
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 INSTALL=$ac_install_sh
2619 fi
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2622 $as_echo "$INSTALL" >&6; }
2623
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2627
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2629
2630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2633 $as_echo_n "checking whether ln works... " >&6; }
2634 if ${acx_cv_prog_LN+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 rm -f conftestdata_t
2638 echo >conftestdata_f
2639 if ln conftestdata_f conftestdata_t 2>/dev/null
2640 then
2641 acx_cv_prog_LN=ln
2642 else
2643 acx_cv_prog_LN=no
2644 fi
2645 rm -f conftestdata_f conftestdata_t
2646
2647 fi
2648 if test $acx_cv_prog_LN = no; then
2649 LN="cp"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2651 $as_echo "no, using $LN" >&6; }
2652 else
2653 LN="$acx_cv_prog_LN"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 fi
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2659 $as_echo_n "checking whether ln -s works... " >&6; }
2660 LN_S=$as_ln_s
2661 if test "$LN_S" = "ln -s"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2666 $as_echo "no, using $LN_S" >&6; }
2667 fi
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2670 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2671 if ${ac_cv_path_SED+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2675 for ac_i in 1 2 3 4 5 6 7; do
2676 ac_script="$ac_script$as_nl$ac_script"
2677 done
2678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2679 { ac_script=; unset ac_script;}
2680 if test -z "$SED"; then
2681 ac_path_SED_found=false
2682 # Loop through the user's path and test for each of PROGNAME-LIST
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_prog in sed gsed; do
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2691 as_fn_executable_p "$ac_path_SED" || continue
2692 # Check for GNU ac_path_SED and select it if it is found.
2693 # Check for GNU $ac_path_SED
2694 case `"$ac_path_SED" --version 2>&1` in
2695 *GNU*)
2696 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2697 *)
2698 ac_count=0
2699 $as_echo_n 0123456789 >"conftest.in"
2700 while :
2701 do
2702 cat "conftest.in" "conftest.in" >"conftest.tmp"
2703 mv "conftest.tmp" "conftest.in"
2704 cp "conftest.in" "conftest.nl"
2705 $as_echo '' >> "conftest.nl"
2706 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2708 as_fn_arith $ac_count + 1 && ac_count=$as_val
2709 if test $ac_count -gt ${ac_path_SED_max-0}; then
2710 # Best one so far, save it but keep looking for a better one
2711 ac_cv_path_SED="$ac_path_SED"
2712 ac_path_SED_max=$ac_count
2713 fi
2714 # 10*(2^10) chars as input seems more than enough
2715 test $ac_count -gt 10 && break
2716 done
2717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2718 esac
2719
2720 $ac_path_SED_found && break 3
2721 done
2722 done
2723 done
2724 IFS=$as_save_IFS
2725 if test -z "$ac_cv_path_SED"; then
2726 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2727 fi
2728 else
2729 ac_cv_path_SED=$SED
2730 fi
2731
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2734 $as_echo "$ac_cv_path_SED" >&6; }
2735 SED="$ac_cv_path_SED"
2736 rm -f conftest.sed
2737
2738 for ac_prog in gawk mawk nawk awk
2739 do
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_AWK+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$AWK"; then
2748 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_AWK="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 AWK=$ac_cv_prog_AWK
2768 if test -n "$AWK"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770 $as_echo "$AWK" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776
2777 test -n "$AWK" && break
2778 done
2779
2780
2781 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2782
2783 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2784 # a relative path.
2785 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2786 INSTALL="${srcpwd}/install-sh -c"
2787 fi
2788
2789 # Set srcdir to "." if that's what it is.
2790 # This is important for multilib support.
2791 pwd=`${PWDCMD-pwd}`
2792 if test "${pwd}" = "${srcpwd}" ; then
2793 srcdir=.
2794 fi
2795
2796 topsrcdir=$srcpwd
2797
2798 extra_host_args=
2799
2800 ### To add a new directory to the tree, first choose whether it is a target
2801 ### or a host dependent tool. Then put it into the appropriate list
2802 ### (library or tools, host or target), doing a dependency sort.
2803
2804 # Subdirs will be configured in the order listed in build_configdirs,
2805 # configdirs, or target_configdirs; see the serialization section below.
2806
2807 # Dependency sorting is only needed when *configuration* must be done in
2808 # a particular order. In all cases a dependency should be specified in
2809 # the Makefile, whether or not it's implicitly specified here.
2810
2811 # Double entries in build_configdirs, configdirs, or target_configdirs may
2812 # cause circular dependencies and break everything horribly.
2813
2814 # these library is used by various programs built for the build
2815 # environment
2816 #
2817 build_libs="build-libiberty build-libcpp"
2818
2819 # these tools are built for the build environment
2820 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2821
2822 # these libraries are used by various programs built for the host environment
2823 #f
2824 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2825
2826 # these tools are built for the host environment
2827 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2828 # know that we are building the simulator.
2829 # binutils, gas and ld appear in that order because it makes sense to run
2830 # "make check" in that particular order.
2831 # If --enable-gold is used, "gold" may replace "ld".
2832 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"
2833
2834 # these libraries are built for the target environment, and are built after
2835 # the host libraries and the host tools (which may be a cross compiler)
2836 # Note that libiberty is not a target library.
2837 target_libraries="target-libgcc \
2838 target-libbacktrace \
2839 target-libgloss \
2840 target-newlib \
2841 target-libgomp \
2842 target-liboffloadmic \
2843 target-libatomic \
2844 target-libitm \
2845 target-libstdc++-v3 \
2846 target-libsanitizer \
2847 target-libvtv \
2848 target-libssp \
2849 target-libquadmath \
2850 target-libgfortran \
2851 target-libffi \
2852 target-libobjc \
2853 target-libada \
2854 target-libgo \
2855 target-libphobos \
2856 target-zlib"
2857
2858 # these tools are built using the target libraries, and are intended to
2859 # run only in the target environment
2860 #
2861 # note: any program that *uses* libraries that are in the "target_libraries"
2862 # list belongs in this list.
2863 #
2864 target_tools="target-rda"
2865
2866 ################################################################################
2867
2868 ## All tools belong in one of the four categories, and are assigned above
2869 ## We assign ${configdirs} this way to remove all embedded newlines. This
2870 ## is important because configure will choke if they ever get through.
2871 ## ${configdirs} is directories we build using the host tools.
2872 ## ${target_configdirs} is directories we build using the target tools.
2873 configdirs=`echo ${host_libs} ${host_tools}`
2874 target_configdirs=`echo ${target_libraries} ${target_tools}`
2875 build_configdirs=`echo ${build_libs} ${build_tools}`
2876
2877
2878
2879 ################################################################################
2880
2881 srcname="gnu development package"
2882
2883 # This gets set non-empty for some net releases of packages.
2884 appdirs=""
2885
2886 # Define is_cross_compiler to save on calls to 'test'.
2887 is_cross_compiler=
2888 if test x"${host}" = x"${target}" ; then
2889 is_cross_compiler=no
2890 else
2891 is_cross_compiler=yes
2892 fi
2893
2894 # Find the build and target subdir names.
2895
2896 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2897 # have matching libraries, they should use host libraries: Makefile.tpl
2898 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2899 # However, they still use the build modules, because the corresponding
2900 # host modules (e.g. bison) are only built for the host when bootstrap
2901 # finishes. So:
2902 # - build_subdir is where we find build modules, and never changes.
2903 # - build_libsubdir is where we find build libraries, and can be overridden.
2904
2905 # Prefix 'build-' so this never conflicts with target_subdir.
2906 build_subdir="build-${build_noncanonical}"
2907
2908 # Check whether --with-build-libsubdir was given.
2909 if test "${with_build_libsubdir+set}" = set; then :
2910 withval=$with_build_libsubdir; build_libsubdir="$withval"
2911 else
2912 build_libsubdir="$build_subdir"
2913 fi
2914
2915 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2916 if ( test $srcdir = . && test -d gcc ) \
2917 || test -d $srcdir/../host-${host_noncanonical}; then
2918 host_subdir="host-${host_noncanonical}"
2919 else
2920 host_subdir=.
2921 fi
2922 # No prefix.
2923 target_subdir=${target_noncanonical}
2924
2925 # Be sure to cover against remnants of an in-tree build.
2926 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2927 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2928 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2929 fi
2930
2931 # Skipdirs are removed silently.
2932 skipdirs=
2933 # Noconfigdirs are removed loudly.
2934 noconfigdirs=""
2935
2936 use_gnu_ld=
2937 # Make sure we don't let GNU ld be added if we didn't want it.
2938 if test x$with_gnu_ld = xno ; then
2939 use_gnu_ld=no
2940 noconfigdirs="$noconfigdirs ld gold"
2941 fi
2942
2943 use_gnu_as=
2944 # Make sure we don't let GNU as be added if we didn't want it.
2945 if test x$with_gnu_as = xno ; then
2946 use_gnu_as=no
2947 noconfigdirs="$noconfigdirs gas"
2948 fi
2949
2950 use_included_zlib=
2951
2952 # Check whether --with-system-zlib was given.
2953 if test "${with_system_zlib+set}" = set; then :
2954 withval=$with_system_zlib;
2955 fi
2956
2957 # Make sure we don't let ZLIB be added if we didn't want it.
2958 if test x$with_system_zlib = xyes ; then
2959 use_included_zlib=no
2960 noconfigdirs="$noconfigdirs zlib"
2961 fi
2962
2963 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2964 # is provided.
2965 if test x$with_system_readline = xyes ; then
2966 noconfigdirs="$noconfigdirs readline"
2967 fi
2968
2969
2970 # Check whether --with-zstd was given.
2971 if test "${with_zstd+set}" = set; then :
2972 withval=$with_zstd;
2973 fi
2974
2975
2976 # some tools are so dependent upon X11 that if we're not building with X,
2977 # it's not even worth trying to configure, much less build, that tool.
2978
2979 case ${with_x} in
2980 yes | "") ;; # the default value for this tree is that X11 is available
2981 no)
2982 skipdirs="${skipdirs} tk itcl libgui"
2983 # We won't be able to build gdbtk without X.
2984 enable_gdbtk=no
2985 ;;
2986 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2987 esac
2988
2989 # Some are only suitable for cross toolchains.
2990 # Remove these if host=target.
2991 cross_only="target-libgloss target-newlib target-opcodes"
2992
2993 case $is_cross_compiler in
2994 no) skipdirs="${skipdirs} ${cross_only}" ;;
2995 esac
2996
2997 # If both --with-headers and --with-libs are specified, default to
2998 # --without-newlib.
2999 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3000 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3001 if test x"${with_newlib}" = x ; then
3002 with_newlib=no
3003 fi
3004 fi
3005
3006 # Recognize --with-newlib/--without-newlib.
3007 case ${with_newlib} in
3008 no) skipdirs="${skipdirs} target-newlib" ;;
3009 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3010 esac
3011
3012 # Check whether --enable-as-accelerator-for was given.
3013 if test "${enable_as_accelerator_for+set}" = set; then :
3014 enableval=$enable_as_accelerator_for;
3015 fi
3016
3017
3018 # Check whether --enable-offload-targets was given.
3019 if test "${enable_offload_targets+set}" = set; then :
3020 enableval=$enable_offload_targets;
3021 if test x"$enable_offload_targets" = x; then
3022 as_fn_error $? "no offload targets specified" "$LINENO" 5
3023 fi
3024
3025 else
3026 enable_offload_targets=
3027 fi
3028
3029
3030 # Check whether --enable-offload-defaulted was given.
3031 if test "${enable_offload_defaulted+set}" = set; then :
3032 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3033 else
3034 enable_offload_defaulted=
3035 fi
3036
3037
3038 # Handle --enable-gold, --enable-ld.
3039 # --disable-gold [--enable-ld]
3040 # Build only ld. Default option.
3041 # --enable-gold [--enable-ld]
3042 # Build both gold and ld. Install gold as "ld.gold", install ld
3043 # as "ld.bfd" and "ld".
3044 # --enable-gold=default [--enable-ld]
3045 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3046 # install ld as "ld.bfd".
3047 # --enable-gold[=default] --disable-ld
3048 # Build only gold, which is then installed as both "ld.gold" and "ld".
3049 # --enable-gold --enable-ld=default
3050 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3051 # and ld.bfd).
3052 # In other words, ld is default
3053 # --enable-gold=default --enable-ld=default
3054 # Error.
3055
3056 default_ld=
3057 # Check whether --enable-gold was given.
3058 if test "${enable_gold+set}" = set; then :
3059 enableval=$enable_gold; ENABLE_GOLD=$enableval
3060 else
3061 ENABLE_GOLD=no
3062 fi
3063
3064 case "${ENABLE_GOLD}" in
3065 yes|default)
3066 # Check for ELF target.
3067 is_elf=no
3068 case "${target}" in
3069 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3070 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3071 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3072 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3073 case "${target}" in
3074 *-*-linux*aout* | *-*-linux*oldld*)
3075 ;;
3076 *)
3077 is_elf=yes
3078 ;;
3079 esac
3080 esac
3081
3082 if test "$is_elf" = "yes"; then
3083 # Check for target supported by gold.
3084 case "${target}" in
3085 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3086 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3087 configdirs="$configdirs gold"
3088 if test x${ENABLE_GOLD} = xdefault; then
3089 default_ld=gold
3090 fi
3091 ENABLE_GOLD=yes
3092 ;;
3093 esac
3094 fi
3095 ;;
3096 no)
3097 ;;
3098 *)
3099 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3100 ;;
3101 esac
3102
3103 # Check whether --enable-ld was given.
3104 if test "${enable_ld+set}" = set; then :
3105 enableval=$enable_ld; ENABLE_LD=$enableval
3106 else
3107 ENABLE_LD=yes
3108 fi
3109
3110
3111 case "${ENABLE_LD}" in
3112 default)
3113 if test x${default_ld} != x; then
3114 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3115 fi
3116 ;;
3117 yes)
3118 ;;
3119 no)
3120 if test x${ENABLE_GOLD} != xyes; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3122 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3123 fi
3124 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3125 ;;
3126 *)
3127 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3128 ;;
3129 esac
3130
3131 # Check whether --enable-gprofng was given.
3132 if test "${enable_gprofng+set}" = set; then :
3133 enableval=$enable_gprofng; enable_gprofng=$enableval
3134 else
3135 enable_gprofng=yes
3136 fi
3137
3138 if test "$enable_gprofng" = "yes"; then
3139 case "${target}" in
3140 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3141 configdirs="$configdirs gprofng"
3142 ;;
3143 esac
3144 fi
3145
3146
3147 # PR gas/19109
3148 # Decide the default method for compressing debug sections.
3149 # Provide a configure time option to override our default.
3150 # Check whether --enable-compressed_debug_sections was given.
3151 if test "${enable_compressed_debug_sections+set}" = set; then :
3152 enableval=$enable_compressed_debug_sections;
3153 if test x"$enable_compressed_debug_sections" = xyes; then
3154 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3155 fi
3156
3157 else
3158 enable_compressed_debug_sections=
3159 fi
3160
3161
3162 # Select default compression algorithm.
3163 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3164 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3165 enableval=$enable_default_compressed_debug_sections_algorithm;
3166 else
3167 default_compressed_debug_sections_algorithm=
3168 fi
3169
3170
3171 # Configure extra directories which are host specific
3172
3173 case "${host}" in
3174 *-cygwin*)
3175 configdirs="$configdirs libtermcap" ;;
3176 esac
3177
3178 # A target can indicate whether a language isn't supported for some reason.
3179 # Only spaces may be used in this macro; not newlines or tabs.
3180 unsupported_languages=
3181
3182 # Remove more programs from consideration, based on the host or
3183 # target this usually means that a port of the program doesn't
3184 # exist yet.
3185
3186 case "${host}" in
3187 i[3456789]86-*-msdosdjgpp*)
3188 noconfigdirs="$noconfigdirs tcl tk itcl"
3189 ;;
3190 esac
3191
3192 # Default to --disable-year2038 until we can handle differences between
3193 # projects that use gnulib (which understands year 2038) and projects that
3194 # do not (like BFD).
3195 # Check whether --enable-year2038 was given.
3196 if test "${enable_year2038+set}" = set; then :
3197 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3198 else
3199 ENABLE_YEAR2038=no
3200 fi
3201
3202 enable_year2038=
3203 if test "${ENABLE_YEAR2038}" = "no" ; then
3204 enable_year2038=no
3205 fi
3206
3207 # Check whether --enable-libquadmath was given.
3208 if test "${enable_libquadmath+set}" = set; then :
3209 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3210 else
3211 ENABLE_LIBQUADMATH=yes
3212 fi
3213
3214 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3215 noconfigdirs="$noconfigdirs target-libquadmath"
3216 fi
3217
3218
3219 # Check whether --enable-libquadmath-support was given.
3220 if test "${enable_libquadmath_support+set}" = set; then :
3221 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3222 else
3223 ENABLE_LIBQUADMATH_SUPPORT=yes
3224 fi
3225
3226 enable_libquadmath_support=
3227 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3228 enable_libquadmath_support=no
3229 fi
3230
3231
3232 # Check whether --enable-libada was given.
3233 if test "${enable_libada+set}" = set; then :
3234 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3235 else
3236 ENABLE_LIBADA=yes
3237 fi
3238
3239 if test "${ENABLE_LIBADA}" != "yes" ; then
3240 noconfigdirs="$noconfigdirs gnattools"
3241 fi
3242
3243 # Check whether --enable-libssp was given.
3244 if test "${enable_libssp+set}" = set; then :
3245 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3246 else
3247 ENABLE_LIBSSP=yes
3248 fi
3249
3250
3251 # Check whether --enable-libstdcxx was given.
3252 if test "${enable_libstdcxx+set}" = set; then :
3253 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3254 else
3255 ENABLE_LIBSTDCXX=default
3256 fi
3257
3258 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3259 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3260 fi
3261
3262 # If this is accelerator compiler and its target is intelmic we enable
3263 # target liboffloadmic by default. If this is compiler with offloading
3264 # for intelmic we enable host liboffloadmic by default. Otherwise
3265 # liboffloadmic is disabled by default.
3266 # Check whether --enable-liboffloadmic was given.
3267 if test "${enable_liboffloadmic+set}" = set; then :
3268 enableval=$enable_liboffloadmic; case "$enableval" in
3269 no | host | target)
3270 enable_liboffloadmic=$enableval ;;
3271 *)
3272 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3273 esac
3274 else
3275 if test x"$enable_as_accelerator_for" != x; then
3276 case "${target}" in
3277 *-intelmic-* | *-intelmicemul-*)
3278 enable_liboffloadmic=target
3279 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3280 ;;
3281 *)
3282 enable_liboffloadmic=no
3283 ;;
3284 esac
3285 else
3286 case "${enable_offload_targets}" in
3287 *-intelmic-* | *-intelmicemul-*)
3288 enable_liboffloadmic=host
3289 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3290 ;;
3291 *)
3292 enable_liboffloadmic=no
3293 ;;
3294 esac
3295 fi
3296 fi
3297
3298
3299
3300 # Enable libgomp by default on hosted POSIX systems, and a few others.
3301 if test x$enable_libgomp = x ; then
3302 case "${target}" in
3303 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3304 ;;
3305 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3306 ;;
3307 *-*-solaris2* | *-*-hpux11*)
3308 ;;
3309 *-*-darwin* | *-*-aix*)
3310 ;;
3311 nvptx*-*-* | amdgcn*-*-*)
3312 ;;
3313 *)
3314 noconfigdirs="$noconfigdirs target-libgomp"
3315 ;;
3316 esac
3317 fi
3318
3319 # Disable libatomic on unsupported systems.
3320 if test -d ${srcdir}/libatomic; then
3321 if test x$enable_libatomic = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3323 $as_echo_n "checking for libatomic support... " >&6; }
3324 if (srcdir=${srcdir}/libatomic; \
3325 . ${srcdir}/configure.tgt; \
3326 test -n "$UNSUPPORTED")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs="$noconfigdirs target-libatomic"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 fi
3335 fi
3336 fi
3337
3338 # Disable liboffloadmic on unsupported systems.
3339 if test -d ${srcdir}/liboffloadmic; then
3340 if test x$enable_liboffloadmic != xno; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3342 $as_echo_n "checking for liboffloadmic support... " >&6; }
3343 if (srcdir=${srcdir}/liboffloadmic; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 noconfigdirs="$noconfigdirs target-liboffloadmic"
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353 fi
3354 fi
3355 fi
3356
3357 # Disable libitm on unsupported systems.
3358 if test -d ${srcdir}/libitm; then
3359 if test x$enable_libitm = x; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3361 $as_echo_n "checking for libitm support... " >&6; }
3362 if (srcdir=${srcdir}/libitm; \
3363 . ${srcdir}/configure.tgt; \
3364 test -n "$UNSUPPORTED")
3365 then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 noconfigdirs="$noconfigdirs target-libitm"
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3372 fi
3373 fi
3374 fi
3375
3376 # Disable libsanitizer on unsupported systems.
3377 if test -d ${srcdir}/libsanitizer; then
3378 if test x$enable_libsanitizer = x; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3380 $as_echo_n "checking for libsanitizer support... " >&6; }
3381 if (srcdir=${srcdir}/libsanitizer; \
3382 . ${srcdir}/configure.tgt; \
3383 test -n "$UNSUPPORTED")
3384 then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 noconfigdirs="$noconfigdirs target-libsanitizer"
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390 $as_echo "yes" >&6; }
3391 fi
3392 fi
3393 fi
3394
3395 # Disable libvtv on unsupported systems.
3396 if test -d ${srcdir}/libvtv; then
3397 if test x$enable_libvtv = x; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3399 $as_echo_n "checking for libvtv support... " >&6; }
3400 if (srcdir=${srcdir}/libvtv; \
3401 . ${srcdir}/configure.tgt; \
3402 test "$VTV_SUPPORTED" != "yes")
3403 then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 noconfigdirs="$noconfigdirs target-libvtv"
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3410 fi
3411 fi
3412 fi
3413
3414 # Disable libquadmath for some systems.
3415 case "${target}" in
3416 avr-*-*)
3417 noconfigdirs="$noconfigdirs target-libquadmath"
3418 ;;
3419 # libquadmath is unused on AIX and libquadmath build process use of
3420 # LD_LIBRARY_PATH can break AIX bootstrap.
3421 powerpc-*-aix* | rs6000-*-aix*)
3422 noconfigdirs="$noconfigdirs target-libquadmath"
3423 ;;
3424 esac
3425
3426 # Disable libssp for some systems.
3427 case "${target}" in
3428 avr-*-*)
3429 # No hosted I/O support.
3430 noconfigdirs="$noconfigdirs target-libssp"
3431 ;;
3432 bpf-*-*)
3433 noconfigdirs="$noconfigdirs target-libssp"
3434 ;;
3435 powerpc-*-aix* | rs6000-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libssp"
3437 ;;
3438 pru-*-*)
3439 # No hosted I/O support.
3440 noconfigdirs="$noconfigdirs target-libssp"
3441 ;;
3442 rl78-*-*)
3443 # libssp uses a misaligned load to trigger a fault, but the RL78
3444 # doesn't fault for those - instead, it gives a build-time error
3445 # for explicit misaligned loads.
3446 noconfigdirs="$noconfigdirs target-libssp"
3447 ;;
3448 visium-*-*)
3449 # No hosted I/O support.
3450 noconfigdirs="$noconfigdirs target-libssp"
3451 ;;
3452 esac
3453
3454 # Disable libstdc++-v3 for some systems.
3455 # Allow user to override this if they pass --enable-libstdcxx
3456 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3457 case "${target}" in
3458 *-*-vxworks*)
3459 # VxWorks uses the Dinkumware C++ library.
3460 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3461 ;;
3462 amdgcn*-*-*)
3463 # Not ported/fails to build when using newlib.
3464 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3465 ;;
3466 arm*-wince-pe*)
3467 # the C++ libraries don't build on top of CE's C libraries
3468 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3469 ;;
3470 avr-*-*)
3471 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3472 ;;
3473 bpf-*-*)
3474 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3475 ;;
3476 ft32-*-*)
3477 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3478 ;;
3479 esac
3480 fi
3481
3482 # Disable C++ on systems where it is known to not work.
3483 # For testing, you can override this with --enable-languages=c++.
3484 case ,${enable_languages}, in
3485 *,c++,*)
3486 ;;
3487 *)
3488 case "${target}" in
3489 bpf-*-*)
3490 unsupported_languages="$unsupported_languages c++"
3491 ;;
3492 esac
3493 ;;
3494 esac
3495
3496 # Disable Objc on systems where it is known to not work.
3497 # For testing, you can override this with --enable-languages=objc.
3498 case ,${enable_languages}, in
3499 *,objc,*)
3500 ;;
3501 *)
3502 case "${target}" in
3503 bpf-*-*)
3504 unsupported_languages="$unsupported_languages objc"
3505 ;;
3506 esac
3507 ;;
3508 esac
3509
3510 # Disable D on systems where it is known to not work.
3511 # For testing, you can override this with --enable-languages=d.
3512 case ,${enable_languages}, in
3513 *,d,*)
3514 ;;
3515 *)
3516 case "${target}" in
3517 bpf-*-*)
3518 unsupported_languages="$unsupported_languages d"
3519 ;;
3520 esac
3521 ;;
3522 esac
3523
3524 # Disable libphobos on unsupported systems.
3525 # For testing, you can override this with --enable-libphobos.
3526 if test -d ${srcdir}/libphobos; then
3527 if test x$enable_libphobos = x; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3529 $as_echo_n "checking for libphobos support... " >&6; }
3530 if (srcdir=${srcdir}/libphobos; \
3531 . ${srcdir}/configure.tgt; \
3532 test "$LIBPHOBOS_SUPPORTED" != "yes")
3533 then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 noconfigdirs="$noconfigdirs target-libphobos"
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3540 fi
3541 fi
3542 fi
3543
3544 # Disable Fortran for some systems.
3545 case "${target}" in
3546 mmix-*-*)
3547 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3548 unsupported_languages="$unsupported_languages fortran"
3549 ;;
3550 bpf-*-*)
3551 unsupported_languages="$unsupported_languages fortran"
3552 ;;
3553 esac
3554
3555 # Disable libffi for some systems.
3556 case "${target}" in
3557 powerpc-*-darwin*)
3558 ;;
3559 i[3456789]86-*-darwin*)
3560 ;;
3561 x86_64-*-darwin[912]*)
3562 ;;
3563 *-*-darwin*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 *-*-netware*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3568 ;;
3569 *-*-phoenix*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 *-*-rtems*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3574 ;;
3575 *-*-tpf*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3577 ;;
3578 *-*-uclinux*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3580 ;;
3581 *-*-vxworks*)
3582 noconfigdirs="$noconfigdirs target-libffi"
3583 ;;
3584 aarch64*-*-freebsd*)
3585 noconfigdirs="$noconfigdirs target-libffi"
3586 ;;
3587 alpha*-*-*vms*)
3588 noconfigdirs="$noconfigdirs target-libffi"
3589 ;;
3590 arm*-*-freebsd*)
3591 noconfigdirs="$noconfigdirs target-libffi"
3592 ;;
3593 arm-wince-pe)
3594 noconfigdirs="$noconfigdirs target-libffi"
3595 ;;
3596 arm*-*-symbianelf*)
3597 noconfigdirs="$noconfigdirs target-libffi"
3598 ;;
3599 bpf-*-*)
3600 noconfigdirs="$noconfigdirs target-libffi"
3601 ;;
3602 cris-*-* | crisv32-*-*)
3603 case "${target}" in
3604 *-*-linux*)
3605 ;;
3606 *) # See PR46792 regarding target-libffi.
3607 noconfigdirs="$noconfigdirs target-libffi";;
3608 esac
3609 ;;
3610 hppa*64*-*-hpux*)
3611 noconfigdirs="$noconfigdirs target-libffi"
3612 ;;
3613 hppa*-hp-hpux11*)
3614 ;;
3615 hppa*-*-hpux*)
3616 noconfigdirs="$noconfigdirs target-libffi"
3617 ;;
3618 ia64*-*-*vms*)
3619 noconfigdirs="$noconfigdirs target-libffi"
3620 ;;
3621 i[3456789]86-w64-mingw*)
3622 noconfigdirs="$noconfigdirs target-libffi"
3623 ;;
3624 i[3456789]86-*-mingw*)
3625 noconfigdirs="$noconfigdirs target-libffi"
3626 ;;
3627 x86_64-*-mingw*)
3628 noconfigdirs="$noconfigdirs target-libffi"
3629 ;;
3630 mmix-*-*)
3631 noconfigdirs="$noconfigdirs target-libffi"
3632 ;;
3633 powerpc-*-aix*)
3634 ;;
3635 rs6000-*-aix*)
3636 ;;
3637 ft32-*-*)
3638 noconfigdirs="$noconfigdirs target-libffi"
3639 ;;
3640 *-*-lynxos*)
3641 noconfigdirs="$noconfigdirs target-libffi"
3642 ;;
3643 esac
3644
3645 # Disable the go frontend on systems where it is known to not work. Please keep
3646 # this in sync with contrib/config-list.mk.
3647 case "${target}" in
3648 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3649 unsupported_languages="$unsupported_languages go"
3650 ;;
3651 esac
3652
3653 # Only allow gdbserver on some systems.
3654 if test -d ${srcdir}/gdbserver; then
3655 if test x$enable_gdbserver = x; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3657 $as_echo_n "checking for gdbserver support... " >&6; }
3658 if (srcdir=${srcdir}/gdbserver; \
3659 . ${srcdir}/configure.srv; \
3660 test -n "$UNSUPPORTED")
3661 then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 noconfigdirs="$noconfigdirs gdbserver"
3665 else
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3668 fi
3669 fi
3670 fi
3671
3672 # Disable libgo for some systems where it is known to not work.
3673 # For testing, you can easily override this with --enable-libgo.
3674 if test x$enable_libgo = x; then
3675 case "${target}" in
3676 *-*-darwin*)
3677 # PR 46986
3678 noconfigdirs="$noconfigdirs target-libgo"
3679 ;;
3680 *-*-cygwin* | *-*-mingw*)
3681 noconfigdirs="$noconfigdirs target-libgo"
3682 ;;
3683 bpf-*-*)
3684 noconfigdirs="$noconfigdirs target-libgo"
3685 ;;
3686 esac
3687 fi
3688
3689 # Default libgloss CPU subdirectory.
3690 libgloss_dir="$target_cpu"
3691
3692 case "${target}" in
3693 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3694 libgloss_dir=wince
3695 ;;
3696 aarch64*-*-* )
3697 libgloss_dir=aarch64
3698 ;;
3699 arm*-*-*)
3700 libgloss_dir=arm
3701 ;;
3702 cris-*-* | crisv32-*-*)
3703 libgloss_dir=cris
3704 ;;
3705 hppa*-*-*)
3706 libgloss_dir=pa
3707 ;;
3708 i[3456789]86-*-*)
3709 libgloss_dir=i386
3710 ;;
3711 loongarch*-*-*)
3712 libgloss_dir=loongarch
3713 ;;
3714 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3715 libgloss_dir=m68hc11
3716 ;;
3717 m68*-*-* | fido-*-*)
3718 libgloss_dir=m68k
3719 ;;
3720 mips*-*-*)
3721 libgloss_dir=mips
3722 ;;
3723 powerpc*-*-*)
3724 libgloss_dir=rs6000
3725 ;;
3726 pru-*-*)
3727 libgloss_dir=pru
3728 ;;
3729 sparc*-*-*)
3730 libgloss_dir=sparc
3731 ;;
3732 esac
3733
3734 # Disable newlib and libgloss for various target OSes.
3735 case "${target}" in
3736 alpha*-dec-osf*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 ;;
3739 i[3456789]86-*-linux*)
3740 # This section makes it possible to build newlib natively on linux.
3741 # If we are using a cross compiler then don't configure newlib.
3742 if test x${is_cross_compiler} != xno ; then
3743 noconfigdirs="$noconfigdirs target-newlib"
3744 fi
3745 noconfigdirs="$noconfigdirs target-libgloss"
3746 # If we are not using a cross compiler, do configure newlib.
3747 # Note however, that newlib will only be configured in this situation
3748 # if the --with-newlib option has been given, because otherwise
3749 # 'target-newlib' will appear in skipdirs.
3750 ;;
3751 i[3456789]86-*-rdos*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3753 ;;
3754 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 ;;
3757 sparc-*-sunos4*)
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3759 ;;
3760 bpf-*-*)
3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3762 ;;
3763 *-*-aix*)
3764 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3765 ;;
3766 *-*-beos*)
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768 ;;
3769 *-*-chorusos)
3770 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3771 ;;
3772 *-*-dragonfly*)
3773 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3774 ;;
3775 *-*-freebsd*)
3776 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3777 ;;
3778 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3780 ;;
3781 *-*-lynxos*)
3782 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3783 ;;
3784 *-*-mingw*)
3785 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3786 ;;
3787 *-*-netbsd*)
3788 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3789 ;;
3790 *-*-netware*)
3791 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3792 ;;
3793 *-*-tpf*)
3794 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3795 ;;
3796 *-*-uclinux*)
3797 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3798 ;;
3799 *-*-vxworks*)
3800 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3801 ;;
3802 esac
3803
3804 case "${target}" in
3805 *-*-chorusos)
3806 ;;
3807 aarch64-*-darwin*)
3808 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3809 noconfigdirs="$noconfigdirs sim target-rda"
3810 ;;
3811 amdgcn*-*-*)
3812 ;;
3813 arm-*-darwin*)
3814 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3815 noconfigdirs="$noconfigdirs sim target-rda"
3816 ;;
3817 powerpc-*-darwin*)
3818 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3819 noconfigdirs="$noconfigdirs sim target-rda"
3820 ;;
3821 i[3456789]86-*-darwin*)
3822 noconfigdirs="$noconfigdirs ld gprof"
3823 noconfigdirs="$noconfigdirs sim target-rda"
3824 ;;
3825 x86_64-*-darwin[912]*)
3826 noconfigdirs="$noconfigdirs ld gas gprof"
3827 noconfigdirs="$noconfigdirs sim target-rda"
3828 ;;
3829 *-*-darwin*)
3830 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3831 noconfigdirs="$noconfigdirs sim target-rda"
3832 ;;
3833 *-*-dragonfly*)
3834 ;;
3835 *-*-freebsd*)
3836 if test "x$with_gmp" = x \
3837 && ! test -d ${srcdir}/gmp \
3838 && test -f /usr/local/include/gmp.h; then
3839 with_gmp=/usr/local
3840 fi
3841 ;;
3842 *-*-kaos*)
3843 # Remove unsupported stuff on all kaOS configurations.
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 ;;
3846 *-*-netbsd*)
3847 ;;
3848 *-*-netware*)
3849 ;;
3850 *-*-phoenix*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3852 ;;
3853 *-*-rtems*)
3854 noconfigdirs="$noconfigdirs target-libgloss"
3855 ;;
3856 # The tpf target doesn't support gdb yet.
3857 *-*-tpf*)
3858 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3859 ;;
3860 *-*-uclinux*)
3861 noconfigdirs="$noconfigdirs target-rda"
3862 ;;
3863 *-*-vxworks*)
3864 ;;
3865 alpha*-dec-osf*)
3866 # ld works, but does not support shared libraries.
3867 # gas doesn't generate exception information.
3868 noconfigdirs="$noconfigdirs gas ld"
3869 ;;
3870 alpha*-*-*vms*)
3871 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3872 ;;
3873 alpha*-*-*)
3874 # newlib is not 64 bit ready
3875 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3876 ;;
3877 bpf-*-*)
3878 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3879 ;;
3880 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3881 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3882 ;;
3883 arc*-*-*)
3884 noconfigdirs="$noconfigdirs sim"
3885 ;;
3886 arm-*-pe*)
3887 noconfigdirs="$noconfigdirs target-libgloss"
3888 ;;
3889 arm-*-riscix*)
3890 noconfigdirs="$noconfigdirs ld target-libgloss"
3891 ;;
3892 avr-*-*)
3893 if test x${with_avrlibc} != xno; then
3894 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3895 fi
3896 ;;
3897 c4x-*-* | tic4x-*-*)
3898 noconfigdirs="$noconfigdirs target-libgloss"
3899 ;;
3900 tic54x-*-*)
3901 noconfigdirs="$noconfigdirs target-libgloss gdb"
3902 ;;
3903 d10v-*-*)
3904 noconfigdirs="$noconfigdirs target-libgloss"
3905 ;;
3906 d30v-*-*)
3907 noconfigdirs="$noconfigdirs gdb"
3908 ;;
3909 fr30-*-elf*)
3910 noconfigdirs="$noconfigdirs gdb"
3911 ;;
3912 ft32-*-*)
3913 noconfigdirs="$noconfigdirs target-rda gprof"
3914 ;;
3915 moxie-*-*)
3916 noconfigdirs="$noconfigdirs"
3917 ;;
3918 h8300*-*-*)
3919 noconfigdirs="$noconfigdirs target-libgloss"
3920 ;;
3921 h8500-*-*)
3922 noconfigdirs="$noconfigdirs target-libgloss"
3923 ;;
3924 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3925 ;;
3926 hppa*64*-*-hpux*)
3927 noconfigdirs="$noconfigdirs gdb"
3928 ;;
3929 hppa*-*-hpux11*)
3930 noconfigdirs="$noconfigdirs gdb ld"
3931 ;;
3932 hppa*64*-*-linux*)
3933 ;;
3934 hppa*-*-linux*)
3935 ;;
3936 hppa*-*-*elf* | \
3937 hppa*-*-lites* | \
3938 hppa*-*-openbsd* | \
3939 hppa*64*-*-*)
3940 ;;
3941 hppa*-*-pro*)
3942 ;;
3943 hppa*-*-*)
3944 noconfigdirs="$noconfigdirs ld"
3945 ;;
3946 i960-*-*)
3947 noconfigdirs="$noconfigdirs gdb"
3948 ;;
3949 ia64*-*-elf*)
3950 # No gdb support yet.
3951 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3952 ;;
3953 ia64*-**-hpux*)
3954 # No ld support yet.
3955 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3956 ;;
3957 ia64*-*-*vms*)
3958 # No ld support yet.
3959 noconfigdirs="$noconfigdirs libgui itcl ld"
3960 ;;
3961 i[3456789]86-w64-mingw*)
3962 ;;
3963 i[3456789]86-*-mingw*)
3964 target_configdirs="$target_configdirs target-winsup"
3965 ;;
3966 *-*-cygwin*)
3967 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3968 noconfigdirs="$noconfigdirs target-libgloss"
3969 # always build newlib if winsup directory is present.
3970 if test -d "$srcdir/winsup/cygwin"; then
3971 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3972 elif test -d "$srcdir/newlib"; then
3973 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3974 fi
3975 ;;
3976 i[3456789]86-*-pe)
3977 noconfigdirs="$noconfigdirs target-libgloss"
3978 ;;
3979 i[3456789]86-*-sco3.2v5*)
3980 # The linker does not yet know about weak symbols in COFF,
3981 # and is not configured to handle mixed ELF and COFF.
3982 noconfigdirs="$noconfigdirs ld target-libgloss"
3983 ;;
3984 i[3456789]86-*-sco*)
3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
3986 ;;
3987 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3988 noconfigdirs="$noconfigdirs target-libgloss"
3989 ;;
3990 i[3456789]86-*-sysv4*)
3991 noconfigdirs="$noconfigdirs target-libgloss"
3992 ;;
3993 i[3456789]86-*-beos*)
3994 noconfigdirs="$noconfigdirs gdb"
3995 ;;
3996 i[3456789]86-*-rdos*)
3997 noconfigdirs="$noconfigdirs gdb"
3998 ;;
3999 mmix-*-*)
4000 noconfigdirs="$noconfigdirs gdb"
4001 ;;
4002 mt-*-*)
4003 noconfigdirs="$noconfigdirs sim"
4004 ;;
4005 nfp-*-*)
4006 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4007 noconfigdirs="$noconfigdirs $target_libraries"
4008 ;;
4009 pdp11-*-*)
4010 noconfigdirs="$noconfigdirs gdb gprof"
4011 ;;
4012 powerpc-*-aix*)
4013 # copied from rs6000-*-* entry
4014 noconfigdirs="$noconfigdirs gprof"
4015 ;;
4016 powerpc*-*-winnt* | powerpc*-*-pe*)
4017 target_configdirs="$target_configdirs target-winsup"
4018 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4019 # always build newlib.
4020 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4021 ;;
4022 # This is temporary until we can link against shared libraries
4023 powerpcle-*-solaris*)
4024 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4025 ;;
4026 powerpc-*-beos*)
4027 noconfigdirs="$noconfigdirs gdb"
4028 ;;
4029 rs6000-*-lynxos*)
4030 noconfigdirs="$noconfigdirs gprof"
4031 ;;
4032 rs6000-*-aix*)
4033 noconfigdirs="$noconfigdirs gprof"
4034 ;;
4035 rs6000-*-*)
4036 noconfigdirs="$noconfigdirs gprof"
4037 ;;
4038 m68k-apollo-*)
4039 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4040 ;;
4041 microblaze*)
4042 noconfigdirs="$noconfigdirs gprof"
4043 ;;
4044 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4045 if test x$with_newlib = xyes; then
4046 noconfigdirs="$noconfigdirs gprof"
4047 fi
4048 ;;
4049 mips*-*-irix5*)
4050 noconfigdirs="$noconfigdirs gprof target-libgloss"
4051 ;;
4052 mips*-*-irix6*)
4053 noconfigdirs="$noconfigdirs gprof target-libgloss"
4054 ;;
4055 mips*-*-bsd*)
4056 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4057 ;;
4058 mips*-*-linux*)
4059 ;;
4060 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4061 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4062 noconfigdirs="$noconfigdirs ld gas gprof"
4063 ;;
4064 mips*-*-*)
4065 noconfigdirs="$noconfigdirs gprof"
4066 ;;
4067 nvptx*-*-*)
4068 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4069 ;;
4070 sh-*-*)
4071 case "${target}" in
4072 sh*-*-elf)
4073 ;;
4074 *)
4075 noconfigdirs="$noconfigdirs target-libgloss" ;;
4076 esac
4077 ;;
4078 sparc-*-sunos4*)
4079 if test x${is_cross_compiler} = xno ; then
4080 use_gnu_ld=no
4081 fi
4082 ;;
4083 tic6x-*-*)
4084 noconfigdirs="$noconfigdirs sim"
4085 ;;
4086 tilepro*-*-* | tilegx*-*-*)
4087 noconfigdirs="$noconfigdirs sim"
4088 ;;
4089 v810-*-*)
4090 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4091 ;;
4092 vax-*-*)
4093 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4094 ;;
4095 wasm32-*-*)
4096 noconfigdirs="$noconfigdirs ld"
4097 ;;
4098 loongarch*-*-linux*)
4099 ;;
4100 loongarch*-*-*)
4101 noconfigdirs="$noconfigdirs gprof"
4102 ;;
4103 esac
4104
4105 # If we aren't building newlib, then don't build libgloss, since libgloss
4106 # depends upon some newlib header files.
4107 case "${noconfigdirs}" in
4108 *target-libgloss*) ;;
4109 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4110 esac
4111
4112 # Work in distributions that contain no compiler tools, like Autoconf.
4113 host_makefile_frag=/dev/null
4114 if test -d ${srcdir}/config ; then
4115 case "${host}" in
4116 i[3456789]86-*-msdosdjgpp*)
4117 host_makefile_frag="config/mh-djgpp"
4118 ;;
4119 *-cygwin*)
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4122 $as_echo_n "checking to see if cat works as expected... " >&6; }
4123 echo a >cygwin-cat-check
4124 if test `cat cygwin-cat-check` = a ; then
4125 rm cygwin-cat-check
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4128 else
4129 rm cygwin-cat-check
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 as_fn_error $? "The cat command does not ignore carriage return characters.
4133 Please either mount the build directory in binary mode or run the following
4134 commands before running any configure script:
4135 set -o igncr
4136 export SHELLOPTS
4137 " "$LINENO" 5
4138 fi
4139
4140 host_makefile_frag="config/mh-cygwin"
4141 ;;
4142 *-mingw*)
4143 host_makefile_frag="config/mh-mingw"
4144 ;;
4145 alpha*-linux*)
4146 host_makefile_frag="config/mh-alpha-linux"
4147 ;;
4148 hppa*-hp-hpux10*)
4149 host_makefile_frag="config/mh-pa-hpux10"
4150 ;;
4151 hppa*-hp-hpux*)
4152 host_makefile_frag="config/mh-pa"
4153 ;;
4154 hppa*-*)
4155 host_makefile_frag="config/mh-pa"
4156 ;;
4157 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4158 host_makefile_frag="config/mh-darwin"
4159 ;;
4160 powerpc-*-aix*)
4161 host_makefile_frag="config/mh-ppc-aix"
4162 ;;
4163 rs6000-*-aix*)
4164 host_makefile_frag="config/mh-ppc-aix"
4165 ;;
4166 esac
4167 fi
4168
4169 if test "${build}" != "${host}" ; then
4170 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4171 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4172 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4173 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4174 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4175 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4176 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4177 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4178 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4179 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4180 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4181 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4182 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4183 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4184 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4185 else
4186 AR_FOR_BUILD="\$(AR)"
4187 AS_FOR_BUILD="\$(AS)"
4188 CC_FOR_BUILD="\$(CC)"
4189 CXX_FOR_BUILD="\$(CXX)"
4190 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4191 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4192 GOC_FOR_BUILD="\$(GOC)"
4193 GDC_FOR_BUILD="\$(GDC)"
4194 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4195 LD_FOR_BUILD="\$(LD)"
4196 NM_FOR_BUILD="\$(NM)"
4197 RANLIB_FOR_BUILD="\$(RANLIB)"
4198 WINDRES_FOR_BUILD="\$(WINDRES)"
4199 WINDMC_FOR_BUILD="\$(WINDMC)"
4200 fi
4201
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 if test -n "$ac_tool_prefix"; then
4208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_CC+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -n "$CC"; then
4216 ac_cv_prog_CC="$CC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4232
4233 fi
4234 fi
4235 CC=$ac_cv_prog_CC
4236 if test -n "$CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238 $as_echo "$CC" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245 fi
4246 if test -z "$ac_cv_prog_CC"; then
4247 ac_ct_CC=$CC
4248 # Extract the first word of "gcc", so it can be a program name with args.
4249 set dummy gcc; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -n "$ac_ct_CC"; then
4256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_ac_ct_CC="gcc"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi
4274 fi
4275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4276 if test -n "$ac_ct_CC"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4278 $as_echo "$ac_ct_CC" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4282 fi
4283
4284 if test "x$ac_ct_CC" = x; then
4285 CC=""
4286 else
4287 case $cross_compiling:$ac_tool_warned in
4288 yes:)
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4291 ac_tool_warned=yes ;;
4292 esac
4293 CC=$ac_ct_CC
4294 fi
4295 else
4296 CC="$ac_cv_prog_CC"
4297 fi
4298
4299 if test -z "$CC"; then
4300 if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4302 set dummy ${ac_tool_prefix}cc; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_CC+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$CC"; then
4309 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_CC="${ac_tool_prefix}cc"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 CC=$ac_cv_prog_CC
4329 if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 fi
4340 if test -z "$CC"; then
4341 # Extract the first word of "cc", so it can be a program name with args.
4342 set dummy cc; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_CC+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$CC"; then
4349 ac_cv_prog_CC="$CC" # Let the user override the test.
4350 else
4351 ac_prog_rejected=no
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4360 ac_prog_rejected=yes
4361 continue
4362 fi
4363 ac_cv_prog_CC="cc"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 if test $ac_prog_rejected = yes; then
4372 # We found a bogon in the path, so make sure we never use it.
4373 set dummy $ac_cv_prog_CC
4374 shift
4375 if test $# != 0; then
4376 # We chose a different compiler from the bogus one.
4377 # However, it has the same basename, so the bogon will be chosen
4378 # first if we set CC to just the basename; use the full file name.
4379 shift
4380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4381 fi
4382 fi
4383 fi
4384 fi
4385 CC=$ac_cv_prog_CC
4386 if test -n "$CC"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388 $as_echo "$CC" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 fi
4396 if test -z "$CC"; then
4397 if test -n "$ac_tool_prefix"; then
4398 for ac_prog in cl.exe
4399 do
4400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_CC+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4420 fi
4421 done
4422 done
4423 IFS=$as_save_IFS
4424
4425 fi
4426 fi
4427 CC=$ac_cv_prog_CC
4428 if test -n "$CC"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4430 $as_echo "$CC" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4434 fi
4435
4436
4437 test -n "$CC" && break
4438 done
4439 fi
4440 if test -z "$CC"; then
4441 ac_ct_CC=$CC
4442 for ac_prog in cl.exe
4443 do
4444 # Extract the first word of "$ac_prog", so it can be a program name with args.
4445 set dummy $ac_prog; ac_word=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -n "$ac_ct_CC"; then
4452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_ac_ct_CC="$ac_prog"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467 IFS=$as_save_IFS
4468
4469 fi
4470 fi
4471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4472 if test -n "$ac_ct_CC"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4474 $as_echo "$ac_ct_CC" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 fi
4479
4480
4481 test -n "$ac_ct_CC" && break
4482 done
4483
4484 if test "x$ac_ct_CC" = x; then
4485 CC=""
4486 else
4487 case $cross_compiling:$ac_tool_warned in
4488 yes:)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned=yes ;;
4492 esac
4493 CC=$ac_ct_CC
4494 fi
4495 fi
4496
4497 fi
4498
4499
4500 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error $? "no acceptable C compiler found in \$PATH
4503 See \`config.log' for more details" "$LINENO" 5; }
4504
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4507 set X $ac_compile
4508 ac_compiler=$2
4509 for ac_option in --version -v -V -qversion; do
4510 { { ac_try="$ac_compiler $ac_option >&5"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4518 ac_status=$?
4519 if test -s conftest.err; then
4520 sed '10a\
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4524 fi
4525 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 done
4529
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532
4533 int
4534 main ()
4535 {
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 ac_clean_files_save=$ac_clean_files
4542 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4543 # Try to create an executable without -o first, disregard a.out.
4544 # It will help us diagnose broken compilers, and finding out an intuition
4545 # of exeext.
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4547 $as_echo_n "checking whether the C compiler works... " >&6; }
4548 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4549
4550 # The possible output files:
4551 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4552
4553 ac_rmfiles=
4554 for ac_file in $ac_files
4555 do
4556 case $ac_file in
4557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4558 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4559 esac
4560 done
4561 rm -f $ac_rmfiles
4562
4563 if { { ac_try="$ac_link_default"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link_default") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4575 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4576 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4577 # so that the user can short-circuit this test for compilers unknown to
4578 # Autoconf.
4579 for ac_file in $ac_files ''
4580 do
4581 test -f "$ac_file" || continue
4582 case $ac_file in
4583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4584 ;;
4585 [ab].out )
4586 # We found the default executable, but exeext='' is most
4587 # certainly right.
4588 break;;
4589 *.* )
4590 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4591 then :; else
4592 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4593 fi
4594 # We set ac_cv_exeext here because the later test for it is not
4595 # safe: cross compilers may not add the suffix if given an `-o'
4596 # argument, so we may need to know it at that point already.
4597 # Even if this section looks crufty: it has the advantage of
4598 # actually working.
4599 break;;
4600 * )
4601 break;;
4602 esac
4603 done
4604 test "$ac_cv_exeext" = no && ac_cv_exeext=
4605
4606 else
4607 ac_file=''
4608 fi
4609 if test -z "$ac_file"; then :
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4617 as_fn_error 77 "C compiler cannot create executables
4618 See \`config.log' for more details" "$LINENO" 5; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4624 $as_echo_n "checking for C compiler default output file name... " >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4626 $as_echo "$ac_file" >&6; }
4627 ac_exeext=$ac_cv_exeext
4628
4629 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4630 ac_clean_files=$ac_clean_files_save
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4632 $as_echo_n "checking for suffix of executables... " >&6; }
4633 if { { ac_try="$ac_link"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_link") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; then :
4644 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4645 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4646 # work properly (i.e., refer to `conftest.exe'), while it won't with
4647 # `rm'.
4648 for ac_file in conftest.exe conftest conftest.*; do
4649 test -f "$ac_file" || continue
4650 case $ac_file in
4651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4653 break;;
4654 * ) break;;
4655 esac
4656 done
4657 else
4658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4661 See \`config.log' for more details" "$LINENO" 5; }
4662 fi
4663 rm -f conftest conftest$ac_cv_exeext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4665 $as_echo "$ac_cv_exeext" >&6; }
4666
4667 rm -f conftest.$ac_ext
4668 EXEEXT=$ac_cv_exeext
4669 ac_exeext=$EXEEXT
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <stdio.h>
4673 int
4674 main ()
4675 {
4676 FILE *f = fopen ("conftest.out", "w");
4677 return ferror (f) || fclose (f) != 0;
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 ac_clean_files="$ac_clean_files conftest.out"
4684 # Check that the compiler produces executables we can run. If not, either
4685 # the compiler is broken, or we cross compile.
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4687 $as_echo_n "checking whether we are cross compiling... " >&6; }
4688 if test "$cross_compiling" != yes; then
4689 { { ac_try="$ac_link"
4690 case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_link") 2>&5
4697 ac_status=$?
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }
4700 if { ac_try='./conftest$ac_cv_exeext'
4701 { { case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_try") 2>&5
4708 ac_status=$?
4709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710 test $ac_status = 0; }; }; then
4711 cross_compiling=no
4712 else
4713 if test "$cross_compiling" = maybe; then
4714 cross_compiling=yes
4715 else
4716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718 as_fn_error $? "cannot run C compiled programs.
4719 If you meant to cross compile, use \`--host'.
4720 See \`config.log' for more details" "$LINENO" 5; }
4721 fi
4722 fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4725 $as_echo "$cross_compiling" >&6; }
4726
4727 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4728 ac_clean_files=$ac_clean_files_save
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4730 $as_echo_n "checking for suffix of object files... " >&6; }
4731 if ${ac_cv_objext+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.o conftest.obj
4746 if { { ac_try="$ac_compile"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 $as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_compile") 2>&5
4754 ac_status=$?
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }; then :
4757 for ac_file in conftest.o conftest.obj conftest.*; do
4758 test -f "$ac_file" || continue;
4759 case $ac_file in
4760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4761 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4762 break;;
4763 esac
4764 done
4765 else
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4771 as_fn_error $? "cannot compute suffix of object files: cannot compile
4772 See \`config.log' for more details" "$LINENO" 5; }
4773 fi
4774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4777 $as_echo "$ac_cv_objext" >&6; }
4778 OBJEXT=$ac_cv_objext
4779 ac_objext=$OBJEXT
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4781 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4782 if ${ac_cv_c_compiler_gnu+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787
4788 int
4789 main ()
4790 {
4791 #ifndef __GNUC__
4792 choke me
4793 #endif
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_compiler_gnu=yes
4801 else
4802 ac_compiler_gnu=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4806
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4809 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4810 if test $ac_compiler_gnu = yes; then
4811 GCC=yes
4812 else
4813 GCC=
4814 fi
4815 ac_test_CFLAGS=${CFLAGS+set}
4816 ac_save_CFLAGS=$CFLAGS
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4818 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4819 if ${ac_cv_prog_cc_g+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 ac_save_c_werror_flag=$ac_c_werror_flag
4823 ac_c_werror_flag=yes
4824 ac_cv_prog_cc_g=no
4825 CFLAGS="-g"
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main ()
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_prog_cc_g=yes
4839 else
4840 CFLAGS=""
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843
4844 int
4845 main ()
4846 {
4847
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_c_try_compile "$LINENO"; then :
4853
4854 else
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4856 CFLAGS="-g"
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859
4860 int
4861 main ()
4862 {
4863
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 if ac_fn_c_try_compile "$LINENO"; then :
4869 ac_cv_prog_cc_g=yes
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 fi
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 ac_c_werror_flag=$ac_save_c_werror_flag
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4879 $as_echo "$ac_cv_prog_cc_g" >&6; }
4880 if test "$ac_test_CFLAGS" = set; then
4881 CFLAGS=$ac_save_CFLAGS
4882 elif test $ac_cv_prog_cc_g = yes; then
4883 if test "$GCC" = yes; then
4884 CFLAGS="-g -O2"
4885 else
4886 CFLAGS="-g"
4887 fi
4888 else
4889 if test "$GCC" = yes; then
4890 CFLAGS="-O2"
4891 else
4892 CFLAGS=
4893 fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4896 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4897 if ${ac_cv_prog_cc_c89+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 ac_cv_prog_cc_c89=no
4901 ac_save_CC=$CC
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <stdarg.h>
4905 #include <stdio.h>
4906 struct stat;
4907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4908 struct buf { int x; };
4909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4910 static char *e (p, i)
4911 char **p;
4912 int i;
4913 {
4914 return p[i];
4915 }
4916 static char *f (char * (*g) (char **, int), char **p, ...)
4917 {
4918 char *s;
4919 va_list v;
4920 va_start (v,p);
4921 s = g (p, va_arg (v,int));
4922 va_end (v);
4923 return s;
4924 }
4925
4926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4927 function prototypes and stuff, but not '\xHH' hex character constants.
4928 These don't provoke an error unfortunately, instead are silently treated
4929 as 'x'. The following induces an error, until -std is added to get
4930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4931 array size at least. It's necessary to write '\x00'==0 to get something
4932 that's true only with -std. */
4933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4934
4935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4936 inside strings and character constants. */
4937 #define FOO(x) 'x'
4938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4939
4940 int test (int i, double x);
4941 struct s1 {int (*f) (int a);};
4942 struct s2 {int (*f) (double a);};
4943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4944 int argc;
4945 char **argv;
4946 int
4947 main ()
4948 {
4949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4956 do
4957 CC="$ac_save_CC $ac_arg"
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 ac_cv_prog_cc_c89=$ac_arg
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext
4962 test "x$ac_cv_prog_cc_c89" != "xno" && break
4963 done
4964 rm -f conftest.$ac_ext
4965 CC=$ac_save_CC
4966
4967 fi
4968 # AC_CACHE_VAL
4969 case "x$ac_cv_prog_cc_c89" in
4970 x)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4972 $as_echo "none needed" >&6; } ;;
4973 xno)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4975 $as_echo "unsupported" >&6; } ;;
4976 *)
4977 CC="$CC $ac_cv_prog_cc_c89"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4980 esac
4981 if test "x$ac_cv_prog_cc_c89" != xno; then :
4982
4983 fi
4984
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4992 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4993 if ${ac_cv_prog_cc_c99+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_cv_prog_cc_c99=no
4997 ac_save_CC=$CC
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <stdarg.h>
5001 #include <stdbool.h>
5002 #include <stdlib.h>
5003 #include <wchar.h>
5004 #include <stdio.h>
5005
5006 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5007 #define debug(...) fprintf (stderr, __VA_ARGS__)
5008 #define showlist(...) puts (#__VA_ARGS__)
5009 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5010 static void
5011 test_varargs_macros (void)
5012 {
5013 int x = 1234;
5014 int y = 5678;
5015 debug ("Flag");
5016 debug ("X = %d\n", x);
5017 showlist (The first, second, and third items.);
5018 report (x>y, "x is %d but y is %d", x, y);
5019 }
5020
5021 // Check long long types.
5022 #define BIG64 18446744073709551615ull
5023 #define BIG32 4294967295ul
5024 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5025 #if !BIG_OK
5026 your preprocessor is broken;
5027 #endif
5028 #if BIG_OK
5029 #else
5030 your preprocessor is broken;
5031 #endif
5032 static long long int bignum = -9223372036854775807LL;
5033 static unsigned long long int ubignum = BIG64;
5034
5035 struct incomplete_array
5036 {
5037 int datasize;
5038 double data[];
5039 };
5040
5041 struct named_init {
5042 int number;
5043 const wchar_t *name;
5044 double average;
5045 };
5046
5047 typedef const char *ccp;
5048
5049 static inline int
5050 test_restrict (ccp restrict text)
5051 {
5052 // See if C++-style comments work.
5053 // Iterate through items via the restricted pointer.
5054 // Also check for declarations in for loops.
5055 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5056 continue;
5057 return 0;
5058 }
5059
5060 // Check varargs and va_copy.
5061 static void
5062 test_varargs (const char *format, ...)
5063 {
5064 va_list args;
5065 va_start (args, format);
5066 va_list args_copy;
5067 va_copy (args_copy, args);
5068
5069 const char *str;
5070 int number;
5071 float fnumber;
5072
5073 while (*format)
5074 {
5075 switch (*format++)
5076 {
5077 case 's': // string
5078 str = va_arg (args_copy, const char *);
5079 break;
5080 case 'd': // int
5081 number = va_arg (args_copy, int);
5082 break;
5083 case 'f': // float
5084 fnumber = va_arg (args_copy, double);
5085 break;
5086 default:
5087 break;
5088 }
5089 }
5090 va_end (args_copy);
5091 va_end (args);
5092 }
5093
5094 int
5095 main ()
5096 {
5097
5098 // Check bool.
5099 _Bool success = false;
5100
5101 // Check restrict.
5102 if (test_restrict ("String literal") == 0)
5103 success = true;
5104 char *restrict newvar = "Another string";
5105
5106 // Check varargs.
5107 test_varargs ("s, d' f .", "string", 65, 34.234);
5108 test_varargs_macros ();
5109
5110 // Check flexible array members.
5111 struct incomplete_array *ia =
5112 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5113 ia->datasize = 10;
5114 for (int i = 0; i < ia->datasize; ++i)
5115 ia->data[i] = i * 1.234;
5116
5117 // Check named initializers.
5118 struct named_init ni = {
5119 .number = 34,
5120 .name = L"Test wide string",
5121 .average = 543.34343,
5122 };
5123
5124 ni.number = 58;
5125
5126 int dynamic_array[ni.number];
5127 dynamic_array[ni.number - 1] = 543;
5128
5129 // work around unused variable warnings
5130 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5131 || dynamic_array[ni.number - 1] != 543);
5132
5133 ;
5134 return 0;
5135 }
5136 _ACEOF
5137 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5138 do
5139 CC="$ac_save_CC $ac_arg"
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_c99=$ac_arg
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext
5144 test "x$ac_cv_prog_cc_c99" != "xno" && break
5145 done
5146 rm -f conftest.$ac_ext
5147 CC=$ac_save_CC
5148
5149 fi
5150 # AC_CACHE_VAL
5151 case "x$ac_cv_prog_cc_c99" in
5152 x)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154 $as_echo "none needed" >&6; } ;;
5155 xno)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157 $as_echo "unsupported" >&6; } ;;
5158 *)
5159 CC="$CC $ac_cv_prog_cc_c99"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5161 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5162 esac
5163 if test "x$ac_cv_prog_cc_c99" != xno; then :
5164
5165 fi
5166
5167
5168 ac_ext=cpp
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173 if test -z "$CXX"; then
5174 if test -n "$CCC"; then
5175 CXX=$CCC
5176 else
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5179 do
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_CXX+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$CXX"; then
5188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 CXX=$ac_cv_prog_CXX
5208 if test -n "$CXX"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5210 $as_echo "$CXX" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217 test -n "$CXX" && break
5218 done
5219 fi
5220 if test -z "$CXX"; then
5221 ac_ct_CXX=$CXX
5222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5223 do
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$ac_ct_CXX"; then
5232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_CXX="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5252 if test -n "$ac_ct_CXX"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5254 $as_echo "$ac_ct_CXX" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 test -n "$ac_ct_CXX" && break
5262 done
5263
5264 if test "x$ac_ct_CXX" = x; then
5265 CXX="g++"
5266 else
5267 case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273 CXX=$ac_ct_CXX
5274 fi
5275 fi
5276
5277 fi
5278 fi
5279 # Provide some information about the compiler.
5280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5281 set X $ac_compile
5282 ac_compiler=$2
5283 for ac_option in --version -v -V -qversion; do
5284 { { ac_try="$ac_compiler $ac_option >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5292 ac_status=$?
5293 if test -s conftest.err; then
5294 sed '10a\
5295 ... rest of stderr output deleted ...
5296 10q' conftest.err >conftest.er1
5297 cat conftest.er1 >&5
5298 fi
5299 rm -f conftest.er1 conftest.err
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; }
5302 done
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5306 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311
5312 int
5313 main ()
5314 {
5315 #ifndef __GNUC__
5316 choke me
5317 #endif
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_compiler_gnu=yes
5325 else
5326 ac_compiler_gnu=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5334 if test $ac_compiler_gnu = yes; then
5335 GXX=yes
5336 else
5337 GXX=
5338 fi
5339 ac_test_CXXFLAGS=${CXXFLAGS+set}
5340 ac_save_CXXFLAGS=$CXXFLAGS
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5343 if ${ac_cv_prog_cxx_g+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5347 ac_cxx_werror_flag=yes
5348 ac_cv_prog_cxx_g=no
5349 CXXFLAGS="-g"
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352
5353 int
5354 main ()
5355 {
5356
5357 ;
5358 return 0;
5359 }
5360 _ACEOF
5361 if ac_fn_cxx_try_compile "$LINENO"; then :
5362 ac_cv_prog_cxx_g=yes
5363 else
5364 CXXFLAGS=""
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367
5368 int
5369 main ()
5370 {
5371
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_cxx_try_compile "$LINENO"; then :
5377
5378 else
5379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5380 CXXFLAGS="-g"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 int
5385 main ()
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_cxx_try_compile "$LINENO"; then :
5393 ac_cv_prog_cxx_g=yes
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5404 if test "$ac_test_CXXFLAGS" = set; then
5405 CXXFLAGS=$ac_save_CXXFLAGS
5406 elif test $ac_cv_prog_cxx_g = yes; then
5407 if test "$GXX" = yes; then
5408 CXXFLAGS="-g -O2"
5409 else
5410 CXXFLAGS="-g"
5411 fi
5412 else
5413 if test "$GXX" = yes; then
5414 CXXFLAGS="-O2"
5415 else
5416 CXXFLAGS=
5417 fi
5418 fi
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426 # We must set the default linker to the linker used by gcc for the correct
5427 # operation of libtool. If LD is not defined and we are using gcc, try to
5428 # set the LD default to the ld used by gcc.
5429 if test -z "$LD"; then
5430 if test "$GCC" = yes; then
5431 case $build in
5432 *-*-mingw*)
5433 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5434 *)
5435 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5436 esac
5437 case $gcc_prog_ld in
5438 # Accept absolute paths.
5439 [\\/]* | [A-Za-z]:[\\/]*)
5440 LD="$gcc_prog_ld" ;;
5441 esac
5442 fi
5443 fi
5444
5445 # Check whether -static-libstdc++ -static-libgcc is supported.
5446 have_static_libs=no
5447 if test "$GCC" = yes; then
5448 saved_LDFLAGS="$LDFLAGS"
5449
5450 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5452 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5453 ac_ext=cpp
5454 ac_cpp='$CXXCPP $CPPFLAGS'
5455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5458
5459
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462
5463 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5464 #error -static-libstdc++ not implemented
5465 #endif
5466 int main() {}
5467 _ACEOF
5468 if ac_fn_cxx_try_link "$LINENO"; then :
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }; have_static_libs=yes
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext \
5476 conftest$ac_exeext conftest.$ac_ext
5477 ac_ext=c
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482
5483
5484 LDFLAGS="$saved_LDFLAGS"
5485 fi
5486
5487
5488
5489
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_GNATBIND+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$GNATBIND"; then
5499 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 GNATBIND=$ac_cv_prog_GNATBIND
5519 if test -n "$GNATBIND"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5521 $as_echo "$GNATBIND" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 fi
5529 if test -z "$ac_cv_prog_GNATBIND"; then
5530 ac_ct_GNATBIND=$GNATBIND
5531 # Extract the first word of "gnatbind", so it can be a program name with args.
5532 set dummy gnatbind; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_GNATBIND"; then
5539 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5559 if test -n "$ac_ct_GNATBIND"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5561 $as_echo "$ac_ct_GNATBIND" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567 if test "x$ac_ct_GNATBIND" = x; then
5568 GNATBIND="no"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 GNATBIND=$ac_ct_GNATBIND
5577 fi
5578 else
5579 GNATBIND="$ac_cv_prog_GNATBIND"
5580 fi
5581
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_GNATMAKE+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$GNATMAKE"; then
5591 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 GNATMAKE=$ac_cv_prog_GNATMAKE
5611 if test -n "$GNATMAKE"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5613 $as_echo "$GNATMAKE" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619
5620 fi
5621 if test -z "$ac_cv_prog_GNATMAKE"; then
5622 ac_ct_GNATMAKE=$GNATMAKE
5623 # Extract the first word of "gnatmake", so it can be a program name with args.
5624 set dummy gnatmake; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$ac_ct_GNATMAKE"; then
5631 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5651 if test -n "$ac_ct_GNATMAKE"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5653 $as_echo "$ac_ct_GNATMAKE" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659 if test "x$ac_ct_GNATMAKE" = x; then
5660 GNATMAKE="no"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668 GNATMAKE=$ac_ct_GNATMAKE
5669 fi
5670 else
5671 GNATMAKE="$ac_cv_prog_GNATMAKE"
5672 fi
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5675 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5676 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat >conftest.adb <<EOF
5680 pragma Warnings (Off);
5681 with System.CRTL;
5682 pragma Warnings (On);
5683 use type System.CRTL.int64;
5684 procedure conftest is begin null; end conftest;
5685 EOF
5686 acx_cv_cc_gcc_supports_ada=no
5687 # There is a bug in old released versions of GCC which causes the
5688 # driver to exit successfully when the appropriate language module
5689 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5690 # Therefore we must check for the error message as well as an
5691 # unsuccessful exit.
5692 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5693 # given a .adb file, but produce no object file. So we must check
5694 # if an object file was really produced to guard against this.
5695 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5696 if test x"$errors" = x && test -f conftest.$ac_objext; then
5697 acx_cv_cc_gcc_supports_ada=yes
5698 fi
5699 rm -f conftest.*
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5702 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5703
5704 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5705 have_gnat=yes
5706 else
5707 have_gnat=no
5708 fi
5709
5710
5711
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_GDC+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$GDC"; then
5721 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734 done
5735 done
5736 IFS=$as_save_IFS
5737
5738 fi
5739 fi
5740 GDC=$ac_cv_prog_GDC
5741 if test -n "$GDC"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5743 $as_echo "$GDC" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748
5749
5750 fi
5751 if test -z "$ac_cv_prog_GDC"; then
5752 ac_ct_GDC=$GDC
5753 # Extract the first word of "gdc", so it can be a program name with args.
5754 set dummy gdc; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$ac_ct_GDC"; then
5761 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_GDC="gdc"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5781 if test -n "$ac_ct_GDC"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5783 $as_echo "$ac_ct_GDC" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789 if test "x$ac_ct_GDC" = x; then
5790 GDC="no"
5791 else
5792 case $cross_compiling:$ac_tool_warned in
5793 yes:)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5797 esac
5798 GDC=$ac_ct_GDC
5799 fi
5800 else
5801 GDC="$ac_cv_prog_GDC"
5802 fi
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5805 $as_echo_n "checking whether the D compiler works... " >&6; }
5806 if ${acx_cv_d_compiler_works+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 cat >conftest.d <<EOF
5810 module conftest; int main() { return 0; }
5811 EOF
5812 acx_cv_d_compiler_works=no
5813 if test "x$GDC" != xno; then
5814 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5815 if test x"$errors" = x && test -f conftest.$ac_objext; then
5816 acx_cv_d_compiler_works=yes
5817 fi
5818 rm -f conftest.*
5819 fi
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5822 $as_echo "$acx_cv_d_compiler_works" >&6; }
5823 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5824 have_gdc=yes
5825 else
5826 have_gdc=no
5827 fi
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5830 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5831 if ${gcc_cv_prog_cmp_skip+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 echo abfoo >t1
5835 echo cdfoo >t2
5836 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5837 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5838 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5839 :
5840 else
5841 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5842 fi
5843 fi
5844 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5845 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5846 :
5847 else
5848 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5849 fi
5850 fi
5851 rm t1 t2
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5855 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5856 do_compare="$gcc_cv_prog_cmp_skip"
5857
5858
5859
5860 # Check whether --enable-bootstrap was given.
5861 if test "${enable_bootstrap+set}" = set; then :
5862 enableval=$enable_bootstrap;
5863 else
5864 enable_bootstrap=default
5865 fi
5866
5867
5868 # Issue errors and warnings for invalid/strange bootstrap combinations.
5869 if test -r $srcdir/gcc/configure; then
5870 have_compiler=yes
5871 else
5872 have_compiler=no
5873 fi
5874
5875 case "$have_compiler:$host:$target:$enable_bootstrap" in
5876 *:*:*:no) ;;
5877
5878 # Default behavior. Enable bootstrap if we have a compiler
5879 # and we are in a native configuration.
5880 yes:$build:$build:default)
5881 enable_bootstrap=yes ;;
5882
5883 *:*:*:default)
5884 enable_bootstrap=no ;;
5885
5886 # We have a compiler and we are in a native configuration, bootstrap is ok
5887 yes:$build:$build:yes)
5888 ;;
5889
5890 # Other configurations, but we have a compiler. Assume the user knows
5891 # what he's doing.
5892 yes:*:*:yes)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5894 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5895 ;;
5896
5897 # No compiler: if they passed --enable-bootstrap explicitly, fail
5898 no:*:*:yes)
5899 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5900
5901 # Fail if wrong command line
5902 *)
5903 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5904 ;;
5905 esac
5906
5907 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5908 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5909 # require C++11 (or higher).
5910 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5911 CXX="$CXX -std=c++11"
5912 elif test "$have_compiler" = yes; then
5913 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5914 ac_ext=cpp
5915 ac_cpp='$CXXCPP $CPPFLAGS'
5916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5919 ac_success=no
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5922 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5923 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928
5929
5930 // If the compiler admits that it is not ready for C++11, why torture it?
5931 // Hopefully, this will speed up the test.
5932
5933 #ifndef __cplusplus
5934
5935 #error "This is not a C++ compiler"
5936
5937 #elif __cplusplus < 201103L
5938
5939 #error "This is not a C++11 compiler"
5940
5941 #else
5942
5943 namespace cxx11
5944 {
5945
5946 namespace test_static_assert
5947 {
5948
5949 template <typename T>
5950 struct check
5951 {
5952 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5953 };
5954
5955 }
5956
5957 namespace test_final_override
5958 {
5959
5960 struct Base
5961 {
5962 virtual ~Base() {}
5963 virtual void f() {}
5964 };
5965
5966 struct Derived : public Base
5967 {
5968 virtual ~Derived() override {}
5969 virtual void f() override {}
5970 };
5971
5972 }
5973
5974 namespace test_double_right_angle_brackets
5975 {
5976
5977 template < typename T >
5978 struct check {};
5979
5980 typedef check<void> single_type;
5981 typedef check<check<void>> double_type;
5982 typedef check<check<check<void>>> triple_type;
5983 typedef check<check<check<check<void>>>> quadruple_type;
5984
5985 }
5986
5987 namespace test_decltype
5988 {
5989
5990 int
5991 f()
5992 {
5993 int a = 1;
5994 decltype(a) b = 2;
5995 return a + b;
5996 }
5997
5998 }
5999
6000 namespace test_type_deduction
6001 {
6002
6003 template < typename T1, typename T2 >
6004 struct is_same
6005 {
6006 static const bool value = false;
6007 };
6008
6009 template < typename T >
6010 struct is_same<T, T>
6011 {
6012 static const bool value = true;
6013 };
6014
6015 template < typename T1, typename T2 >
6016 auto
6017 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6018 {
6019 return a1 + a2;
6020 }
6021
6022 int
6023 test(const int c, volatile int v)
6024 {
6025 static_assert(is_same<int, decltype(0)>::value == true, "");
6026 static_assert(is_same<int, decltype(c)>::value == false, "");
6027 static_assert(is_same<int, decltype(v)>::value == false, "");
6028 auto ac = c;
6029 auto av = v;
6030 auto sumi = ac + av + 'x';
6031 auto sumf = ac + av + 1.0;
6032 static_assert(is_same<int, decltype(ac)>::value == true, "");
6033 static_assert(is_same<int, decltype(av)>::value == true, "");
6034 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6035 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6036 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6037 return (sumf > 0.0) ? sumi : add(c, v);
6038 }
6039
6040 }
6041
6042 namespace test_noexcept
6043 {
6044
6045 int f() { return 0; }
6046 int g() noexcept { return 0; }
6047
6048 static_assert(noexcept(f()) == false, "");
6049 static_assert(noexcept(g()) == true, "");
6050
6051 }
6052
6053 namespace test_constexpr
6054 {
6055
6056 template < typename CharT >
6057 unsigned long constexpr
6058 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6059 {
6060 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6061 }
6062
6063 template < typename CharT >
6064 unsigned long constexpr
6065 strlen_c(const CharT *const s) noexcept
6066 {
6067 return strlen_c_r(s, 0UL);
6068 }
6069
6070 static_assert(strlen_c("") == 0UL, "");
6071 static_assert(strlen_c("1") == 1UL, "");
6072 static_assert(strlen_c("example") == 7UL, "");
6073 static_assert(strlen_c("another\0example") == 7UL, "");
6074
6075 }
6076
6077 namespace test_rvalue_references
6078 {
6079
6080 template < int N >
6081 struct answer
6082 {
6083 static constexpr int value = N;
6084 };
6085
6086 answer<1> f(int&) { return answer<1>(); }
6087 answer<2> f(const int&) { return answer<2>(); }
6088 answer<3> f(int&&) { return answer<3>(); }
6089
6090 void
6091 test()
6092 {
6093 int i = 0;
6094 const int c = 0;
6095 static_assert(decltype(f(i))::value == 1, "");
6096 static_assert(decltype(f(c))::value == 2, "");
6097 static_assert(decltype(f(0))::value == 3, "");
6098 }
6099
6100 }
6101
6102 namespace test_uniform_initialization
6103 {
6104
6105 struct test
6106 {
6107 static const int zero {};
6108 static const int one {1};
6109 };
6110
6111 static_assert(test::zero == 0, "");
6112 static_assert(test::one == 1, "");
6113
6114 }
6115
6116 namespace test_lambdas
6117 {
6118
6119 void
6120 test1()
6121 {
6122 auto lambda1 = [](){};
6123 auto lambda2 = lambda1;
6124 lambda1();
6125 lambda2();
6126 }
6127
6128 int
6129 test2()
6130 {
6131 auto a = [](int i, int j){ return i + j; }(1, 2);
6132 auto b = []() -> int { return '0'; }();
6133 auto c = [=](){ return a + b; }();
6134 auto d = [&](){ return c; }();
6135 auto e = [a, &b](int x) mutable {
6136 const auto identity = [](int y){ return y; };
6137 for (auto i = 0; i < a; ++i)
6138 a += b--;
6139 return x + identity(a + b);
6140 }(0);
6141 return a + b + c + d + e;
6142 }
6143
6144 int
6145 test3()
6146 {
6147 const auto nullary = [](){ return 0; };
6148 const auto unary = [](int x){ return x; };
6149 using nullary_t = decltype(nullary);
6150 using unary_t = decltype(unary);
6151 const auto higher1st = [](nullary_t f){ return f(); };
6152 const auto higher2nd = [unary](nullary_t f1){
6153 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6154 };
6155 return higher1st(nullary) + higher2nd(nullary)(unary);
6156 }
6157
6158 }
6159
6160 namespace test_variadic_templates
6161 {
6162
6163 template <int...>
6164 struct sum;
6165
6166 template <int N0, int... N1toN>
6167 struct sum<N0, N1toN...>
6168 {
6169 static constexpr auto value = N0 + sum<N1toN...>::value;
6170 };
6171
6172 template <>
6173 struct sum<>
6174 {
6175 static constexpr auto value = 0;
6176 };
6177
6178 static_assert(sum<>::value == 0, "");
6179 static_assert(sum<1>::value == 1, "");
6180 static_assert(sum<23>::value == 23, "");
6181 static_assert(sum<1, 2>::value == 3, "");
6182 static_assert(sum<5, 5, 11>::value == 21, "");
6183 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6184
6185 }
6186
6187 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6188 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6189 // because of this.
6190 namespace test_template_alias_sfinae
6191 {
6192
6193 struct foo {};
6194
6195 template<typename T>
6196 using member = typename T::member_type;
6197
6198 template<typename T>
6199 void func(...) {}
6200
6201 template<typename T>
6202 void func(member<T>*) {}
6203
6204 void test();
6205
6206 void test() { func<foo>(0); }
6207
6208 }
6209
6210 } // namespace cxx11
6211
6212 #endif // __cplusplus >= 201103L
6213
6214
6215
6216 _ACEOF
6217 if ac_fn_cxx_try_compile "$LINENO"; then :
6218 ax_cv_cxx_compile_cxx11=yes
6219 else
6220 ax_cv_cxx_compile_cxx11=no
6221 fi
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6225 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6226 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6227 ac_success=yes
6228 fi
6229
6230 if test x$ac_success = xno; then
6231 for alternative in ${ax_cxx_compile_alternatives}; do
6232 switch="-std=gnu++${alternative}"
6233 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6235 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6236 if eval \${$cachevar+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 ac_save_CXX="$CXX"
6240 CXX="$CXX $switch"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243
6244
6245 // If the compiler admits that it is not ready for C++11, why torture it?
6246 // Hopefully, this will speed up the test.
6247
6248 #ifndef __cplusplus
6249
6250 #error "This is not a C++ compiler"
6251
6252 #elif __cplusplus < 201103L
6253
6254 #error "This is not a C++11 compiler"
6255
6256 #else
6257
6258 namespace cxx11
6259 {
6260
6261 namespace test_static_assert
6262 {
6263
6264 template <typename T>
6265 struct check
6266 {
6267 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6268 };
6269
6270 }
6271
6272 namespace test_final_override
6273 {
6274
6275 struct Base
6276 {
6277 virtual ~Base() {}
6278 virtual void f() {}
6279 };
6280
6281 struct Derived : public Base
6282 {
6283 virtual ~Derived() override {}
6284 virtual void f() override {}
6285 };
6286
6287 }
6288
6289 namespace test_double_right_angle_brackets
6290 {
6291
6292 template < typename T >
6293 struct check {};
6294
6295 typedef check<void> single_type;
6296 typedef check<check<void>> double_type;
6297 typedef check<check<check<void>>> triple_type;
6298 typedef check<check<check<check<void>>>> quadruple_type;
6299
6300 }
6301
6302 namespace test_decltype
6303 {
6304
6305 int
6306 f()
6307 {
6308 int a = 1;
6309 decltype(a) b = 2;
6310 return a + b;
6311 }
6312
6313 }
6314
6315 namespace test_type_deduction
6316 {
6317
6318 template < typename T1, typename T2 >
6319 struct is_same
6320 {
6321 static const bool value = false;
6322 };
6323
6324 template < typename T >
6325 struct is_same<T, T>
6326 {
6327 static const bool value = true;
6328 };
6329
6330 template < typename T1, typename T2 >
6331 auto
6332 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6333 {
6334 return a1 + a2;
6335 }
6336
6337 int
6338 test(const int c, volatile int v)
6339 {
6340 static_assert(is_same<int, decltype(0)>::value == true, "");
6341 static_assert(is_same<int, decltype(c)>::value == false, "");
6342 static_assert(is_same<int, decltype(v)>::value == false, "");
6343 auto ac = c;
6344 auto av = v;
6345 auto sumi = ac + av + 'x';
6346 auto sumf = ac + av + 1.0;
6347 static_assert(is_same<int, decltype(ac)>::value == true, "");
6348 static_assert(is_same<int, decltype(av)>::value == true, "");
6349 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6350 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6351 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6352 return (sumf > 0.0) ? sumi : add(c, v);
6353 }
6354
6355 }
6356
6357 namespace test_noexcept
6358 {
6359
6360 int f() { return 0; }
6361 int g() noexcept { return 0; }
6362
6363 static_assert(noexcept(f()) == false, "");
6364 static_assert(noexcept(g()) == true, "");
6365
6366 }
6367
6368 namespace test_constexpr
6369 {
6370
6371 template < typename CharT >
6372 unsigned long constexpr
6373 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6374 {
6375 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6376 }
6377
6378 template < typename CharT >
6379 unsigned long constexpr
6380 strlen_c(const CharT *const s) noexcept
6381 {
6382 return strlen_c_r(s, 0UL);
6383 }
6384
6385 static_assert(strlen_c("") == 0UL, "");
6386 static_assert(strlen_c("1") == 1UL, "");
6387 static_assert(strlen_c("example") == 7UL, "");
6388 static_assert(strlen_c("another\0example") == 7UL, "");
6389
6390 }
6391
6392 namespace test_rvalue_references
6393 {
6394
6395 template < int N >
6396 struct answer
6397 {
6398 static constexpr int value = N;
6399 };
6400
6401 answer<1> f(int&) { return answer<1>(); }
6402 answer<2> f(const int&) { return answer<2>(); }
6403 answer<3> f(int&&) { return answer<3>(); }
6404
6405 void
6406 test()
6407 {
6408 int i = 0;
6409 const int c = 0;
6410 static_assert(decltype(f(i))::value == 1, "");
6411 static_assert(decltype(f(c))::value == 2, "");
6412 static_assert(decltype(f(0))::value == 3, "");
6413 }
6414
6415 }
6416
6417 namespace test_uniform_initialization
6418 {
6419
6420 struct test
6421 {
6422 static const int zero {};
6423 static const int one {1};
6424 };
6425
6426 static_assert(test::zero == 0, "");
6427 static_assert(test::one == 1, "");
6428
6429 }
6430
6431 namespace test_lambdas
6432 {
6433
6434 void
6435 test1()
6436 {
6437 auto lambda1 = [](){};
6438 auto lambda2 = lambda1;
6439 lambda1();
6440 lambda2();
6441 }
6442
6443 int
6444 test2()
6445 {
6446 auto a = [](int i, int j){ return i + j; }(1, 2);
6447 auto b = []() -> int { return '0'; }();
6448 auto c = [=](){ return a + b; }();
6449 auto d = [&](){ return c; }();
6450 auto e = [a, &b](int x) mutable {
6451 const auto identity = [](int y){ return y; };
6452 for (auto i = 0; i < a; ++i)
6453 a += b--;
6454 return x + identity(a + b);
6455 }(0);
6456 return a + b + c + d + e;
6457 }
6458
6459 int
6460 test3()
6461 {
6462 const auto nullary = [](){ return 0; };
6463 const auto unary = [](int x){ return x; };
6464 using nullary_t = decltype(nullary);
6465 using unary_t = decltype(unary);
6466 const auto higher1st = [](nullary_t f){ return f(); };
6467 const auto higher2nd = [unary](nullary_t f1){
6468 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6469 };
6470 return higher1st(nullary) + higher2nd(nullary)(unary);
6471 }
6472
6473 }
6474
6475 namespace test_variadic_templates
6476 {
6477
6478 template <int...>
6479 struct sum;
6480
6481 template <int N0, int... N1toN>
6482 struct sum<N0, N1toN...>
6483 {
6484 static constexpr auto value = N0 + sum<N1toN...>::value;
6485 };
6486
6487 template <>
6488 struct sum<>
6489 {
6490 static constexpr auto value = 0;
6491 };
6492
6493 static_assert(sum<>::value == 0, "");
6494 static_assert(sum<1>::value == 1, "");
6495 static_assert(sum<23>::value == 23, "");
6496 static_assert(sum<1, 2>::value == 3, "");
6497 static_assert(sum<5, 5, 11>::value == 21, "");
6498 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6499
6500 }
6501
6502 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6503 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6504 // because of this.
6505 namespace test_template_alias_sfinae
6506 {
6507
6508 struct foo {};
6509
6510 template<typename T>
6511 using member = typename T::member_type;
6512
6513 template<typename T>
6514 void func(...) {}
6515
6516 template<typename T>
6517 void func(member<T>*) {}
6518
6519 void test();
6520
6521 void test() { func<foo>(0); }
6522
6523 }
6524
6525 } // namespace cxx11
6526
6527 #endif // __cplusplus >= 201103L
6528
6529
6530
6531 _ACEOF
6532 if ac_fn_cxx_try_compile "$LINENO"; then :
6533 eval $cachevar=yes
6534 else
6535 eval $cachevar=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 CXX="$ac_save_CXX"
6539 fi
6540 eval ac_res=\$$cachevar
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6542 $as_echo "$ac_res" >&6; }
6543 if eval test x\$$cachevar = xyes; then
6544 CXX="$CXX $switch"
6545 if test -n "$CXXCPP" ; then
6546 CXXCPP="$CXXCPP $switch"
6547 fi
6548 ac_success=yes
6549 break
6550 fi
6551 done
6552 fi
6553
6554 if test x$ac_success = xno; then
6555 for alternative in ${ax_cxx_compile_alternatives}; do
6556 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6557 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6559 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6560 if eval \${$cachevar+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_save_CXX="$CXX"
6564 CXX="$CXX $switch"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567
6568
6569 // If the compiler admits that it is not ready for C++11, why torture it?
6570 // Hopefully, this will speed up the test.
6571
6572 #ifndef __cplusplus
6573
6574 #error "This is not a C++ compiler"
6575
6576 #elif __cplusplus < 201103L
6577
6578 #error "This is not a C++11 compiler"
6579
6580 #else
6581
6582 namespace cxx11
6583 {
6584
6585 namespace test_static_assert
6586 {
6587
6588 template <typename T>
6589 struct check
6590 {
6591 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6592 };
6593
6594 }
6595
6596 namespace test_final_override
6597 {
6598
6599 struct Base
6600 {
6601 virtual ~Base() {}
6602 virtual void f() {}
6603 };
6604
6605 struct Derived : public Base
6606 {
6607 virtual ~Derived() override {}
6608 virtual void f() override {}
6609 };
6610
6611 }
6612
6613 namespace test_double_right_angle_brackets
6614 {
6615
6616 template < typename T >
6617 struct check {};
6618
6619 typedef check<void> single_type;
6620 typedef check<check<void>> double_type;
6621 typedef check<check<check<void>>> triple_type;
6622 typedef check<check<check<check<void>>>> quadruple_type;
6623
6624 }
6625
6626 namespace test_decltype
6627 {
6628
6629 int
6630 f()
6631 {
6632 int a = 1;
6633 decltype(a) b = 2;
6634 return a + b;
6635 }
6636
6637 }
6638
6639 namespace test_type_deduction
6640 {
6641
6642 template < typename T1, typename T2 >
6643 struct is_same
6644 {
6645 static const bool value = false;
6646 };
6647
6648 template < typename T >
6649 struct is_same<T, T>
6650 {
6651 static const bool value = true;
6652 };
6653
6654 template < typename T1, typename T2 >
6655 auto
6656 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6657 {
6658 return a1 + a2;
6659 }
6660
6661 int
6662 test(const int c, volatile int v)
6663 {
6664 static_assert(is_same<int, decltype(0)>::value == true, "");
6665 static_assert(is_same<int, decltype(c)>::value == false, "");
6666 static_assert(is_same<int, decltype(v)>::value == false, "");
6667 auto ac = c;
6668 auto av = v;
6669 auto sumi = ac + av + 'x';
6670 auto sumf = ac + av + 1.0;
6671 static_assert(is_same<int, decltype(ac)>::value == true, "");
6672 static_assert(is_same<int, decltype(av)>::value == true, "");
6673 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6674 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6675 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6676 return (sumf > 0.0) ? sumi : add(c, v);
6677 }
6678
6679 }
6680
6681 namespace test_noexcept
6682 {
6683
6684 int f() { return 0; }
6685 int g() noexcept { return 0; }
6686
6687 static_assert(noexcept(f()) == false, "");
6688 static_assert(noexcept(g()) == true, "");
6689
6690 }
6691
6692 namespace test_constexpr
6693 {
6694
6695 template < typename CharT >
6696 unsigned long constexpr
6697 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6698 {
6699 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6700 }
6701
6702 template < typename CharT >
6703 unsigned long constexpr
6704 strlen_c(const CharT *const s) noexcept
6705 {
6706 return strlen_c_r(s, 0UL);
6707 }
6708
6709 static_assert(strlen_c("") == 0UL, "");
6710 static_assert(strlen_c("1") == 1UL, "");
6711 static_assert(strlen_c("example") == 7UL, "");
6712 static_assert(strlen_c("another\0example") == 7UL, "");
6713
6714 }
6715
6716 namespace test_rvalue_references
6717 {
6718
6719 template < int N >
6720 struct answer
6721 {
6722 static constexpr int value = N;
6723 };
6724
6725 answer<1> f(int&) { return answer<1>(); }
6726 answer<2> f(const int&) { return answer<2>(); }
6727 answer<3> f(int&&) { return answer<3>(); }
6728
6729 void
6730 test()
6731 {
6732 int i = 0;
6733 const int c = 0;
6734 static_assert(decltype(f(i))::value == 1, "");
6735 static_assert(decltype(f(c))::value == 2, "");
6736 static_assert(decltype(f(0))::value == 3, "");
6737 }
6738
6739 }
6740
6741 namespace test_uniform_initialization
6742 {
6743
6744 struct test
6745 {
6746 static const int zero {};
6747 static const int one {1};
6748 };
6749
6750 static_assert(test::zero == 0, "");
6751 static_assert(test::one == 1, "");
6752
6753 }
6754
6755 namespace test_lambdas
6756 {
6757
6758 void
6759 test1()
6760 {
6761 auto lambda1 = [](){};
6762 auto lambda2 = lambda1;
6763 lambda1();
6764 lambda2();
6765 }
6766
6767 int
6768 test2()
6769 {
6770 auto a = [](int i, int j){ return i + j; }(1, 2);
6771 auto b = []() -> int { return '0'; }();
6772 auto c = [=](){ return a + b; }();
6773 auto d = [&](){ return c; }();
6774 auto e = [a, &b](int x) mutable {
6775 const auto identity = [](int y){ return y; };
6776 for (auto i = 0; i < a; ++i)
6777 a += b--;
6778 return x + identity(a + b);
6779 }(0);
6780 return a + b + c + d + e;
6781 }
6782
6783 int
6784 test3()
6785 {
6786 const auto nullary = [](){ return 0; };
6787 const auto unary = [](int x){ return x; };
6788 using nullary_t = decltype(nullary);
6789 using unary_t = decltype(unary);
6790 const auto higher1st = [](nullary_t f){ return f(); };
6791 const auto higher2nd = [unary](nullary_t f1){
6792 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6793 };
6794 return higher1st(nullary) + higher2nd(nullary)(unary);
6795 }
6796
6797 }
6798
6799 namespace test_variadic_templates
6800 {
6801
6802 template <int...>
6803 struct sum;
6804
6805 template <int N0, int... N1toN>
6806 struct sum<N0, N1toN...>
6807 {
6808 static constexpr auto value = N0 + sum<N1toN...>::value;
6809 };
6810
6811 template <>
6812 struct sum<>
6813 {
6814 static constexpr auto value = 0;
6815 };
6816
6817 static_assert(sum<>::value == 0, "");
6818 static_assert(sum<1>::value == 1, "");
6819 static_assert(sum<23>::value == 23, "");
6820 static_assert(sum<1, 2>::value == 3, "");
6821 static_assert(sum<5, 5, 11>::value == 21, "");
6822 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6823
6824 }
6825
6826 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6827 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6828 // because of this.
6829 namespace test_template_alias_sfinae
6830 {
6831
6832 struct foo {};
6833
6834 template<typename T>
6835 using member = typename T::member_type;
6836
6837 template<typename T>
6838 void func(...) {}
6839
6840 template<typename T>
6841 void func(member<T>*) {}
6842
6843 void test();
6844
6845 void test() { func<foo>(0); }
6846
6847 }
6848
6849 } // namespace cxx11
6850
6851 #endif // __cplusplus >= 201103L
6852
6853
6854
6855 _ACEOF
6856 if ac_fn_cxx_try_compile "$LINENO"; then :
6857 eval $cachevar=yes
6858 else
6859 eval $cachevar=no
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 CXX="$ac_save_CXX"
6863 fi
6864 eval ac_res=\$$cachevar
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if eval test x\$$cachevar = xyes; then
6868 CXX="$CXX $switch"
6869 if test -n "$CXXCPP" ; then
6870 CXXCPP="$CXXCPP $switch"
6871 fi
6872 ac_success=yes
6873 break
6874 fi
6875 done
6876 if test x$ac_success = xyes; then
6877 break
6878 fi
6879 done
6880 fi
6881
6882 ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887
6888 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6889 if test x$ac_success = xno; then
6890 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6891 fi
6892 fi
6893 if test x$ac_success = xno; then
6894 HAVE_CXX11=0
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6896 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6897 else
6898 HAVE_CXX11=1
6899
6900 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6901
6902 fi
6903
6904
6905
6906 if test "${build}" != "${host}"; then
6907 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6908 ac_ext=cpp
6909 ac_cpp='$CXXCPP $CPPFLAGS'
6910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6913 ac_success=no
6914 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6915 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6916 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6917 CXX="$CXX_FOR_BUILD"
6918 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6919 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6921 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6922 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927
6928
6929 // If the compiler admits that it is not ready for C++11, why torture it?
6930 // Hopefully, this will speed up the test.
6931
6932 #ifndef __cplusplus
6933
6934 #error "This is not a C++ compiler"
6935
6936 #elif __cplusplus < 201103L
6937
6938 #error "This is not a C++11 compiler"
6939
6940 #else
6941
6942 namespace cxx11
6943 {
6944
6945 namespace test_static_assert
6946 {
6947
6948 template <typename T>
6949 struct check
6950 {
6951 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6952 };
6953
6954 }
6955
6956 namespace test_final_override
6957 {
6958
6959 struct Base
6960 {
6961 virtual ~Base() {}
6962 virtual void f() {}
6963 };
6964
6965 struct Derived : public Base
6966 {
6967 virtual ~Derived() override {}
6968 virtual void f() override {}
6969 };
6970
6971 }
6972
6973 namespace test_double_right_angle_brackets
6974 {
6975
6976 template < typename T >
6977 struct check {};
6978
6979 typedef check<void> single_type;
6980 typedef check<check<void>> double_type;
6981 typedef check<check<check<void>>> triple_type;
6982 typedef check<check<check<check<void>>>> quadruple_type;
6983
6984 }
6985
6986 namespace test_decltype
6987 {
6988
6989 int
6990 f()
6991 {
6992 int a = 1;
6993 decltype(a) b = 2;
6994 return a + b;
6995 }
6996
6997 }
6998
6999 namespace test_type_deduction
7000 {
7001
7002 template < typename T1, typename T2 >
7003 struct is_same
7004 {
7005 static const bool value = false;
7006 };
7007
7008 template < typename T >
7009 struct is_same<T, T>
7010 {
7011 static const bool value = true;
7012 };
7013
7014 template < typename T1, typename T2 >
7015 auto
7016 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7017 {
7018 return a1 + a2;
7019 }
7020
7021 int
7022 test(const int c, volatile int v)
7023 {
7024 static_assert(is_same<int, decltype(0)>::value == true, "");
7025 static_assert(is_same<int, decltype(c)>::value == false, "");
7026 static_assert(is_same<int, decltype(v)>::value == false, "");
7027 auto ac = c;
7028 auto av = v;
7029 auto sumi = ac + av + 'x';
7030 auto sumf = ac + av + 1.0;
7031 static_assert(is_same<int, decltype(ac)>::value == true, "");
7032 static_assert(is_same<int, decltype(av)>::value == true, "");
7033 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7034 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7035 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7036 return (sumf > 0.0) ? sumi : add(c, v);
7037 }
7038
7039 }
7040
7041 namespace test_noexcept
7042 {
7043
7044 int f() { return 0; }
7045 int g() noexcept { return 0; }
7046
7047 static_assert(noexcept(f()) == false, "");
7048 static_assert(noexcept(g()) == true, "");
7049
7050 }
7051
7052 namespace test_constexpr
7053 {
7054
7055 template < typename CharT >
7056 unsigned long constexpr
7057 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7058 {
7059 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7060 }
7061
7062 template < typename CharT >
7063 unsigned long constexpr
7064 strlen_c(const CharT *const s) noexcept
7065 {
7066 return strlen_c_r(s, 0UL);
7067 }
7068
7069 static_assert(strlen_c("") == 0UL, "");
7070 static_assert(strlen_c("1") == 1UL, "");
7071 static_assert(strlen_c("example") == 7UL, "");
7072 static_assert(strlen_c("another\0example") == 7UL, "");
7073
7074 }
7075
7076 namespace test_rvalue_references
7077 {
7078
7079 template < int N >
7080 struct answer
7081 {
7082 static constexpr int value = N;
7083 };
7084
7085 answer<1> f(int&) { return answer<1>(); }
7086 answer<2> f(const int&) { return answer<2>(); }
7087 answer<3> f(int&&) { return answer<3>(); }
7088
7089 void
7090 test()
7091 {
7092 int i = 0;
7093 const int c = 0;
7094 static_assert(decltype(f(i))::value == 1, "");
7095 static_assert(decltype(f(c))::value == 2, "");
7096 static_assert(decltype(f(0))::value == 3, "");
7097 }
7098
7099 }
7100
7101 namespace test_uniform_initialization
7102 {
7103
7104 struct test
7105 {
7106 static const int zero {};
7107 static const int one {1};
7108 };
7109
7110 static_assert(test::zero == 0, "");
7111 static_assert(test::one == 1, "");
7112
7113 }
7114
7115 namespace test_lambdas
7116 {
7117
7118 void
7119 test1()
7120 {
7121 auto lambda1 = [](){};
7122 auto lambda2 = lambda1;
7123 lambda1();
7124 lambda2();
7125 }
7126
7127 int
7128 test2()
7129 {
7130 auto a = [](int i, int j){ return i + j; }(1, 2);
7131 auto b = []() -> int { return '0'; }();
7132 auto c = [=](){ return a + b; }();
7133 auto d = [&](){ return c; }();
7134 auto e = [a, &b](int x) mutable {
7135 const auto identity = [](int y){ return y; };
7136 for (auto i = 0; i < a; ++i)
7137 a += b--;
7138 return x + identity(a + b);
7139 }(0);
7140 return a + b + c + d + e;
7141 }
7142
7143 int
7144 test3()
7145 {
7146 const auto nullary = [](){ return 0; };
7147 const auto unary = [](int x){ return x; };
7148 using nullary_t = decltype(nullary);
7149 using unary_t = decltype(unary);
7150 const auto higher1st = [](nullary_t f){ return f(); };
7151 const auto higher2nd = [unary](nullary_t f1){
7152 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7153 };
7154 return higher1st(nullary) + higher2nd(nullary)(unary);
7155 }
7156
7157 }
7158
7159 namespace test_variadic_templates
7160 {
7161
7162 template <int...>
7163 struct sum;
7164
7165 template <int N0, int... N1toN>
7166 struct sum<N0, N1toN...>
7167 {
7168 static constexpr auto value = N0 + sum<N1toN...>::value;
7169 };
7170
7171 template <>
7172 struct sum<>
7173 {
7174 static constexpr auto value = 0;
7175 };
7176
7177 static_assert(sum<>::value == 0, "");
7178 static_assert(sum<1>::value == 1, "");
7179 static_assert(sum<23>::value == 23, "");
7180 static_assert(sum<1, 2>::value == 3, "");
7181 static_assert(sum<5, 5, 11>::value == 21, "");
7182 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7183
7184 }
7185
7186 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7187 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7188 // because of this.
7189 namespace test_template_alias_sfinae
7190 {
7191
7192 struct foo {};
7193
7194 template<typename T>
7195 using member = typename T::member_type;
7196
7197 template<typename T>
7198 void func(...) {}
7199
7200 template<typename T>
7201 void func(member<T>*) {}
7202
7203 void test();
7204
7205 void test() { func<foo>(0); }
7206
7207 }
7208
7209 } // namespace cxx11
7210
7211 #endif // __cplusplus >= 201103L
7212
7213
7214
7215 _ACEOF
7216 if ac_fn_cxx_try_compile "$LINENO"; then :
7217 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7218 else
7219 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7224 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7225 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7226 ac_success=yes
7227 fi
7228
7229 if test x$ac_success = xno; then
7230 for alternative in ${ax_cxx_compile_alternatives}; do
7231 switch="-std=gnu++${alternative}"
7232 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7234 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7235 if eval \${$cachevar+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 ac_save_CXX="$CXX"
7239 CXX="$CXX $switch"
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242
7243
7244 // If the compiler admits that it is not ready for C++11, why torture it?
7245 // Hopefully, this will speed up the test.
7246
7247 #ifndef __cplusplus
7248
7249 #error "This is not a C++ compiler"
7250
7251 #elif __cplusplus < 201103L
7252
7253 #error "This is not a C++11 compiler"
7254
7255 #else
7256
7257 namespace cxx11
7258 {
7259
7260 namespace test_static_assert
7261 {
7262
7263 template <typename T>
7264 struct check
7265 {
7266 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7267 };
7268
7269 }
7270
7271 namespace test_final_override
7272 {
7273
7274 struct Base
7275 {
7276 virtual ~Base() {}
7277 virtual void f() {}
7278 };
7279
7280 struct Derived : public Base
7281 {
7282 virtual ~Derived() override {}
7283 virtual void f() override {}
7284 };
7285
7286 }
7287
7288 namespace test_double_right_angle_brackets
7289 {
7290
7291 template < typename T >
7292 struct check {};
7293
7294 typedef check<void> single_type;
7295 typedef check<check<void>> double_type;
7296 typedef check<check<check<void>>> triple_type;
7297 typedef check<check<check<check<void>>>> quadruple_type;
7298
7299 }
7300
7301 namespace test_decltype
7302 {
7303
7304 int
7305 f()
7306 {
7307 int a = 1;
7308 decltype(a) b = 2;
7309 return a + b;
7310 }
7311
7312 }
7313
7314 namespace test_type_deduction
7315 {
7316
7317 template < typename T1, typename T2 >
7318 struct is_same
7319 {
7320 static const bool value = false;
7321 };
7322
7323 template < typename T >
7324 struct is_same<T, T>
7325 {
7326 static const bool value = true;
7327 };
7328
7329 template < typename T1, typename T2 >
7330 auto
7331 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7332 {
7333 return a1 + a2;
7334 }
7335
7336 int
7337 test(const int c, volatile int v)
7338 {
7339 static_assert(is_same<int, decltype(0)>::value == true, "");
7340 static_assert(is_same<int, decltype(c)>::value == false, "");
7341 static_assert(is_same<int, decltype(v)>::value == false, "");
7342 auto ac = c;
7343 auto av = v;
7344 auto sumi = ac + av + 'x';
7345 auto sumf = ac + av + 1.0;
7346 static_assert(is_same<int, decltype(ac)>::value == true, "");
7347 static_assert(is_same<int, decltype(av)>::value == true, "");
7348 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7349 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7350 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7351 return (sumf > 0.0) ? sumi : add(c, v);
7352 }
7353
7354 }
7355
7356 namespace test_noexcept
7357 {
7358
7359 int f() { return 0; }
7360 int g() noexcept { return 0; }
7361
7362 static_assert(noexcept(f()) == false, "");
7363 static_assert(noexcept(g()) == true, "");
7364
7365 }
7366
7367 namespace test_constexpr
7368 {
7369
7370 template < typename CharT >
7371 unsigned long constexpr
7372 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7373 {
7374 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7375 }
7376
7377 template < typename CharT >
7378 unsigned long constexpr
7379 strlen_c(const CharT *const s) noexcept
7380 {
7381 return strlen_c_r(s, 0UL);
7382 }
7383
7384 static_assert(strlen_c("") == 0UL, "");
7385 static_assert(strlen_c("1") == 1UL, "");
7386 static_assert(strlen_c("example") == 7UL, "");
7387 static_assert(strlen_c("another\0example") == 7UL, "");
7388
7389 }
7390
7391 namespace test_rvalue_references
7392 {
7393
7394 template < int N >
7395 struct answer
7396 {
7397 static constexpr int value = N;
7398 };
7399
7400 answer<1> f(int&) { return answer<1>(); }
7401 answer<2> f(const int&) { return answer<2>(); }
7402 answer<3> f(int&&) { return answer<3>(); }
7403
7404 void
7405 test()
7406 {
7407 int i = 0;
7408 const int c = 0;
7409 static_assert(decltype(f(i))::value == 1, "");
7410 static_assert(decltype(f(c))::value == 2, "");
7411 static_assert(decltype(f(0))::value == 3, "");
7412 }
7413
7414 }
7415
7416 namespace test_uniform_initialization
7417 {
7418
7419 struct test
7420 {
7421 static const int zero {};
7422 static const int one {1};
7423 };
7424
7425 static_assert(test::zero == 0, "");
7426 static_assert(test::one == 1, "");
7427
7428 }
7429
7430 namespace test_lambdas
7431 {
7432
7433 void
7434 test1()
7435 {
7436 auto lambda1 = [](){};
7437 auto lambda2 = lambda1;
7438 lambda1();
7439 lambda2();
7440 }
7441
7442 int
7443 test2()
7444 {
7445 auto a = [](int i, int j){ return i + j; }(1, 2);
7446 auto b = []() -> int { return '0'; }();
7447 auto c = [=](){ return a + b; }();
7448 auto d = [&](){ return c; }();
7449 auto e = [a, &b](int x) mutable {
7450 const auto identity = [](int y){ return y; };
7451 for (auto i = 0; i < a; ++i)
7452 a += b--;
7453 return x + identity(a + b);
7454 }(0);
7455 return a + b + c + d + e;
7456 }
7457
7458 int
7459 test3()
7460 {
7461 const auto nullary = [](){ return 0; };
7462 const auto unary = [](int x){ return x; };
7463 using nullary_t = decltype(nullary);
7464 using unary_t = decltype(unary);
7465 const auto higher1st = [](nullary_t f){ return f(); };
7466 const auto higher2nd = [unary](nullary_t f1){
7467 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7468 };
7469 return higher1st(nullary) + higher2nd(nullary)(unary);
7470 }
7471
7472 }
7473
7474 namespace test_variadic_templates
7475 {
7476
7477 template <int...>
7478 struct sum;
7479
7480 template <int N0, int... N1toN>
7481 struct sum<N0, N1toN...>
7482 {
7483 static constexpr auto value = N0 + sum<N1toN...>::value;
7484 };
7485
7486 template <>
7487 struct sum<>
7488 {
7489 static constexpr auto value = 0;
7490 };
7491
7492 static_assert(sum<>::value == 0, "");
7493 static_assert(sum<1>::value == 1, "");
7494 static_assert(sum<23>::value == 23, "");
7495 static_assert(sum<1, 2>::value == 3, "");
7496 static_assert(sum<5, 5, 11>::value == 21, "");
7497 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7498
7499 }
7500
7501 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7502 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7503 // because of this.
7504 namespace test_template_alias_sfinae
7505 {
7506
7507 struct foo {};
7508
7509 template<typename T>
7510 using member = typename T::member_type;
7511
7512 template<typename T>
7513 void func(...) {}
7514
7515 template<typename T>
7516 void func(member<T>*) {}
7517
7518 void test();
7519
7520 void test() { func<foo>(0); }
7521
7522 }
7523
7524 } // namespace cxx11
7525
7526 #endif // __cplusplus >= 201103L
7527
7528
7529
7530 _ACEOF
7531 if ac_fn_cxx_try_compile "$LINENO"; then :
7532 eval $cachevar=yes
7533 else
7534 eval $cachevar=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 CXX="$ac_save_CXX"
7538 fi
7539 eval ac_res=\$$cachevar
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7541 $as_echo "$ac_res" >&6; }
7542 if eval test x\$$cachevar = xyes; then
7543 CXX="$CXX $switch"
7544 if test -n "$CXXCPP" ; then
7545 CXXCPP="$CXXCPP $switch"
7546 fi
7547 ac_success=yes
7548 break
7549 fi
7550 done
7551 fi
7552
7553 if test x$ac_success = xno; then
7554 for alternative in ${ax_cxx_compile_alternatives}; do
7555 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7556 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7558 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7559 if eval \${$cachevar+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 ac_save_CXX="$CXX"
7563 CXX="$CXX $switch"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566
7567
7568 // If the compiler admits that it is not ready for C++11, why torture it?
7569 // Hopefully, this will speed up the test.
7570
7571 #ifndef __cplusplus
7572
7573 #error "This is not a C++ compiler"
7574
7575 #elif __cplusplus < 201103L
7576
7577 #error "This is not a C++11 compiler"
7578
7579 #else
7580
7581 namespace cxx11
7582 {
7583
7584 namespace test_static_assert
7585 {
7586
7587 template <typename T>
7588 struct check
7589 {
7590 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7591 };
7592
7593 }
7594
7595 namespace test_final_override
7596 {
7597
7598 struct Base
7599 {
7600 virtual ~Base() {}
7601 virtual void f() {}
7602 };
7603
7604 struct Derived : public Base
7605 {
7606 virtual ~Derived() override {}
7607 virtual void f() override {}
7608 };
7609
7610 }
7611
7612 namespace test_double_right_angle_brackets
7613 {
7614
7615 template < typename T >
7616 struct check {};
7617
7618 typedef check<void> single_type;
7619 typedef check<check<void>> double_type;
7620 typedef check<check<check<void>>> triple_type;
7621 typedef check<check<check<check<void>>>> quadruple_type;
7622
7623 }
7624
7625 namespace test_decltype
7626 {
7627
7628 int
7629 f()
7630 {
7631 int a = 1;
7632 decltype(a) b = 2;
7633 return a + b;
7634 }
7635
7636 }
7637
7638 namespace test_type_deduction
7639 {
7640
7641 template < typename T1, typename T2 >
7642 struct is_same
7643 {
7644 static const bool value = false;
7645 };
7646
7647 template < typename T >
7648 struct is_same<T, T>
7649 {
7650 static const bool value = true;
7651 };
7652
7653 template < typename T1, typename T2 >
7654 auto
7655 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7656 {
7657 return a1 + a2;
7658 }
7659
7660 int
7661 test(const int c, volatile int v)
7662 {
7663 static_assert(is_same<int, decltype(0)>::value == true, "");
7664 static_assert(is_same<int, decltype(c)>::value == false, "");
7665 static_assert(is_same<int, decltype(v)>::value == false, "");
7666 auto ac = c;
7667 auto av = v;
7668 auto sumi = ac + av + 'x';
7669 auto sumf = ac + av + 1.0;
7670 static_assert(is_same<int, decltype(ac)>::value == true, "");
7671 static_assert(is_same<int, decltype(av)>::value == true, "");
7672 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7673 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7674 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7675 return (sumf > 0.0) ? sumi : add(c, v);
7676 }
7677
7678 }
7679
7680 namespace test_noexcept
7681 {
7682
7683 int f() { return 0; }
7684 int g() noexcept { return 0; }
7685
7686 static_assert(noexcept(f()) == false, "");
7687 static_assert(noexcept(g()) == true, "");
7688
7689 }
7690
7691 namespace test_constexpr
7692 {
7693
7694 template < typename CharT >
7695 unsigned long constexpr
7696 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7697 {
7698 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7699 }
7700
7701 template < typename CharT >
7702 unsigned long constexpr
7703 strlen_c(const CharT *const s) noexcept
7704 {
7705 return strlen_c_r(s, 0UL);
7706 }
7707
7708 static_assert(strlen_c("") == 0UL, "");
7709 static_assert(strlen_c("1") == 1UL, "");
7710 static_assert(strlen_c("example") == 7UL, "");
7711 static_assert(strlen_c("another\0example") == 7UL, "");
7712
7713 }
7714
7715 namespace test_rvalue_references
7716 {
7717
7718 template < int N >
7719 struct answer
7720 {
7721 static constexpr int value = N;
7722 };
7723
7724 answer<1> f(int&) { return answer<1>(); }
7725 answer<2> f(const int&) { return answer<2>(); }
7726 answer<3> f(int&&) { return answer<3>(); }
7727
7728 void
7729 test()
7730 {
7731 int i = 0;
7732 const int c = 0;
7733 static_assert(decltype(f(i))::value == 1, "");
7734 static_assert(decltype(f(c))::value == 2, "");
7735 static_assert(decltype(f(0))::value == 3, "");
7736 }
7737
7738 }
7739
7740 namespace test_uniform_initialization
7741 {
7742
7743 struct test
7744 {
7745 static const int zero {};
7746 static const int one {1};
7747 };
7748
7749 static_assert(test::zero == 0, "");
7750 static_assert(test::one == 1, "");
7751
7752 }
7753
7754 namespace test_lambdas
7755 {
7756
7757 void
7758 test1()
7759 {
7760 auto lambda1 = [](){};
7761 auto lambda2 = lambda1;
7762 lambda1();
7763 lambda2();
7764 }
7765
7766 int
7767 test2()
7768 {
7769 auto a = [](int i, int j){ return i + j; }(1, 2);
7770 auto b = []() -> int { return '0'; }();
7771 auto c = [=](){ return a + b; }();
7772 auto d = [&](){ return c; }();
7773 auto e = [a, &b](int x) mutable {
7774 const auto identity = [](int y){ return y; };
7775 for (auto i = 0; i < a; ++i)
7776 a += b--;
7777 return x + identity(a + b);
7778 }(0);
7779 return a + b + c + d + e;
7780 }
7781
7782 int
7783 test3()
7784 {
7785 const auto nullary = [](){ return 0; };
7786 const auto unary = [](int x){ return x; };
7787 using nullary_t = decltype(nullary);
7788 using unary_t = decltype(unary);
7789 const auto higher1st = [](nullary_t f){ return f(); };
7790 const auto higher2nd = [unary](nullary_t f1){
7791 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7792 };
7793 return higher1st(nullary) + higher2nd(nullary)(unary);
7794 }
7795
7796 }
7797
7798 namespace test_variadic_templates
7799 {
7800
7801 template <int...>
7802 struct sum;
7803
7804 template <int N0, int... N1toN>
7805 struct sum<N0, N1toN...>
7806 {
7807 static constexpr auto value = N0 + sum<N1toN...>::value;
7808 };
7809
7810 template <>
7811 struct sum<>
7812 {
7813 static constexpr auto value = 0;
7814 };
7815
7816 static_assert(sum<>::value == 0, "");
7817 static_assert(sum<1>::value == 1, "");
7818 static_assert(sum<23>::value == 23, "");
7819 static_assert(sum<1, 2>::value == 3, "");
7820 static_assert(sum<5, 5, 11>::value == 21, "");
7821 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7822
7823 }
7824
7825 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7826 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7827 // because of this.
7828 namespace test_template_alias_sfinae
7829 {
7830
7831 struct foo {};
7832
7833 template<typename T>
7834 using member = typename T::member_type;
7835
7836 template<typename T>
7837 void func(...) {}
7838
7839 template<typename T>
7840 void func(member<T>*) {}
7841
7842 void test();
7843
7844 void test() { func<foo>(0); }
7845
7846 }
7847
7848 } // namespace cxx11
7849
7850 #endif // __cplusplus >= 201103L
7851
7852
7853
7854 _ACEOF
7855 if ac_fn_cxx_try_compile "$LINENO"; then :
7856 eval $cachevar=yes
7857 else
7858 eval $cachevar=no
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 CXX="$ac_save_CXX"
7862 fi
7863 eval ac_res=\$$cachevar
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7866 if eval test x\$$cachevar = xyes; then
7867 CXX="$CXX $switch"
7868 if test -n "$CXXCPP" ; then
7869 CXXCPP="$CXXCPP $switch"
7870 fi
7871 ac_success=yes
7872 break
7873 fi
7874 done
7875 if test x$ac_success = xyes; then
7876 break
7877 fi
7878 done
7879 fi
7880 CXX_FOR_BUILD="$CXX"
7881 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7882 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7883 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7884 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7885 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7886 ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7893 if test x$ac_success = xno; then
7894 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7895 fi
7896 fi
7897 if test x$ac_success = xno; then
7898 HAVE_CXX11_FOR_BUILD=0
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7900 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7901 else
7902 HAVE_CXX11_FOR_BUILD=1
7903
7904 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7905
7906 fi
7907
7908
7909 fi
7910 fi
7911
7912 # Check whether --enable-pgo-build was given.
7913 if test "${enable_pgo_build+set}" = set; then :
7914 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7915 else
7916 enable_pgo_build=no
7917 fi
7918
7919
7920 # Issue errors and warnings for invalid/strange PGO build combinations.
7921 case "$have_compiler:$host:$target:$enable_pgo_build" in
7922 *:*:*:no) ;;
7923
7924 # Allow the PGO build only if we aren't building a compiler and
7925 # we are in a native configuration.
7926 no:$build:$build:yes | no:$build:$build:lto) ;;
7927
7928 # Disallow the PGO bootstrap if we are building a compiler.
7929 yes:*:*:yes | yes:*:*:lto)
7930 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7931
7932 *)
7933 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7934 ;;
7935 esac
7936
7937 if test "$enable_pgo_build" != "no"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7939 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7940 old_CFLAGS="$CFLAGS"
7941 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7942 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7943
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 int foo;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949
7950 else
7951 PGO_BUILD_GEN_CFLAGS=
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 CFLAGS="$old_CFLAGS"
7955 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7957 $as_echo "yes" >&6; }
7958 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7963 fi
7964
7965 if test "$enable_pgo_build" = "lto"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7967 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7968 old_CFLAGS="$CFLAGS"
7969 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7970 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int foo;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976
7977 else
7978 PGO_BUILD_LTO_CFLAGS=
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 CFLAGS="$old_CFLAGS"
7982 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7989 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7990 fi
7991 fi
7992 fi
7993
7994
7995
7996
7997 # Used for setting $lt_cv_objdir
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7999 $as_echo_n "checking for objdir... " >&6; }
8000 if ${lt_cv_objdir+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 rm -f .libs 2>/dev/null
8004 mkdir .libs 2>/dev/null
8005 if test -d .libs; then
8006 lt_cv_objdir=.libs
8007 else
8008 # MS-DOS does not allow filenames that begin with a dot.
8009 lt_cv_objdir=_libs
8010 fi
8011 rmdir .libs 2>/dev/null
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8014 $as_echo "$lt_cv_objdir" >&6; }
8015 objdir=$lt_cv_objdir
8016
8017
8018
8019
8020
8021 cat >>confdefs.h <<_ACEOF
8022 #define LT_OBJDIR "$lt_cv_objdir/"
8023 _ACEOF
8024
8025
8026
8027 # Check for GMP, MPFR and MPC
8028 require_gmp=no
8029 require_mpc=no
8030 if test -d ${srcdir}/gcc ; then
8031 require_gmp=yes
8032 require_mpc=yes
8033 fi
8034 if test -d ${srcdir}/gdb ; then
8035 if test "x$enable_gdb" != xno; then
8036 require_gmp=yes
8037 fi
8038 fi
8039
8040 gmplibs="-lmpfr -lgmp"
8041 if test x"$require_mpc" = "xyes" ; then
8042 gmplibs="-lmpc $gmplibs"
8043 fi
8044 gmpinc=
8045 have_gmp=no
8046
8047 # Specify a location for mpc
8048 # check for this first so it ends up on the link line before mpfr.
8049
8050 # Check whether --with-mpc was given.
8051 if test "${with_mpc+set}" = set; then :
8052 withval=$with_mpc;
8053 fi
8054
8055
8056 # Check whether --with-mpc-include was given.
8057 if test "${with_mpc_include+set}" = set; then :
8058 withval=$with_mpc_include;
8059 fi
8060
8061
8062 # Check whether --with-mpc-lib was given.
8063 if test "${with_mpc_lib+set}" = set; then :
8064 withval=$with_mpc_lib;
8065 fi
8066
8067
8068 if test "x$with_mpc" != x; then
8069 gmplibs="-L$with_mpc/lib $gmplibs"
8070 gmpinc="-I$with_mpc/include $gmpinc"
8071 fi
8072 if test "x$with_mpc_include" != x; then
8073 gmpinc="-I$with_mpc_include $gmpinc"
8074 fi
8075 if test "x$with_mpc_lib" != x; then
8076 gmplibs="-L$with_mpc_lib $gmplibs"
8077 fi
8078 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8079 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8080 gmpinc='-I$$s/mpc/src '"$gmpinc"
8081 # Do not test the mpc version. Assume that it is sufficient, since
8082 # it is in the source tree, and the library has not been built yet
8083 # but it would be included on the link line in the version check below
8084 # hence making the test fail.
8085 have_gmp=yes
8086 fi
8087
8088 # Specify a location for mpfr
8089 # check for this first so it ends up on the link line before gmp.
8090
8091 # Check whether --with-mpfr was given.
8092 if test "${with_mpfr+set}" = set; then :
8093 withval=$with_mpfr;
8094 fi
8095
8096
8097 # Check whether --with-mpfr-include was given.
8098 if test "${with_mpfr_include+set}" = set; then :
8099 withval=$with_mpfr_include;
8100 fi
8101
8102
8103 # Check whether --with-mpfr-lib was given.
8104 if test "${with_mpfr_lib+set}" = set; then :
8105 withval=$with_mpfr_lib;
8106 fi
8107
8108
8109 if test "x$with_mpfr" != x; then
8110 gmplibs="-L$with_mpfr/lib $gmplibs"
8111 gmpinc="-I$with_mpfr/include $gmpinc"
8112 fi
8113 if test "x$with_mpfr_include" != x; then
8114 gmpinc="-I$with_mpfr_include $gmpinc"
8115 fi
8116 if test "x$with_mpfr_lib" != x; then
8117 gmplibs="-L$with_mpfr_lib $gmplibs"
8118 fi
8119 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8120 # MPFR v3.1.0 moved the sources into a src sub-directory.
8121 if ! test -d ${srcdir}/mpfr/src; then
8122 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8123 fi
8124 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8125 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8126 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8127 # Do not test the mpfr version. Assume that it is sufficient, since
8128 # it is in the source tree, and the library has not been built yet
8129 # but it would be included on the link line in the version check below
8130 # hence making the test fail.
8131 have_gmp=yes
8132 fi
8133
8134 # Specify a location for gmp
8135
8136 # Check whether --with-gmp was given.
8137 if test "${with_gmp+set}" = set; then :
8138 withval=$with_gmp;
8139 fi
8140
8141
8142 # Check whether --with-gmp-include was given.
8143 if test "${with_gmp_include+set}" = set; then :
8144 withval=$with_gmp_include;
8145 fi
8146
8147
8148 # Check whether --with-gmp-lib was given.
8149 if test "${with_gmp_lib+set}" = set; then :
8150 withval=$with_gmp_lib;
8151 fi
8152
8153
8154
8155 if test "x$with_gmp" != x; then
8156 gmplibs="-L$with_gmp/lib $gmplibs"
8157 gmpinc="-I$with_gmp/include $gmpinc"
8158 fi
8159 if test "x$with_gmp_include" != x; then
8160 gmpinc="-I$with_gmp_include $gmpinc"
8161 fi
8162 if test "x$with_gmp_lib" != x; then
8163 gmplibs="-L$with_gmp_lib $gmplibs"
8164 fi
8165 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8166 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8167 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8168 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8169 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8170 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8171 # Do not test the gmp version. Assume that it is sufficient, since
8172 # it is in the source tree, and the library has not been built yet
8173 # but it would be included on the link line in the version check below
8174 # hence making the test fail.
8175 have_gmp=yes
8176 fi
8177
8178 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8179 have_gmp=yes
8180 saved_CFLAGS="$CFLAGS"
8181 CFLAGS="$CFLAGS $gmpinc"
8182 # Check for the recommended and required versions of GMP.
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8184 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 #include "gmp.h"
8188 int
8189 main ()
8190 {
8191
8192 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8193 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8194 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8195 choke me
8196 #endif
8197
8198 ;
8199 return 0;
8200 }
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 #include <gmp.h>
8206 int
8207 main ()
8208 {
8209
8210 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8211 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8212 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8213 choke me
8214 #endif
8215
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8222 $as_echo "yes" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8225 $as_echo "buggy but acceptable" >&6; }
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }; have_gmp=no
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233
8234 # If we have GMP, check the MPFR version.
8235 if test x"$have_gmp" = xyes; then
8236 # Check for the recommended and required versions of MPFR.
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8238 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 #include <gmp.h>
8242 #include <mpfr.h>
8243 int
8244 main ()
8245 {
8246
8247 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8248 choke me
8249 #endif
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 #include <gmp.h>
8259 #include <mpfr.h>
8260 int
8261 main ()
8262 {
8263
8264 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8265 choke me
8266 #endif
8267
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274 $as_echo "yes" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8277 $as_echo "buggy but acceptable" >&6; }
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }; have_gmp=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 fi
8286
8287 # Check for the MPC header version.
8288 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8289 # Check for the recommended and required versions of MPC.
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8291 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 #include <mpc.h>
8295 int
8296 main ()
8297 {
8298
8299 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8300 choke me
8301 #endif
8302
8303 ;
8304 return 0;
8305 }
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 #include <mpc.h>
8311 int
8312 main ()
8313 {
8314
8315 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8316 choke me
8317 #endif
8318
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8325 $as_echo "yes" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8328 $as_echo "buggy but acceptable" >&6; }
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }; have_gmp=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337
8338 # Now check the MPFR library.
8339 if test x"$have_gmp" = xyes; then
8340 saved_LIBS="$LIBS"
8341 LIBS="$LIBS $gmplibs"
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8343 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 #include <mpfr.h>
8347 int
8348 main ()
8349 {
8350
8351 mpfr_t n;
8352 mpfr_t x;
8353 int t;
8354 mpfr_init (n);
8355 mpfr_init (x);
8356 mpfr_atan2 (n, n, x, MPFR_RNDN);
8357 mpfr_erfc (n, x, MPFR_RNDN);
8358 mpfr_subnormalize (x, t, MPFR_RNDN);
8359 mpfr_clear(n);
8360 mpfr_clear(x);
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"; then :
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8368 $as_echo "yes" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }; have_gmp=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 LIBS="$saved_LIBS"
8376 fi
8377
8378 # Now check the MPC library
8379 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8380 saved_LIBS="$LIBS"
8381 LIBS="$LIBS $gmplibs"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8383 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <mpc.h>
8387 int
8388 main ()
8389 {
8390
8391 mpc_t c;
8392 mpc_init2 (c, 53);
8393 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8394 mpc_cosh (c, c, MPC_RNDNN);
8395 mpc_pow (c, c, c, MPC_RNDNN);
8396 mpc_acosh (c, c, MPC_RNDNN);
8397 mpc_clear (c);
8398
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }; have_gmp=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 LIBS="$saved_LIBS"
8413 fi
8414
8415 CFLAGS="$saved_CFLAGS"
8416
8417 # The library versions listed in the error message below should match
8418 # the HARD-minimums enforced above.
8419 if test x$have_gmp != xyes; then
8420 if test -d ${srcdir}/gcc ; then
8421 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8422 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8423 their locations. Source code for these libraries can be found at
8424 their respective hosting sites as well as at
8425 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8426 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8427 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8428 make sure that you have installed both the libraries and the header
8429 files. They may be located in separate packages." "$LINENO" 5
8430 else
8431 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8432 Try the --with-gmp and/or --with-mpfr options to specify
8433 their locations. If you obtained GMP and/or MPFR from a vendor
8434 distribution package, make sure that you have installed both the libraries
8435 and the header files. They may be located in separate packages." "$LINENO" 5
8436 fi
8437 fi
8438 fi
8439
8440 # Flags needed for both GMP, MPFR and/or MPC.
8441
8442
8443
8444
8445
8446
8447
8448 # Libraries to use for stage1 or when not bootstrapping.
8449
8450 # Check whether --with-stage1-libs was given.
8451 if test "${with_stage1_libs+set}" = set; then :
8452 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8453 stage1_libs=
8454 else
8455 stage1_libs=$withval
8456 fi
8457 else
8458 stage1_libs=
8459 fi
8460
8461
8462
8463 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8464 # default is yes if gcc is being built; no otherwise. The reason for
8465 # this default is that gdb is sometimes linked against GNU Source
8466 # Highlight, which is a shared library that uses C++ exceptions. In
8467 # this case, -static-libstdc++ will cause crashes.
8468
8469 # Check whether --with-static-standard-libraries was given.
8470 if test "${with_static_standard_libraries+set}" = set; then :
8471 withval=$with_static_standard_libraries;
8472 else
8473 with_static_standard_libraries=auto
8474 fi
8475
8476 if test "$with_static_standard_libraries" = auto; then
8477 with_static_standard_libraries=$have_compiler
8478 fi
8479
8480 # Linker flags to use for stage1 or when not bootstrapping.
8481
8482 # Check whether --with-stage1-ldflags was given.
8483 if test "${with_stage1_ldflags+set}" = set; then :
8484 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8485 stage1_ldflags=
8486 else
8487 stage1_ldflags=$withval
8488 fi
8489 else
8490 stage1_ldflags=
8491 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8492 # if supported. But if the user explicitly specified the libraries to use,
8493 # trust that they are doing what they want.
8494 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8495 -a "$have_static_libs" = yes; then
8496 stage1_ldflags="-static-libstdc++ -static-libgcc"
8497 fi
8498 fi
8499
8500
8501
8502 # Libraries to use for stage2 and later builds.
8503
8504 # Check whether --with-boot-libs was given.
8505 if test "${with_boot_libs+set}" = set; then :
8506 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8507 poststage1_libs=
8508 else
8509 poststage1_libs=$withval
8510 fi
8511 else
8512 poststage1_libs=
8513 fi
8514
8515
8516
8517 # Linker flags to use for stage2 and later builds.
8518
8519 # Check whether --with-boot-ldflags was given.
8520 if test "${with_boot_ldflags+set}" = set; then :
8521 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8522 poststage1_ldflags=
8523 else
8524 poststage1_ldflags=$withval
8525 fi
8526 else
8527 poststage1_ldflags=
8528 # In stages 2 and 3, default to linking libstdc++ and libgcc
8529 # statically. But if the user explicitly specified the libraries to
8530 # use, trust that they are doing what they want.
8531 if test "$poststage1_libs" = ""; then
8532 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8533 fi
8534 fi
8535
8536
8537
8538 # GCC GRAPHITE dependency isl.
8539 # Basic setup is inlined here, actual checks are in config/isl.m4
8540
8541
8542 # Check whether --with-isl was given.
8543 if test "${with_isl+set}" = set; then :
8544 withval=$with_isl;
8545 fi
8546
8547
8548 # Treat --without-isl as a request to disable
8549 # GRAPHITE support and skip all following checks.
8550 if test "x$with_isl" != "xno"; then
8551 # Check for isl
8552
8553
8554 # Check whether --with-isl-include was given.
8555 if test "${with_isl_include+set}" = set; then :
8556 withval=$with_isl_include;
8557 fi
8558
8559
8560 # Check whether --with-isl-lib was given.
8561 if test "${with_isl_lib+set}" = set; then :
8562 withval=$with_isl_lib;
8563 fi
8564
8565
8566 # Check whether --enable-isl-version-check was given.
8567 if test "${enable_isl_version_check+set}" = set; then :
8568 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8569 else
8570 ENABLE_ISL_CHECK=yes
8571 fi
8572
8573
8574 # Initialize isllibs and islinc.
8575 case $with_isl in
8576 no)
8577 isllibs=
8578 islinc=
8579 ;;
8580 "" | yes)
8581 ;;
8582 *)
8583 isllibs="-L$with_isl/lib"
8584 islinc="-I$with_isl/include"
8585 ;;
8586 esac
8587 if test "x${with_isl_include}" != x ; then
8588 islinc="-I$with_isl_include"
8589 fi
8590 if test "x${with_isl_lib}" != x; then
8591 isllibs="-L$with_isl_lib"
8592 fi
8593 if test "x${islinc}" = x && test "x${isllibs}" = x \
8594 && test -d ${srcdir}/isl; then
8595 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8596 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8597 ENABLE_ISL_CHECK=no
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8599 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8600 fi
8601
8602 isllibs="${isllibs} -lisl"
8603
8604
8605
8606 if test "${ENABLE_ISL_CHECK}" = yes ; then
8607 _isl_saved_CFLAGS=$CFLAGS
8608 _isl_saved_LDFLAGS=$LDFLAGS
8609 _isl_saved_LIBS=$LIBS
8610
8611 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8612 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8613 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8616 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <isl/schedule.h>
8620 int
8621 main ()
8622 {
8623 isl_options_set_schedule_serialize_sccs (NULL, 0);
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 gcc_cv_isl=yes
8630 else
8631 gcc_cv_isl=no
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8636 $as_echo "$gcc_cv_isl" >&6; }
8637
8638 if test "${gcc_cv_isl}" = no ; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8640 $as_echo "required isl version is 0.15 or later" >&6; }
8641 fi
8642
8643 CFLAGS=$_isl_saved_CFLAGS
8644 LDFLAGS=$_isl_saved_LDFLAGS
8645 LIBS=$_isl_saved_LIBS
8646 fi
8647
8648
8649
8650
8651
8652
8653 if test "x${with_isl}" = xno; then
8654 graphite_requested=no
8655 elif test "x${with_isl}" != x \
8656 || test "x${with_isl_include}" != x \
8657 || test "x${with_isl_lib}" != x ; then
8658 graphite_requested=yes
8659 else
8660 graphite_requested=no
8661 fi
8662
8663
8664
8665 if test "${gcc_cv_isl}" = no ; then
8666 isllibs=
8667 islinc=
8668 fi
8669
8670 if test "${graphite_requested}" = yes \
8671 && test "x${isllibs}" = x \
8672 && test "x${islinc}" = x ; then
8673
8674 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8675 fi
8676
8677
8678 fi
8679
8680 # If the isl check failed, disable builds of in-tree variant of isl
8681 if test "x$with_isl" = xno ||
8682 test "x$gcc_cv_isl" = xno; then
8683 noconfigdirs="$noconfigdirs isl"
8684 islinc=
8685 fi
8686
8687
8688
8689
8690 # Check for LTO support.
8691 # Check whether --enable-lto was given.
8692 if test "${enable_lto+set}" = set; then :
8693 enableval=$enable_lto; enable_lto=$enableval
8694 else
8695 enable_lto=yes; default_enable_lto=yes
8696 fi
8697
8698
8699
8700
8701
8702 target_elf=no
8703 case $target in
8704 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8705 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8706 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8707 nvptx-*-none)
8708 target_elf=no
8709 ;;
8710 *)
8711 target_elf=yes
8712 ;;
8713 esac
8714
8715 if test $target_elf = yes; then :
8716 # ELF platforms build the lto-plugin always.
8717 build_lto_plugin=yes
8718
8719 else
8720 if test x"$default_enable_lto" = x"yes" ; then
8721 case $target in
8722 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8723 # On other non-ELF platforms, LTO has yet to be validated.
8724 *) enable_lto=no ;;
8725 esac
8726 else
8727 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8728 # It would also be nice to check the binutils support, but we don't
8729 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8730 # warn during gcc/ subconfigure; unless you're bootstrapping with
8731 # -flto it won't be needed until after installation anyway.
8732 case $target in
8733 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8734 *) if test x"$enable_lto" = x"yes"; then
8735 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8736 fi
8737 ;;
8738 esac
8739 fi
8740 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8741 # Build it unless LTO was explicitly disabled.
8742 case $target in
8743 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8744 *) ;;
8745 esac
8746
8747 fi
8748
8749
8750 # Check whether --enable-linker-plugin-configure-flags was given.
8751 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8752 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8753 else
8754 extra_linker_plugin_configure_flags=
8755 fi
8756
8757
8758 # Check whether --enable-linker-plugin-flags was given.
8759 if test "${enable_linker_plugin_flags+set}" = set; then :
8760 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8761 else
8762 extra_linker_plugin_flags=
8763 fi
8764
8765
8766
8767 # Enable --enable-host-shared.
8768 # Checked early to determine whether jit is an 'all' language
8769 # Check whether --enable-host-shared was given.
8770 if test "${enable_host_shared+set}" = set; then :
8771 enableval=$enable_host_shared; host_shared=$enableval
8772 case $host in
8773 x86_64-*-darwin* | aarch64-*-darwin*)
8774 if test x$host_shared != xyes ; then
8775 # PIC is the default, and actually cannot be switched off.
8776 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8777 host_shared=yes
8778 fi ;;
8779 *) ;;
8780 esac
8781 else
8782 case $host in
8783 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8784 *) host_shared=no ;;
8785 esac
8786 fi
8787
8788
8789
8790 # By default, C and C++ are the only stage 1 languages.
8791 stage1_languages=,c,
8792
8793 # Target libraries that we bootstrap.
8794 bootstrap_target_libs=,target-libgcc,
8795
8796 # Figure out what language subdirectories are present.
8797 # Look if the user specified --enable-languages="..."; if not, use
8798 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8799 # go away some day.
8800 # NB: embedded tabs in this IF block -- do not untabify
8801 if test -d ${srcdir}/gcc; then
8802 if test x"${enable_languages+set}" != xset; then
8803 if test x"${LANGUAGES+set}" = xset; then
8804 enable_languages="${LANGUAGES}"
8805 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8806 else
8807 enable_languages=default
8808 fi
8809 else
8810 if test x"${enable_languages}" = x ||
8811 test x"${enable_languages}" = xyes;
8812 then
8813 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8814 exit 1
8815 fi
8816 fi
8817 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8818
8819 # 'f95' is the old name for the 'fortran' language. We issue a warning
8820 # and make the substitution.
8821 case ,${enable_languages}, in
8822 *,f95,*)
8823 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8824 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8825 ;;
8826 esac
8827
8828 # If bootstrapping, C++ must be enabled.
8829 case ",$enable_languages,:$enable_bootstrap" in
8830 *,c++,*:*) ;;
8831 *:yes)
8832 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8833 enable_languages="${enable_languages},c++"
8834 else
8835 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8836 fi
8837 ;;
8838 esac
8839
8840 # First scan to see if an enabled language requires some other language.
8841 # We assume that a given config-lang.in will list all the language
8842 # front ends it requires, even if some are required indirectly.
8843 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8844 case ${lang_frag} in
8845 ..) ;;
8846 # The odd quoting in the next line works around
8847 # an apparent bug in bash 1.12 on linux.
8848 ${srcdir}/gcc/[*]/config-lang.in) ;;
8849 *)
8850 # From the config-lang.in, get $language, $lang_requires, and
8851 # $lang_requires_boot_languages.
8852 language=
8853 lang_requires=
8854 lang_requires_boot_languages=
8855 # set srcdir during sourcing lang_frag to the gcc dir.
8856 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8857 # polutes this shell
8858 saved_srcdir=${srcdir}
8859 srcdir=${srcdir}/gcc . ${lang_frag}
8860 srcdir=${saved_srcdir}
8861 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8862 case ,${enable_languages}, in
8863 *,$other,*) ;;
8864 *,default,*) ;;
8865 *,all,*) ;;
8866 *,$language,*)
8867 echo " \`$other' language required by \`$language'; enabling" 1>&2
8868 enable_languages="${enable_languages},${other}"
8869 ;;
8870 esac
8871 done
8872 for other in ${lang_requires_boot_languages} ; do
8873 if test "$other" != "c"; then
8874 case ,${enable_stage1_languages}, in
8875 *,$other,*) ;;
8876 *,default,*) ;;
8877 *,all,*) ;;
8878 *)
8879 case ,${enable_languages}, in
8880 *,$language,*)
8881 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8882 enable_stage1_languages="$enable_stage1_languages,${other}"
8883 ;;
8884 esac
8885 ;;
8886 esac
8887 fi
8888 done
8889 ;;
8890 esac
8891 done
8892
8893 new_enable_languages=,c,
8894
8895 # If LTO is enabled, add the LTO front end.
8896 if test "$enable_lto" = "yes" ; then
8897 case ,${enable_languages}, in
8898 *,lto,*) ;;
8899 *) enable_languages="${enable_languages},lto" ;;
8900 esac
8901 if test "${build_lto_plugin}" = "yes" ; then
8902 configdirs="$configdirs lto-plugin"
8903 fi
8904 fi
8905
8906 # If we're building an offloading compiler, add the LTO front end.
8907 if test x"$enable_as_accelerator_for" != x ; then
8908 case ,${enable_languages}, in
8909 *,lto,*) ;;
8910 *) enable_languages="${enable_languages},lto" ;;
8911 esac
8912 fi
8913
8914 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8915 potential_languages=,c,
8916
8917 enabled_target_libs=
8918 disabled_target_libs=
8919
8920 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8921 case ${lang_frag} in
8922 ..) ;;
8923 # The odd quoting in the next line works around
8924 # an apparent bug in bash 1.12 on linux.
8925 ${srcdir}/gcc/[*]/config-lang.in) ;;
8926 *)
8927 # From the config-lang.in, get $language, $target_libs,
8928 # $lang_dirs, $boot_language, and $build_by_default
8929 language=
8930 target_libs=
8931 lang_dirs=
8932 subdir_requires=
8933 boot_language=no
8934 build_by_default=yes
8935 # set srcdir during sourcing. See above about save & restore
8936 saved_srcdir=${srcdir}
8937 srcdir=${srcdir}/gcc . ${lang_frag}
8938 srcdir=${saved_srcdir}
8939 if test x${language} = x; then
8940 echo "${lang_frag} doesn't set \$language." 1>&2
8941 exit 1
8942 fi
8943
8944 if test "$language" = "c++"; then
8945 boot_language=yes
8946 fi
8947
8948 add_this_lang=no
8949 # C is always enabled, so no need to add it again
8950 if test "$language" != "c"; then
8951 case ,${enable_languages}, in
8952 *,${language},*)
8953 # Language was explicitly selected; include it
8954 add_this_lang=yes
8955 ;;
8956 *,all,*)
8957 # All languages are enabled
8958 add_this_lang=all
8959 ;;
8960 *,default,*)
8961 # 'default' was selected, select it if it is a default language
8962 add_this_lang=${build_by_default}
8963 ;;
8964 esac
8965 fi
8966
8967 # Disable languages that need other directories if these aren't available.
8968 for i in $subdir_requires; do
8969 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8970 case ${add_this_lang} in
8971 yes)
8972 # Specifically requested language; tell them.
8973 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8974 ;;
8975 all)
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8977 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8978 add_this_lang=unsupported
8979 ;;
8980 *)
8981 # Silently disable.
8982 add_this_lang=unsupported
8983 ;;
8984 esac
8985 done
8986
8987 # Disable Ada if no preexisting GNAT is available.
8988 case ${add_this_lang}:${language}:${have_gnat} in
8989 yes:ada:no)
8990 # Specifically requested language; tell them.
8991 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8992 ;;
8993 all:ada:no)
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8995 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8996 add_this_lang=unsupported
8997 ;;
8998 *:ada:no)
8999 # Silently disable.
9000 add_this_lang=unsupported
9001 ;;
9002 esac
9003
9004 # Disable D if no preexisting GDC is available.
9005 case ${add_this_lang}:${language}:${have_gdc} in
9006 yes:d:no)
9007 # Specifically requested language; tell them.
9008 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9009 ;;
9010 all:d:no)
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9012 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9013 add_this_lang=unsupported
9014 ;;
9015 *:d:no)
9016 # Silently disable.
9017 add_this_lang=unsupported
9018 ;;
9019 esac
9020
9021 # Disable jit if -enable-host-shared not specified
9022 # but not if building for Mingw. All code in Windows
9023 # is position independent code (PIC).
9024 case $target in
9025 *mingw*) ;;
9026 *)
9027 case ${add_this_lang}:${language}:${host_shared} in
9028 yes:jit:no)
9029 # PR jit/64780: explicitly specify --enable-host-shared
9030 as_fn_error $? "
9031 Enabling language \"jit\" requires --enable-host-shared.
9032
9033 --enable-host-shared typically slows the rest of the compiler down by
9034 a few %, so you must explicitly enable it.
9035
9036 If you want to build both the jit and the regular compiler, it is often
9037 best to do this via two separate configure/builds, in separate
9038 directories, to avoid imposing the performance cost of
9039 --enable-host-shared on the regular compiler." "$LINENO" 5
9040 ;;
9041 all:jit:no)
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9043 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9044 add_this_lang=unsupported
9045 ;;
9046 *:jit:no)
9047 # Silently disable.
9048 add_this_lang=unsupported
9049 ;;
9050 esac
9051 ;;
9052 esac
9053
9054 # Disable a language that is unsupported by the target.
9055 case "${add_this_lang}: $unsupported_languages " in
9056 no:*) ;;
9057 unsupported:*) ;;
9058 *:*" $language "*)
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9060 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9061 add_this_lang=unsupported
9062 ;;
9063 esac
9064
9065 case $add_this_lang in
9066 unsupported)
9067 # Remove language-dependent dirs.
9068 disabled_target_libs="$disabled_target_libs $target_libs"
9069 noconfigdirs="$noconfigdirs $lang_dirs"
9070 ;;
9071 no)
9072 # Remove language-dependent dirs; still show language as supported.
9073 disabled_target_libs="$disabled_target_libs $target_libs"
9074 noconfigdirs="$noconfigdirs $lang_dirs"
9075 potential_languages="${potential_languages}${language},"
9076 ;;
9077 all|yes)
9078 new_enable_languages="${new_enable_languages}${language},"
9079 potential_languages="${potential_languages}${language},"
9080 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9081 enabled_target_libs="$enabled_target_libs $target_libs"
9082 case "${boot_language}:,$enable_stage1_languages," in
9083 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9084 # Add to (comma-separated) list of stage 1 languages.
9085 case ",$stage1_languages," in
9086 *,$language,* | ,yes, | ,all,) ;;
9087 *) stage1_languages="${stage1_languages}${language}," ;;
9088 esac
9089 # We need to bootstrap any supporting libraries.
9090 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9091 ;;
9092 esac
9093 ;;
9094 esac
9095 ;;
9096 esac
9097 done
9098
9099 # Add target libraries which are only needed for disabled languages
9100 # to noconfigdirs.
9101 if test -n "$disabled_target_libs"; then
9102 for dir in $disabled_target_libs; do
9103 case " $enabled_target_libs " in
9104 *" ${dir} "*) ;;
9105 *) noconfigdirs="$noconfigdirs $dir" ;;
9106 esac
9107 done
9108 fi
9109
9110 # Check whether --enable-stage1-languages was given.
9111 if test "${enable_stage1_languages+set}" = set; then :
9112 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9113 ,no,|,,)
9114 # Set it to something that will have no effect in the loop below
9115 enable_stage1_languages=c ;;
9116 ,yes,)
9117 enable_stage1_languages=`echo $new_enable_languages | \
9118 sed -e "s/^,//" -e "s/,$//" ` ;;
9119 *,all,*)
9120 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9121 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9122 esac
9123
9124 # Add "good" languages from enable_stage1_languages to stage1_languages,
9125 # while "bad" languages go in missing_languages. Leave no duplicates.
9126 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9127 case $potential_languages in
9128 *,$i,*)
9129 case $stage1_languages in
9130 *,$i,*) ;;
9131 *) stage1_languages="$stage1_languages$i," ;;
9132 esac ;;
9133 *)
9134 case $missing_languages in
9135 *,$i,*) ;;
9136 *) missing_languages="$missing_languages$i," ;;
9137 esac ;;
9138 esac
9139 done
9140 fi
9141
9142
9143 # Remove leading/trailing commas that were added for simplicity
9144 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9145 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9146 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9147 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9148
9149 if test "x$missing_languages" != x; then
9150 as_fn_error $? "
9151 The following requested languages could not be built: ${missing_languages}
9152 Supported languages are: ${potential_languages}" "$LINENO" 5
9153 fi
9154 if test "x$new_enable_languages" != "x$enable_languages"; then
9155 echo The following languages will be built: ${new_enable_languages}
9156 enable_languages="$new_enable_languages"
9157 fi
9158
9159
9160 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9161 fi
9162
9163 # Handle --disable-<component> generically.
9164 for dir in $configdirs $build_configdirs $target_configdirs ; do
9165 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9166 varname=`echo $dirname | sed -e s/+/_/g`
9167 if eval test x\${enable_${varname}} "=" xno ; then
9168 noconfigdirs="$noconfigdirs $dir"
9169 fi
9170 done
9171
9172 # Check for Boehm's garbage collector
9173 # Check whether --enable-objc-gc was given.
9174 if test "${enable_objc_gc+set}" = set; then :
9175 enableval=$enable_objc_gc;
9176 fi
9177
9178
9179 # Check whether --with-target-bdw-gc was given.
9180 if test "${with_target_bdw_gc+set}" = set; then :
9181 withval=$with_target_bdw_gc;
9182 fi
9183
9184
9185 # Check whether --with-target-bdw-gc-include was given.
9186 if test "${with_target_bdw_gc_include+set}" = set; then :
9187 withval=$with_target_bdw_gc_include;
9188 fi
9189
9190
9191 # Check whether --with-target-bdw-gc-lib was given.
9192 if test "${with_target_bdw_gc_lib+set}" = set; then :
9193 withval=$with_target_bdw_gc_lib;
9194 fi
9195
9196
9197 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9199 $as_echo_n "checking for bdw garbage collector... " >&6; }
9200 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9202 $as_echo "using bdw-gc in default locations" >&6; }
9203 else
9204 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9205 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9206 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9207 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9210 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9211 fi
9212 fi
9213 esac
9214
9215 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9216 case ,${enable_languages}, in
9217 *,c++,*)
9218 # Disable libitm, libsanitizer if we're not building libstdc++
9219 case "${noconfigdirs}" in
9220 *target-libstdc++-v3*)
9221 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9222 ;;
9223 *) ;;
9224 esac
9225 ;;
9226 *)
9227 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9228 ;;
9229 esac
9230
9231 # If gcc/ is not in the source tree then we'll not be building a
9232 # target compiler, assume in that case we don't want to build any
9233 # target libraries or tools.
9234 #
9235 # This was added primarily for the benefit for binutils-gdb who reuse
9236 # this configure script, but don't always have target tools available.
9237 if test ! -d ${srcdir}/gcc; then
9238 skipdirs="${skipdirs} ${target_configdirs}"
9239 fi
9240
9241 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9242 # $build_configdirs and $target_configdirs.
9243 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9244
9245 notsupp=""
9246 for dir in . $skipdirs $noconfigdirs ; do
9247 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9248 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9249 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9250 if test -r $srcdir/$dirname/configure ; then
9251 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9252 true
9253 else
9254 notsupp="$notsupp $dir"
9255 fi
9256 fi
9257 fi
9258 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9259 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9260 if test -r $srcdir/$dirname/configure ; then
9261 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9262 true
9263 else
9264 notsupp="$notsupp $dir"
9265 fi
9266 fi
9267 fi
9268 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9269 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9270 if test -r $srcdir/$dirname/configure ; then
9271 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9272 true
9273 else
9274 notsupp="$notsupp $dir"
9275 fi
9276 fi
9277 fi
9278 done
9279
9280 # Quietly strip out all directories which aren't configurable in this tree.
9281 # This relies on all configurable subdirectories being autoconfiscated, which
9282 # is now the case.
9283 build_configdirs_all="$build_configdirs"
9284 build_configdirs=
9285 for i in ${build_configdirs_all} ; do
9286 j=`echo $i | sed -e s/build-//g`
9287 if test -f ${srcdir}/$j/configure ; then
9288 build_configdirs="${build_configdirs} $i"
9289 fi
9290 done
9291
9292 configdirs_all="$configdirs"
9293 configdirs=
9294 for i in ${configdirs_all} ; do
9295 if test -f ${srcdir}/$i/configure ; then
9296 configdirs="${configdirs} $i"
9297 fi
9298 done
9299
9300 target_configdirs_all="$target_configdirs"
9301 target_configdirs=
9302 for i in ${target_configdirs_all} ; do
9303 j=`echo $i | sed -e s/target-//g`
9304 if test -f ${srcdir}/$j/configure ; then
9305 target_configdirs="${target_configdirs} $i"
9306 fi
9307 done
9308
9309 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9310 # so we have to add it after the preceding checks.
9311 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9312 then
9313 case " $configdirs " in
9314 *" libiberty "*)
9315 # If we can build libiberty, we can also build libiberty-linker-plugin.
9316 configdirs="$configdirs libiberty-linker-plugin"
9317 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9318 --with-libiberty=../libiberty-linker-plugin";;
9319 *)
9320 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9321 esac
9322 fi
9323
9324 # Sometimes we have special requirements for the host libiberty.
9325 extra_host_libiberty_configure_flags=
9326 case " $configdirs " in
9327 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9328 # When these are to be built as shared libraries, the same applies to
9329 # libiberty.
9330 extra_host_libiberty_configure_flags=--enable-shared
9331 ;;
9332 esac
9333
9334
9335 # Sometimes we have special requirements for the host zlib.
9336 extra_host_zlib_configure_flags=
9337 case " $configdirs " in
9338 *" bfd "*)
9339 # When bfd is to be built as a shared library, the same applies to
9340 # zlib.
9341 if test "$enable_shared" = "yes"; then
9342 extra_host_zlib_configure_flags=--enable-host-shared
9343 fi
9344 ;;
9345 esac
9346
9347
9348 # Produce a warning message for the subdirs we can't configure.
9349 # This isn't especially interesting in the Cygnus tree, but in the individual
9350 # FSF releases, it's important to let people know when their machine isn't
9351 # supported by the one or two programs in a package.
9352
9353 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9354 # If $appdirs is non-empty, at least one of those directories must still
9355 # be configured, or we error out. (E.g., if the gas release supports a
9356 # specified target in some subdirs but not the gas subdir, we shouldn't
9357 # pretend that all is well.)
9358 if test -n "$appdirs" ; then
9359 for dir in $appdirs ; do
9360 if test -r $dir/Makefile.in ; then
9361 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9362 appdirs=""
9363 break
9364 fi
9365 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9366 appdirs=""
9367 break
9368 fi
9369 fi
9370 done
9371 if test -n "$appdirs" ; then
9372 echo "*** This configuration is not supported by this package." 1>&2
9373 exit 1
9374 fi
9375 fi
9376 # Okay, some application will build, or we don't care to check. Still
9377 # notify of subdirs not getting built.
9378 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9379 echo " ${notsupp}" 1>&2
9380 echo " (Any other directories should still work fine.)" 1>&2
9381 fi
9382
9383 case "$host" in
9384 *msdosdjgpp*)
9385 enable_gdbtk=no ;;
9386 esac
9387
9388 # To find our prefix, in gcc_cv_tool_prefix.
9389
9390 # The user is always right.
9391 if test "${PATH_SEPARATOR+set}" != set; then
9392 echo "#! /bin/sh" >conf$$.sh
9393 echo "exit 0" >>conf$$.sh
9394 chmod +x conf$$.sh
9395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9396 PATH_SEPARATOR=';'
9397 else
9398 PATH_SEPARATOR=:
9399 fi
9400 rm -f conf$$.sh
9401 fi
9402
9403
9404 get_gcc_base_ver="cat"
9405
9406 # Check whether --with-gcc-major-version-only was given.
9407 if test "${with_gcc_major_version_only+set}" = set; then :
9408 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9409 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9410 fi
9411
9412 fi
9413
9414
9415
9416
9417
9418
9419 if test "x$exec_prefix" = xNONE; then
9420 if test "x$prefix" = xNONE; then
9421 gcc_cv_tool_prefix=$ac_default_prefix
9422 else
9423 gcc_cv_tool_prefix=$prefix
9424 fi
9425 else
9426 gcc_cv_tool_prefix=$exec_prefix
9427 fi
9428
9429 # If there is no compiler in the tree, use the PATH only. In any
9430 # case, if there is no compiler in the tree nobody should use
9431 # AS_FOR_TARGET and LD_FOR_TARGET.
9432 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9433 if test x$with_gcc_major_version_only = xyes ; then
9434 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9435 else
9436 gcc_version=`cat $srcdir/gcc/BASE-VER`
9437 fi
9438 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9439 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9440 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9441 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9442 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9444 else
9445 gcc_cv_tool_dirs=
9446 fi
9447
9448 if test x$build = x$target && test -n "$md_exec_prefix"; then
9449 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9450 fi
9451
9452
9453
9454 copy_dirs=
9455
9456
9457 # Check whether --with-build-sysroot was given.
9458 if test "${with_build_sysroot+set}" = set; then :
9459 withval=$with_build_sysroot; if test x"$withval" != x ; then
9460 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9461 fi
9462 else
9463 SYSROOT_CFLAGS_FOR_TARGET=
9464 fi
9465
9466
9467
9468
9469 # Check whether --with-debug-prefix-map was given.
9470 if test "${with_debug_prefix_map+set}" = set; then :
9471 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9472 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9473 for debug_map in $withval; do
9474 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9475 done
9476 fi
9477 else
9478 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9479 fi
9480
9481
9482
9483 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9484 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9485 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9486 # We want to ensure that TARGET libraries (which we know are built with
9487 # gcc) are built with "-O2 -g", so include those options when setting
9488 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9489 if test "x$CFLAGS_FOR_TARGET" = x; then
9490 if test "x${is_cross_compiler}" = xyes; then
9491 CFLAGS_FOR_TARGET="-g -O2"
9492 else
9493 CFLAGS_FOR_TARGET=$CFLAGS
9494 case " $CFLAGS " in
9495 *" -O2 "*) ;;
9496 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9497 esac
9498 case " $CFLAGS " in
9499 *" -g "* | *" -g3 "*) ;;
9500 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9501 esac
9502 fi
9503 fi
9504
9505
9506 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9507 if test "x${is_cross_compiler}" = xyes; then
9508 CXXFLAGS_FOR_TARGET="-g -O2"
9509 else
9510 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9511 case " $CXXFLAGS " in
9512 *" -O2 "*) ;;
9513 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9514 esac
9515 case " $CXXFLAGS " in
9516 *" -g "* | *" -g3 "*) ;;
9517 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9518 esac
9519 fi
9520 fi
9521
9522
9523
9524
9525 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9526 # the named directory are copied to $(tooldir)/sys-include.
9527 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9528 if test x${is_cross_compiler} = xno ; then
9529 echo 1>&2 '***' --with-headers is only supported when cross compiling
9530 exit 1
9531 fi
9532 if test x"${with_headers}" != xyes ; then
9533 x=${gcc_cv_tool_prefix}
9534 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9535 fi
9536 fi
9537
9538 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9539 # the name directories are copied to $(tooldir)/lib. Multiple directories
9540 # are permitted.
9541 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9542 if test x${is_cross_compiler} = xno ; then
9543 echo 1>&2 '***' --with-libs is only supported when cross compiling
9544 exit 1
9545 fi
9546 if test x"${with_libs}" != xyes ; then
9547 # Copy the libraries in reverse order, so that files in the first named
9548 # library override files in subsequent libraries.
9549 x=${gcc_cv_tool_prefix}
9550 for l in ${with_libs}; do
9551 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9552 done
9553 fi
9554 fi
9555
9556 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9557 #
9558 # This is done by determining whether or not the appropriate directory
9559 # is available, and by checking whether or not specific configurations
9560 # have requested that this magic not happen.
9561 #
9562 # The command line options always override the explicit settings in
9563 # configure.ac, and the settings in configure.ac override this magic.
9564 #
9565 # If the default for a toolchain is to use GNU as and ld, and you don't
9566 # want to do that, then you should use the --without-gnu-as and
9567 # --without-gnu-ld options for the configure script. Similarly, if
9568 # the default is to use the included zlib and you don't want to do that,
9569 # you should use the --with-system-zlib option for the configure script.
9570
9571 if test x${use_gnu_as} = x &&
9572 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9573 with_gnu_as=yes
9574 extra_host_args="$extra_host_args --with-gnu-as"
9575 fi
9576
9577 if test x${use_gnu_ld} = x &&
9578 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9579 with_gnu_ld=yes
9580 extra_host_args="$extra_host_args --with-gnu-ld"
9581 fi
9582
9583 if test x${use_included_zlib} = x &&
9584 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9585 :
9586 else
9587 with_system_zlib=yes
9588 extra_host_args="$extra_host_args --with-system-zlib"
9589 fi
9590
9591 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9592 # can detect this case.
9593
9594 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9595 with_newlib=yes
9596 extra_host_args="$extra_host_args --with-newlib"
9597 fi
9598
9599 # Handle ${copy_dirs}
9600 set fnord ${copy_dirs}
9601 shift
9602 while test $# != 0 ; do
9603 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9604 :
9605 else
9606 echo Copying $1 to $2
9607
9608 # Use the install script to create the directory and all required
9609 # parent directories.
9610 if test -d $2 ; then
9611 :
9612 else
9613 echo >config.temp
9614 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9615 fi
9616
9617 # Copy the directory, assuming we have tar.
9618 # FIXME: Should we use B in the second tar? Not all systems support it.
9619 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9620
9621 # It is the responsibility of the user to correctly adjust all
9622 # symlinks. If somebody can figure out how to handle them correctly
9623 # here, feel free to add the code.
9624
9625 echo $1 > $2/COPIED
9626 fi
9627 shift; shift
9628 done
9629
9630 # Determine a target-dependent exec_prefix that the installed
9631 # gcc will search in. Keep this list sorted by triplet, with
9632 # the *-*-osname triplets last.
9633 md_exec_prefix=
9634 case "${target}" in
9635 i[34567]86-pc-msdosdjgpp*)
9636 md_exec_prefix=/dev/env/DJDIR/bin
9637 ;;
9638 *-*-hpux* | \
9639 *-*-nto-qnx* | \
9640 *-*-solaris2*)
9641 md_exec_prefix=/usr/ccs/bin
9642 ;;
9643 esac
9644
9645 extra_arflags_for_target=
9646 extra_nmflags_for_target=
9647 extra_ranlibflags_for_target=
9648 target_makefile_frag=/dev/null
9649 case "${target}" in
9650 spu-*-*)
9651 target_makefile_frag="config/mt-spu"
9652 ;;
9653 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9654 target_makefile_frag="config/mt-sde"
9655 ;;
9656 mipsisa*-*-elfoabi*)
9657 target_makefile_frag="config/mt-mips-elfoabi"
9658 ;;
9659 mips*-*-*linux* | mips*-*-gnu*)
9660 target_makefile_frag="config/mt-mips-gnu"
9661 ;;
9662 nios2-*-elf*)
9663 target_makefile_frag="config/mt-nios2-elf"
9664 ;;
9665 *-*-linux-android*)
9666 target_makefile_frag="config/mt-android"
9667 ;;
9668 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9669 target_makefile_frag="config/mt-gnu"
9670 ;;
9671 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9672 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9673 # commands to handle both 32-bit and 64-bit objects. These flags are
9674 # harmless if we're using GNU nm or ar.
9675 extra_arflags_for_target=" -X32_64"
9676 extra_nmflags_for_target=" -B -X32_64"
9677 ;;
9678 esac
9679
9680 alphaieee_frag=/dev/null
9681 case $target in
9682 alpha*-*-*)
9683 # This just makes sure to use the -mieee option to build target libs.
9684 # This should probably be set individually by each library.
9685 alphaieee_frag="config/mt-alphaieee"
9686 ;;
9687 esac
9688
9689 # If --enable-target-optspace always use -Os instead of -O2 to build
9690 # the target libraries, similarly if it is not specified, use -Os
9691 # on selected platforms.
9692 ospace_frag=/dev/null
9693 case "${enable_target_optspace}:${target}" in
9694 yes:*)
9695 ospace_frag="config/mt-ospace"
9696 ;;
9697 :d30v-*)
9698 ospace_frag="config/mt-d30v"
9699 ;;
9700 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9701 ospace_frag="config/mt-ospace"
9702 ;;
9703 no:* | :*)
9704 ;;
9705 *)
9706 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9707 ;;
9708 esac
9709
9710 # Some systems (e.g., one of the i386-aix systems the gas testers are
9711 # using) don't handle "\$" correctly, so don't use it here.
9712 tooldir='${exec_prefix}'/${target_noncanonical}
9713 build_tooldir=${tooldir}
9714
9715 # Create a .gdbinit file which runs the one in srcdir
9716 # and tells GDB to look there for source files.
9717
9718 if test -r ${srcdir}/.gdbinit ; then
9719 case ${srcdir} in
9720 .) ;;
9721 *) cat > ./.gdbinit <<EOF
9722 # ${NO_EDIT}
9723 dir ${srcdir}
9724 dir .
9725 source ${srcdir}/.gdbinit
9726 EOF
9727 ;;
9728 esac
9729 fi
9730
9731 # Make sure that the compiler is able to generate an executable. If it
9732 # can't, we are probably in trouble. We don't care whether we can run the
9733 # executable--we might be using a cross compiler--we only care whether it
9734 # can be created. At this point the main configure script has set CC.
9735 we_are_ok=no
9736 echo "int main () { return 0; }" > conftest.c
9737 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9738 if test $? = 0 ; then
9739 if test -s conftest || test -s conftest.exe ; then
9740 we_are_ok=yes
9741 fi
9742 fi
9743 case $we_are_ok in
9744 no)
9745 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9746 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9747 rm -f conftest*
9748 exit 1
9749 ;;
9750 esac
9751 rm -f conftest*
9752
9753 # Decide which environment variable is used to find dynamic libraries.
9754 case "${host}" in
9755 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9756 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9757 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9758 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9759 esac
9760
9761 # On systems where the dynamic library environment variable is PATH,
9762 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9763 # built executables to PATH.
9764 if test "$RPATH_ENVVAR" = PATH; then
9765 GCC_SHLIB_SUBDIR=/shlib
9766 else
9767 GCC_SHLIB_SUBDIR=
9768 fi
9769
9770 # Adjust the toplevel makefile according to whether bootstrap was selected.
9771 case $enable_bootstrap in
9772 yes)
9773 bootstrap_suffix=bootstrap
9774 BUILD_CONFIG=bootstrap-debug
9775 ;;
9776 no)
9777 bootstrap_suffix=no-bootstrap
9778 BUILD_CONFIG=
9779 ;;
9780 esac
9781
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9783 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9784
9785
9786 # Check whether --with-build-config was given.
9787 if test "${with_build_config+set}" = set; then :
9788 withval=$with_build_config; case $with_build_config in
9789 yes) with_build_config= ;;
9790 no) with_build_config= BUILD_CONFIG= ;;
9791 esac
9792 fi
9793
9794
9795 if test "x${with_build_config}" != x; then
9796 BUILD_CONFIG=$with_build_config
9797 else
9798 case $BUILD_CONFIG in
9799 bootstrap-debug)
9800 if echo "int f (void) { return 0; }" > conftest.c &&
9801 ${CC} -c conftest.c &&
9802 mv conftest.o conftest.o.g0 &&
9803 ${CC} -c -g conftest.c &&
9804 mv conftest.o conftest.o.g &&
9805 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9806 :
9807 else
9808 BUILD_CONFIG=
9809 fi
9810 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9811 ;;
9812 esac
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9815 $as_echo "$BUILD_CONFIG" >&6; }
9816
9817
9818 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9820 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9821 # Check whether --enable-vtable-verify was given.
9822 if test "${enable_vtable_verify+set}" = set; then :
9823 enableval=$enable_vtable_verify; case "$enableval" in
9824 yes) enable_vtable_verify=yes ;;
9825 no) enable_vtable_verify=no ;;
9826 *) enable_vtable_verify=no;;
9827 esac
9828 else
9829 enable_vtable_verify=no
9830 fi
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9833 $as_echo "$enable_vtable_verify" >&6; }
9834
9835 # Record target_configdirs and the configure arguments for target and
9836 # build configuration in Makefile.
9837 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9838 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9839 bootstrap_fixincludes=no
9840
9841 # If we are building libgomp, bootstrap it.
9842 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9843 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9844 fi
9845
9846 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9847 # or bootstrap-ubsan, bootstrap it.
9848 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9849 case "$BUILD_CONFIG" in
9850 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9851 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9852 bootstrap_fixincludes=yes
9853 ;;
9854 esac
9855 fi
9856
9857 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9858 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9859 test "$enable_vtable_verify" != no; then
9860 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9861 fi
9862
9863 # If we are building libatomic and the list of enabled languages includes the
9864 # D frontend, bootstrap it.
9865 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9866 case ,${enable_languages}, in
9867 *,d,*)
9868 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9869 ;;
9870 esac
9871 fi
9872
9873 # Determine whether gdb needs tk/tcl or not.
9874 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9875 # and in that case we want gdb to be built without tk. Ugh!
9876 # In fact I believe gdb is the *only* package directly dependent on tk,
9877 # so we should be able to put the 'maybe's in unconditionally and
9878 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9879 # 100% sure that that's safe though.
9880
9881 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9882 case "$enable_gdbtk" in
9883 no)
9884 GDB_TK="" ;;
9885 yes)
9886 GDB_TK="${gdb_tk}" ;;
9887 *)
9888 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9889 # distro. Eventually someone will fix this and move Insight, nee
9890 # gdbtk to a separate directory.
9891 if test -d ${srcdir}/gdb/gdbtk ; then
9892 GDB_TK="${gdb_tk}"
9893 else
9894 GDB_TK=""
9895 fi
9896 ;;
9897 esac
9898 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9899 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9900
9901 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9902 # else does, only include them if one of these is built. The Makefile
9903 # provides the ordering, so it's enough here to add to the list.
9904 case " ${configdirs} " in
9905 *\ gdb\ *)
9906 configdirs="${configdirs} gnulib gdbsupport"
9907 ;;
9908 *\ gdbserver\ *)
9909 configdirs="${configdirs} gnulib gdbsupport"
9910 ;;
9911 *\ sim\ *)
9912 configdirs="${configdirs} gnulib"
9913 ;;
9914 esac
9915
9916 # Strip out unwanted targets.
9917
9918 # While at that, we remove Makefiles if we were started for recursive
9919 # configuration, so that the top-level Makefile reconfigures them,
9920 # like we used to do when configure itself was recursive.
9921
9922 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9923 # but now we're fixing up the Makefile ourselves with the additional
9924 # commands passed to AC_CONFIG_FILES. Use separate variables
9925 # extrasub-{build,host,target} not because there is any reason to split
9926 # the substitutions up that way, but only to remain below the limit of
9927 # 99 commands in a script, for HP-UX sed.
9928
9929 # Do not nest @if/@endif or @unless/@endunless pairs, because
9930 # configure will not warn you at all.
9931
9932 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9933 yes:yes:*\ gold\ *:*,c++,*) ;;
9934 yes:yes:*\ gold\ *:*)
9935 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9936 ;;
9937 esac
9938
9939 extrasub_build=
9940 for module in ${build_configdirs} ; do
9941 if test -z "${no_recursion}" \
9942 && test -f ${build_subdir}/${module}/Makefile; then
9943 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9944 rm -f ${build_subdir}/${module}/Makefile
9945 fi
9946 extrasub_build="$extrasub_build
9947 /^@if build-$module\$/d
9948 /^@endif build-$module\$/d
9949 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9950 /^@if build-$module-$bootstrap_suffix\$/d
9951 /^@endif build-$module-$bootstrap_suffix\$/d
9952 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9953 done
9954 extrasub_host=
9955 for module in ${configdirs} ; do
9956 if test -z "${no_recursion}"; then
9957 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9958 if test -f ${file}; then
9959 echo 1>&2 "*** removing ${file} to force reconfigure"
9960 rm -f ${file}
9961 fi
9962 done
9963 fi
9964 case ${module},${bootstrap_fixincludes} in
9965 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9966 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9967 esac
9968 extrasub_host="$extrasub_host
9969 /^@if $module\$/d
9970 /^@endif $module\$/d
9971 /^@unless $module\$/,/^@endunless $module\$/d
9972 /^@if $module-$host_bootstrap_suffix\$/d
9973 /^@endif $module-$host_bootstrap_suffix\$/d
9974 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9975 done
9976 extrasub_target=
9977 for module in ${target_configdirs} ; do
9978 if test -z "${no_recursion}" \
9979 && test -f ${target_subdir}/${module}/Makefile; then
9980 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9981 rm -f ${target_subdir}/${module}/Makefile
9982 fi
9983
9984 # We only bootstrap target libraries listed in bootstrap_target_libs.
9985 case $bootstrap_target_libs in
9986 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9987 *) target_bootstrap_suffix=no-bootstrap ;;
9988 esac
9989
9990 extrasub_target="$extrasub_target
9991 /^@if target-$module\$/d
9992 /^@endif target-$module\$/d
9993 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9994 /^@if target-$module-$target_bootstrap_suffix\$/d
9995 /^@endif target-$module-$target_bootstrap_suffix\$/d
9996 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9997 done
9998
9999 # Do the final fixup along with target modules.
10000 extrasub_target="$extrasub_target
10001 /^@if /,/^@endif /d
10002 /^@unless /d
10003 /^@endunless /d"
10004
10005 if test "$enable_pgo_build" != "no"; then
10006 extrasub_build="$extrasub_build
10007 /^@if pgo-build\$/d
10008 /^@endif pgo-build\$/d"
10009 fi
10010
10011 # Create the serialization dependencies. This uses a temporary file.
10012
10013 # Check whether --enable-serial-configure was given.
10014 if test "${enable_serial_configure+set}" = set; then :
10015 enableval=$enable_serial_configure;
10016 fi
10017
10018
10019 case ${enable_serial_configure} in
10020 yes)
10021 enable_serial_build_configure=yes
10022 enable_serial_host_configure=yes
10023 enable_serial_target_configure=yes
10024 ;;
10025 esac
10026
10027 # These force 'configure's to be done one at a time, to avoid problems
10028 # with contention over a shared config.cache.
10029 rm -f serdep.tmp
10030 echo '# serdep.tmp' > serdep.tmp
10031 olditem=
10032 test "x${enable_serial_build_configure}" = xyes &&
10033 for item in ${build_configdirs} ; do
10034 case ${olditem} in
10035 "") ;;
10036 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10037 esac
10038 olditem=${item}
10039 done
10040 olditem=
10041 test "x${enable_serial_host_configure}" = xyes &&
10042 for item in ${configdirs} ; do
10043 case ${olditem} in
10044 "") ;;
10045 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10046 esac
10047 olditem=${item}
10048 done
10049 olditem=
10050 test "x${enable_serial_target_configure}" = xyes &&
10051 for item in ${target_configdirs} ; do
10052 case ${olditem} in
10053 "") ;;
10054 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10055 esac
10056 olditem=${item}
10057 done
10058 serialization_dependencies=serdep.tmp
10059
10060
10061 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10062 # target, nonopt, and variable assignments. These are the ones we
10063 # might not want to pass down to subconfigures. The exception being
10064 # --cache-file=/dev/null, which is used to turn off the use of cache
10065 # files altogether, and which should be passed on to subconfigures.
10066 # Also strip program-prefix, program-suffix, and program-transform-name,
10067 # so that we can pass down a consistent program-transform-name.
10068 baseargs=
10069 tbaseargs=
10070 keep_next=no
10071 skip_next=no
10072 eval "set -- $ac_configure_args"
10073 for ac_arg
10074 do
10075 if test X"$skip_next" = X"yes"; then
10076 skip_next=no
10077 continue
10078 fi
10079 if test X"$keep_next" = X"yes"; then
10080 case $ac_arg in
10081 *\'*)
10082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10083 esac
10084 baseargs="$baseargs '$ac_arg'"
10085 tbaseargs="$tbaseargs '$ac_arg'"
10086 keep_next=no
10087 continue
10088 fi
10089
10090 # Handle separated arguments. Based on the logic generated by
10091 # autoconf 2.59.
10092 case $ac_arg in
10093 *=* | --config-cache | -C | -disable-* | --disable-* \
10094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10096 | -with-* | --with-* | -without-* | --without-* | --x)
10097 separate_arg=no
10098 ;;
10099 -*)
10100 separate_arg=yes
10101 ;;
10102 *)
10103 separate_arg=no
10104 ;;
10105 esac
10106
10107 skip_targ=no
10108 case $ac_arg in
10109
10110 --with-* | --without-*)
10111 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10112
10113 case $libopt in
10114 *[-_]include)
10115 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10116 ;;
10117 *[-_]lib)
10118 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10119 ;;
10120 *)
10121 lib=$libopt
10122 ;;
10123 esac
10124
10125
10126 case $lib in
10127 mpc | mpfr | gmp | isl)
10128 # If we're processing --with-$lib, --with-$lib-include or
10129 # --with-$lib-lib, for one of the libs above, and target is
10130 # different from host, don't pass the current argument to any
10131 # target library's configure.
10132 if test x$is_cross_compiler = xyes; then
10133 skip_targ=yes
10134 fi
10135 ;;
10136 esac
10137 ;;
10138 esac
10139
10140 case "$ac_arg" in
10141 --cache-file=/dev/null | \
10142 -cache-file=/dev/null )
10143 # Handled here to avoid the test to skip args below.
10144 baseargs="$baseargs '$ac_arg'"
10145 tbaseargs="$tbaseargs '$ac_arg'"
10146 # Assert: $separate_arg should always be no.
10147 keep_next=$separate_arg
10148 ;;
10149 --no*)
10150 continue
10151 ;;
10152 --c* | \
10153 --sr* | \
10154 --ho* | \
10155 --bu* | \
10156 --t* | \
10157 --program-* | \
10158 -cache_file* | \
10159 -srcdir* | \
10160 -host* | \
10161 -build* | \
10162 -target* | \
10163 -program-prefix* | \
10164 -program-suffix* | \
10165 -program-transform-name* )
10166 skip_next=$separate_arg
10167 continue
10168 ;;
10169 -*)
10170 # An option. Add it.
10171 case $ac_arg in
10172 *\'*)
10173 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10174 esac
10175 baseargs="$baseargs '$ac_arg'"
10176 if test X"$skip_targ" = Xno; then
10177 tbaseargs="$tbaseargs '$ac_arg'"
10178 fi
10179 keep_next=$separate_arg
10180 ;;
10181 *)
10182 # Either a variable assignment, or a nonopt (triplet). Don't
10183 # pass it down; let the Makefile handle this.
10184 continue
10185 ;;
10186 esac
10187 done
10188 # Remove the initial space we just introduced and, as these will be
10189 # expanded by make, quote '$'.
10190 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10191
10192 # Add in --program-transform-name, after --program-prefix and
10193 # --program-suffix have been applied to it. Autoconf has already
10194 # doubled dollar signs and backslashes in program_transform_name; we want
10195 # the backslashes un-doubled, and then the entire thing wrapped in single
10196 # quotes, because this will be expanded first by make and then by the shell.
10197 # Also, because we want to override the logic in subdir configure scripts to
10198 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10199 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10200 ${program_transform_name}
10201 EOF_SED
10202 gcc_transform_name=`cat conftestsed.out`
10203 rm -f conftestsed.out
10204 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10205 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10206 if test "$silent" = yes; then
10207 baseargs="$baseargs --silent"
10208 tbaseargs="$tbaseargs --silent"
10209 fi
10210
10211 baseargs="$baseargs --disable-option-checking"
10212 tbaseargs="$tbaseargs --disable-option-checking"
10213
10214 if test "$enable_year2038" = no; then
10215 baseargs="$baseargs --disable-year2038"
10216 tbaseargs="$tbaseargs --disable-year2038"
10217 fi
10218
10219 # Record and document user additions to sub configure arguments.
10220
10221
10222
10223
10224 # For the build-side libraries, we just need to pretend we're native,
10225 # and not use the same cache file. Multilibs are neither needed nor
10226 # desired. We can't even use the same cache file for all build-side
10227 # libraries, as they're compiled differently; some with C, some with
10228 # C++ or with different feature-enabling options.
10229 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10230
10231 # For host modules, accept cache file option, or specification as blank.
10232 case "${cache_file}" in
10233 "") # empty
10234 cache_file_option="" ;;
10235 /* | [A-Za-z]:[\\/]* ) # absolute path
10236 cache_file_option="--cache-file=${cache_file}" ;;
10237 *) # relative path
10238 cache_file_option="--cache-file=../${cache_file}" ;;
10239 esac
10240
10241 # Host dirs don't like to share a cache file either, horribly enough.
10242 # This seems to be due to autoconf 2.5x stupidity.
10243 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10244
10245 target_configargs="$target_configargs ${tbaseargs}"
10246
10247 # Passing a --with-cross-host argument lets the target libraries know
10248 # whether they are being built with a cross-compiler or being built
10249 # native. However, it would be better to use other mechanisms to make the
10250 # sorts of decisions they want to make on this basis. Please consider
10251 # this option to be deprecated. FIXME.
10252 if test x${is_cross_compiler} = xyes ; then
10253 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10254 fi
10255
10256 # Special user-friendly check for native x86_64-linux build, if
10257 # multilib is not explicitly enabled.
10258 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10259 x86_64-*linux*:yes:$build:$build:)
10260 # Make sure we have a development environment that handles 32-bit
10261 dev64=no
10262 echo "int main () { return 0; }" > conftest.c
10263 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10264 if test $? = 0 ; then
10265 if test -s conftest || test -s conftest.exe ; then
10266 dev64=yes
10267 fi
10268 fi
10269 rm -f conftest*
10270 if test x${dev64} != xyes ; then
10271 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
10272 fi
10273 ;;
10274 esac
10275
10276 # Default to --enable-multilib.
10277 if test x${enable_multilib} = x ; then
10278 target_configargs="--enable-multilib ${target_configargs}"
10279 fi
10280
10281 # Pass --with-newlib if appropriate. Note that target_configdirs has
10282 # changed from the earlier setting of with_newlib.
10283 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10284 target_configargs="--with-newlib ${target_configargs}"
10285 fi
10286
10287 # Different target subdirs use different values of certain variables
10288 # (notably CXX). Worse, multilibs use *lots* of different values.
10289 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10290 # it doesn't automatically accept command-line overrides of them.
10291 # This means it's not safe for target subdirs to share a cache file,
10292 # which is disgusting, but there you have it. Hopefully this can be
10293 # fixed in future. It's still worthwhile to use a cache file for each
10294 # directory. I think.
10295
10296 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10297 # We need to pass --target, as newer autoconf's requires consistency
10298 # for target_alias and gcc doesn't manage it consistently.
10299 target_configargs="--cache-file=./config.cache ${target_configargs}"
10300
10301 FLAGS_FOR_TARGET=
10302 case " $target_configdirs " in
10303 *" newlib "*)
10304 case " $target_configargs " in
10305 *" --with-newlib "*)
10306 case "$target" in
10307 *-cygwin*)
10308 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10309 ;;
10310 esac
10311
10312 # If we're not building GCC, don't discard standard headers.
10313 if test -d ${srcdir}/gcc; then
10314 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10315
10316 if test "${build}" != "${host}"; then
10317 # On Canadian crosses, CC_FOR_TARGET will have already been set
10318 # by `configure', so we won't have an opportunity to add -Bgcc/
10319 # to it. This is right: we don't want to search that directory
10320 # for binaries, but we want the header files in there, so add
10321 # them explicitly.
10322 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10323
10324 # Someone might think of using the pre-installed headers on
10325 # Canadian crosses, in case the installed compiler is not fully
10326 # compatible with the compiler being built. In this case, it
10327 # would be better to flag an error than risking having
10328 # incompatible object files being constructed. We can't
10329 # guarantee that an error will be flagged, but let's hope the
10330 # compiler will do it, when presented with incompatible header
10331 # files.
10332 fi
10333 fi
10334
10335 case "${target}-${is_cross_compiler}" in
10336 i[3456789]86-*-linux*-no)
10337 # Here host == target, so we don't need to build gcc,
10338 # so we don't want to discard standard headers.
10339 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10340 ;;
10341 *)
10342 # If we're building newlib, use its generic headers last, but search
10343 # for any libc-related directories first (so make it the last -B
10344 # switch).
10345 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10346
10347 # If we're building libgloss, find the startup file, simulator library
10348 # and linker script.
10349 case " $target_configdirs " in
10350 *" libgloss "*)
10351 # Look for startup file, simulator library and maybe linker script.
10352 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10353 # Look for libnosys.a in case the target needs it.
10354 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10355 # Most targets have the linker script in the source directory.
10356 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10357 ;;
10358 esac
10359 ;;
10360 esac
10361 ;;
10362 esac
10363 ;;
10364 esac
10365
10366 case "$target" in
10367 x86_64-*mingw* | *-w64-mingw*)
10368 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10369 # however, use a symlink named 'mingw' in ${prefix} .
10370 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10371 ;;
10372 *-mingw*)
10373 # MinGW can't be handled as Cygwin above since it does not use newlib.
10374 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'
10375 ;;
10376 esac
10377
10378 # Allow the user to override the flags for
10379 # our build compiler if desired.
10380 if test x"${build}" = x"${host}" ; then
10381 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10382 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10383 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10384 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10385 fi
10386
10387 # On Canadian crosses, we'll be searching the right directories for
10388 # the previously-installed cross compiler, so don't bother to add
10389 # flags for directories within the install tree of the compiler
10390 # being built; programs in there won't even run.
10391 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10392 # Search for pre-installed headers if nothing else fits.
10393 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10394 fi
10395
10396 if test "x${use_gnu_ld}" = x &&
10397 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10398 # Arrange for us to find uninstalled linker scripts.
10399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10400 fi
10401
10402 # Search for other target-specific linker scripts and such.
10403 case "${target}" in
10404 mep*)
10405 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10406 ;;
10407 # The VxWorks support for shared libraries is getting in
10408 # incrementally. Make sure it doesn't get activated implicitly:
10409 *vxworks*)
10410 if test "${enable_shared-unset}" = unset ; then
10411 enable_shared=no
10412 # So the build of libraries knows ...
10413 target_configargs="${target_configargs} --disable-shared"
10414 # So gcc knows ...
10415 host_configargs="${host_configargs} --disable-shared"
10416 fi
10417 ;;
10418 esac
10419
10420 # Makefile fragments.
10421 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10422 do
10423 eval fragval=\$$frag
10424 if test $fragval != /dev/null; then
10425 eval $frag=${srcdir}/$fragval
10426 fi
10427 done
10428
10429
10430
10431
10432
10433 # Miscellanea: directories, flags, etc.
10434
10435
10436
10437
10438
10439
10440
10441
10442 # Build module lists & subconfigure args.
10443
10444
10445
10446 # Host module lists & subconfigure args.
10447
10448
10449
10450
10451 # Target module lists & subconfigure args.
10452
10453
10454
10455 # Build tools.
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476 # Generate default definitions for YACC, M4, LEX and other programs that run
10477 # on the build machine. These are used if the Makefile can't locate these
10478 # programs in objdir.
10479 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10480
10481 for ac_prog in 'bison -y' byacc yacc
10482 do
10483 # Extract the first word of "$ac_prog", so it can be a program name with args.
10484 set dummy $ac_prog; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_prog_YACC+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 if test -n "$YACC"; then
10491 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10492 else
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_prog_YACC="$ac_prog"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10503 fi
10504 done
10505 done
10506 IFS=$as_save_IFS
10507
10508 fi
10509 fi
10510 YACC=$ac_cv_prog_YACC
10511 if test -n "$YACC"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10513 $as_echo "$YACC" >&6; }
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10517 fi
10518
10519
10520 test -n "$YACC" && break
10521 done
10522 test -n "$YACC" || YACC="$MISSING bison -y"
10523
10524 case " $build_configdirs " in
10525 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10526 esac
10527
10528 for ac_prog in bison
10529 do
10530 # Extract the first word of "$ac_prog", so it can be a program name with args.
10531 set dummy $ac_prog; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_prog_BISON+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test -n "$BISON"; then
10538 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_BISON="$ac_prog"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10550 fi
10551 done
10552 done
10553 IFS=$as_save_IFS
10554
10555 fi
10556 fi
10557 BISON=$ac_cv_prog_BISON
10558 if test -n "$BISON"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10560 $as_echo "$BISON" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565
10566
10567 test -n "$BISON" && break
10568 done
10569 test -n "$BISON" || BISON="$MISSING bison"
10570
10571 case " $build_configdirs " in
10572 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10573 esac
10574
10575 for ac_prog in gm4 gnum4 m4
10576 do
10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
10578 set dummy $ac_prog; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if ${ac_cv_prog_M4+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 if test -n "$M4"; then
10585 ac_cv_prog_M4="$M4" # Let the user override the test.
10586 else
10587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588 for as_dir in $PATH
10589 do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10594 ac_cv_prog_M4="$ac_prog"
10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598 done
10599 done
10600 IFS=$as_save_IFS
10601
10602 fi
10603 fi
10604 M4=$ac_cv_prog_M4
10605 if test -n "$M4"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10607 $as_echo "$M4" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10611 fi
10612
10613
10614 test -n "$M4" && break
10615 done
10616 test -n "$M4" || M4="$MISSING m4"
10617
10618 case " $build_configdirs " in
10619 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10620 esac
10621
10622 for ac_prog in flex lex
10623 do
10624 # Extract the first word of "$ac_prog", so it can be a program name with args.
10625 set dummy $ac_prog; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if ${ac_cv_prog_LEX+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 if test -n "$LEX"; then
10632 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10636 do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_LEX="$ac_prog"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645 done
10646 done
10647 IFS=$as_save_IFS
10648
10649 fi
10650 fi
10651 LEX=$ac_cv_prog_LEX
10652 if test -n "$LEX"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10654 $as_echo "$LEX" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10658 fi
10659
10660
10661 test -n "$LEX" && break
10662 done
10663 test -n "$LEX" || LEX="$MISSING flex"
10664
10665 case " $build_configdirs " in
10666 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10667 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10668 esac
10669
10670 for ac_prog in flex
10671 do
10672 # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_prog_FLEX+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test -n "$FLEX"; then
10680 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_FLEX="$ac_prog"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10692 fi
10693 done
10694 done
10695 IFS=$as_save_IFS
10696
10697 fi
10698 fi
10699 FLEX=$ac_cv_prog_FLEX
10700 if test -n "$FLEX"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10702 $as_echo "$FLEX" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 fi
10707
10708
10709 test -n "$FLEX" && break
10710 done
10711 test -n "$FLEX" || FLEX="$MISSING flex"
10712
10713 case " $build_configdirs " in
10714 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10715 esac
10716
10717 for ac_prog in makeinfo
10718 do
10719 # Extract the first word of "$ac_prog", so it can be a program name with args.
10720 set dummy $ac_prog; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_prog_MAKEINFO+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 if test -n "$MAKEINFO"; then
10727 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_MAKEINFO="$ac_prog"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740 done
10741 done
10742 IFS=$as_save_IFS
10743
10744 fi
10745 fi
10746 MAKEINFO=$ac_cv_prog_MAKEINFO
10747 if test -n "$MAKEINFO"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10749 $as_echo "$MAKEINFO" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10754
10755
10756 test -n "$MAKEINFO" && break
10757 done
10758 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10759
10760 case " $build_configdirs " in
10761 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10762 *)
10763
10764 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10765 # higher, else we use the "missing" dummy.
10766 if ${MAKEINFO} --version \
10767 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10768 :
10769 else
10770 MAKEINFO="$MISSING makeinfo"
10771 fi
10772 ;;
10773
10774 esac
10775
10776 # FIXME: expect and dejagnu may become build tools?
10777
10778 for ac_prog in expect
10779 do
10780 # Extract the first word of "$ac_prog", so it can be a program name with args.
10781 set dummy $ac_prog; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_prog_EXPECT+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 if test -n "$EXPECT"; then
10788 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10789 else
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_EXPECT="$ac_prog"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10800 fi
10801 done
10802 done
10803 IFS=$as_save_IFS
10804
10805 fi
10806 fi
10807 EXPECT=$ac_cv_prog_EXPECT
10808 if test -n "$EXPECT"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10810 $as_echo "$EXPECT" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815
10816
10817 test -n "$EXPECT" && break
10818 done
10819 test -n "$EXPECT" || EXPECT="expect"
10820
10821 case " $configdirs " in
10822 *" expect "*)
10823 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10824 ;;
10825 esac
10826
10827 for ac_prog in runtest
10828 do
10829 # Extract the first word of "$ac_prog", so it can be a program name with args.
10830 set dummy $ac_prog; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if ${ac_cv_prog_RUNTEST+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 if test -n "$RUNTEST"; then
10837 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10841 do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_RUNTEST="$ac_prog"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850 done
10851 done
10852 IFS=$as_save_IFS
10853
10854 fi
10855 fi
10856 RUNTEST=$ac_cv_prog_RUNTEST
10857 if test -n "$RUNTEST"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10859 $as_echo "$RUNTEST" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864
10865
10866 test -n "$RUNTEST" && break
10867 done
10868 test -n "$RUNTEST" || RUNTEST="runtest"
10869
10870 case " $configdirs " in
10871 *" dejagnu "*)
10872 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10873 ;;
10874 esac
10875
10876
10877 # Host tools.
10878 ncn_tool_prefix=
10879 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10880 ncn_target_tool_prefix=
10881 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10882
10883
10884
10885 if test -n "$AR"; then
10886 ac_cv_prog_AR=$AR
10887 elif test -n "$ac_cv_prog_AR"; then
10888 AR=$ac_cv_prog_AR
10889 fi
10890
10891 if test -n "$ac_cv_prog_AR"; then
10892 for ncn_progname in ar; do
10893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_prog_AR+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 if test -n "$AR"; then
10901 ac_cv_prog_AR="$AR" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910 ac_cv_prog_AR="${ncn_progname}"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10913 fi
10914 done
10915 done
10916 IFS=$as_save_IFS
10917
10918 fi
10919 fi
10920 AR=$ac_cv_prog_AR
10921 if test -n "$AR"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10923 $as_echo "$AR" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 fi
10928
10929
10930 done
10931 fi
10932
10933 for ncn_progname in ar; do
10934 if test -n "$ncn_tool_prefix"; then
10935 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10936 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if ${ac_cv_prog_AR+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 if test -n "$AR"; then
10943 ac_cv_prog_AR="$AR" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956 done
10957 done
10958 IFS=$as_save_IFS
10959
10960 fi
10961 fi
10962 AR=$ac_cv_prog_AR
10963 if test -n "$AR"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10965 $as_echo "$AR" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970
10971
10972 fi
10973 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_AR+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test -n "$AR"; then
10982 ac_cv_prog_AR="$AR" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_AR="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995 done
10996 done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 AR=$ac_cv_prog_AR
11002 if test -n "$AR"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11004 $as_echo "$AR" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 fi
11012 test -n "$ac_cv_prog_AR" && break
11013 done
11014
11015 if test -z "$ac_cv_prog_AR" ; then
11016 set dummy ar
11017 if test $build = $host ; then
11018 AR="$2"
11019 else
11020 AR="${ncn_tool_prefix}$2"
11021 fi
11022 fi
11023
11024
11025
11026 if test -n "$AS"; then
11027 ac_cv_prog_AS=$AS
11028 elif test -n "$ac_cv_prog_AS"; then
11029 AS=$ac_cv_prog_AS
11030 fi
11031
11032 if test -n "$ac_cv_prog_AS"; then
11033 for ncn_progname in as; do
11034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11035 set dummy ${ncn_progname}; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_prog_AS+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 if test -n "$AS"; then
11042 ac_cv_prog_AS="$AS" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11046 do
11047 IFS=$as_save_IFS
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_AS="${ncn_progname}"
11052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11053 break 2
11054 fi
11055 done
11056 done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 AS=$ac_cv_prog_AS
11062 if test -n "$AS"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11064 $as_echo "$AS" >&6; }
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 fi
11069
11070
11071 done
11072 fi
11073
11074 for ncn_progname in as; do
11075 if test -n "$ncn_tool_prefix"; then
11076 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11077 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_AS+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test -n "$AS"; then
11084 ac_cv_prog_AS="$AS" # Let the user override the test.
11085 else
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097 done
11098 done
11099 IFS=$as_save_IFS
11100
11101 fi
11102 fi
11103 AS=$ac_cv_prog_AS
11104 if test -n "$AS"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11106 $as_echo "$AS" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113 fi
11114 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116 set dummy ${ncn_progname}; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_prog_AS+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 if test -n "$AS"; then
11123 ac_cv_prog_AS="$AS" # Let the user override the test.
11124 else
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11127 do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_AS="${ncn_progname}"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136 done
11137 done
11138 IFS=$as_save_IFS
11139
11140 fi
11141 fi
11142 AS=$ac_cv_prog_AS
11143 if test -n "$AS"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11145 $as_echo "$AS" >&6; }
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 fi
11150
11151
11152 fi
11153 test -n "$ac_cv_prog_AS" && break
11154 done
11155
11156 if test -z "$ac_cv_prog_AS" ; then
11157 set dummy as
11158 if test $build = $host ; then
11159 AS="$2"
11160 else
11161 AS="${ncn_tool_prefix}$2"
11162 fi
11163 fi
11164
11165
11166
11167 if test -n "$DLLTOOL"; then
11168 ac_cv_prog_DLLTOOL=$DLLTOOL
11169 elif test -n "$ac_cv_prog_DLLTOOL"; then
11170 DLLTOOL=$ac_cv_prog_DLLTOOL
11171 fi
11172
11173 if test -n "$ac_cv_prog_DLLTOOL"; then
11174 for ncn_progname in dlltool; do
11175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11176 set dummy ${ncn_progname}; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_prog_DLLTOOL+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 if test -n "$DLLTOOL"; then
11183 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11184 else
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_DLLTOOL="${ncn_progname}"
11193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 break 2
11195 fi
11196 done
11197 done
11198 IFS=$as_save_IFS
11199
11200 fi
11201 fi
11202 DLLTOOL=$ac_cv_prog_DLLTOOL
11203 if test -n "$DLLTOOL"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11205 $as_echo "$DLLTOOL" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 fi
11210
11211
11212 done
11213 fi
11214
11215 for ncn_progname in dlltool; do
11216 if test -n "$ncn_tool_prefix"; then
11217 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11218 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_prog_DLLTOOL+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test -n "$DLLTOOL"; then
11225 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 break 2
11237 fi
11238 done
11239 done
11240 IFS=$as_save_IFS
11241
11242 fi
11243 fi
11244 DLLTOOL=$ac_cv_prog_DLLTOOL
11245 if test -n "$DLLTOOL"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11247 $as_echo "$DLLTOOL" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 fi
11252
11253
11254 fi
11255 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259 $as_echo_n "checking for $ac_word... " >&6; }
11260 if ${ac_cv_prog_DLLTOOL+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 if test -n "$DLLTOOL"; then
11264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_DLLTOOL="${ncn_progname}"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277 done
11278 done
11279 IFS=$as_save_IFS
11280
11281 fi
11282 fi
11283 DLLTOOL=$ac_cv_prog_DLLTOOL
11284 if test -n "$DLLTOOL"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11286 $as_echo "$DLLTOOL" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 fi
11291
11292
11293 fi
11294 test -n "$ac_cv_prog_DLLTOOL" && break
11295 done
11296
11297 if test -z "$ac_cv_prog_DLLTOOL" ; then
11298 set dummy dlltool
11299 if test $build = $host ; then
11300 DLLTOOL="$2"
11301 else
11302 DLLTOOL="${ncn_tool_prefix}$2"
11303 fi
11304 fi
11305
11306
11307
11308 if test -n "$DSYMUTIL"; then
11309 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11310 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11312 fi
11313
11314 if test -n "$ac_cv_prog_DSYMUTIL"; then
11315 for ncn_progname in dsymutil; do
11316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 if test -n "$DSYMUTIL"; then
11324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11336 fi
11337 done
11338 done
11339 IFS=$as_save_IFS
11340
11341 fi
11342 fi
11343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11344 if test -n "$DSYMUTIL"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11346 $as_echo "$DSYMUTIL" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351
11352
11353 done
11354 fi
11355
11356 for ncn_progname in dsymutil; do
11357 if test -n "$ncn_tool_prefix"; then
11358 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11359 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 if test -n "$DSYMUTIL"; then
11366 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11367 else
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379 done
11380 done
11381 IFS=$as_save_IFS
11382
11383 fi
11384 fi
11385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11386 if test -n "$DSYMUTIL"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11388 $as_echo "$DSYMUTIL" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392 fi
11393
11394
11395 fi
11396 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398 set dummy ${ncn_progname}; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 if test -n "$DSYMUTIL"; then
11405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 fi
11423 fi
11424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11425 if test -n "$DSYMUTIL"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11427 $as_echo "$DSYMUTIL" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11431 fi
11432
11433
11434 fi
11435 test -n "$ac_cv_prog_DSYMUTIL" && break
11436 done
11437
11438 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11439 set dummy dsymutil
11440 if test $build = $host ; then
11441 DSYMUTIL="$2"
11442 else
11443 DSYMUTIL="${ncn_tool_prefix}$2"
11444 fi
11445 fi
11446
11447
11448
11449 if test -n "$LD"; then
11450 ac_cv_prog_LD=$LD
11451 elif test -n "$ac_cv_prog_LD"; then
11452 LD=$ac_cv_prog_LD
11453 fi
11454
11455 if test -n "$ac_cv_prog_LD"; then
11456 for ncn_progname in ld; do
11457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11458 set dummy ${ncn_progname}; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_prog_LD+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test -n "$LD"; then
11465 ac_cv_prog_LD="$LD" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_LD="${ncn_progname}"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478 done
11479 done
11480 IFS=$as_save_IFS
11481
11482 fi
11483 fi
11484 LD=$ac_cv_prog_LD
11485 if test -n "$LD"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11487 $as_echo "$LD" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 done
11495 fi
11496
11497 for ncn_progname in ld; do
11498 if test -n "$ncn_tool_prefix"; then
11499 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11500 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_prog_LD+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 if test -n "$LD"; then
11507 ac_cv_prog_LD="$LD" # Let the user override the test.
11508 else
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11516 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 break 2
11519 fi
11520 done
11521 done
11522 IFS=$as_save_IFS
11523
11524 fi
11525 fi
11526 LD=$ac_cv_prog_LD
11527 if test -n "$LD"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11529 $as_echo "$LD" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534
11535
11536 fi
11537 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11539 set dummy ${ncn_progname}; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_prog_LD+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 if test -n "$LD"; then
11546 ac_cv_prog_LD="$LD" # Let the user override the test.
11547 else
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555 ac_cv_prog_LD="${ncn_progname}"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11558 fi
11559 done
11560 done
11561 IFS=$as_save_IFS
11562
11563 fi
11564 fi
11565 LD=$ac_cv_prog_LD
11566 if test -n "$LD"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11568 $as_echo "$LD" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11573
11574
11575 fi
11576 test -n "$ac_cv_prog_LD" && break
11577 done
11578
11579 if test -z "$ac_cv_prog_LD" ; then
11580 set dummy ld
11581 if test $build = $host ; then
11582 LD="$2"
11583 else
11584 LD="${ncn_tool_prefix}$2"
11585 fi
11586 fi
11587
11588
11589
11590 if test -n "$LIPO"; then
11591 ac_cv_prog_LIPO=$LIPO
11592 elif test -n "$ac_cv_prog_LIPO"; then
11593 LIPO=$ac_cv_prog_LIPO
11594 fi
11595
11596 if test -n "$ac_cv_prog_LIPO"; then
11597 for ncn_progname in lipo; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599 set dummy ${ncn_progname}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_prog_LIPO+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test -n "$LIPO"; then
11606 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_LIPO="${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619 done
11620 done
11621 IFS=$as_save_IFS
11622
11623 fi
11624 fi
11625 LIPO=$ac_cv_prog_LIPO
11626 if test -n "$LIPO"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11628 $as_echo "$LIPO" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633
11634
11635 done
11636 fi
11637
11638 for ncn_progname in lipo; do
11639 if test -n "$ncn_tool_prefix"; then
11640 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_prog_LIPO+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test -n "$LIPO"; then
11648 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11660 fi
11661 done
11662 done
11663 IFS=$as_save_IFS
11664
11665 fi
11666 fi
11667 LIPO=$ac_cv_prog_LIPO
11668 if test -n "$LIPO"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11670 $as_echo "$LIPO" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677 fi
11678 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_prog_LIPO+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test -n "$LIPO"; then
11687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696 ac_cv_prog_LIPO="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11699 fi
11700 done
11701 done
11702 IFS=$as_save_IFS
11703
11704 fi
11705 fi
11706 LIPO=$ac_cv_prog_LIPO
11707 if test -n "$LIPO"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11709 $as_echo "$LIPO" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 fi
11714
11715
11716 fi
11717 test -n "$ac_cv_prog_LIPO" && break
11718 done
11719
11720 if test -z "$ac_cv_prog_LIPO" ; then
11721 set dummy lipo
11722 if test $build = $host ; then
11723 LIPO="$2"
11724 else
11725 LIPO="${ncn_tool_prefix}$2"
11726 fi
11727 fi
11728
11729
11730
11731 if test -n "$NM"; then
11732 ac_cv_prog_NM=$NM
11733 elif test -n "$ac_cv_prog_NM"; then
11734 NM=$ac_cv_prog_NM
11735 fi
11736
11737 if test -n "$ac_cv_prog_NM"; then
11738 for ncn_progname in nm; do
11739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11740 set dummy ${ncn_progname}; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_NM+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 if test -n "$NM"; then
11747 ac_cv_prog_NM="$NM" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_NM="${ncn_progname}"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 NM=$ac_cv_prog_NM
11767 if test -n "$NM"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11769 $as_echo "$NM" >&6; }
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774
11775
11776 done
11777 fi
11778
11779 for ncn_progname in nm; do
11780 if test -n "$ncn_tool_prefix"; then
11781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11782 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_prog_NM+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 if test -n "$NM"; then
11789 ac_cv_prog_NM="$NM" # Let the user override the test.
11790 else
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 break 2
11801 fi
11802 done
11803 done
11804 IFS=$as_save_IFS
11805
11806 fi
11807 fi
11808 NM=$ac_cv_prog_NM
11809 if test -n "$NM"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11811 $as_echo "$NM" >&6; }
11812 else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818 fi
11819 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11821 set dummy ${ncn_progname}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_NM+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test -n "$NM"; then
11828 ac_cv_prog_NM="$NM" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_NM="${ncn_progname}"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11840 fi
11841 done
11842 done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 NM=$ac_cv_prog_NM
11848 if test -n "$NM"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11850 $as_echo "$NM" >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857 fi
11858 test -n "$ac_cv_prog_NM" && break
11859 done
11860
11861 if test -z "$ac_cv_prog_NM" ; then
11862 set dummy nm
11863 if test $build = $host ; then
11864 NM="$2"
11865 else
11866 NM="${ncn_tool_prefix}$2"
11867 fi
11868 fi
11869
11870
11871
11872 if test -n "$RANLIB"; then
11873 ac_cv_prog_RANLIB=$RANLIB
11874 elif test -n "$ac_cv_prog_RANLIB"; then
11875 RANLIB=$ac_cv_prog_RANLIB
11876 fi
11877
11878 if test -n "$ac_cv_prog_RANLIB"; then
11879 for ncn_progname in ranlib; do
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_prog_RANLIB+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test -n "$RANLIB"; then
11888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11889 else
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11892 do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_RANLIB="${ncn_progname}"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11900 fi
11901 done
11902 done
11903 IFS=$as_save_IFS
11904
11905 fi
11906 fi
11907 RANLIB=$ac_cv_prog_RANLIB
11908 if test -n "$RANLIB"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11910 $as_echo "$RANLIB" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915
11916
11917 done
11918 fi
11919
11920 for ncn_progname in ranlib; do
11921 if test -n "$ncn_tool_prefix"; then
11922 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_prog_RANLIB+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test -n "$RANLIB"; then
11930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943 done
11944 done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 RANLIB=$ac_cv_prog_RANLIB
11950 if test -n "$RANLIB"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11952 $as_echo "$RANLIB" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958
11959 fi
11960 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11962 set dummy ${ncn_progname}; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_prog_RANLIB+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 if test -n "$RANLIB"; then
11969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11970 else
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11973 do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978 ac_cv_prog_RANLIB="${ncn_progname}"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 break 2
11981 fi
11982 done
11983 done
11984 IFS=$as_save_IFS
11985
11986 fi
11987 fi
11988 RANLIB=$ac_cv_prog_RANLIB
11989 if test -n "$RANLIB"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11991 $as_echo "$RANLIB" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996
11997
11998 fi
11999 test -n "$ac_cv_prog_RANLIB" && break
12000 done
12001
12002 if test -z "$ac_cv_prog_RANLIB" ; then
12003 RANLIB="true"
12004 fi
12005
12006
12007
12008 if test -n "$STRIP"; then
12009 ac_cv_prog_STRIP=$STRIP
12010 elif test -n "$ac_cv_prog_STRIP"; then
12011 STRIP=$ac_cv_prog_STRIP
12012 fi
12013
12014 if test -n "$ac_cv_prog_STRIP"; then
12015 for ncn_progname in strip; do
12016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017 set dummy ${ncn_progname}; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if ${ac_cv_prog_STRIP+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 if test -n "$STRIP"; then
12024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12025 else
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_STRIP="${ncn_progname}"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12036 fi
12037 done
12038 done
12039 IFS=$as_save_IFS
12040
12041 fi
12042 fi
12043 STRIP=$ac_cv_prog_STRIP
12044 if test -n "$STRIP"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12046 $as_echo "$STRIP" >&6; }
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051
12052
12053 done
12054 fi
12055
12056 for ncn_progname in strip; do
12057 if test -n "$ncn_tool_prefix"; then
12058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12059 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_STRIP+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test -n "$STRIP"; then
12066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079 done
12080 done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
12085 STRIP=$ac_cv_prog_STRIP
12086 if test -n "$STRIP"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12088 $as_echo "$STRIP" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095 fi
12096 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12098 set dummy ${ncn_progname}; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_prog_STRIP+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 if test -n "$STRIP"; then
12105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12106 else
12107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108 for as_dir in $PATH
12109 do
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for ac_exec_ext in '' $ac_executable_extensions; do
12113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12114 ac_cv_prog_STRIP="${ncn_progname}"
12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 break 2
12117 fi
12118 done
12119 done
12120 IFS=$as_save_IFS
12121
12122 fi
12123 fi
12124 STRIP=$ac_cv_prog_STRIP
12125 if test -n "$STRIP"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12127 $as_echo "$STRIP" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131 fi
12132
12133
12134 fi
12135 test -n "$ac_cv_prog_STRIP" && break
12136 done
12137
12138 if test -z "$ac_cv_prog_STRIP" ; then
12139 STRIP="true"
12140 fi
12141
12142
12143
12144 if test -n "$WINDRES"; then
12145 ac_cv_prog_WINDRES=$WINDRES
12146 elif test -n "$ac_cv_prog_WINDRES"; then
12147 WINDRES=$ac_cv_prog_WINDRES
12148 fi
12149
12150 if test -n "$ac_cv_prog_WINDRES"; then
12151 for ncn_progname in windres; do
12152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_prog_WINDRES+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$WINDRES"; then
12160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_WINDRES="${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 WINDRES=$ac_cv_prog_WINDRES
12180 if test -n "$WINDRES"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12182 $as_echo "$WINDRES" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189 done
12190 fi
12191
12192 for ncn_progname in windres; do
12193 if test -n "$ncn_tool_prefix"; then
12194 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_WINDRES+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 if test -n "$WINDRES"; then
12202 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 WINDRES=$ac_cv_prog_WINDRES
12222 if test -n "$WINDRES"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12224 $as_echo "$WINDRES" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_WINDRES+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$WINDRES"; then
12241 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_WINDRES="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 WINDRES=$ac_cv_prog_WINDRES
12261 if test -n "$WINDRES"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12263 $as_echo "$WINDRES" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 fi
12271 test -n "$ac_cv_prog_WINDRES" && break
12272 done
12273
12274 if test -z "$ac_cv_prog_WINDRES" ; then
12275 set dummy windres
12276 if test $build = $host ; then
12277 WINDRES="$2"
12278 else
12279 WINDRES="${ncn_tool_prefix}$2"
12280 fi
12281 fi
12282
12283
12284
12285 if test -n "$WINDMC"; then
12286 ac_cv_prog_WINDMC=$WINDMC
12287 elif test -n "$ac_cv_prog_WINDMC"; then
12288 WINDMC=$ac_cv_prog_WINDMC
12289 fi
12290
12291 if test -n "$ac_cv_prog_WINDMC"; then
12292 for ncn_progname in windmc; do
12293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12294 set dummy ${ncn_progname}; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_WINDMC+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$WINDMC"; then
12301 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_WINDMC="${ncn_progname}"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 WINDMC=$ac_cv_prog_WINDMC
12321 if test -n "$WINDMC"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12323 $as_echo "$WINDMC" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 done
12331 fi
12332
12333 for ncn_progname in windmc; do
12334 if test -n "$ncn_tool_prefix"; then
12335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12336 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if ${ac_cv_prog_WINDMC+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 if test -n "$WINDMC"; then
12343 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12344 else
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 break 2
12355 fi
12356 done
12357 done
12358 IFS=$as_save_IFS
12359
12360 fi
12361 fi
12362 WINDMC=$ac_cv_prog_WINDMC
12363 if test -n "$WINDMC"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12365 $as_echo "$WINDMC" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 fi
12370
12371
12372 fi
12373 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_prog_WINDMC+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test -n "$WINDMC"; then
12382 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_WINDMC="${ncn_progname}"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 WINDMC=$ac_cv_prog_WINDMC
12402 if test -n "$WINDMC"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12404 $as_echo "$WINDMC" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411 fi
12412 test -n "$ac_cv_prog_WINDMC" && break
12413 done
12414
12415 if test -z "$ac_cv_prog_WINDMC" ; then
12416 set dummy windmc
12417 if test $build = $host ; then
12418 WINDMC="$2"
12419 else
12420 WINDMC="${ncn_tool_prefix}$2"
12421 fi
12422 fi
12423
12424
12425
12426 if test -n "$OBJCOPY"; then
12427 ac_cv_prog_OBJCOPY=$OBJCOPY
12428 elif test -n "$ac_cv_prog_OBJCOPY"; then
12429 OBJCOPY=$ac_cv_prog_OBJCOPY
12430 fi
12431
12432 if test -n "$ac_cv_prog_OBJCOPY"; then
12433 for ncn_progname in objcopy; do
12434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_OBJCOPY+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$OBJCOPY"; then
12442 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_OBJCOPY="${ncn_progname}"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 OBJCOPY=$ac_cv_prog_OBJCOPY
12462 if test -n "$OBJCOPY"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12464 $as_echo "$OBJCOPY" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 done
12472 fi
12473
12474 for ncn_progname in objcopy; do
12475 if test -n "$ncn_tool_prefix"; then
12476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12477 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if ${ac_cv_prog_OBJCOPY+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 if test -n "$OBJCOPY"; then
12484 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12485 else
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12488 do
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12496 fi
12497 done
12498 done
12499 IFS=$as_save_IFS
12500
12501 fi
12502 fi
12503 OBJCOPY=$ac_cv_prog_OBJCOPY
12504 if test -n "$OBJCOPY"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12506 $as_echo "$OBJCOPY" >&6; }
12507 else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12510 fi
12511
12512
12513 fi
12514 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12516 set dummy ${ncn_progname}; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_prog_OBJCOPY+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 if test -n "$OBJCOPY"; then
12523 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_OBJCOPY="${ncn_progname}"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12535 fi
12536 done
12537 done
12538 IFS=$as_save_IFS
12539
12540 fi
12541 fi
12542 OBJCOPY=$ac_cv_prog_OBJCOPY
12543 if test -n "$OBJCOPY"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12545 $as_echo "$OBJCOPY" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552 fi
12553 test -n "$ac_cv_prog_OBJCOPY" && break
12554 done
12555
12556 if test -z "$ac_cv_prog_OBJCOPY" ; then
12557 set dummy objcopy
12558 if test $build = $host ; then
12559 OBJCOPY="$2"
12560 else
12561 OBJCOPY="${ncn_tool_prefix}$2"
12562 fi
12563 fi
12564
12565
12566
12567 if test -n "$OBJDUMP"; then
12568 ac_cv_prog_OBJDUMP=$OBJDUMP
12569 elif test -n "$ac_cv_prog_OBJDUMP"; then
12570 OBJDUMP=$ac_cv_prog_OBJDUMP
12571 fi
12572
12573 if test -n "$ac_cv_prog_OBJDUMP"; then
12574 for ncn_progname in objdump; do
12575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_OBJDUMP+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_OBJDUMP="${ncn_progname}"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596 done
12597 done
12598 IFS=$as_save_IFS
12599
12600 fi
12601 fi
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612 done
12613 fi
12614
12615 for ncn_progname in objdump; do
12616 if test -n "$ncn_tool_prefix"; then
12617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_prog_OBJDUMP+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 if test -n "$OBJDUMP"; then
12625 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12626 else
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630 IFS=$as_save_IFS
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12634 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636 break 2
12637 fi
12638 done
12639 done
12640 IFS=$as_save_IFS
12641
12642 fi
12643 fi
12644 OBJDUMP=$ac_cv_prog_OBJDUMP
12645 if test -n "$OBJDUMP"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12647 $as_echo "$OBJDUMP" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654 fi
12655 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_prog_OBJDUMP+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test -n "$OBJDUMP"; then
12664 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673 ac_cv_prog_OBJDUMP="${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677 done
12678 done
12679 IFS=$as_save_IFS
12680
12681 fi
12682 fi
12683 OBJDUMP=$ac_cv_prog_OBJDUMP
12684 if test -n "$OBJDUMP"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12686 $as_echo "$OBJDUMP" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692
12693 fi
12694 test -n "$ac_cv_prog_OBJDUMP" && break
12695 done
12696
12697 if test -z "$ac_cv_prog_OBJDUMP" ; then
12698 set dummy objdump
12699 if test $build = $host ; then
12700 OBJDUMP="$2"
12701 else
12702 OBJDUMP="${ncn_tool_prefix}$2"
12703 fi
12704 fi
12705
12706
12707
12708 if test -n "$OTOOL"; then
12709 ac_cv_prog_OTOOL=$OTOOL
12710 elif test -n "$ac_cv_prog_OTOOL"; then
12711 OTOOL=$ac_cv_prog_OTOOL
12712 fi
12713
12714 if test -n "$ac_cv_prog_OTOOL"; then
12715 for ncn_progname in otool; do
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_prog_OTOOL+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$OTOOL"; then
12724 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_OTOOL="${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737 done
12738 done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 OTOOL=$ac_cv_prog_OTOOL
12744 if test -n "$OTOOL"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12746 $as_echo "$OTOOL" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 done
12754 fi
12755
12756 for ncn_progname in otool; do
12757 if test -n "$ncn_tool_prefix"; then
12758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_prog_OTOOL+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 if test -n "$OTOOL"; then
12766 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12767 else
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779 done
12780 done
12781 IFS=$as_save_IFS
12782
12783 fi
12784 fi
12785 OTOOL=$ac_cv_prog_OTOOL
12786 if test -n "$OTOOL"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12788 $as_echo "$OTOOL" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792 fi
12793
12794
12795 fi
12796 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12798 set dummy ${ncn_progname}; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_prog_OTOOL+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test -n "$OTOOL"; then
12805 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12806 else
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_OTOOL="${ncn_progname}"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 OTOOL=$ac_cv_prog_OTOOL
12825 if test -n "$OTOOL"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12827 $as_echo "$OTOOL" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 fi
12832
12833
12834 fi
12835 test -n "$ac_cv_prog_OTOOL" && break
12836 done
12837
12838 if test -z "$ac_cv_prog_OTOOL" ; then
12839 set dummy otool
12840 if test $build = $host ; then
12841 OTOOL="$2"
12842 else
12843 OTOOL="${ncn_tool_prefix}$2"
12844 fi
12845 fi
12846
12847
12848
12849 if test -n "$READELF"; then
12850 ac_cv_prog_READELF=$READELF
12851 elif test -n "$ac_cv_prog_READELF"; then
12852 READELF=$ac_cv_prog_READELF
12853 fi
12854
12855 if test -n "$ac_cv_prog_READELF"; then
12856 for ncn_progname in readelf; do
12857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12858 set dummy ${ncn_progname}; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_prog_READELF+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 if test -n "$READELF"; then
12865 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_READELF="${ncn_progname}"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 READELF=$ac_cv_prog_READELF
12885 if test -n "$READELF"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12887 $as_echo "$READELF" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893
12894 done
12895 fi
12896
12897 for ncn_progname in readelf; do
12898 if test -n "$ncn_tool_prefix"; then
12899 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12900 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if ${ac_cv_prog_READELF+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test -n "$READELF"; then
12907 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12911 do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12919 fi
12920 done
12921 done
12922 IFS=$as_save_IFS
12923
12924 fi
12925 fi
12926 READELF=$ac_cv_prog_READELF
12927 if test -n "$READELF"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12929 $as_echo "$READELF" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935
12936 fi
12937 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12939 set dummy ${ncn_progname}; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if ${ac_cv_prog_READELF+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$READELF"; then
12946 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_prog_READELF="${ncn_progname}"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12958 fi
12959 done
12960 done
12961 IFS=$as_save_IFS
12962
12963 fi
12964 fi
12965 READELF=$ac_cv_prog_READELF
12966 if test -n "$READELF"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12968 $as_echo "$READELF" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972 fi
12973
12974
12975 fi
12976 test -n "$ac_cv_prog_READELF" && break
12977 done
12978
12979 if test -z "$ac_cv_prog_READELF" ; then
12980 set dummy readelf
12981 if test $build = $host ; then
12982 READELF="$2"
12983 else
12984 READELF="${ncn_tool_prefix}$2"
12985 fi
12986 fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12997 $as_echo_n "checking for -plugin option... " >&6; }
12998
12999 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13000 plugin_option=
13001 for plugin in $plugin_names; do
13002 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13003 if test x$plugin_so = x$plugin; then
13004 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13005 fi
13006 if test x$plugin_so != x$plugin; then
13007 plugin_option="--plugin $plugin_so"
13008 break
13009 fi
13010 done
13011 if test -n "$ac_tool_prefix"; then
13012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13013 set dummy ${ac_tool_prefix}ar; ac_word=$2
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015 $as_echo_n "checking for $ac_word... " >&6; }
13016 if ${ac_cv_prog_AR+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 if test -n "$AR"; then
13020 ac_cv_prog_AR="$AR" # Let the user override the test.
13021 else
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029 ac_cv_prog_AR="${ac_tool_prefix}ar"
13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 break 2
13032 fi
13033 done
13034 done
13035 IFS=$as_save_IFS
13036
13037 fi
13038 fi
13039 AR=$ac_cv_prog_AR
13040 if test -n "$AR"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13042 $as_echo "$AR" >&6; }
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046 fi
13047
13048
13049 fi
13050 if test -z "$ac_cv_prog_AR"; then
13051 ac_ct_AR=$AR
13052 # Extract the first word of "ar", so it can be a program name with args.
13053 set dummy ar; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 if test -n "$ac_ct_AR"; then
13060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13061 else
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13069 ac_cv_prog_ac_ct_AR="ar"
13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 break 2
13072 fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13076
13077 fi
13078 fi
13079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13080 if test -n "$ac_ct_AR"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13082 $as_echo "$ac_ct_AR" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087
13088 if test "x$ac_ct_AR" = x; then
13089 AR=""
13090 else
13091 case $cross_compiling:$ac_tool_warned in
13092 yes:)
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13095 ac_tool_warned=yes ;;
13096 esac
13097 AR=$ac_ct_AR
13098 fi
13099 else
13100 AR="$ac_cv_prog_AR"
13101 fi
13102
13103 if test "${AR}" = "" ; then
13104 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13105 fi
13106 touch conftest.c
13107 ${AR} $plugin_option rc conftest.a conftest.c
13108 if test "$?" != 0; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13110 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13111 plugin_option=
13112 fi
13113 rm -f conftest.*
13114 if test -n "$plugin_option"; then
13115 PLUGIN_OPTION="$plugin_option"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13117 $as_echo "$plugin_option" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121 fi
13122
13123 AR_PLUGIN_OPTION=
13124 RANLIB_PLUGIN_OPTION=
13125 if test -n "$PLUGIN_OPTION"; then
13126 if $AR --help 2>&1 | grep -q "\--plugin"; then
13127 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13128 fi
13129 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13130 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13131 fi
13132 fi
13133
13134
13135
13136 # Target tools.
13137
13138 # Check whether --with-build-time-tools was given.
13139 if test "${with_build_time_tools+set}" = set; then :
13140 withval=$with_build_time_tools; case x"$withval" in
13141 x/*) ;;
13142 *)
13143 with_build_time_tools=
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13145 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13146 ;;
13147 esac
13148 else
13149 with_build_time_tools=
13150 fi
13151
13152
13153
13154
13155 if test -n "$CC_FOR_TARGET"; then
13156 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13157 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13158 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13159 fi
13160
13161 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13162 for ncn_progname in cc gcc; do
13163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13164 set dummy ${ncn_progname}; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 if test -n "$CC_FOR_TARGET"; then
13171 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13172 else
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13175 do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13183 fi
13184 done
13185 done
13186 IFS=$as_save_IFS
13187
13188 fi
13189 fi
13190 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13191 if test -n "$CC_FOR_TARGET"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13193 $as_echo "$CC_FOR_TARGET" >&6; }
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197 fi
13198
13199
13200 done
13201 fi
13202
13203 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13204 for ncn_progname in cc gcc; do
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13206 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13207 if test -x $with_build_time_tools/${ncn_progname}; then
13208 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13210 $as_echo "yes" >&6; }
13211 break
13212 else
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216 done
13217 fi
13218
13219 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13220 for ncn_progname in cc gcc; do
13221 if test -n "$ncn_target_tool_prefix"; then
13222 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13223 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$CC_FOR_TARGET"; then
13230 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243 done
13244 done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13250 if test -n "$CC_FOR_TARGET"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13252 $as_echo "$CC_FOR_TARGET" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13262 set dummy ${ncn_progname}; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$CC_FOR_TARGET"; then
13269 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13289 if test -n "$CC_FOR_TARGET"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13291 $as_echo "$CC_FOR_TARGET" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297
13298 fi
13299 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13300 done
13301 fi
13302
13303 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13304 set dummy cc gcc
13305 if test $build = $target ; then
13306 CC_FOR_TARGET="$2"
13307 else
13308 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13309 fi
13310 else
13311 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13312 fi
13313
13314
13315
13316 if test -n "$CXX_FOR_TARGET"; then
13317 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13318 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13319 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13320 fi
13321
13322 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13323 for ncn_progname in c++ g++ cxx gxx; do
13324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13325 set dummy ${ncn_progname}; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test -n "$CXX_FOR_TARGET"; then
13332 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13333 else
13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335 for as_dir in $PATH
13336 do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 break 2
13344 fi
13345 done
13346 done
13347 IFS=$as_save_IFS
13348
13349 fi
13350 fi
13351 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13352 if test -n "$CXX_FOR_TARGET"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13354 $as_echo "$CXX_FOR_TARGET" >&6; }
13355 else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359
13360
13361 done
13362 fi
13363
13364 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13365 for ncn_progname in c++ g++ cxx gxx; do
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13367 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13368 if test -x $with_build_time_tools/${ncn_progname}; then
13369 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13371 $as_echo "yes" >&6; }
13372 break
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13376 fi
13377 done
13378 fi
13379
13380 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13381 for ncn_progname in c++ g++ cxx gxx; do
13382 if test -n "$ncn_target_tool_prefix"; then
13383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$CXX_FOR_TARGET"; then
13391 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13403 fi
13404 done
13405 done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13411 if test -n "$CXX_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13413 $as_echo "$CXX_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13423 set dummy ${ncn_progname}; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if test -n "$CXX_FOR_TARGET"; then
13430 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13431 else
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 fi
13448 fi
13449 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13450 if test -n "$CXX_FOR_TARGET"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13452 $as_echo "$CXX_FOR_TARGET" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13457
13458
13459 fi
13460 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13461 done
13462 fi
13463
13464 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13465 set dummy c++ g++ cxx gxx
13466 if test $build = $target ; then
13467 CXX_FOR_TARGET="$2"
13468 else
13469 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13470 fi
13471 else
13472 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13473 fi
13474
13475
13476
13477 if test -n "$GCC_FOR_TARGET"; then
13478 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13479 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13480 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13481 fi
13482
13483 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13484 for ncn_progname in gcc; do
13485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13486 set dummy ${ncn_progname}; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$GCC_FOR_TARGET"; then
13493 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13513 if test -n "$GCC_FOR_TARGET"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13515 $as_echo "$GCC_FOR_TARGET" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 done
13523 fi
13524
13525 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13526 for ncn_progname in gcc; do
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13529 if test -x $with_build_time_tools/${ncn_progname}; then
13530 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13532 $as_echo "yes" >&6; }
13533 break
13534 else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13537 fi
13538 done
13539 fi
13540
13541 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13542 for ncn_progname in gcc; do
13543 if test -n "$ncn_target_tool_prefix"; then
13544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$GCC_FOR_TARGET"; then
13552 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13561 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13564 fi
13565 done
13566 done
13567 IFS=$as_save_IFS
13568
13569 fi
13570 fi
13571 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13572 if test -n "$GCC_FOR_TARGET"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13574 $as_echo "$GCC_FOR_TARGET" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578 fi
13579
13580
13581 fi
13582 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13584 set dummy ${ncn_progname}; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 if test -n "$GCC_FOR_TARGET"; then
13591 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13611 if test -n "$GCC_FOR_TARGET"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13613 $as_echo "$GCC_FOR_TARGET" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617 fi
13618
13619
13620 fi
13621 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13622 done
13623 fi
13624
13625 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13626 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13627 else
13628 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13629 fi
13630
13631
13632
13633 if test -n "$GFORTRAN_FOR_TARGET"; then
13634 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13635 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13636 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13637 fi
13638
13639 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13640 for ncn_progname in gfortran; do
13641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13642 set dummy ${ncn_progname}; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test -n "$GFORTRAN_FOR_TARGET"; then
13649 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13661 fi
13662 done
13663 done
13664 IFS=$as_save_IFS
13665
13666 fi
13667 fi
13668 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13669 if test -n "$GFORTRAN_FOR_TARGET"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13671 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678 done
13679 fi
13680
13681 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13682 for ncn_progname in gfortran; do
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13685 if test -x $with_build_time_tools/${ncn_progname}; then
13686 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13688 $as_echo "yes" >&6; }
13689 break
13690 else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13693 fi
13694 done
13695 fi
13696
13697 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13698 for ncn_progname in gfortran; do
13699 if test -n "$ncn_target_tool_prefix"; then
13700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13703 $as_echo_n "checking for $ac_word... " >&6; }
13704 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 if test -n "$GFORTRAN_FOR_TARGET"; then
13708 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13709 else
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13717 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2
13720 fi
13721 done
13722 done
13723 IFS=$as_save_IFS
13724
13725 fi
13726 fi
13727 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13728 if test -n "$GFORTRAN_FOR_TARGET"; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13730 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13731 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13734 fi
13735
13736
13737 fi
13738 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13740 set dummy ${ncn_progname}; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 if test -n "$GFORTRAN_FOR_TARGET"; then
13747 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13748 else
13749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750 for as_dir in $PATH
13751 do
13752 IFS=$as_save_IFS
13753 test -z "$as_dir" && as_dir=.
13754 for ac_exec_ext in '' $ac_executable_extensions; do
13755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13756 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 break 2
13759 fi
13760 done
13761 done
13762 IFS=$as_save_IFS
13763
13764 fi
13765 fi
13766 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13767 if test -n "$GFORTRAN_FOR_TARGET"; then
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13769 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13770 else
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772 $as_echo "no" >&6; }
13773 fi
13774
13775
13776 fi
13777 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13778 done
13779 fi
13780
13781 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13782 set dummy gfortran
13783 if test $build = $target ; then
13784 GFORTRAN_FOR_TARGET="$2"
13785 else
13786 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13787 fi
13788 else
13789 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13790 fi
13791
13792
13793
13794 if test -n "$GOC_FOR_TARGET"; then
13795 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13796 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13797 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13798 fi
13799
13800 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13801 for ncn_progname in gccgo; do
13802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13803 set dummy ${ncn_progname}; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$GOC_FOR_TARGET"; then
13810 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13830 if test -n "$GOC_FOR_TARGET"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13832 $as_echo "$GOC_FOR_TARGET" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838
13839 done
13840 fi
13841
13842 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13843 for ncn_progname in gccgo; do
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13845 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13846 if test -x $with_build_time_tools/${ncn_progname}; then
13847 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13849 $as_echo "yes" >&6; }
13850 break
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855 done
13856 fi
13857
13858 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13859 for ncn_progname in gccgo; do
13860 if test -n "$ncn_target_tool_prefix"; then
13861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13862 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13864 $as_echo_n "checking for $ac_word... " >&6; }
13865 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 if test -n "$GOC_FOR_TARGET"; then
13869 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13870 else
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13873 do
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13878 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13881 fi
13882 done
13883 done
13884 IFS=$as_save_IFS
13885
13886 fi
13887 fi
13888 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13889 if test -n "$GOC_FOR_TARGET"; then
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13891 $as_echo "$GOC_FOR_TARGET" >&6; }
13892 else
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894 $as_echo "no" >&6; }
13895 fi
13896
13897
13898 fi
13899 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13901 set dummy ${ncn_progname}; ac_word=$2
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903 $as_echo_n "checking for $ac_word... " >&6; }
13904 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 if test -n "$GOC_FOR_TARGET"; then
13908 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13909 else
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13912 do
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13917 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921 done
13922 done
13923 IFS=$as_save_IFS
13924
13925 fi
13926 fi
13927 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13928 if test -n "$GOC_FOR_TARGET"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13930 $as_echo "$GOC_FOR_TARGET" >&6; }
13931 else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 fi
13935
13936
13937 fi
13938 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13939 done
13940 fi
13941
13942 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13943 set dummy gccgo
13944 if test $build = $target ; then
13945 GOC_FOR_TARGET="$2"
13946 else
13947 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13948 fi
13949 else
13950 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13951 fi
13952
13953
13954
13955 if test -n "$GDC_FOR_TARGET"; then
13956 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13957 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13958 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13959 fi
13960
13961 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13962 for ncn_progname in gdc; do
13963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13964 set dummy ${ncn_progname}; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test -n "$GDC_FOR_TARGET"; then
13971 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982 break 2
13983 fi
13984 done
13985 done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13991 if test -n "$GDC_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13993 $as_echo "$GDC_FOR_TARGET" >&6; }
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000 done
14001 fi
14002
14003 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14004 for ncn_progname in gdc; do
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14007 if test -x $with_build_time_tools/${ncn_progname}; then
14008 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010 $as_echo "yes" >&6; }
14011 break
14012 else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016 done
14017 fi
14018
14019 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14020 for ncn_progname in gdc; do
14021 if test -n "$ncn_target_tool_prefix"; then
14022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025 $as_echo_n "checking for $ac_word... " >&6; }
14026 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029 if test -n "$GDC_FOR_TARGET"; then
14030 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14031 else
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14034 do
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14042 fi
14043 done
14044 done
14045 IFS=$as_save_IFS
14046
14047 fi
14048 fi
14049 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14050 if test -n "$GDC_FOR_TARGET"; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14052 $as_echo "$GDC_FOR_TARGET" >&6; }
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 $as_echo "no" >&6; }
14056 fi
14057
14058
14059 fi
14060 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14062 set dummy ${ncn_progname}; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064 $as_echo_n "checking for $ac_word... " >&6; }
14065 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 if test -n "$GDC_FOR_TARGET"; then
14069 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14070 else
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14073 do
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14081 fi
14082 done
14083 done
14084 IFS=$as_save_IFS
14085
14086 fi
14087 fi
14088 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14089 if test -n "$GDC_FOR_TARGET"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14091 $as_echo "$GDC_FOR_TARGET" >&6; }
14092 else
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095 fi
14096
14097
14098 fi
14099 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14100 done
14101 fi
14102
14103 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14104 set dummy gdc
14105 if test $build = $target ; then
14106 GDC_FOR_TARGET="$2"
14107 else
14108 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14109 fi
14110 else
14111 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14112 fi
14113
14114
14115
14116 cat > conftest.c << \EOF
14117 #ifdef __GNUC__
14118 gcc_yay;
14119 #endif
14120 EOF
14121 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14122 have_gcc_for_target=yes
14123 else
14124 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14125 have_gcc_for_target=no
14126 fi
14127 rm conftest.c
14128
14129
14130
14131
14132 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14133 if test -n "$with_build_time_tools"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14135 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14136 if test -x $with_build_time_tools/ar; then
14137 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14138 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14140 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14141 else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143 $as_echo "no" >&6; }
14144 fi
14145 elif test $build != $host && test $have_gcc_for_target = yes; then
14146 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14147 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14148 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14149 fi
14150 fi
14151 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14152 # Extract the first word of "ar", so it can be a program name with args.
14153 set dummy ar; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 case $AR_FOR_TARGET in
14160 [\\/]* | ?:[\\/]*)
14161 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14162 ;;
14163 *)
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $gcc_cv_tool_dirs
14166 do
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 break 2
14174 fi
14175 done
14176 done
14177 IFS=$as_save_IFS
14178
14179 ;;
14180 esac
14181 fi
14182 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14183 if test -n "$AR_FOR_TARGET"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14185 $as_echo "$AR_FOR_TARGET" >&6; }
14186 else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14189 fi
14190
14191
14192 fi
14193 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14194
14195
14196 if test -n "$AR_FOR_TARGET"; then
14197 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14198 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14199 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14200 fi
14201
14202 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14203 for ncn_progname in ar; do
14204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14205 set dummy ${ncn_progname}; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 if test -n "$AR_FOR_TARGET"; then
14212 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14216 do
14217 IFS=$as_save_IFS
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 break 2
14224 fi
14225 done
14226 done
14227 IFS=$as_save_IFS
14228
14229 fi
14230 fi
14231 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14232 if test -n "$AR_FOR_TARGET"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14234 $as_echo "$AR_FOR_TARGET" >&6; }
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239
14240
14241 done
14242 fi
14243
14244 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14245 for ncn_progname in ar; do
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14247 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14248 if test -x $with_build_time_tools/${ncn_progname}; then
14249 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14251 $as_echo "yes" >&6; }
14252 break
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14256 fi
14257 done
14258 fi
14259
14260 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14261 for ncn_progname in ar; do
14262 if test -n "$ncn_target_tool_prefix"; then
14263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 if test -n "$AR_FOR_TARGET"; then
14271 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14272 else
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14275 do
14276 IFS=$as_save_IFS
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14282 break 2
14283 fi
14284 done
14285 done
14286 IFS=$as_save_IFS
14287
14288 fi
14289 fi
14290 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14291 if test -n "$AR_FOR_TARGET"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14293 $as_echo "$AR_FOR_TARGET" >&6; }
14294 else
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14297 fi
14298
14299
14300 fi
14301 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14303 set dummy ${ncn_progname}; ac_word=$2
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 $as_echo_n "checking for $ac_word... " >&6; }
14306 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309 if test -n "$AR_FOR_TARGET"; then
14310 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14311 else
14312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14314 do
14315 IFS=$as_save_IFS
14316 test -z "$as_dir" && as_dir=.
14317 for ac_exec_ext in '' $ac_executable_extensions; do
14318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14319 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14321 break 2
14322 fi
14323 done
14324 done
14325 IFS=$as_save_IFS
14326
14327 fi
14328 fi
14329 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14330 if test -n "$AR_FOR_TARGET"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14332 $as_echo "$AR_FOR_TARGET" >&6; }
14333 else
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336 fi
14337
14338
14339 fi
14340 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14341 done
14342 fi
14343
14344 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14345 set dummy ar
14346 if test $build = $target ; then
14347 AR_FOR_TARGET="$2"
14348 else
14349 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14350 fi
14351 else
14352 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14353 fi
14354
14355 else
14356 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14357 fi
14358
14359
14360
14361
14362 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14363 if test -n "$with_build_time_tools"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14365 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14366 if test -x $with_build_time_tools/as; then
14367 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14368 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14370 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14371 else
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 $as_echo "no" >&6; }
14374 fi
14375 elif test $build != $host && test $have_gcc_for_target = yes; then
14376 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14377 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14378 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14379 fi
14380 fi
14381 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14382 # Extract the first word of "as", so it can be a program name with args.
14383 set dummy as; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14385 $as_echo_n "checking for $ac_word... " >&6; }
14386 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 case $AS_FOR_TARGET in
14390 [\\/]* | ?:[\\/]*)
14391 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14392 ;;
14393 *)
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $gcc_cv_tool_dirs
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 ;;
14410 esac
14411 fi
14412 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14413 if test -n "$AS_FOR_TARGET"; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14415 $as_echo "$AS_FOR_TARGET" >&6; }
14416 else
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418 $as_echo "no" >&6; }
14419 fi
14420
14421
14422 fi
14423 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14424
14425
14426 if test -n "$AS_FOR_TARGET"; then
14427 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14428 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14429 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14430 fi
14431
14432 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14433 for ncn_progname in as; do
14434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14435 set dummy ${ncn_progname}; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 if test -n "$AS_FOR_TARGET"; then
14442 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14451 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14462 if test -n "$AS_FOR_TARGET"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14464 $as_echo "$AS_FOR_TARGET" >&6; }
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469
14470
14471 done
14472 fi
14473
14474 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14475 for ncn_progname in as; do
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14477 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14478 if test -x $with_build_time_tools/${ncn_progname}; then
14479 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14481 $as_echo "yes" >&6; }
14482 break
14483 else
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14486 fi
14487 done
14488 fi
14489
14490 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14491 for ncn_progname in as; do
14492 if test -n "$ncn_target_tool_prefix"; then
14493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 if test -n "$AS_FOR_TARGET"; then
14501 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14502 else
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14505 do
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14510 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14512 break 2
14513 fi
14514 done
14515 done
14516 IFS=$as_save_IFS
14517
14518 fi
14519 fi
14520 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14521 if test -n "$AS_FOR_TARGET"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14523 $as_echo "$AS_FOR_TARGET" >&6; }
14524 else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14527 fi
14528
14529
14530 fi
14531 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14533 set dummy ${ncn_progname}; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 $as_echo_n "checking for $ac_word... " >&6; }
14536 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 if test -n "$AS_FOR_TARGET"; then
14540 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 break 2
14552 fi
14553 done
14554 done
14555 IFS=$as_save_IFS
14556
14557 fi
14558 fi
14559 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14560 if test -n "$AS_FOR_TARGET"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14562 $as_echo "$AS_FOR_TARGET" >&6; }
14563 else
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14566 fi
14567
14568
14569 fi
14570 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14571 done
14572 fi
14573
14574 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14575 set dummy as
14576 if test $build = $target ; then
14577 AS_FOR_TARGET="$2"
14578 else
14579 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14580 fi
14581 else
14582 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14583 fi
14584
14585 else
14586 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14587 fi
14588
14589
14590
14591
14592 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14593 if test -n "$with_build_time_tools"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14595 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14596 if test -x $with_build_time_tools/dlltool; then
14597 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14598 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14600 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14601 else
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 $as_echo "no" >&6; }
14604 fi
14605 elif test $build != $host && test $have_gcc_for_target = yes; then
14606 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14607 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14608 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14609 fi
14610 fi
14611 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14612 # Extract the first word of "dlltool", so it can be a program name with args.
14613 set dummy dlltool; ac_word=$2
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14615 $as_echo_n "checking for $ac_word... " >&6; }
14616 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 case $DLLTOOL_FOR_TARGET in
14620 [\\/]* | ?:[\\/]*)
14621 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14622 ;;
14623 *)
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $gcc_cv_tool_dirs
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14631 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 break 2
14634 fi
14635 done
14636 done
14637 IFS=$as_save_IFS
14638
14639 ;;
14640 esac
14641 fi
14642 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14643 if test -n "$DLLTOOL_FOR_TARGET"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14645 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14646 else
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648 $as_echo "no" >&6; }
14649 fi
14650
14651
14652 fi
14653 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14654
14655
14656 if test -n "$DLLTOOL_FOR_TARGET"; then
14657 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14658 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14659 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14660 fi
14661
14662 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14663 for ncn_progname in dlltool; do
14664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14665 set dummy ${ncn_progname}; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 if test -n "$DLLTOOL_FOR_TARGET"; then
14672 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14676 do
14677 IFS=$as_save_IFS
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683 break 2
14684 fi
14685 done
14686 done
14687 IFS=$as_save_IFS
14688
14689 fi
14690 fi
14691 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14692 if test -n "$DLLTOOL_FOR_TARGET"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14694 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699
14700
14701 done
14702 fi
14703
14704 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14705 for ncn_progname in dlltool; do
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14708 if test -x $with_build_time_tools/${ncn_progname}; then
14709 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14711 $as_echo "yes" >&6; }
14712 break
14713 else
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14715 $as_echo "no" >&6; }
14716 fi
14717 done
14718 fi
14719
14720 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14721 for ncn_progname in dlltool; do
14722 if test -n "$ncn_target_tool_prefix"; then
14723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 if test -n "$DLLTOOL_FOR_TARGET"; then
14731 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14732 else
14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14735 do
14736 IFS=$as_save_IFS
14737 test -z "$as_dir" && as_dir=.
14738 for ac_exec_ext in '' $ac_executable_extensions; do
14739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14740 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14742 break 2
14743 fi
14744 done
14745 done
14746 IFS=$as_save_IFS
14747
14748 fi
14749 fi
14750 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14751 if test -n "$DLLTOOL_FOR_TARGET"; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14753 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14754 else
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14757 fi
14758
14759
14760 fi
14761 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14763 set dummy ${ncn_progname}; ac_word=$2
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14765 $as_echo_n "checking for $ac_word... " >&6; }
14766 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14767 $as_echo_n "(cached) " >&6
14768 else
14769 if test -n "$DLLTOOL_FOR_TARGET"; then
14770 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14771 else
14772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773 for as_dir in $PATH
14774 do
14775 IFS=$as_save_IFS
14776 test -z "$as_dir" && as_dir=.
14777 for ac_exec_ext in '' $ac_executable_extensions; do
14778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14779 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14781 break 2
14782 fi
14783 done
14784 done
14785 IFS=$as_save_IFS
14786
14787 fi
14788 fi
14789 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14790 if test -n "$DLLTOOL_FOR_TARGET"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14792 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14793 else
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14796 fi
14797
14798
14799 fi
14800 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14801 done
14802 fi
14803
14804 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14805 set dummy dlltool
14806 if test $build = $target ; then
14807 DLLTOOL_FOR_TARGET="$2"
14808 else
14809 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14810 fi
14811 else
14812 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14813 fi
14814
14815 else
14816 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14817 fi
14818
14819
14820
14821
14822 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14823 if test -n "$with_build_time_tools"; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14825 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14826 if test -x $with_build_time_tools/dsymutil; then
14827 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14828 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14830 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14831 else
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14834 fi
14835 elif test $build != $host && test $have_gcc_for_target = yes; then
14836 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14837 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14838 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14839 fi
14840 fi
14841 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14842 # Extract the first word of "dsymutil", so it can be a program name with args.
14843 set dummy dsymutil; ac_word=$2
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14845 $as_echo_n "checking for $ac_word... " >&6; }
14846 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 case $DSYMUTIL_FOR_TARGET in
14850 [\\/]* | ?:[\\/]*)
14851 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14852 ;;
14853 *)
14854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855 for as_dir in $gcc_cv_tool_dirs
14856 do
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 for ac_exec_ext in '' $ac_executable_extensions; do
14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863 break 2
14864 fi
14865 done
14866 done
14867 IFS=$as_save_IFS
14868
14869 ;;
14870 esac
14871 fi
14872 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14873 if test -n "$DSYMUTIL_FOR_TARGET"; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14875 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14876 else
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14878 $as_echo "no" >&6; }
14879 fi
14880
14881
14882 fi
14883 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14884
14885
14886 if test -n "$DSYMUTIL_FOR_TARGET"; then
14887 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14888 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14889 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14890 fi
14891
14892 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14893 for ncn_progname in dsymutil; do
14894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14895 set dummy ${ncn_progname}; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 if test -n "$DSYMUTIL_FOR_TARGET"; then
14902 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14903 else
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14906 do
14907 IFS=$as_save_IFS
14908 test -z "$as_dir" && as_dir=.
14909 for ac_exec_ext in '' $ac_executable_extensions; do
14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14913 break 2
14914 fi
14915 done
14916 done
14917 IFS=$as_save_IFS
14918
14919 fi
14920 fi
14921 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14922 if test -n "$DSYMUTIL_FOR_TARGET"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14924 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929
14930
14931 done
14932 fi
14933
14934 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14935 for ncn_progname in dsymutil; do
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14938 if test -x $with_build_time_tools/${ncn_progname}; then
14939 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14941 $as_echo "yes" >&6; }
14942 break
14943 else
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945 $as_echo "no" >&6; }
14946 fi
14947 done
14948 fi
14949
14950 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14951 for ncn_progname in dsymutil; do
14952 if test -n "$ncn_target_tool_prefix"; then
14953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 $as_echo_n "checking for $ac_word... " >&6; }
14957 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14958 $as_echo_n "(cached) " >&6
14959 else
14960 if test -n "$DSYMUTIL_FOR_TARGET"; then
14961 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14962 else
14963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14964 for as_dir in $PATH
14965 do
14966 IFS=$as_save_IFS
14967 test -z "$as_dir" && as_dir=.
14968 for ac_exec_ext in '' $ac_executable_extensions; do
14969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14970 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14972 break 2
14973 fi
14974 done
14975 done
14976 IFS=$as_save_IFS
14977
14978 fi
14979 fi
14980 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14981 if test -n "$DSYMUTIL_FOR_TARGET"; then
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14983 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14984 else
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986 $as_echo "no" >&6; }
14987 fi
14988
14989
14990 fi
14991 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14993 set dummy ${ncn_progname}; ac_word=$2
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14995 $as_echo_n "checking for $ac_word... " >&6; }
14996 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 if test -n "$DSYMUTIL_FOR_TARGET"; then
15000 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15001 else
15002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003 for as_dir in $PATH
15004 do
15005 IFS=$as_save_IFS
15006 test -z "$as_dir" && as_dir=.
15007 for ac_exec_ext in '' $ac_executable_extensions; do
15008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15009 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15011 break 2
15012 fi
15013 done
15014 done
15015 IFS=$as_save_IFS
15016
15017 fi
15018 fi
15019 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15020 if test -n "$DSYMUTIL_FOR_TARGET"; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15022 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15023 else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15026 fi
15027
15028
15029 fi
15030 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15031 done
15032 fi
15033
15034 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15035 set dummy dsymutil
15036 if test $build = $target ; then
15037 DSYMUTIL_FOR_TARGET="$2"
15038 else
15039 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15040 fi
15041 else
15042 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15043 fi
15044
15045 else
15046 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15047 fi
15048
15049
15050
15051
15052 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15053 if test -n "$with_build_time_tools"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15055 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15056 if test -x $with_build_time_tools/ld; then
15057 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15058 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15060 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15064 fi
15065 elif test $build != $host && test $have_gcc_for_target = yes; then
15066 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15067 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15068 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15069 fi
15070 fi
15071 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15072 # Extract the first word of "ld", so it can be a program name with args.
15073 set dummy ld; ac_word=$2
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15075 $as_echo_n "checking for $ac_word... " >&6; }
15076 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15077 $as_echo_n "(cached) " >&6
15078 else
15079 case $LD_FOR_TARGET in
15080 [\\/]* | ?:[\\/]*)
15081 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15082 ;;
15083 *)
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $gcc_cv_tool_dirs
15086 do
15087 IFS=$as_save_IFS
15088 test -z "$as_dir" && as_dir=.
15089 for ac_exec_ext in '' $ac_executable_extensions; do
15090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15093 break 2
15094 fi
15095 done
15096 done
15097 IFS=$as_save_IFS
15098
15099 ;;
15100 esac
15101 fi
15102 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15103 if test -n "$LD_FOR_TARGET"; then
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15105 $as_echo "$LD_FOR_TARGET" >&6; }
15106 else
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15108 $as_echo "no" >&6; }
15109 fi
15110
15111
15112 fi
15113 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15114
15115
15116 if test -n "$LD_FOR_TARGET"; then
15117 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15118 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15119 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15120 fi
15121
15122 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15123 for ncn_progname in ld; do
15124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15125 set dummy ${ncn_progname}; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 if test -n "$LD_FOR_TARGET"; then
15132 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15136 do
15137 IFS=$as_save_IFS
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15143 break 2
15144 fi
15145 done
15146 done
15147 IFS=$as_save_IFS
15148
15149 fi
15150 fi
15151 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15152 if test -n "$LD_FOR_TARGET"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15154 $as_echo "$LD_FOR_TARGET" >&6; }
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158 fi
15159
15160
15161 done
15162 fi
15163
15164 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15165 for ncn_progname in ld; do
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15168 if test -x $with_build_time_tools/${ncn_progname}; then
15169 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15171 $as_echo "yes" >&6; }
15172 break
15173 else
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175 $as_echo "no" >&6; }
15176 fi
15177 done
15178 fi
15179
15180 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15181 for ncn_progname in ld; do
15182 if test -n "$ncn_target_tool_prefix"; then
15183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186 $as_echo_n "checking for $ac_word... " >&6; }
15187 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 if test -n "$LD_FOR_TARGET"; then
15191 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15192 else
15193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194 for as_dir in $PATH
15195 do
15196 IFS=$as_save_IFS
15197 test -z "$as_dir" && as_dir=.
15198 for ac_exec_ext in '' $ac_executable_extensions; do
15199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15202 break 2
15203 fi
15204 done
15205 done
15206 IFS=$as_save_IFS
15207
15208 fi
15209 fi
15210 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15211 if test -n "$LD_FOR_TARGET"; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15213 $as_echo "$LD_FOR_TARGET" >&6; }
15214 else
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 $as_echo "no" >&6; }
15217 fi
15218
15219
15220 fi
15221 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15223 set dummy ${ncn_progname}; ac_word=$2
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15225 $as_echo_n "checking for $ac_word... " >&6; }
15226 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 if test -n "$LD_FOR_TARGET"; then
15230 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15231 else
15232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233 for as_dir in $PATH
15234 do
15235 IFS=$as_save_IFS
15236 test -z "$as_dir" && as_dir=.
15237 for ac_exec_ext in '' $ac_executable_extensions; do
15238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15239 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15241 break 2
15242 fi
15243 done
15244 done
15245 IFS=$as_save_IFS
15246
15247 fi
15248 fi
15249 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15250 if test -n "$LD_FOR_TARGET"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15252 $as_echo "$LD_FOR_TARGET" >&6; }
15253 else
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15256 fi
15257
15258
15259 fi
15260 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15261 done
15262 fi
15263
15264 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15265 set dummy ld
15266 if test $build = $target ; then
15267 LD_FOR_TARGET="$2"
15268 else
15269 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15270 fi
15271 else
15272 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15273 fi
15274
15275 else
15276 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15277 fi
15278
15279
15280
15281
15282 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15283 if test -n "$with_build_time_tools"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15285 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15286 if test -x $with_build_time_tools/lipo; then
15287 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15288 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15290 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15291 else
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15293 $as_echo "no" >&6; }
15294 fi
15295 elif test $build != $host && test $have_gcc_for_target = yes; then
15296 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15297 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15298 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15299 fi
15300 fi
15301 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15302 # Extract the first word of "lipo", so it can be a program name with args.
15303 set dummy lipo; ac_word=$2
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15305 $as_echo_n "checking for $ac_word... " >&6; }
15306 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 case $LIPO_FOR_TARGET in
15310 [\\/]* | ?:[\\/]*)
15311 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15312 ;;
15313 *)
15314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315 for as_dir in $gcc_cv_tool_dirs
15316 do
15317 IFS=$as_save_IFS
15318 test -z "$as_dir" && as_dir=.
15319 for ac_exec_ext in '' $ac_executable_extensions; do
15320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15321 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15323 break 2
15324 fi
15325 done
15326 done
15327 IFS=$as_save_IFS
15328
15329 ;;
15330 esac
15331 fi
15332 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15333 if test -n "$LIPO_FOR_TARGET"; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15335 $as_echo "$LIPO_FOR_TARGET" >&6; }
15336 else
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338 $as_echo "no" >&6; }
15339 fi
15340
15341
15342 fi
15343 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15344
15345
15346 if test -n "$LIPO_FOR_TARGET"; then
15347 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15348 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15349 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15350 fi
15351
15352 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15353 for ncn_progname in lipo; do
15354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15355 set dummy ${ncn_progname}; ac_word=$2
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15357 $as_echo_n "checking for $ac_word... " >&6; }
15358 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 if test -n "$LIPO_FOR_TARGET"; then
15362 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15363 else
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15366 do
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15374 fi
15375 done
15376 done
15377 IFS=$as_save_IFS
15378
15379 fi
15380 fi
15381 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15382 if test -n "$LIPO_FOR_TARGET"; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15384 $as_echo "$LIPO_FOR_TARGET" >&6; }
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15388 fi
15389
15390
15391 done
15392 fi
15393
15394 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15395 for ncn_progname in lipo; do
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15398 if test -x $with_build_time_tools/${ncn_progname}; then
15399 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15401 $as_echo "yes" >&6; }
15402 break
15403 else
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405 $as_echo "no" >&6; }
15406 fi
15407 done
15408 fi
15409
15410 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15411 for ncn_progname in lipo; do
15412 if test -n "$ncn_target_tool_prefix"; then
15413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15416 $as_echo_n "checking for $ac_word... " >&6; }
15417 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420 if test -n "$LIPO_FOR_TARGET"; then
15421 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15422 else
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15425 do
15426 IFS=$as_save_IFS
15427 test -z "$as_dir" && as_dir=.
15428 for ac_exec_ext in '' $ac_executable_extensions; do
15429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15430 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15432 break 2
15433 fi
15434 done
15435 done
15436 IFS=$as_save_IFS
15437
15438 fi
15439 fi
15440 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15441 if test -n "$LIPO_FOR_TARGET"; then
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15443 $as_echo "$LIPO_FOR_TARGET" >&6; }
15444 else
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15446 $as_echo "no" >&6; }
15447 fi
15448
15449
15450 fi
15451 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15453 set dummy ${ncn_progname}; ac_word=$2
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15455 $as_echo_n "checking for $ac_word... " >&6; }
15456 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458 else
15459 if test -n "$LIPO_FOR_TARGET"; then
15460 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15461 else
15462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463 for as_dir in $PATH
15464 do
15465 IFS=$as_save_IFS
15466 test -z "$as_dir" && as_dir=.
15467 for ac_exec_ext in '' $ac_executable_extensions; do
15468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15469 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15471 break 2
15472 fi
15473 done
15474 done
15475 IFS=$as_save_IFS
15476
15477 fi
15478 fi
15479 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15480 if test -n "$LIPO_FOR_TARGET"; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15482 $as_echo "$LIPO_FOR_TARGET" >&6; }
15483 else
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15486 fi
15487
15488
15489 fi
15490 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15491 done
15492 fi
15493
15494 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15495 set dummy lipo
15496 if test $build = $target ; then
15497 LIPO_FOR_TARGET="$2"
15498 else
15499 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15500 fi
15501 else
15502 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15503 fi
15504
15505 else
15506 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15507 fi
15508
15509
15510
15511
15512 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15513 if test -n "$with_build_time_tools"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15515 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15516 if test -x $with_build_time_tools/nm; then
15517 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15518 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15520 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15521 else
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15523 $as_echo "no" >&6; }
15524 fi
15525 elif test $build != $host && test $have_gcc_for_target = yes; then
15526 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15527 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15528 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15529 fi
15530 fi
15531 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15532 # Extract the first word of "nm", so it can be a program name with args.
15533 set dummy nm; ac_word=$2
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535 $as_echo_n "checking for $ac_word... " >&6; }
15536 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15537 $as_echo_n "(cached) " >&6
15538 else
15539 case $NM_FOR_TARGET in
15540 [\\/]* | ?:[\\/]*)
15541 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15542 ;;
15543 *)
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $gcc_cv_tool_dirs
15546 do
15547 IFS=$as_save_IFS
15548 test -z "$as_dir" && as_dir=.
15549 for ac_exec_ext in '' $ac_executable_extensions; do
15550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553 break 2
15554 fi
15555 done
15556 done
15557 IFS=$as_save_IFS
15558
15559 ;;
15560 esac
15561 fi
15562 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15563 if test -n "$NM_FOR_TARGET"; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15565 $as_echo "$NM_FOR_TARGET" >&6; }
15566 else
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568 $as_echo "no" >&6; }
15569 fi
15570
15571
15572 fi
15573 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15574
15575
15576 if test -n "$NM_FOR_TARGET"; then
15577 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15578 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15579 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15580 fi
15581
15582 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15583 for ncn_progname in nm; do
15584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15585 set dummy ${ncn_progname}; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if test -n "$NM_FOR_TARGET"; then
15592 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15593 else
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15596 do
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605 done
15606 done
15607 IFS=$as_save_IFS
15608
15609 fi
15610 fi
15611 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15612 if test -n "$NM_FOR_TARGET"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15614 $as_echo "$NM_FOR_TARGET" >&6; }
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619
15620
15621 done
15622 fi
15623
15624 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15625 for ncn_progname in nm; do
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15627 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15628 if test -x $with_build_time_tools/${ncn_progname}; then
15629 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15631 $as_echo "yes" >&6; }
15632 break
15633 else
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635 $as_echo "no" >&6; }
15636 fi
15637 done
15638 fi
15639
15640 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15641 for ncn_progname in nm; do
15642 if test -n "$ncn_target_tool_prefix"; then
15643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15646 $as_echo_n "checking for $ac_word... " >&6; }
15647 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650 if test -n "$NM_FOR_TARGET"; then
15651 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15652 else
15653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15654 for as_dir in $PATH
15655 do
15656 IFS=$as_save_IFS
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15662 break 2
15663 fi
15664 done
15665 done
15666 IFS=$as_save_IFS
15667
15668 fi
15669 fi
15670 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15671 if test -n "$NM_FOR_TARGET"; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15673 $as_echo "$NM_FOR_TARGET" >&6; }
15674 else
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15676 $as_echo "no" >&6; }
15677 fi
15678
15679
15680 fi
15681 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15683 set dummy ${ncn_progname}; ac_word=$2
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15685 $as_echo_n "checking for $ac_word... " >&6; }
15686 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 if test -n "$NM_FOR_TARGET"; then
15690 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15691 else
15692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15693 for as_dir in $PATH
15694 do
15695 IFS=$as_save_IFS
15696 test -z "$as_dir" && as_dir=.
15697 for ac_exec_ext in '' $ac_executable_extensions; do
15698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15699 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15701 break 2
15702 fi
15703 done
15704 done
15705 IFS=$as_save_IFS
15706
15707 fi
15708 fi
15709 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15710 if test -n "$NM_FOR_TARGET"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15712 $as_echo "$NM_FOR_TARGET" >&6; }
15713 else
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715 $as_echo "no" >&6; }
15716 fi
15717
15718
15719 fi
15720 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15721 done
15722 fi
15723
15724 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15725 set dummy nm
15726 if test $build = $target ; then
15727 NM_FOR_TARGET="$2"
15728 else
15729 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15730 fi
15731 else
15732 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15733 fi
15734
15735 else
15736 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15737 fi
15738
15739
15740
15741
15742 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15743 if test -n "$with_build_time_tools"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15745 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15746 if test -x $with_build_time_tools/objcopy; then
15747 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15748 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15750 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15751 else
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15754 fi
15755 elif test $build != $host && test $have_gcc_for_target = yes; then
15756 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15757 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15758 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15759 fi
15760 fi
15761 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15762 # Extract the first word of "objcopy", so it can be a program name with args.
15763 set dummy objcopy; ac_word=$2
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15765 $as_echo_n "checking for $ac_word... " >&6; }
15766 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 case $OBJCOPY_FOR_TARGET in
15770 [\\/]* | ?:[\\/]*)
15771 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15772 ;;
15773 *)
15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $gcc_cv_tool_dirs
15776 do
15777 IFS=$as_save_IFS
15778 test -z "$as_dir" && as_dir=.
15779 for ac_exec_ext in '' $ac_executable_extensions; do
15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15781 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783 break 2
15784 fi
15785 done
15786 done
15787 IFS=$as_save_IFS
15788
15789 ;;
15790 esac
15791 fi
15792 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15793 if test -n "$OBJCOPY_FOR_TARGET"; then
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15795 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15796 else
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798 $as_echo "no" >&6; }
15799 fi
15800
15801
15802 fi
15803 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15804
15805
15806 if test -n "$OBJCOPY_FOR_TARGET"; then
15807 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15808 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15809 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15810 fi
15811
15812 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15813 for ncn_progname in objcopy; do
15814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15815 set dummy ${ncn_progname}; ac_word=$2
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15817 $as_echo_n "checking for $ac_word... " >&6; }
15818 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 if test -n "$OBJCOPY_FOR_TARGET"; then
15822 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15823 else
15824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15825 for as_dir in $PATH
15826 do
15827 IFS=$as_save_IFS
15828 test -z "$as_dir" && as_dir=.
15829 for ac_exec_ext in '' $ac_executable_extensions; do
15830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15831 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15833 break 2
15834 fi
15835 done
15836 done
15837 IFS=$as_save_IFS
15838
15839 fi
15840 fi
15841 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15842 if test -n "$OBJCOPY_FOR_TARGET"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15844 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15845 else
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849
15850
15851 done
15852 fi
15853
15854 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15855 for ncn_progname in objcopy; do
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15858 if test -x $with_build_time_tools/${ncn_progname}; then
15859 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 $as_echo "yes" >&6; }
15862 break
15863 else
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15865 $as_echo "no" >&6; }
15866 fi
15867 done
15868 fi
15869
15870 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15871 for ncn_progname in objcopy; do
15872 if test -n "$ncn_target_tool_prefix"; then
15873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15876 $as_echo_n "checking for $ac_word... " >&6; }
15877 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 if test -n "$OBJCOPY_FOR_TARGET"; then
15881 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15882 else
15883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15884 for as_dir in $PATH
15885 do
15886 IFS=$as_save_IFS
15887 test -z "$as_dir" && as_dir=.
15888 for ac_exec_ext in '' $ac_executable_extensions; do
15889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15890 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15892 break 2
15893 fi
15894 done
15895 done
15896 IFS=$as_save_IFS
15897
15898 fi
15899 fi
15900 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15901 if test -n "$OBJCOPY_FOR_TARGET"; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15903 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15907 fi
15908
15909
15910 fi
15911 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15913 set dummy ${ncn_progname}; ac_word=$2
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15915 $as_echo_n "checking for $ac_word... " >&6; }
15916 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 if test -n "$OBJCOPY_FOR_TARGET"; then
15920 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15921 else
15922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15923 for as_dir in $PATH
15924 do
15925 IFS=$as_save_IFS
15926 test -z "$as_dir" && as_dir=.
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15929 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15931 break 2
15932 fi
15933 done
15934 done
15935 IFS=$as_save_IFS
15936
15937 fi
15938 fi
15939 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15940 if test -n "$OBJCOPY_FOR_TARGET"; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15942 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15943 else
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15946 fi
15947
15948
15949 fi
15950 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15951 done
15952 fi
15953
15954 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15955 set dummy objcopy
15956 if test $build = $target ; then
15957 OBJCOPY_FOR_TARGET="$2"
15958 else
15959 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15960 fi
15961 else
15962 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15963 fi
15964
15965 else
15966 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15967 fi
15968
15969
15970
15971
15972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15973 if test -n "$with_build_time_tools"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15975 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15976 if test -x $with_build_time_tools/objdump; then
15977 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15978 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15980 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15981 else
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15984 fi
15985 elif test $build != $host && test $have_gcc_for_target = yes; then
15986 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15987 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15988 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15989 fi
15990 fi
15991 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15992 # Extract the first word of "objdump", so it can be a program name with args.
15993 set dummy objdump; ac_word=$2
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15995 $as_echo_n "checking for $ac_word... " >&6; }
15996 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15997 $as_echo_n "(cached) " >&6
15998 else
15999 case $OBJDUMP_FOR_TARGET in
16000 [\\/]* | ?:[\\/]*)
16001 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16002 ;;
16003 *)
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $gcc_cv_tool_dirs
16006 do
16007 IFS=$as_save_IFS
16008 test -z "$as_dir" && as_dir=.
16009 for ac_exec_ext in '' $ac_executable_extensions; do
16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16013 break 2
16014 fi
16015 done
16016 done
16017 IFS=$as_save_IFS
16018
16019 ;;
16020 esac
16021 fi
16022 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16023 if test -n "$OBJDUMP_FOR_TARGET"; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16025 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16026 else
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16028 $as_echo "no" >&6; }
16029 fi
16030
16031
16032 fi
16033 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16034
16035
16036 if test -n "$OBJDUMP_FOR_TARGET"; then
16037 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16038 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16039 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16040 fi
16041
16042 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16043 for ncn_progname in objdump; do
16044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16045 set dummy ${ncn_progname}; ac_word=$2
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16047 $as_echo_n "checking for $ac_word... " >&6; }
16048 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16049 $as_echo_n "(cached) " >&6
16050 else
16051 if test -n "$OBJDUMP_FOR_TARGET"; then
16052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16053 else
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16056 do
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063 break 2
16064 fi
16065 done
16066 done
16067 IFS=$as_save_IFS
16068
16069 fi
16070 fi
16071 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16072 if test -n "$OBJDUMP_FOR_TARGET"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16074 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16075 else
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078 fi
16079
16080
16081 done
16082 fi
16083
16084 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16085 for ncn_progname in objdump; do
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16087 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16088 if test -x $with_build_time_tools/${ncn_progname}; then
16089 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091 $as_echo "yes" >&6; }
16092 break
16093 else
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096 fi
16097 done
16098 fi
16099
16100 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16101 for ncn_progname in objdump; do
16102 if test -n "$ncn_target_tool_prefix"; then
16103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16108 $as_echo_n "(cached) " >&6
16109 else
16110 if test -n "$OBJDUMP_FOR_TARGET"; then
16111 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16112 else
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116 IFS=$as_save_IFS
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16122 break 2
16123 fi
16124 done
16125 done
16126 IFS=$as_save_IFS
16127
16128 fi
16129 fi
16130 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16131 if test -n "$OBJDUMP_FOR_TARGET"; then
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16133 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16134 else
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16137 fi
16138
16139
16140 fi
16141 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16143 set dummy ${ncn_progname}; ac_word=$2
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16145 $as_echo_n "checking for $ac_word... " >&6; }
16146 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 if test -n "$OBJDUMP_FOR_TARGET"; then
16150 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16151 else
16152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16153 for as_dir in $PATH
16154 do
16155 IFS=$as_save_IFS
16156 test -z "$as_dir" && as_dir=.
16157 for ac_exec_ext in '' $ac_executable_extensions; do
16158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16159 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16161 break 2
16162 fi
16163 done
16164 done
16165 IFS=$as_save_IFS
16166
16167 fi
16168 fi
16169 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16170 if test -n "$OBJDUMP_FOR_TARGET"; then
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16172 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16173 else
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175 $as_echo "no" >&6; }
16176 fi
16177
16178
16179 fi
16180 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16181 done
16182 fi
16183
16184 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16185 set dummy objdump
16186 if test $build = $target ; then
16187 OBJDUMP_FOR_TARGET="$2"
16188 else
16189 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16190 fi
16191 else
16192 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16193 fi
16194
16195 else
16196 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16197 fi
16198
16199
16200
16201
16202 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16203 if test -n "$with_build_time_tools"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16205 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16206 if test -x $with_build_time_tools/otool; then
16207 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16208 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16210 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16211 else
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16214 fi
16215 elif test $build != $host && test $have_gcc_for_target = yes; then
16216 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16217 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16218 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16219 fi
16220 fi
16221 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16222 # Extract the first word of "otool", so it can be a program name with args.
16223 set dummy otool; ac_word=$2
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16225 $as_echo_n "checking for $ac_word... " >&6; }
16226 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 case $OTOOL_FOR_TARGET in
16230 [\\/]* | ?:[\\/]*)
16231 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16232 ;;
16233 *)
16234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235 for as_dir in $gcc_cv_tool_dirs
16236 do
16237 IFS=$as_save_IFS
16238 test -z "$as_dir" && as_dir=.
16239 for ac_exec_ext in '' $ac_executable_extensions; do
16240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243 break 2
16244 fi
16245 done
16246 done
16247 IFS=$as_save_IFS
16248
16249 ;;
16250 esac
16251 fi
16252 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16253 if test -n "$OTOOL_FOR_TARGET"; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16255 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16256 else
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258 $as_echo "no" >&6; }
16259 fi
16260
16261
16262 fi
16263 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16264
16265
16266 if test -n "$OTOOL_FOR_TARGET"; then
16267 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16268 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16269 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16270 fi
16271
16272 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16273 for ncn_progname in otool; do
16274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16275 set dummy ${ncn_progname}; ac_word=$2
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16277 $as_echo_n "checking for $ac_word... " >&6; }
16278 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 if test -n "$OTOOL_FOR_TARGET"; then
16282 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16283 else
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16286 do
16287 IFS=$as_save_IFS
16288 test -z "$as_dir" && as_dir=.
16289 for ac_exec_ext in '' $ac_executable_extensions; do
16290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16291 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16293 break 2
16294 fi
16295 done
16296 done
16297 IFS=$as_save_IFS
16298
16299 fi
16300 fi
16301 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16302 if test -n "$OTOOL_FOR_TARGET"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16304 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16308 fi
16309
16310
16311 done
16312 fi
16313
16314 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16315 for ncn_progname in otool; do
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16317 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16318 if test -x $with_build_time_tools/${ncn_progname}; then
16319 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16321 $as_echo "yes" >&6; }
16322 break
16323 else
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16326 fi
16327 done
16328 fi
16329
16330 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16331 for ncn_progname in otool; do
16332 if test -n "$ncn_target_tool_prefix"; then
16333 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16334 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16338 $as_echo_n "(cached) " >&6
16339 else
16340 if test -n "$OTOOL_FOR_TARGET"; then
16341 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16342 else
16343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in $PATH
16345 do
16346 IFS=$as_save_IFS
16347 test -z "$as_dir" && as_dir=.
16348 for ac_exec_ext in '' $ac_executable_extensions; do
16349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16350 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16352 break 2
16353 fi
16354 done
16355 done
16356 IFS=$as_save_IFS
16357
16358 fi
16359 fi
16360 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16361 if test -n "$OTOOL_FOR_TARGET"; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16363 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16364 else
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16366 $as_echo "no" >&6; }
16367 fi
16368
16369
16370 fi
16371 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16373 set dummy ${ncn_progname}; ac_word=$2
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16375 $as_echo_n "checking for $ac_word... " >&6; }
16376 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 if test -n "$OTOOL_FOR_TARGET"; then
16380 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16381 else
16382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16383 for as_dir in $PATH
16384 do
16385 IFS=$as_save_IFS
16386 test -z "$as_dir" && as_dir=.
16387 for ac_exec_ext in '' $ac_executable_extensions; do
16388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16389 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16391 break 2
16392 fi
16393 done
16394 done
16395 IFS=$as_save_IFS
16396
16397 fi
16398 fi
16399 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16400 if test -n "$OTOOL_FOR_TARGET"; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16402 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16403 else
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16405 $as_echo "no" >&6; }
16406 fi
16407
16408
16409 fi
16410 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16411 done
16412 fi
16413
16414 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16415 set dummy otool
16416 if test $build = $target ; then
16417 OTOOL_FOR_TARGET="$2"
16418 else
16419 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16420 fi
16421 else
16422 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16423 fi
16424
16425 else
16426 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16427 fi
16428
16429
16430
16431
16432 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16433 if test -n "$with_build_time_tools"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16435 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16436 if test -x $with_build_time_tools/ranlib; then
16437 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16438 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16440 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16441 else
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443 $as_echo "no" >&6; }
16444 fi
16445 elif test $build != $host && test $have_gcc_for_target = yes; then
16446 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16447 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16448 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16449 fi
16450 fi
16451 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16452 # Extract the first word of "ranlib", so it can be a program name with args.
16453 set dummy ranlib; ac_word=$2
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16455 $as_echo_n "checking for $ac_word... " >&6; }
16456 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16457 $as_echo_n "(cached) " >&6
16458 else
16459 case $RANLIB_FOR_TARGET in
16460 [\\/]* | ?:[\\/]*)
16461 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16462 ;;
16463 *)
16464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465 for as_dir in $gcc_cv_tool_dirs
16466 do
16467 IFS=$as_save_IFS
16468 test -z "$as_dir" && as_dir=.
16469 for ac_exec_ext in '' $ac_executable_extensions; do
16470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16471 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16473 break 2
16474 fi
16475 done
16476 done
16477 IFS=$as_save_IFS
16478
16479 ;;
16480 esac
16481 fi
16482 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16483 if test -n "$RANLIB_FOR_TARGET"; then
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16485 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16486 else
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488 $as_echo "no" >&6; }
16489 fi
16490
16491
16492 fi
16493 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16494
16495
16496 if test -n "$RANLIB_FOR_TARGET"; then
16497 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16498 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16499 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16500 fi
16501
16502 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16503 for ncn_progname in ranlib; do
16504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16505 set dummy ${ncn_progname}; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507 $as_echo_n "checking for $ac_word... " >&6; }
16508 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 if test -n "$RANLIB_FOR_TARGET"; then
16512 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517 IFS=$as_save_IFS
16518 test -z "$as_dir" && as_dir=.
16519 for ac_exec_ext in '' $ac_executable_extensions; do
16520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523 break 2
16524 fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529 fi
16530 fi
16531 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16532 if test -n "$RANLIB_FOR_TARGET"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16534 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16538 fi
16539
16540
16541 done
16542 fi
16543
16544 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16545 for ncn_progname in ranlib; do
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16547 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16548 if test -x $with_build_time_tools/${ncn_progname}; then
16549 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16551 $as_echo "yes" >&6; }
16552 break
16553 else
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555 $as_echo "no" >&6; }
16556 fi
16557 done
16558 fi
16559
16560 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16561 for ncn_progname in ranlib; do
16562 if test -n "$ncn_target_tool_prefix"; then
16563 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16564 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16566 $as_echo_n "checking for $ac_word... " >&6; }
16567 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 if test -n "$RANLIB_FOR_TARGET"; then
16571 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16572 else
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576 IFS=$as_save_IFS
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16580 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582 break 2
16583 fi
16584 done
16585 done
16586 IFS=$as_save_IFS
16587
16588 fi
16589 fi
16590 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16591 if test -n "$RANLIB_FOR_TARGET"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16593 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16594 else
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16597 fi
16598
16599
16600 fi
16601 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16603 set dummy ${ncn_progname}; ac_word=$2
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16605 $as_echo_n "checking for $ac_word... " >&6; }
16606 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 if test -n "$RANLIB_FOR_TARGET"; then
16610 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16611 else
16612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16614 do
16615 IFS=$as_save_IFS
16616 test -z "$as_dir" && as_dir=.
16617 for ac_exec_ext in '' $ac_executable_extensions; do
16618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16619 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16621 break 2
16622 fi
16623 done
16624 done
16625 IFS=$as_save_IFS
16626
16627 fi
16628 fi
16629 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16630 if test -n "$RANLIB_FOR_TARGET"; then
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16632 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16633 else
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635 $as_echo "no" >&6; }
16636 fi
16637
16638
16639 fi
16640 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16641 done
16642 fi
16643
16644 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16645 set dummy ranlib
16646 if test $build = $target ; then
16647 RANLIB_FOR_TARGET="$2"
16648 else
16649 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16650 fi
16651 else
16652 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16653 fi
16654
16655 else
16656 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16657 fi
16658
16659
16660
16661
16662 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16663 if test -n "$with_build_time_tools"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16665 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16666 if test -x $with_build_time_tools/readelf; then
16667 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16668 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16670 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16671 else
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16674 fi
16675 elif test $build != $host && test $have_gcc_for_target = yes; then
16676 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16677 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16678 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16679 fi
16680 fi
16681 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16682 # Extract the first word of "readelf", so it can be a program name with args.
16683 set dummy readelf; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 $as_echo_n "checking for $ac_word... " >&6; }
16686 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 case $READELF_FOR_TARGET in
16690 [\\/]* | ?:[\\/]*)
16691 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16692 ;;
16693 *)
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $gcc_cv_tool_dirs
16696 do
16697 IFS=$as_save_IFS
16698 test -z "$as_dir" && as_dir=.
16699 for ac_exec_ext in '' $ac_executable_extensions; do
16700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16701 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703 break 2
16704 fi
16705 done
16706 done
16707 IFS=$as_save_IFS
16708
16709 ;;
16710 esac
16711 fi
16712 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16713 if test -n "$READELF_FOR_TARGET"; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16715 $as_echo "$READELF_FOR_TARGET" >&6; }
16716 else
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16719 fi
16720
16721
16722 fi
16723 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16724
16725
16726 if test -n "$READELF_FOR_TARGET"; then
16727 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16728 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16729 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16730 fi
16731
16732 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16733 for ncn_progname in readelf; do
16734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16735 set dummy ${ncn_progname}; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16737 $as_echo_n "checking for $ac_word... " >&6; }
16738 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 if test -n "$READELF_FOR_TARGET"; then
16742 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16746 do
16747 IFS=$as_save_IFS
16748 test -z "$as_dir" && as_dir=.
16749 for ac_exec_ext in '' $ac_executable_extensions; do
16750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 break 2
16754 fi
16755 done
16756 done
16757 IFS=$as_save_IFS
16758
16759 fi
16760 fi
16761 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16762 if test -n "$READELF_FOR_TARGET"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16764 $as_echo "$READELF_FOR_TARGET" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769
16770
16771 done
16772 fi
16773
16774 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16775 for ncn_progname in readelf; do
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16777 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16778 if test -x $with_build_time_tools/${ncn_progname}; then
16779 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16781 $as_echo "yes" >&6; }
16782 break
16783 else
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785 $as_echo "no" >&6; }
16786 fi
16787 done
16788 fi
16789
16790 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16791 for ncn_progname in readelf; do
16792 if test -n "$ncn_target_tool_prefix"; then
16793 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16794 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16796 $as_echo_n "checking for $ac_word... " >&6; }
16797 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16798 $as_echo_n "(cached) " >&6
16799 else
16800 if test -n "$READELF_FOR_TARGET"; then
16801 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16802 else
16803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16804 for as_dir in $PATH
16805 do
16806 IFS=$as_save_IFS
16807 test -z "$as_dir" && as_dir=.
16808 for ac_exec_ext in '' $ac_executable_extensions; do
16809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16810 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16812 break 2
16813 fi
16814 done
16815 done
16816 IFS=$as_save_IFS
16817
16818 fi
16819 fi
16820 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16821 if test -n "$READELF_FOR_TARGET"; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16823 $as_echo "$READELF_FOR_TARGET" >&6; }
16824 else
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16826 $as_echo "no" >&6; }
16827 fi
16828
16829
16830 fi
16831 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16833 set dummy ${ncn_progname}; ac_word=$2
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835 $as_echo_n "checking for $ac_word... " >&6; }
16836 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16837 $as_echo_n "(cached) " >&6
16838 else
16839 if test -n "$READELF_FOR_TARGET"; then
16840 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16841 else
16842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16843 for as_dir in $PATH
16844 do
16845 IFS=$as_save_IFS
16846 test -z "$as_dir" && as_dir=.
16847 for ac_exec_ext in '' $ac_executable_extensions; do
16848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16849 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16851 break 2
16852 fi
16853 done
16854 done
16855 IFS=$as_save_IFS
16856
16857 fi
16858 fi
16859 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16860 if test -n "$READELF_FOR_TARGET"; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16862 $as_echo "$READELF_FOR_TARGET" >&6; }
16863 else
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16865 $as_echo "no" >&6; }
16866 fi
16867
16868
16869 fi
16870 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16871 done
16872 fi
16873
16874 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16875 set dummy readelf
16876 if test $build = $target ; then
16877 READELF_FOR_TARGET="$2"
16878 else
16879 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16880 fi
16881 else
16882 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16883 fi
16884
16885 else
16886 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16887 fi
16888
16889
16890
16891
16892 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16893 if test -n "$with_build_time_tools"; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16895 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16896 if test -x $with_build_time_tools/strip; then
16897 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16898 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16900 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16901 else
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903 $as_echo "no" >&6; }
16904 fi
16905 elif test $build != $host && test $have_gcc_for_target = yes; then
16906 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16907 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16908 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16909 fi
16910 fi
16911 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16912 # Extract the first word of "strip", so it can be a program name with args.
16913 set dummy strip; ac_word=$2
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16915 $as_echo_n "checking for $ac_word... " >&6; }
16916 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16917 $as_echo_n "(cached) " >&6
16918 else
16919 case $STRIP_FOR_TARGET in
16920 [\\/]* | ?:[\\/]*)
16921 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16922 ;;
16923 *)
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $gcc_cv_tool_dirs
16926 do
16927 IFS=$as_save_IFS
16928 test -z "$as_dir" && as_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933 break 2
16934 fi
16935 done
16936 done
16937 IFS=$as_save_IFS
16938
16939 ;;
16940 esac
16941 fi
16942 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16943 if test -n "$STRIP_FOR_TARGET"; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16945 $as_echo "$STRIP_FOR_TARGET" >&6; }
16946 else
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16948 $as_echo "no" >&6; }
16949 fi
16950
16951
16952 fi
16953 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16954
16955
16956 if test -n "$STRIP_FOR_TARGET"; then
16957 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16958 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16959 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16960 fi
16961
16962 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16963 for ncn_progname in strip; do
16964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16965 set dummy ${ncn_progname}; ac_word=$2
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16967 $as_echo_n "checking for $ac_word... " >&6; }
16968 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 if test -n "$STRIP_FOR_TARGET"; then
16972 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16973 else
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16976 do
16977 IFS=$as_save_IFS
16978 test -z "$as_dir" && as_dir=.
16979 for ac_exec_ext in '' $ac_executable_extensions; do
16980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16981 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16983 break 2
16984 fi
16985 done
16986 done
16987 IFS=$as_save_IFS
16988
16989 fi
16990 fi
16991 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16992 if test -n "$STRIP_FOR_TARGET"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16994 $as_echo "$STRIP_FOR_TARGET" >&6; }
16995 else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
16998 fi
16999
17000
17001 done
17002 fi
17003
17004 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17005 for ncn_progname in strip; do
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17007 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17008 if test -x $with_build_time_tools/${ncn_progname}; then
17009 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17011 $as_echo "yes" >&6; }
17012 break
17013 else
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17016 fi
17017 done
17018 fi
17019
17020 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17021 for ncn_progname in strip; do
17022 if test -n "$ncn_target_tool_prefix"; then
17023 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17024 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17026 $as_echo_n "checking for $ac_word... " >&6; }
17027 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17028 $as_echo_n "(cached) " >&6
17029 else
17030 if test -n "$STRIP_FOR_TARGET"; then
17031 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17032 else
17033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17034 for as_dir in $PATH
17035 do
17036 IFS=$as_save_IFS
17037 test -z "$as_dir" && as_dir=.
17038 for ac_exec_ext in '' $ac_executable_extensions; do
17039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17040 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17042 break 2
17043 fi
17044 done
17045 done
17046 IFS=$as_save_IFS
17047
17048 fi
17049 fi
17050 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17051 if test -n "$STRIP_FOR_TARGET"; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17053 $as_echo "$STRIP_FOR_TARGET" >&6; }
17054 else
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17056 $as_echo "no" >&6; }
17057 fi
17058
17059
17060 fi
17061 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17063 set dummy ${ncn_progname}; ac_word=$2
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17065 $as_echo_n "checking for $ac_word... " >&6; }
17066 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17067 $as_echo_n "(cached) " >&6
17068 else
17069 if test -n "$STRIP_FOR_TARGET"; then
17070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17071 else
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17074 do
17075 IFS=$as_save_IFS
17076 test -z "$as_dir" && as_dir=.
17077 for ac_exec_ext in '' $ac_executable_extensions; do
17078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17081 break 2
17082 fi
17083 done
17084 done
17085 IFS=$as_save_IFS
17086
17087 fi
17088 fi
17089 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17090 if test -n "$STRIP_FOR_TARGET"; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17092 $as_echo "$STRIP_FOR_TARGET" >&6; }
17093 else
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 fi
17097
17098
17099 fi
17100 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17101 done
17102 fi
17103
17104 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17105 set dummy strip
17106 if test $build = $target ; then
17107 STRIP_FOR_TARGET="$2"
17108 else
17109 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17110 fi
17111 else
17112 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17113 fi
17114
17115 else
17116 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17117 fi
17118
17119
17120
17121
17122 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17123 if test -n "$with_build_time_tools"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17125 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17126 if test -x $with_build_time_tools/windres; then
17127 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17128 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17130 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17131 else
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17133 $as_echo "no" >&6; }
17134 fi
17135 elif test $build != $host && test $have_gcc_for_target = yes; then
17136 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17137 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17138 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17139 fi
17140 fi
17141 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17142 # Extract the first word of "windres", so it can be a program name with args.
17143 set dummy windres; ac_word=$2
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 case $WINDRES_FOR_TARGET in
17150 [\\/]* | ?:[\\/]*)
17151 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17152 ;;
17153 *)
17154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $gcc_cv_tool_dirs
17156 do
17157 IFS=$as_save_IFS
17158 test -z "$as_dir" && as_dir=.
17159 for ac_exec_ext in '' $ac_executable_extensions; do
17160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17161 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17163 break 2
17164 fi
17165 done
17166 done
17167 IFS=$as_save_IFS
17168
17169 ;;
17170 esac
17171 fi
17172 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17173 if test -n "$WINDRES_FOR_TARGET"; then
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17175 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17176 else
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17178 $as_echo "no" >&6; }
17179 fi
17180
17181
17182 fi
17183 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17184
17185
17186 if test -n "$WINDRES_FOR_TARGET"; then
17187 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17188 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17189 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17190 fi
17191
17192 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17193 for ncn_progname in windres; do
17194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17195 set dummy ${ncn_progname}; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 if test -n "$WINDRES_FOR_TARGET"; then
17202 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17203 else
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17206 do
17207 IFS=$as_save_IFS
17208 test -z "$as_dir" && as_dir=.
17209 for ac_exec_ext in '' $ac_executable_extensions; do
17210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17211 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17213 break 2
17214 fi
17215 done
17216 done
17217 IFS=$as_save_IFS
17218
17219 fi
17220 fi
17221 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17222 if test -n "$WINDRES_FOR_TARGET"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17224 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17225 else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228 fi
17229
17230
17231 done
17232 fi
17233
17234 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17235 for ncn_progname in windres; do
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17237 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17238 if test -x $with_build_time_tools/${ncn_progname}; then
17239 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17242 break
17243 else
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17245 $as_echo "no" >&6; }
17246 fi
17247 done
17248 fi
17249
17250 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17251 for ncn_progname in windres; do
17252 if test -n "$ncn_target_tool_prefix"; then
17253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17254 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17256 $as_echo_n "checking for $ac_word... " >&6; }
17257 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17258 $as_echo_n "(cached) " >&6
17259 else
17260 if test -n "$WINDRES_FOR_TARGET"; then
17261 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17262 else
17263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17264 for as_dir in $PATH
17265 do
17266 IFS=$as_save_IFS
17267 test -z "$as_dir" && as_dir=.
17268 for ac_exec_ext in '' $ac_executable_extensions; do
17269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17270 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17272 break 2
17273 fi
17274 done
17275 done
17276 IFS=$as_save_IFS
17277
17278 fi
17279 fi
17280 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17281 if test -n "$WINDRES_FOR_TARGET"; then
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17283 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17284 else
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17286 $as_echo "no" >&6; }
17287 fi
17288
17289
17290 fi
17291 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17293 set dummy ${ncn_progname}; ac_word=$2
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17295 $as_echo_n "checking for $ac_word... " >&6; }
17296 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17297 $as_echo_n "(cached) " >&6
17298 else
17299 if test -n "$WINDRES_FOR_TARGET"; then
17300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17301 else
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17304 do
17305 IFS=$as_save_IFS
17306 test -z "$as_dir" && as_dir=.
17307 for ac_exec_ext in '' $ac_executable_extensions; do
17308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17311 break 2
17312 fi
17313 done
17314 done
17315 IFS=$as_save_IFS
17316
17317 fi
17318 fi
17319 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17320 if test -n "$WINDRES_FOR_TARGET"; then
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17322 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17323 else
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17326 fi
17327
17328
17329 fi
17330 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17331 done
17332 fi
17333
17334 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17335 set dummy windres
17336 if test $build = $target ; then
17337 WINDRES_FOR_TARGET="$2"
17338 else
17339 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17340 fi
17341 else
17342 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17343 fi
17344
17345 else
17346 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17347 fi
17348
17349
17350
17351
17352 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17353 if test -n "$with_build_time_tools"; then
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17355 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17356 if test -x $with_build_time_tools/windmc; then
17357 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17358 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17360 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17361 else
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17364 fi
17365 elif test $build != $host && test $have_gcc_for_target = yes; then
17366 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17367 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17368 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17369 fi
17370 fi
17371 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17372 # Extract the first word of "windmc", so it can be a program name with args.
17373 set dummy windmc; ac_word=$2
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17375 $as_echo_n "checking for $ac_word... " >&6; }
17376 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 case $WINDMC_FOR_TARGET in
17380 [\\/]* | ?:[\\/]*)
17381 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17382 ;;
17383 *)
17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17385 for as_dir in $gcc_cv_tool_dirs
17386 do
17387 IFS=$as_save_IFS
17388 test -z "$as_dir" && as_dir=.
17389 for ac_exec_ext in '' $ac_executable_extensions; do
17390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17391 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17393 break 2
17394 fi
17395 done
17396 done
17397 IFS=$as_save_IFS
17398
17399 ;;
17400 esac
17401 fi
17402 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17403 if test -n "$WINDMC_FOR_TARGET"; then
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17405 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17406 else
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17408 $as_echo "no" >&6; }
17409 fi
17410
17411
17412 fi
17413 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17414
17415
17416 if test -n "$WINDMC_FOR_TARGET"; then
17417 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17418 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17419 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17420 fi
17421
17422 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17423 for ncn_progname in windmc; do
17424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17425 set dummy ${ncn_progname}; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17427 $as_echo_n "checking for $ac_word... " >&6; }
17428 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17429 $as_echo_n "(cached) " >&6
17430 else
17431 if test -n "$WINDMC_FOR_TARGET"; then
17432 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17433 else
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17436 do
17437 IFS=$as_save_IFS
17438 test -z "$as_dir" && as_dir=.
17439 for ac_exec_ext in '' $ac_executable_extensions; do
17440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17443 break 2
17444 fi
17445 done
17446 done
17447 IFS=$as_save_IFS
17448
17449 fi
17450 fi
17451 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17452 if test -n "$WINDMC_FOR_TARGET"; then
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17454 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17455 else
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457 $as_echo "no" >&6; }
17458 fi
17459
17460
17461 done
17462 fi
17463
17464 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17465 for ncn_progname in windmc; do
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17467 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17468 if test -x $with_build_time_tools/${ncn_progname}; then
17469 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17471 $as_echo "yes" >&6; }
17472 break
17473 else
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475 $as_echo "no" >&6; }
17476 fi
17477 done
17478 fi
17479
17480 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17481 for ncn_progname in windmc; do
17482 if test -n "$ncn_target_tool_prefix"; then
17483 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17484 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17488 $as_echo_n "(cached) " >&6
17489 else
17490 if test -n "$WINDMC_FOR_TARGET"; then
17491 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17492 else
17493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17494 for as_dir in $PATH
17495 do
17496 IFS=$as_save_IFS
17497 test -z "$as_dir" && as_dir=.
17498 for ac_exec_ext in '' $ac_executable_extensions; do
17499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17500 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17502 break 2
17503 fi
17504 done
17505 done
17506 IFS=$as_save_IFS
17507
17508 fi
17509 fi
17510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17511 if test -n "$WINDMC_FOR_TARGET"; then
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17513 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17514 else
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 $as_echo "no" >&6; }
17517 fi
17518
17519
17520 fi
17521 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17523 set dummy ${ncn_progname}; ac_word=$2
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17525 $as_echo_n "checking for $ac_word... " >&6; }
17526 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17527 $as_echo_n "(cached) " >&6
17528 else
17529 if test -n "$WINDMC_FOR_TARGET"; then
17530 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17531 else
17532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17533 for as_dir in $PATH
17534 do
17535 IFS=$as_save_IFS
17536 test -z "$as_dir" && as_dir=.
17537 for ac_exec_ext in '' $ac_executable_extensions; do
17538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17539 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17541 break 2
17542 fi
17543 done
17544 done
17545 IFS=$as_save_IFS
17546
17547 fi
17548 fi
17549 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17550 if test -n "$WINDMC_FOR_TARGET"; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17552 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17553 else
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555 $as_echo "no" >&6; }
17556 fi
17557
17558
17559 fi
17560 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17561 done
17562 fi
17563
17564 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17565 set dummy windmc
17566 if test $build = $target ; then
17567 WINDMC_FOR_TARGET="$2"
17568 else
17569 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17570 fi
17571 else
17572 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17573 fi
17574
17575 else
17576 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17577 fi
17578
17579
17580 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17581
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17583 $as_echo_n "checking where to find the target ar... " >&6; }
17584 if test "x${build}" != "x${host}" ; then
17585 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17586 # We already found the complete path
17587 ac_dir=`dirname $AR_FOR_TARGET`
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17589 $as_echo "pre-installed in $ac_dir" >&6; }
17590 else
17591 # Canadian cross, just use what we found
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17593 $as_echo "pre-installed" >&6; }
17594 fi
17595 else
17596 ok=yes
17597 case " ${configdirs} " in
17598 *" binutils "*) ;;
17599 *) ok=no ;;
17600 esac
17601
17602 if test $ok = yes; then
17603 # An in-tree tool is available and we can use it
17604 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17606 $as_echo "just compiled" >&6; }
17607 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17608 # We already found the complete path
17609 ac_dir=`dirname $AR_FOR_TARGET`
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17611 $as_echo "pre-installed in $ac_dir" >&6; }
17612 elif test "x$target" = "x$host"; then
17613 # We can use an host tool
17614 AR_FOR_TARGET='$(AR)'
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17616 $as_echo "host tool" >&6; }
17617 else
17618 # We need a cross tool
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17620 $as_echo "pre-installed" >&6; }
17621 fi
17622 fi
17623
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17625 $as_echo_n "checking where to find the target as... " >&6; }
17626 if test "x${build}" != "x${host}" ; then
17627 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17628 # We already found the complete path
17629 ac_dir=`dirname $AS_FOR_TARGET`
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17631 $as_echo "pre-installed in $ac_dir" >&6; }
17632 else
17633 # Canadian cross, just use what we found
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17635 $as_echo "pre-installed" >&6; }
17636 fi
17637 else
17638 ok=yes
17639 case " ${configdirs} " in
17640 *" gas "*) ;;
17641 *) ok=no ;;
17642 esac
17643
17644 if test $ok = yes; then
17645 # An in-tree tool is available and we can use it
17646 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17648 $as_echo "just compiled" >&6; }
17649 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17650 # We already found the complete path
17651 ac_dir=`dirname $AS_FOR_TARGET`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17653 $as_echo "pre-installed in $ac_dir" >&6; }
17654 elif test "x$target" = "x$host"; then
17655 # We can use an host tool
17656 AS_FOR_TARGET='$(AS)'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17658 $as_echo "host tool" >&6; }
17659 else
17660 # We need a cross tool
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17662 $as_echo "pre-installed" >&6; }
17663 fi
17664 fi
17665
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17667 $as_echo_n "checking where to find the target cc... " >&6; }
17668 if test "x${build}" != "x${host}" ; then
17669 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17670 # We already found the complete path
17671 ac_dir=`dirname $CC_FOR_TARGET`
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17673 $as_echo "pre-installed in $ac_dir" >&6; }
17674 else
17675 # Canadian cross, just use what we found
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17677 $as_echo "pre-installed" >&6; }
17678 fi
17679 else
17680 ok=yes
17681 case " ${configdirs} " in
17682 *" gcc "*) ;;
17683 *) ok=no ;;
17684 esac
17685
17686 if test $ok = yes; then
17687 # An in-tree tool is available and we can use it
17688 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17690 $as_echo "just compiled" >&6; }
17691 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17692 # We already found the complete path
17693 ac_dir=`dirname $CC_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 elif test "x$target" = "x$host"; then
17697 # We can use an host tool
17698 CC_FOR_TARGET='$(CC)'
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17700 $as_echo "host tool" >&6; }
17701 else
17702 # We need a cross tool
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17704 $as_echo "pre-installed" >&6; }
17705 fi
17706 fi
17707
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17709 $as_echo_n "checking where to find the target c++... " >&6; }
17710 if test "x${build}" != "x${host}" ; then
17711 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17712 # We already found the complete path
17713 ac_dir=`dirname $CXX_FOR_TARGET`
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17715 $as_echo "pre-installed in $ac_dir" >&6; }
17716 else
17717 # Canadian cross, just use what we found
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17719 $as_echo "pre-installed" >&6; }
17720 fi
17721 else
17722 ok=yes
17723 case " ${configdirs} " in
17724 *" gcc "*) ;;
17725 *) ok=no ;;
17726 esac
17727 case ,${enable_languages}, in
17728 *,c++,*) ;;
17729 *) ok=no ;;
17730 esac
17731 if test $ok = yes; then
17732 # An in-tree tool is available and we can use it
17733 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'
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17735 $as_echo "just compiled" >&6; }
17736 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17737 # We already found the complete path
17738 ac_dir=`dirname $CXX_FOR_TARGET`
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17740 $as_echo "pre-installed in $ac_dir" >&6; }
17741 elif test "x$target" = "x$host"; then
17742 # We can use an host tool
17743 CXX_FOR_TARGET='$(CXX)'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17745 $as_echo "host tool" >&6; }
17746 else
17747 # We need a cross tool
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17749 $as_echo "pre-installed" >&6; }
17750 fi
17751 fi
17752
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17754 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17755 if test "x${build}" != "x${host}" ; then
17756 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17757 # We already found the complete path
17758 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17760 $as_echo "pre-installed in $ac_dir" >&6; }
17761 else
17762 # Canadian cross, just use what we found
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17764 $as_echo "pre-installed" >&6; }
17765 fi
17766 else
17767 ok=yes
17768 case " ${configdirs} " in
17769 *" gcc "*) ;;
17770 *) ok=no ;;
17771 esac
17772 case ,${enable_languages}, in
17773 *,c++,*) ;;
17774 *) ok=no ;;
17775 esac
17776 if test $ok = yes; then
17777 # An in-tree tool is available and we can use it
17778 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'
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17780 $as_echo "just compiled" >&6; }
17781 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17782 # We already found the complete path
17783 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17785 $as_echo "pre-installed in $ac_dir" >&6; }
17786 elif test "x$target" = "x$host"; then
17787 # We can use an host tool
17788 RAW_CXX_FOR_TARGET='$(CXX)'
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17790 $as_echo "host tool" >&6; }
17791 else
17792 # We need a cross tool
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17794 $as_echo "pre-installed" >&6; }
17795 fi
17796 fi
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17799 $as_echo_n "checking where to find the target dlltool... " >&6; }
17800 if test "x${build}" != "x${host}" ; then
17801 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17802 # We already found the complete path
17803 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17805 $as_echo "pre-installed in $ac_dir" >&6; }
17806 else
17807 # Canadian cross, just use what we found
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17809 $as_echo "pre-installed" >&6; }
17810 fi
17811 else
17812 ok=yes
17813 case " ${configdirs} " in
17814 *" binutils "*) ;;
17815 *) ok=no ;;
17816 esac
17817
17818 if test $ok = yes; then
17819 # An in-tree tool is available and we can use it
17820 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17822 $as_echo "just compiled" >&6; }
17823 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17824 # We already found the complete path
17825 ac_dir=`dirname $DLLTOOL_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 elif test "x$target" = "x$host"; then
17829 # We can use an host tool
17830 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17832 $as_echo "host tool" >&6; }
17833 else
17834 # We need a cross tool
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17836 $as_echo "pre-installed" >&6; }
17837 fi
17838 fi
17839
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17841 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17842 if test "x${build}" != "x${host}" ; then
17843 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17844 # We already found the complete path
17845 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17847 $as_echo "pre-installed in $ac_dir" >&6; }
17848 else
17849 # Canadian cross, just use what we found
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17851 $as_echo "pre-installed" >&6; }
17852 fi
17853 else
17854 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17855 # We already found the complete path
17856 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17858 $as_echo "pre-installed in $ac_dir" >&6; }
17859 elif test "x$target" = "x$host"; then
17860 # We can use an host tool
17861 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17863 $as_echo "host tool" >&6; }
17864 else
17865 # We need a cross tool
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17868 fi
17869 fi
17870
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17872 $as_echo_n "checking where to find the target gcc... " >&6; }
17873 if test "x${build}" != "x${host}" ; then
17874 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17875 # We already found the complete path
17876 ac_dir=`dirname $GCC_FOR_TARGET`
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17878 $as_echo "pre-installed in $ac_dir" >&6; }
17879 else
17880 # Canadian cross, just use what we found
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17882 $as_echo "pre-installed" >&6; }
17883 fi
17884 else
17885 ok=yes
17886 case " ${configdirs} " in
17887 *" gcc "*) ;;
17888 *) ok=no ;;
17889 esac
17890
17891 if test $ok = yes; then
17892 # An in-tree tool is available and we can use it
17893 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17895 $as_echo "just compiled" >&6; }
17896 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17897 # We already found the complete path
17898 ac_dir=`dirname $GCC_FOR_TARGET`
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17900 $as_echo "pre-installed in $ac_dir" >&6; }
17901 elif test "x$target" = "x$host"; then
17902 # We can use an host tool
17903 GCC_FOR_TARGET='$()'
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17905 $as_echo "host tool" >&6; }
17906 else
17907 # We need a cross tool
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17910 fi
17911 fi
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17914 $as_echo_n "checking where to find the target gfortran... " >&6; }
17915 if test "x${build}" != "x${host}" ; then
17916 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17920 $as_echo "pre-installed in $ac_dir" >&6; }
17921 else
17922 # Canadian cross, just use what we found
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17924 $as_echo "pre-installed" >&6; }
17925 fi
17926 else
17927 ok=yes
17928 case " ${configdirs} " in
17929 *" gcc "*) ;;
17930 *) ok=no ;;
17931 esac
17932 case ,${enable_languages}, in
17933 *,fortran,*) ;;
17934 *) ok=no ;;
17935 esac
17936 if test $ok = yes; then
17937 # An in-tree tool is available and we can use it
17938 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17940 $as_echo "just compiled" >&6; }
17941 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17942 # We already found the complete path
17943 ac_dir=`dirname $GFORTRAN_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 elif test "x$target" = "x$host"; then
17947 # We can use an host tool
17948 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17950 $as_echo "host tool" >&6; }
17951 else
17952 # We need a cross tool
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17954 $as_echo "pre-installed" >&6; }
17955 fi
17956 fi
17957
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17959 $as_echo_n "checking where to find the target gccgo... " >&6; }
17960 if test "x${build}" != "x${host}" ; then
17961 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17962 # We already found the complete path
17963 ac_dir=`dirname $GOC_FOR_TARGET`
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17965 $as_echo "pre-installed in $ac_dir" >&6; }
17966 else
17967 # Canadian cross, just use what we found
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17969 $as_echo "pre-installed" >&6; }
17970 fi
17971 else
17972 ok=yes
17973 case " ${configdirs} " in
17974 *" gcc "*) ;;
17975 *) ok=no ;;
17976 esac
17977 case ,${enable_languages}, in
17978 *,go,*) ;;
17979 *) ok=no ;;
17980 esac
17981 if test $ok = yes; then
17982 # An in-tree tool is available and we can use it
17983 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17985 $as_echo "just compiled" >&6; }
17986 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17987 # We already found the complete path
17988 ac_dir=`dirname $GOC_FOR_TARGET`
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17990 $as_echo "pre-installed in $ac_dir" >&6; }
17991 elif test "x$target" = "x$host"; then
17992 # We can use an host tool
17993 GOC_FOR_TARGET='$(GOC)'
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17995 $as_echo "host tool" >&6; }
17996 else
17997 # We need a cross tool
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17999 $as_echo "pre-installed" >&6; }
18000 fi
18001 fi
18002
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18004 $as_echo_n "checking where to find the target gdc... " >&6; }
18005 if test "x${build}" != "x${host}" ; then
18006 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18007 # We already found the complete path
18008 ac_dir=`dirname $GDC_FOR_TARGET`
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18010 $as_echo "pre-installed in $ac_dir" >&6; }
18011 else
18012 # Canadian cross, just use what we found
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18014 $as_echo "pre-installed" >&6; }
18015 fi
18016 else
18017 ok=yes
18018 case " ${configdirs} " in
18019 *" gcc "*) ;;
18020 *) ok=no ;;
18021 esac
18022 case ,${enable_languages}, in
18023 *,d,*) ;;
18024 *) ok=no ;;
18025 esac
18026 if test $ok = yes; then
18027 # An in-tree tool is available and we can use it
18028 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18030 $as_echo "just compiled" >&6; }
18031 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18032 # We already found the complete path
18033 ac_dir=`dirname $GDC_FOR_TARGET`
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18035 $as_echo "pre-installed in $ac_dir" >&6; }
18036 elif test "x$target" = "x$host"; then
18037 # We can use an host tool
18038 GDC_FOR_TARGET='$(GDC)'
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18040 $as_echo "host tool" >&6; }
18041 else
18042 # We need a cross tool
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18044 $as_echo "pre-installed" >&6; }
18045 fi
18046 fi
18047
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18049 $as_echo_n "checking where to find the target ld... " >&6; }
18050 if test "x${build}" != "x${host}" ; then
18051 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18052 # We already found the complete path
18053 ac_dir=`dirname $LD_FOR_TARGET`
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18055 $as_echo "pre-installed in $ac_dir" >&6; }
18056 else
18057 # Canadian cross, just use what we found
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18059 $as_echo "pre-installed" >&6; }
18060 fi
18061 else
18062 ok=yes
18063 case " ${configdirs} " in
18064 *" ld "*) ;;
18065 *) ok=no ;;
18066 esac
18067
18068 if test $ok = yes; then
18069 # An in-tree tool is available and we can use it
18070 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18072 $as_echo "just compiled" >&6; }
18073 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18074 # We already found the complete path
18075 ac_dir=`dirname $LD_FOR_TARGET`
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18077 $as_echo "pre-installed in $ac_dir" >&6; }
18078 elif test "x$target" = "x$host"; then
18079 # We can use an host tool
18080 LD_FOR_TARGET='$(LD)'
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18082 $as_echo "host tool" >&6; }
18083 else
18084 # We need a cross tool
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18086 $as_echo "pre-installed" >&6; }
18087 fi
18088 fi
18089
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18091 $as_echo_n "checking where to find the target lipo... " >&6; }
18092 if test "x${build}" != "x${host}" ; then
18093 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18094 # We already found the complete path
18095 ac_dir=`dirname $LIPO_FOR_TARGET`
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18097 $as_echo "pre-installed in $ac_dir" >&6; }
18098 else
18099 # Canadian cross, just use what we found
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18101 $as_echo "pre-installed" >&6; }
18102 fi
18103 else
18104 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18105 # We already found the complete path
18106 ac_dir=`dirname $LIPO_FOR_TARGET`
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18108 $as_echo "pre-installed in $ac_dir" >&6; }
18109 elif test "x$target" = "x$host"; then
18110 # We can use an host tool
18111 LIPO_FOR_TARGET='$(LIPO)'
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18113 $as_echo "host tool" >&6; }
18114 else
18115 # We need a cross tool
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18117 $as_echo "pre-installed" >&6; }
18118 fi
18119 fi
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18122 $as_echo_n "checking where to find the target nm... " >&6; }
18123 if test "x${build}" != "x${host}" ; then
18124 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18125 # We already found the complete path
18126 ac_dir=`dirname $NM_FOR_TARGET`
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18128 $as_echo "pre-installed in $ac_dir" >&6; }
18129 else
18130 # Canadian cross, just use what we found
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18132 $as_echo "pre-installed" >&6; }
18133 fi
18134 else
18135 ok=yes
18136 case " ${configdirs} " in
18137 *" binutils "*) ;;
18138 *) ok=no ;;
18139 esac
18140
18141 if test $ok = yes; then
18142 # An in-tree tool is available and we can use it
18143 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18145 $as_echo "just compiled" >&6; }
18146 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18147 # We already found the complete path
18148 ac_dir=`dirname $NM_FOR_TARGET`
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18150 $as_echo "pre-installed in $ac_dir" >&6; }
18151 elif test "x$target" = "x$host"; then
18152 # We can use an host tool
18153 NM_FOR_TARGET='$(NM)'
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18155 $as_echo "host tool" >&6; }
18156 else
18157 # We need a cross tool
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18159 $as_echo "pre-installed" >&6; }
18160 fi
18161 fi
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18164 $as_echo_n "checking where to find the target objcopy... " >&6; }
18165 if test "x${build}" != "x${host}" ; then
18166 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18167 # We already found the complete path
18168 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18170 $as_echo "pre-installed in $ac_dir" >&6; }
18171 else
18172 # Canadian cross, just use what we found
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18174 $as_echo "pre-installed" >&6; }
18175 fi
18176 else
18177 ok=yes
18178 case " ${configdirs} " in
18179 *" binutils "*) ;;
18180 *) ok=no ;;
18181 esac
18182
18183 if test $ok = yes; then
18184 # An in-tree tool is available and we can use it
18185 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18187 $as_echo "just compiled" >&6; }
18188 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18189 # We already found the complete path
18190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18192 $as_echo "pre-installed in $ac_dir" >&6; }
18193 elif test "x$target" = "x$host"; then
18194 # We can use an host tool
18195 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18197 $as_echo "host tool" >&6; }
18198 else
18199 # We need a cross tool
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18201 $as_echo "pre-installed" >&6; }
18202 fi
18203 fi
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18206 $as_echo_n "checking where to find the target objdump... " >&6; }
18207 if test "x${build}" != "x${host}" ; then
18208 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18209 # We already found the complete path
18210 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18212 $as_echo "pre-installed in $ac_dir" >&6; }
18213 else
18214 # Canadian cross, just use what we found
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18216 $as_echo "pre-installed" >&6; }
18217 fi
18218 else
18219 ok=yes
18220 case " ${configdirs} " in
18221 *" binutils "*) ;;
18222 *) ok=no ;;
18223 esac
18224
18225 if test $ok = yes; then
18226 # An in-tree tool is available and we can use it
18227 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18229 $as_echo "just compiled" >&6; }
18230 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18231 # We already found the complete path
18232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18234 $as_echo "pre-installed in $ac_dir" >&6; }
18235 elif test "x$target" = "x$host"; then
18236 # We can use an host tool
18237 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18239 $as_echo "host tool" >&6; }
18240 else
18241 # We need a cross tool
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18243 $as_echo "pre-installed" >&6; }
18244 fi
18245 fi
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18248 $as_echo_n "checking where to find the target otool... " >&6; }
18249 if test "x${build}" != "x${host}" ; then
18250 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18251 # We already found the complete path
18252 ac_dir=`dirname $OTOOL_FOR_TARGET`
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18254 $as_echo "pre-installed in $ac_dir" >&6; }
18255 else
18256 # Canadian cross, just use what we found
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18258 $as_echo "pre-installed" >&6; }
18259 fi
18260 else
18261 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18262 # We already found the complete path
18263 ac_dir=`dirname $OTOOL_FOR_TARGET`
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18265 $as_echo "pre-installed in $ac_dir" >&6; }
18266 elif test "x$target" = "x$host"; then
18267 # We can use an host tool
18268 OTOOL_FOR_TARGET='$(OTOOL)'
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18270 $as_echo "host tool" >&6; }
18271 else
18272 # We need a cross tool
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18274 $as_echo "pre-installed" >&6; }
18275 fi
18276 fi
18277
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18279 $as_echo_n "checking where to find the target ranlib... " >&6; }
18280 if test "x${build}" != "x${host}" ; then
18281 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18282 # We already found the complete path
18283 ac_dir=`dirname $RANLIB_FOR_TARGET`
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18285 $as_echo "pre-installed in $ac_dir" >&6; }
18286 else
18287 # Canadian cross, just use what we found
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18289 $as_echo "pre-installed" >&6; }
18290 fi
18291 else
18292 ok=yes
18293 case " ${configdirs} " in
18294 *" binutils "*) ;;
18295 *) ok=no ;;
18296 esac
18297
18298 if test $ok = yes; then
18299 # An in-tree tool is available and we can use it
18300 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18302 $as_echo "just compiled" >&6; }
18303 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18304 # We already found the complete path
18305 ac_dir=`dirname $RANLIB_FOR_TARGET`
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18307 $as_echo "pre-installed in $ac_dir" >&6; }
18308 elif test "x$target" = "x$host"; then
18309 # We can use an host tool
18310 RANLIB_FOR_TARGET='$(RANLIB)'
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18312 $as_echo "host tool" >&6; }
18313 else
18314 # We need a cross tool
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18316 $as_echo "pre-installed" >&6; }
18317 fi
18318 fi
18319
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18321 $as_echo_n "checking where to find the target readelf... " >&6; }
18322 if test "x${build}" != "x${host}" ; then
18323 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18324 # We already found the complete path
18325 ac_dir=`dirname $READELF_FOR_TARGET`
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18327 $as_echo "pre-installed in $ac_dir" >&6; }
18328 else
18329 # Canadian cross, just use what we found
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18331 $as_echo "pre-installed" >&6; }
18332 fi
18333 else
18334 ok=yes
18335 case " ${configdirs} " in
18336 *" binutils "*) ;;
18337 *) ok=no ;;
18338 esac
18339
18340 if test $ok = yes; then
18341 # An in-tree tool is available and we can use it
18342 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18344 $as_echo "just compiled" >&6; }
18345 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18346 # We already found the complete path
18347 ac_dir=`dirname $READELF_FOR_TARGET`
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18349 $as_echo "pre-installed in $ac_dir" >&6; }
18350 elif test "x$target" = "x$host"; then
18351 # We can use an host tool
18352 READELF_FOR_TARGET='$(READELF)'
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18354 $as_echo "host tool" >&6; }
18355 else
18356 # We need a cross tool
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18358 $as_echo "pre-installed" >&6; }
18359 fi
18360 fi
18361
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18363 $as_echo_n "checking where to find the target strip... " >&6; }
18364 if test "x${build}" != "x${host}" ; then
18365 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18366 # We already found the complete path
18367 ac_dir=`dirname $STRIP_FOR_TARGET`
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18369 $as_echo "pre-installed in $ac_dir" >&6; }
18370 else
18371 # Canadian cross, just use what we found
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18373 $as_echo "pre-installed" >&6; }
18374 fi
18375 else
18376 ok=yes
18377 case " ${configdirs} " in
18378 *" binutils "*) ;;
18379 *) ok=no ;;
18380 esac
18381
18382 if test $ok = yes; then
18383 # An in-tree tool is available and we can use it
18384 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18386 $as_echo "just compiled" >&6; }
18387 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18388 # We already found the complete path
18389 ac_dir=`dirname $STRIP_FOR_TARGET`
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18391 $as_echo "pre-installed in $ac_dir" >&6; }
18392 elif test "x$target" = "x$host"; then
18393 # We can use an host tool
18394 STRIP_FOR_TARGET='$(STRIP)'
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18396 $as_echo "host tool" >&6; }
18397 else
18398 # We need a cross tool
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18400 $as_echo "pre-installed" >&6; }
18401 fi
18402 fi
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18405 $as_echo_n "checking where to find the target windres... " >&6; }
18406 if test "x${build}" != "x${host}" ; then
18407 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18408 # We already found the complete path
18409 ac_dir=`dirname $WINDRES_FOR_TARGET`
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18411 $as_echo "pre-installed in $ac_dir" >&6; }
18412 else
18413 # Canadian cross, just use what we found
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18415 $as_echo "pre-installed" >&6; }
18416 fi
18417 else
18418 ok=yes
18419 case " ${configdirs} " in
18420 *" binutils "*) ;;
18421 *) ok=no ;;
18422 esac
18423
18424 if test $ok = yes; then
18425 # An in-tree tool is available and we can use it
18426 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18428 $as_echo "just compiled" >&6; }
18429 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18430 # We already found the complete path
18431 ac_dir=`dirname $WINDRES_FOR_TARGET`
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18433 $as_echo "pre-installed in $ac_dir" >&6; }
18434 elif test "x$target" = "x$host"; then
18435 # We can use an host tool
18436 WINDRES_FOR_TARGET='$(WINDRES)'
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18438 $as_echo "host tool" >&6; }
18439 else
18440 # We need a cross tool
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18442 $as_echo "pre-installed" >&6; }
18443 fi
18444 fi
18445
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18447 $as_echo_n "checking where to find the target windmc... " >&6; }
18448 if test "x${build}" != "x${host}" ; then
18449 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18450 # We already found the complete path
18451 ac_dir=`dirname $WINDMC_FOR_TARGET`
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18453 $as_echo "pre-installed in $ac_dir" >&6; }
18454 else
18455 # Canadian cross, just use what we found
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18457 $as_echo "pre-installed" >&6; }
18458 fi
18459 else
18460 ok=yes
18461 case " ${configdirs} " in
18462 *" binutils "*) ;;
18463 *) ok=no ;;
18464 esac
18465
18466 if test $ok = yes; then
18467 # An in-tree tool is available and we can use it
18468 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18470 $as_echo "just compiled" >&6; }
18471 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $WINDMC_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18475 $as_echo "pre-installed in $ac_dir" >&6; }
18476 elif test "x$target" = "x$host"; then
18477 # We can use an host tool
18478 WINDMC_FOR_TARGET='$(WINDMC)'
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18480 $as_echo "host tool" >&6; }
18481 else
18482 # We need a cross tool
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18484 $as_echo "pre-installed" >&6; }
18485 fi
18486 fi
18487
18488
18489
18490
18491
18492 # Certain tools may need extra flags.
18493 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18494 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18495 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18496
18497 # When building target libraries, except in a Canadian cross, we use
18498 # the same toolchain as the compiler we just built.
18499 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18500 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18501 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18502 if test $host = $build; then
18503 case " $configdirs " in
18504 *" gcc "*)
18505 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18506 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18507 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18508 ;;
18509 esac
18510 fi
18511
18512
18513
18514
18515
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18517 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18518 # Check whether --enable-maintainer-mode was given.
18519 if test "${enable_maintainer_mode+set}" = set; then :
18520 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18521 else
18522 USE_MAINTAINER_MODE=no
18523 fi
18524
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18526 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18527
18528
18529 if test "$USE_MAINTAINER_MODE" = yes; then
18530 MAINTAINER_MODE_TRUE=
18531 MAINTAINER_MODE_FALSE='#'
18532 else
18533 MAINTAINER_MODE_TRUE='#'
18534 MAINTAINER_MODE_FALSE=
18535 fi
18536 MAINT=$MAINTAINER_MODE_TRUE
18537
18538 # ---------------------
18539 # GCC bootstrap support
18540 # ---------------------
18541
18542 # Stage specific cflags for build.
18543 stage1_cflags="-g"
18544 case $build in
18545 vax-*-*)
18546 case ${GCC} in
18547 yes) stage1_cflags="-g -Wa,-J" ;;
18548 *) stage1_cflags="-g -J" ;;
18549 esac ;;
18550 esac
18551
18552
18553
18554 # Enable --enable-checking in stage1 of the compiler.
18555 # Check whether --enable-stage1-checking was given.
18556 if test "${enable_stage1_checking+set}" = set; then :
18557 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18558 else
18559 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18560 # For --disable-checking or implicit --enable-checking=release, avoid
18561 # setting --enable-checking=gc in the default stage1 checking for LTO
18562 # bootstraps. See PR62077.
18563 case $BUILD_CONFIG in
18564 *lto*)
18565 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18566 *)
18567 stage1_checking=--enable-checking=yes,types;;
18568 esac
18569 if test "x$enable_checking" = x && \
18570 test -d ${srcdir}/gcc && \
18571 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18572 stage1_checking=--enable-checking=yes,types,extra
18573 fi
18574 else
18575 stage1_checking=--enable-checking=$enable_checking,types
18576 fi
18577 fi
18578
18579
18580
18581 # Enable -Werror in bootstrap stage2 and later.
18582 # Check whether --enable-werror was given.
18583 if test "${enable_werror+set}" = set; then :
18584 enableval=$enable_werror;
18585 case ${enable_werror} in
18586 yes) stage2_werror_flag="--enable-werror-always" ;;
18587 *) stage2_werror_flag="" ;;
18588 esac
18589
18590 else
18591
18592 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18593 case $BUILD_CONFIG in
18594 bootstrap-debug)
18595 stage2_werror_flag="--enable-werror-always" ;;
18596 "")
18597 stage2_werror_flag="--enable-werror-always" ;;
18598 esac
18599 fi
18600
18601 fi
18602
18603
18604
18605
18606 # Specify what files to not compare during bootstrap.
18607
18608 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18609 case "$target" in
18610 hppa*64*-*-hpux*) ;;
18611 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18612 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18613 esac
18614
18615
18616 ac_config_files="$ac_config_files Makefile"
18617
18618 cat >confcache <<\_ACEOF
18619 # This file is a shell script that caches the results of configure
18620 # tests run on this system so they can be shared between configure
18621 # scripts and configure runs, see configure's option --config-cache.
18622 # It is not useful on other systems. If it contains results you don't
18623 # want to keep, you may remove or edit it.
18624 #
18625 # config.status only pays attention to the cache file if you give it
18626 # the --recheck option to rerun configure.
18627 #
18628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18630 # following values.
18631
18632 _ACEOF
18633
18634 # The following way of writing the cache mishandles newlines in values,
18635 # but we know of no workaround that is simple, portable, and efficient.
18636 # So, we kill variables containing newlines.
18637 # Ultrix sh set writes to stderr and can't be redirected directly,
18638 # and sets the high bit in the cache file unless we assign to the vars.
18639 (
18640 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18641 eval ac_val=\$$ac_var
18642 case $ac_val in #(
18643 *${as_nl}*)
18644 case $ac_var in #(
18645 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18647 esac
18648 case $ac_var in #(
18649 _ | IFS | as_nl) ;; #(
18650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18651 *) { eval $ac_var=; unset $ac_var;} ;;
18652 esac ;;
18653 esac
18654 done
18655
18656 (set) 2>&1 |
18657 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18658 *${as_nl}ac_space=\ *)
18659 # `set' does not quote correctly, so add quotes: double-quote
18660 # substitution turns \\\\ into \\, and sed turns \\ into \.
18661 sed -n \
18662 "s/'/'\\\\''/g;
18663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18664 ;; #(
18665 *)
18666 # `set' quotes correctly as required by POSIX, so do not add quotes.
18667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18668 ;;
18669 esac |
18670 sort
18671 ) |
18672 sed '
18673 /^ac_cv_env_/b end
18674 t clear
18675 :clear
18676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18677 t end
18678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18679 :end' >>confcache
18680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18681 if test -w "$cache_file"; then
18682 if test "x$cache_file" != "x/dev/null"; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18684 $as_echo "$as_me: updating cache $cache_file" >&6;}
18685 if test ! -f "$cache_file" || test -h "$cache_file"; then
18686 cat confcache >"$cache_file"
18687 else
18688 case $cache_file in #(
18689 */* | ?:*)
18690 mv -f confcache "$cache_file"$$ &&
18691 mv -f "$cache_file"$$ "$cache_file" ;; #(
18692 *)
18693 mv -f confcache "$cache_file" ;;
18694 esac
18695 fi
18696 fi
18697 else
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18700 fi
18701 fi
18702 rm -f confcache
18703
18704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18705 # Let make expand exec_prefix.
18706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18707
18708 # Transform confdefs.h into DEFS.
18709 # Protect against shell expansion while executing Makefile rules.
18710 # Protect against Makefile macro expansion.
18711 #
18712 # If the first sed substitution is executed (which looks for macros that
18713 # take arguments), then branch to the quote section. Otherwise,
18714 # look for a macro that doesn't take arguments.
18715 ac_script='
18716 :mline
18717 /\\$/{
18718 N
18719 s,\\\n,,
18720 b mline
18721 }
18722 t clear
18723 :clear
18724 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18725 t quote
18726 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18727 t quote
18728 b any
18729 :quote
18730 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18731 s/\[/\\&/g
18732 s/\]/\\&/g
18733 s/\$/$$/g
18734 H
18735 :any
18736 ${
18737 g
18738 s/^\n//
18739 s/\n/ /g
18740 p
18741 }
18742 '
18743 DEFS=`sed -n "$ac_script" confdefs.h`
18744
18745
18746 ac_libobjs=
18747 ac_ltlibobjs=
18748 U=
18749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18750 # 1. Remove the extension, and $U if already installed.
18751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18752 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18754 # will be set to the directory where LIBOBJS objects are built.
18755 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18756 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18757 done
18758 LIBOBJS=$ac_libobjs
18759
18760 LTLIBOBJS=$ac_ltlibobjs
18761
18762
18763
18764 : "${CONFIG_STATUS=./config.status}"
18765 ac_write_fail=0
18766 ac_clean_files_save=$ac_clean_files
18767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18770 as_write_fail=0
18771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18772 #! $SHELL
18773 # Generated by $as_me.
18774 # Run this file to recreate the current configuration.
18775 # Compiler output produced by configure, useful for debugging
18776 # configure, is in config.log if it exists.
18777
18778 debug=false
18779 ac_cs_recheck=false
18780 ac_cs_silent=false
18781
18782 SHELL=\${CONFIG_SHELL-$SHELL}
18783 export SHELL
18784 _ASEOF
18785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18786 ## -------------------- ##
18787 ## M4sh Initialization. ##
18788 ## -------------------- ##
18789
18790 # Be more Bourne compatible
18791 DUALCASE=1; export DUALCASE # for MKS sh
18792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18793 emulate sh
18794 NULLCMD=:
18795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18796 # is contrary to our usage. Disable this feature.
18797 alias -g '${1+"$@"}'='"$@"'
18798 setopt NO_GLOB_SUBST
18799 else
18800 case `(set -o) 2>/dev/null` in #(
18801 *posix*) :
18802 set -o posix ;; #(
18803 *) :
18804 ;;
18805 esac
18806 fi
18807
18808
18809 as_nl='
18810 '
18811 export as_nl
18812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18816 # Prefer a ksh shell builtin over an external printf program on Solaris,
18817 # but without wasting forks for bash or zsh.
18818 if test -z "$BASH_VERSION$ZSH_VERSION" \
18819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18820 as_echo='print -r --'
18821 as_echo_n='print -rn --'
18822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18823 as_echo='printf %s\n'
18824 as_echo_n='printf %s'
18825 else
18826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18828 as_echo_n='/usr/ucb/echo -n'
18829 else
18830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18831 as_echo_n_body='eval
18832 arg=$1;
18833 case $arg in #(
18834 *"$as_nl"*)
18835 expr "X$arg" : "X\\(.*\\)$as_nl";
18836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18837 esac;
18838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18839 '
18840 export as_echo_n_body
18841 as_echo_n='sh -c $as_echo_n_body as_echo'
18842 fi
18843 export as_echo_body
18844 as_echo='sh -c $as_echo_body as_echo'
18845 fi
18846
18847 # The user is always right.
18848 if test "${PATH_SEPARATOR+set}" != set; then
18849 PATH_SEPARATOR=:
18850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18852 PATH_SEPARATOR=';'
18853 }
18854 fi
18855
18856
18857 # IFS
18858 # We need space, tab and new line, in precisely that order. Quoting is
18859 # there to prevent editors from complaining about space-tab.
18860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18861 # splitting by setting IFS to empty value.)
18862 IFS=" "" $as_nl"
18863
18864 # Find who we are. Look in the path if we contain no directory separator.
18865 as_myself=
18866 case $0 in #((
18867 *[\\/]* ) as_myself=$0 ;;
18868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18869 for as_dir in $PATH
18870 do
18871 IFS=$as_save_IFS
18872 test -z "$as_dir" && as_dir=.
18873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18874 done
18875 IFS=$as_save_IFS
18876
18877 ;;
18878 esac
18879 # We did not find ourselves, most probably we were run as `sh COMMAND'
18880 # in which case we are not to be found in the path.
18881 if test "x$as_myself" = x; then
18882 as_myself=$0
18883 fi
18884 if test ! -f "$as_myself"; then
18885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18886 exit 1
18887 fi
18888
18889 # Unset variables that we do not need and which cause bugs (e.g. in
18890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18891 # suppresses any "Segmentation fault" message there. '((' could
18892 # trigger a bug in pdksh 5.2.14.
18893 for as_var in BASH_ENV ENV MAIL MAILPATH
18894 do eval test x\${$as_var+set} = xset \
18895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18896 done
18897 PS1='$ '
18898 PS2='> '
18899 PS4='+ '
18900
18901 # NLS nuisances.
18902 LC_ALL=C
18903 export LC_ALL
18904 LANGUAGE=C
18905 export LANGUAGE
18906
18907 # CDPATH.
18908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18909
18910
18911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18912 # ----------------------------------------
18913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18915 # script with STATUS, using 1 if that was 0.
18916 as_fn_error ()
18917 {
18918 as_status=$1; test $as_status -eq 0 && as_status=1
18919 if test "$4"; then
18920 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18922 fi
18923 $as_echo "$as_me: error: $2" >&2
18924 as_fn_exit $as_status
18925 } # as_fn_error
18926
18927
18928 # as_fn_set_status STATUS
18929 # -----------------------
18930 # Set $? to STATUS, without forking.
18931 as_fn_set_status ()
18932 {
18933 return $1
18934 } # as_fn_set_status
18935
18936 # as_fn_exit STATUS
18937 # -----------------
18938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18939 as_fn_exit ()
18940 {
18941 set +e
18942 as_fn_set_status $1
18943 exit $1
18944 } # as_fn_exit
18945
18946 # as_fn_unset VAR
18947 # ---------------
18948 # Portably unset VAR.
18949 as_fn_unset ()
18950 {
18951 { eval $1=; unset $1;}
18952 }
18953 as_unset=as_fn_unset
18954 # as_fn_append VAR VALUE
18955 # ----------------------
18956 # Append the text in VALUE to the end of the definition contained in VAR. Take
18957 # advantage of any shell optimizations that allow amortized linear growth over
18958 # repeated appends, instead of the typical quadratic growth present in naive
18959 # implementations.
18960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18961 eval 'as_fn_append ()
18962 {
18963 eval $1+=\$2
18964 }'
18965 else
18966 as_fn_append ()
18967 {
18968 eval $1=\$$1\$2
18969 }
18970 fi # as_fn_append
18971
18972 # as_fn_arith ARG...
18973 # ------------------
18974 # Perform arithmetic evaluation on the ARGs, and store the result in the
18975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18976 # must be portable across $(()) and expr.
18977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18978 eval 'as_fn_arith ()
18979 {
18980 as_val=$(( $* ))
18981 }'
18982 else
18983 as_fn_arith ()
18984 {
18985 as_val=`expr "$@" || test $? -eq 1`
18986 }
18987 fi # as_fn_arith
18988
18989
18990 if expr a : '\(a\)' >/dev/null 2>&1 &&
18991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18992 as_expr=expr
18993 else
18994 as_expr=false
18995 fi
18996
18997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18998 as_basename=basename
18999 else
19000 as_basename=false
19001 fi
19002
19003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19004 as_dirname=dirname
19005 else
19006 as_dirname=false
19007 fi
19008
19009 as_me=`$as_basename -- "$0" ||
19010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19011 X"$0" : 'X\(//\)$' \| \
19012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19013 $as_echo X/"$0" |
19014 sed '/^.*\/\([^/][^/]*\)\/*$/{
19015 s//\1/
19016 q
19017 }
19018 /^X\/\(\/\/\)$/{
19019 s//\1/
19020 q
19021 }
19022 /^X\/\(\/\).*/{
19023 s//\1/
19024 q
19025 }
19026 s/.*/./; q'`
19027
19028 # Avoid depending upon Character Ranges.
19029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19032 as_cr_digits='0123456789'
19033 as_cr_alnum=$as_cr_Letters$as_cr_digits
19034
19035 ECHO_C= ECHO_N= ECHO_T=
19036 case `echo -n x` in #(((((
19037 -n*)
19038 case `echo 'xy\c'` in
19039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19040 xy) ECHO_C='\c';;
19041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19042 ECHO_T=' ';;
19043 esac;;
19044 *)
19045 ECHO_N='-n';;
19046 esac
19047
19048 rm -f conf$$ conf$$.exe conf$$.file
19049 if test -d conf$$.dir; then
19050 rm -f conf$$.dir/conf$$.file
19051 else
19052 rm -f conf$$.dir
19053 mkdir conf$$.dir 2>/dev/null
19054 fi
19055 if (echo >conf$$.file) 2>/dev/null; then
19056 if ln -s conf$$.file conf$$ 2>/dev/null; then
19057 as_ln_s='ln -s'
19058 # ... but there are two gotchas:
19059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19061 # In both cases, we have to default to `cp -pR'.
19062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19063 as_ln_s='cp -pR'
19064 elif ln conf$$.file conf$$ 2>/dev/null; then
19065 as_ln_s=ln
19066 else
19067 as_ln_s='cp -pR'
19068 fi
19069 else
19070 as_ln_s='cp -pR'
19071 fi
19072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19073 rmdir conf$$.dir 2>/dev/null
19074
19075
19076 # as_fn_mkdir_p
19077 # -------------
19078 # Create "$as_dir" as a directory, including parents if necessary.
19079 as_fn_mkdir_p ()
19080 {
19081
19082 case $as_dir in #(
19083 -*) as_dir=./$as_dir;;
19084 esac
19085 test -d "$as_dir" || eval $as_mkdir_p || {
19086 as_dirs=
19087 while :; do
19088 case $as_dir in #(
19089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19090 *) as_qdir=$as_dir;;
19091 esac
19092 as_dirs="'$as_qdir' $as_dirs"
19093 as_dir=`$as_dirname -- "$as_dir" ||
19094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19095 X"$as_dir" : 'X\(//\)[^/]' \| \
19096 X"$as_dir" : 'X\(//\)$' \| \
19097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19098 $as_echo X"$as_dir" |
19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19100 s//\1/
19101 q
19102 }
19103 /^X\(\/\/\)[^/].*/{
19104 s//\1/
19105 q
19106 }
19107 /^X\(\/\/\)$/{
19108 s//\1/
19109 q
19110 }
19111 /^X\(\/\).*/{
19112 s//\1/
19113 q
19114 }
19115 s/.*/./; q'`
19116 test -d "$as_dir" && break
19117 done
19118 test -z "$as_dirs" || eval "mkdir $as_dirs"
19119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19120
19121
19122 } # as_fn_mkdir_p
19123 if mkdir -p . 2>/dev/null; then
19124 as_mkdir_p='mkdir -p "$as_dir"'
19125 else
19126 test -d ./-p && rmdir ./-p
19127 as_mkdir_p=false
19128 fi
19129
19130
19131 # as_fn_executable_p FILE
19132 # -----------------------
19133 # Test if FILE is an executable regular file.
19134 as_fn_executable_p ()
19135 {
19136 test -f "$1" && test -x "$1"
19137 } # as_fn_executable_p
19138 as_test_x='test -x'
19139 as_executable_p=as_fn_executable_p
19140
19141 # Sed expression to map a string onto a valid CPP name.
19142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19143
19144 # Sed expression to map a string onto a valid variable name.
19145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19146
19147
19148 exec 6>&1
19149 ## ----------------------------------- ##
19150 ## Main body of $CONFIG_STATUS script. ##
19151 ## ----------------------------------- ##
19152 _ASEOF
19153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19154
19155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156 # Save the log message, to keep $0 and so on meaningful, and to
19157 # report actual input values of CONFIG_FILES etc. instead of their
19158 # values after options handling.
19159 ac_log="
19160 This file was extended by $as_me, which was
19161 generated by GNU Autoconf 2.69. Invocation command line was
19162
19163 CONFIG_FILES = $CONFIG_FILES
19164 CONFIG_HEADERS = $CONFIG_HEADERS
19165 CONFIG_LINKS = $CONFIG_LINKS
19166 CONFIG_COMMANDS = $CONFIG_COMMANDS
19167 $ $0 $@
19168
19169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19170 "
19171
19172 _ACEOF
19173
19174 case $ac_config_files in *"
19175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19176 esac
19177
19178
19179
19180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19181 # Files that config.status was made for.
19182 config_files="$ac_config_files"
19183
19184 _ACEOF
19185
19186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19187 ac_cs_usage="\
19188 \`$as_me' instantiates files and other configuration actions
19189 from templates according to the current configuration. Unless the files
19190 and actions are specified as TAGs, all are instantiated by default.
19191
19192 Usage: $0 [OPTION]... [TAG]...
19193
19194 -h, --help print this help, then exit
19195 -V, --version print version number and configuration settings, then exit
19196 --config print configuration, then exit
19197 -q, --quiet, --silent
19198 do not print progress messages
19199 -d, --debug don't remove temporary files
19200 --recheck update $as_me by reconfiguring in the same conditions
19201 --file=FILE[:TEMPLATE]
19202 instantiate the configuration file FILE
19203
19204 Configuration files:
19205 $config_files
19206
19207 Report bugs to the package provider."
19208
19209 _ACEOF
19210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19211 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19212 ac_cs_version="\\
19213 config.status
19214 configured by $0, generated by GNU Autoconf 2.69,
19215 with options \\"\$ac_cs_config\\"
19216
19217 Copyright (C) 2012 Free Software Foundation, Inc.
19218 This config.status script is free software; the Free Software Foundation
19219 gives unlimited permission to copy, distribute and modify it."
19220
19221 ac_pwd='$ac_pwd'
19222 srcdir='$srcdir'
19223 INSTALL='$INSTALL'
19224 AWK='$AWK'
19225 test -n "\$AWK" || AWK=awk
19226 _ACEOF
19227
19228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19229 # The default lists apply if the user does not specify any file.
19230 ac_need_defaults=:
19231 while test $# != 0
19232 do
19233 case $1 in
19234 --*=?*)
19235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19237 ac_shift=:
19238 ;;
19239 --*=)
19240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19241 ac_optarg=
19242 ac_shift=:
19243 ;;
19244 *)
19245 ac_option=$1
19246 ac_optarg=$2
19247 ac_shift=shift
19248 ;;
19249 esac
19250
19251 case $ac_option in
19252 # Handling of the options.
19253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19254 ac_cs_recheck=: ;;
19255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19256 $as_echo "$ac_cs_version"; exit ;;
19257 --config | --confi | --conf | --con | --co | --c )
19258 $as_echo "$ac_cs_config"; exit ;;
19259 --debug | --debu | --deb | --de | --d | -d )
19260 debug=: ;;
19261 --file | --fil | --fi | --f )
19262 $ac_shift
19263 case $ac_optarg in
19264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19265 '') as_fn_error $? "missing file argument" ;;
19266 esac
19267 as_fn_append CONFIG_FILES " '$ac_optarg'"
19268 ac_need_defaults=false;;
19269 --he | --h | --help | --hel | -h )
19270 $as_echo "$ac_cs_usage"; exit ;;
19271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19273 ac_cs_silent=: ;;
19274
19275 # This is an error.
19276 -*) as_fn_error $? "unrecognized option: \`$1'
19277 Try \`$0 --help' for more information." ;;
19278
19279 *) as_fn_append ac_config_targets " $1"
19280 ac_need_defaults=false ;;
19281
19282 esac
19283 shift
19284 done
19285
19286 ac_configure_extra_args=
19287
19288 if $ac_cs_silent; then
19289 exec 6>/dev/null
19290 ac_configure_extra_args="$ac_configure_extra_args --silent"
19291 fi
19292
19293 _ACEOF
19294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19295 if \$ac_cs_recheck; then
19296 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19297 shift
19298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19299 CONFIG_SHELL='$SHELL'
19300 export CONFIG_SHELL
19301 exec "\$@"
19302 fi
19303
19304 _ACEOF
19305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19306 exec 5>>config.log
19307 {
19308 echo
19309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19310 ## Running $as_me. ##
19311 _ASBOX
19312 $as_echo "$ac_log"
19313 } >&5
19314
19315 _ACEOF
19316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 #
19318 # INIT-COMMANDS
19319 #
19320 extrasub_build="$extrasub_build"
19321 extrasub_host="$extrasub_host"
19322 extrasub_target="$extrasub_target"
19323
19324 _ACEOF
19325
19326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19327
19328 # Handling of arguments.
19329 for ac_config_target in $ac_config_targets
19330 do
19331 case $ac_config_target in
19332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19333
19334 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19335 esac
19336 done
19337
19338
19339 # If the user did not use the arguments to specify the items to instantiate,
19340 # then the envvar interface is used. Set only those that are not.
19341 # We use the long form for the default assignment because of an extremely
19342 # bizarre bug on SunOS 4.1.3.
19343 if $ac_need_defaults; then
19344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19345 fi
19346
19347 # Have a temporary directory for convenience. Make it in the build tree
19348 # simply because there is no reason against having it here, and in addition,
19349 # creating and moving files from /tmp can sometimes cause problems.
19350 # Hook for its removal unless debugging.
19351 # Note that there is a small window in which the directory will not be cleaned:
19352 # after its creation but before its name has been assigned to `$tmp'.
19353 $debug ||
19354 {
19355 tmp= ac_tmp=
19356 trap 'exit_status=$?
19357 : "${ac_tmp:=$tmp}"
19358 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19359 ' 0
19360 trap 'as_fn_exit 1' 1 2 13 15
19361 }
19362 # Create a (secure) tmp directory for tmp files.
19363
19364 {
19365 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19366 test -d "$tmp"
19367 } ||
19368 {
19369 tmp=./conf$$-$RANDOM
19370 (umask 077 && mkdir "$tmp")
19371 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19372 ac_tmp=$tmp
19373
19374 # Set up the scripts for CONFIG_FILES section.
19375 # No need to generate them if there are no CONFIG_FILES.
19376 # This happens for instance with `./config.status config.h'.
19377 if test -n "$CONFIG_FILES"; then
19378
19379 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19380 ac_cs_awk_getline=:
19381 ac_cs_awk_pipe_init=
19382 ac_cs_awk_read_file='
19383 while ((getline aline < (F[key])) > 0)
19384 print(aline)
19385 close(F[key])'
19386 ac_cs_awk_pipe_fini=
19387 else
19388 ac_cs_awk_getline=false
19389 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19390 ac_cs_awk_read_file='
19391 print "|#_!!_#|"
19392 print "cat " F[key] " &&"
19393 '$ac_cs_awk_pipe_init
19394 # The final `:' finishes the AND list.
19395 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19396 fi
19397 ac_cr=`echo X | tr X '\015'`
19398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19399 # But we know of no other shell where ac_cr would be empty at this
19400 # point, so we can use a bashism as a fallback.
19401 if test "x$ac_cr" = x; then
19402 eval ac_cr=\$\'\\r\'
19403 fi
19404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19406 ac_cs_awk_cr='\\r'
19407 else
19408 ac_cs_awk_cr=$ac_cr
19409 fi
19410
19411 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19412 _ACEOF
19413
19414 # Create commands to substitute file output variables.
19415 {
19416 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19417 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19418 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19419 echo "_ACAWK" &&
19420 echo "_ACEOF"
19421 } >conf$$files.sh &&
19422 . ./conf$$files.sh ||
19423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19424 rm -f conf$$files.sh
19425
19426 {
19427 echo "cat >conf$$subs.awk <<_ACEOF" &&
19428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19429 echo "_ACEOF"
19430 } >conf$$subs.sh ||
19431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19433 ac_delim='%!_!# '
19434 for ac_last_try in false false false false false :; do
19435 . ./conf$$subs.sh ||
19436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19437
19438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19439 if test $ac_delim_n = $ac_delim_num; then
19440 break
19441 elif $ac_last_try; then
19442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19443 else
19444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19445 fi
19446 done
19447 rm -f conf$$subs.sh
19448
19449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19450 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19451 _ACEOF
19452 sed -n '
19453 h
19454 s/^/S["/; s/!.*/"]=/
19455 p
19456 g
19457 s/^[^!]*!//
19458 :repl
19459 t repl
19460 s/'"$ac_delim"'$//
19461 t delim
19462 :nl
19463 h
19464 s/\(.\{148\}\)..*/\1/
19465 t more1
19466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19467 p
19468 n
19469 b repl
19470 :more1
19471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19472 p
19473 g
19474 s/.\{148\}//
19475 t nl
19476 :delim
19477 h
19478 s/\(.\{148\}\)..*/\1/
19479 t more2
19480 s/["\\]/\\&/g; s/^/"/; s/$/"/
19481 p
19482 b
19483 :more2
19484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19485 p
19486 g
19487 s/.\{148\}//
19488 t delim
19489 ' <conf$$subs.awk | sed '
19490 /^[^""]/{
19491 N
19492 s/\n//
19493 }
19494 ' >>$CONFIG_STATUS || ac_write_fail=1
19495 rm -f conf$$subs.awk
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19497 _ACAWK
19498 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19499 for (key in S) S_is_set[key] = 1
19500 FS = "\a"
19501 \$ac_cs_awk_pipe_init
19502 }
19503 {
19504 line = $ 0
19505 nfields = split(line, field, "@")
19506 substed = 0
19507 len = length(field[1])
19508 for (i = 2; i < nfields; i++) {
19509 key = field[i]
19510 keylen = length(key)
19511 if (S_is_set[key]) {
19512 value = S[key]
19513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19514 len += length(value) + length(field[++i])
19515 substed = 1
19516 } else
19517 len += 1 + keylen
19518 }
19519 if (nfields == 3 && !substed) {
19520 key = field[2]
19521 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19522 \$ac_cs_awk_read_file
19523 next
19524 }
19525 }
19526 print line
19527 }
19528 \$ac_cs_awk_pipe_fini
19529 _ACAWK
19530 _ACEOF
19531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19532 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19534 else
19535 cat
19536 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19537 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19538 _ACEOF
19539
19540 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19541 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19542 # trailing colons and then remove the whole line if VPATH becomes empty
19543 # (actually we leave an empty line to preserve line numbers).
19544 if test "x$srcdir" = x.; then
19545 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19546 h
19547 s///
19548 s/^/:/
19549 s/[ ]*$/:/
19550 s/:\$(srcdir):/:/g
19551 s/:\${srcdir}:/:/g
19552 s/:@srcdir@:/:/g
19553 s/^:*//
19554 s/:*$//
19555 x
19556 s/\(=[ ]*\).*/\1/
19557 G
19558 s/\n//
19559 s/^[^=]*=[ ]*$//
19560 }'
19561 fi
19562
19563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19564 fi # test -n "$CONFIG_FILES"
19565
19566
19567 eval set X " :F $CONFIG_FILES "
19568 shift
19569 for ac_tag
19570 do
19571 case $ac_tag in
19572 :[FHLC]) ac_mode=$ac_tag; continue;;
19573 esac
19574 case $ac_mode$ac_tag in
19575 :[FHL]*:*);;
19576 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19577 :[FH]-) ac_tag=-:-;;
19578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19579 esac
19580 ac_save_IFS=$IFS
19581 IFS=:
19582 set x $ac_tag
19583 IFS=$ac_save_IFS
19584 shift
19585 ac_file=$1
19586 shift
19587
19588 case $ac_mode in
19589 :L) ac_source=$1;;
19590 :[FH])
19591 ac_file_inputs=
19592 for ac_f
19593 do
19594 case $ac_f in
19595 -) ac_f="$ac_tmp/stdin";;
19596 *) # Look for the file first in the build tree, then in the source tree
19597 # (if the path is not absolute). The absolute path cannot be DOS-style,
19598 # because $ac_f cannot contain `:'.
19599 test -f "$ac_f" ||
19600 case $ac_f in
19601 [\\/$]*) false;;
19602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19603 esac ||
19604 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19605 esac
19606 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19607 as_fn_append ac_file_inputs " '$ac_f'"
19608 done
19609
19610 # Let's still pretend it is `configure' which instantiates (i.e., don't
19611 # use $as_me), people would be surprised to read:
19612 # /* config.h. Generated by config.status. */
19613 configure_input='Generated from '`
19614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19615 `' by configure.'
19616 if test x"$ac_file" != x-; then
19617 configure_input="$ac_file. $configure_input"
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19619 $as_echo "$as_me: creating $ac_file" >&6;}
19620 fi
19621 # Neutralize special characters interpreted by sed in replacement strings.
19622 case $configure_input in #(
19623 *\&* | *\|* | *\\* )
19624 ac_sed_conf_input=`$as_echo "$configure_input" |
19625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19626 *) ac_sed_conf_input=$configure_input;;
19627 esac
19628
19629 case $ac_tag in
19630 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19632 esac
19633 ;;
19634 esac
19635
19636 ac_dir=`$as_dirname -- "$ac_file" ||
19637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19638 X"$ac_file" : 'X\(//\)[^/]' \| \
19639 X"$ac_file" : 'X\(//\)$' \| \
19640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19641 $as_echo X"$ac_file" |
19642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19643 s//\1/
19644 q
19645 }
19646 /^X\(\/\/\)[^/].*/{
19647 s//\1/
19648 q
19649 }
19650 /^X\(\/\/\)$/{
19651 s//\1/
19652 q
19653 }
19654 /^X\(\/\).*/{
19655 s//\1/
19656 q
19657 }
19658 s/.*/./; q'`
19659 as_dir="$ac_dir"; as_fn_mkdir_p
19660 ac_builddir=.
19661
19662 case "$ac_dir" in
19663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19664 *)
19665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19666 # A ".." for each directory in $ac_dir_suffix.
19667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19668 case $ac_top_builddir_sub in
19669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19671 esac ;;
19672 esac
19673 ac_abs_top_builddir=$ac_pwd
19674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19675 # for backward compatibility:
19676 ac_top_builddir=$ac_top_build_prefix
19677
19678 case $srcdir in
19679 .) # We are building in place.
19680 ac_srcdir=.
19681 ac_top_srcdir=$ac_top_builddir_sub
19682 ac_abs_top_srcdir=$ac_pwd ;;
19683 [\\/]* | ?:[\\/]* ) # Absolute name.
19684 ac_srcdir=$srcdir$ac_dir_suffix;
19685 ac_top_srcdir=$srcdir
19686 ac_abs_top_srcdir=$srcdir ;;
19687 *) # Relative name.
19688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19689 ac_top_srcdir=$ac_top_build_prefix$srcdir
19690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19691 esac
19692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19693
19694
19695 case $ac_mode in
19696 :F)
19697 #
19698 # CONFIG_FILE
19699 #
19700
19701 case $INSTALL in
19702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19703 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19704 esac
19705 _ACEOF
19706
19707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19708 # If the template does not know about datarootdir, expand it.
19709 # FIXME: This hack should be removed a few years after 2.60.
19710 ac_datarootdir_hack=; ac_datarootdir_seen=
19711 ac_sed_dataroot='
19712 /datarootdir/ {
19713 p
19714 q
19715 }
19716 /@datadir@/p
19717 /@docdir@/p
19718 /@infodir@/p
19719 /@localedir@/p
19720 /@mandir@/p'
19721 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19722 *datarootdir*) ac_datarootdir_seen=yes;;
19723 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19725 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19726 _ACEOF
19727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19728 ac_datarootdir_hack='
19729 s&@datadir@&$datadir&g
19730 s&@docdir@&$docdir&g
19731 s&@infodir@&$infodir&g
19732 s&@localedir@&$localedir&g
19733 s&@mandir@&$mandir&g
19734 s&\\\${datarootdir}&$datarootdir&g' ;;
19735 esac
19736 _ACEOF
19737
19738 # Neutralize VPATH when `$srcdir' = `.'.
19739 # Shell code in configure.ac might set extrasub.
19740 # FIXME: do we really want to maintain this feature?
19741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19742 ac_sed_extra="$ac_vpsub
19743 $extrasub
19744 _ACEOF
19745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746 :t
19747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19748 s|@configure_input@|$ac_sed_conf_input|;t t
19749 s&@top_builddir@&$ac_top_builddir_sub&;t t
19750 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19751 s&@srcdir@&$ac_srcdir&;t t
19752 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19753 s&@top_srcdir@&$ac_top_srcdir&;t t
19754 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19755 s&@builddir@&$ac_builddir&;t t
19756 s&@abs_builddir@&$ac_abs_builddir&;t t
19757 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19758 s&@INSTALL@&$ac_INSTALL&;t t
19759 $ac_datarootdir_hack
19760 "
19761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19762 if $ac_cs_awk_getline; then
19763 $AWK -f "$ac_tmp/subs.awk"
19764 else
19765 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19766 fi \
19767 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19768
19769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19772 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19774 which seems to be undefined. Please make sure it is defined" >&5
19775 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19776 which seems to be undefined. Please make sure it is defined" >&2;}
19777
19778 rm -f "$ac_tmp/stdin"
19779 case $ac_file in
19780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19782 esac \
19783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19784 ;;
19785
19786
19787
19788 esac
19789
19790
19791 case $ac_file$ac_mode in
19792 "Makefile":F) sed "$extrasub_build" Makefile |
19793 sed "$extrasub_host" |
19794 sed "$extrasub_target" > mf$$
19795 mv -f mf$$ Makefile ;;
19796
19797 esac
19798 done # for ac_tag
19799
19800
19801 as_fn_exit 0
19802 _ACEOF
19803 ac_clean_files=$ac_clean_files_save
19804
19805 test $ac_write_fail = 0 ||
19806 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19807
19808
19809 # configure is writing to config.log, and then calls config.status.
19810 # config.status does its own redirection, appending to config.log.
19811 # Unfortunately, on DOS this fails, as config.log is still kept open
19812 # by configure, so config.status won't be able to write to it; its
19813 # output is simply discarded. So we exec the FD to /dev/null,
19814 # effectively closing config.log, so it can be properly (re)opened and
19815 # appended to by config.status. When coming back to configure, we
19816 # need to make the FD available again.
19817 if test "$no_create" != yes; then
19818 ac_cs_success=:
19819 ac_config_status_args=
19820 test "$silent" = yes &&
19821 ac_config_status_args="$ac_config_status_args --quiet"
19822 exec 5>/dev/null
19823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19824 exec 5>>config.log
19825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19826 # would make configure fail if this is the last instruction.
19827 $ac_cs_success || as_fn_exit 1
19828 fi
19829 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19831 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19832 fi
19833